gcc.info 2.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274
  1. This is gcc.info, produced by makeinfo version 5.2 from gcc.texi.
  2. Copyright (C) 1988-2017 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-2017 Free Software Foundation, Inc.
  26. Permission is granted to copy, distribute and/or modify this document
  27. under the terms of the GNU Free Documentation License, Version 1.3 or
  28. any later version published by the Free Software Foundation; with the
  29. Invariant Sections being "Funding Free Software", the Front-Cover Texts
  30. being (a) (see below), and with the Back-Cover Texts being (b) (see
  31. below). A copy of the license is included in the section entitled "GNU
  32. Free Documentation License".
  33. (a) The FSF's Front-Cover Text is:
  34. A GNU Manual
  35. (b) The FSF's Back-Cover Text is:
  36. You have freedom to copy and modify this GNU Manual, like GNU software.
  37. Copies published by the Free Software Foundation raise funds for GNU
  38. development.
  39. 
  40. File: gcc.info, Node: Top, Next: G++ and GCC
  41. Introduction
  42. ************
  43. This manual documents how to use the GNU compilers, as well as their
  44. features and incompatibilities, and how to report bugs. It corresponds
  45. to the compilers (Linaro GCC 7.5-2019.12) version 7.5.0. The internals
  46. of the GNU compilers, including how to port them to new targets and some
  47. information about how to write front ends for new languages, are
  48. documented in a separate manual. *Note Introduction: (gccint)Top.
  49. * Menu:
  50. * G++ and GCC:: You can compile C or C++ programs.
  51. * Standards:: Language standards supported by GCC.
  52. * Invoking GCC:: Command options supported by 'gcc'.
  53. * C Implementation:: How GCC implements the ISO C specification.
  54. * C++ Implementation:: How GCC implements the ISO C++ specification.
  55. * C Extensions:: GNU extensions to the C language family.
  56. * C++ Extensions:: GNU extensions to the C++ language.
  57. * Objective-C:: GNU Objective-C runtime features.
  58. * Compatibility:: Binary Compatibility
  59. * Gcov:: 'gcov'--a test coverage program.
  60. * Gcov-tool:: 'gcov-tool'--an offline gcda profile processing program.
  61. * Gcov-dump:: 'gcov-dump'--an offline gcda and gcno profile dump tool.
  62. * Trouble:: If you have trouble using GCC.
  63. * Bugs:: How, why and where to report bugs.
  64. * Service:: How To Get Help with GCC
  65. * Contributing:: How to contribute to testing and developing GCC.
  66. * Funding:: How to help assure funding for free software.
  67. * GNU Project:: The GNU Project and GNU/Linux.
  68. * Copying:: GNU General Public License says
  69. how you can copy and share GCC.
  70. * GNU Free Documentation License:: How you can copy and share this manual.
  71. * Contributors:: People who have contributed to GCC.
  72. * Option Index:: Index to command line options.
  73. * Keyword Index:: Index of concepts and symbol names.
  74. 
  75. File: gcc.info, Node: G++ and GCC, Next: Standards, Up: Top
  76. 1 Programming Languages Supported by GCC
  77. ****************************************
  78. GCC stands for "GNU Compiler Collection". GCC is an integrated
  79. distribution of compilers for several major programming languages.
  80. These languages currently include C, C++, Objective-C, Objective-C++,
  81. Fortran, Ada, Go, and BRIG (HSAIL).
  82. The abbreviation "GCC" has multiple meanings in common use. The
  83. current official meaning is "GNU Compiler Collection", which refers
  84. generically to the complete suite of tools. The name historically stood
  85. for "GNU C Compiler", and this usage is still common when the emphasis
  86. is on compiling C programs. Finally, the name is also used when
  87. speaking of the "language-independent" component of GCC: code shared
  88. among the compilers for all supported languages.
  89. The language-independent component of GCC includes the majority of the
  90. optimizers, as well as the "back ends" that generate machine code for
  91. various processors.
  92. The part of a compiler that is specific to a particular language is
  93. called the "front end". In addition to the front ends that are
  94. integrated components of GCC, there are several other front ends that
  95. are maintained separately. These support languages such as Pascal,
  96. Mercury, and COBOL. To use these, they must be built together with GCC
  97. proper.
  98. Most of the compilers for languages other than C have their own names.
  99. The C++ compiler is G++, the Ada compiler is GNAT, and so on. When we
  100. talk about compiling one of those languages, we might refer to that
  101. compiler by its own name, or as GCC. Either is correct.
  102. Historically, compilers for many languages, including C++ and Fortran,
  103. have been implemented as "preprocessors" which emit another high level
  104. language such as C. None of the compilers included in GCC are
  105. implemented this way; they all generate machine code directly. This
  106. sort of preprocessor should not be confused with the "C preprocessor",
  107. which is an integral feature of the C, C++, Objective-C and
  108. Objective-C++ languages.
  109. 
  110. File: gcc.info, Node: Standards, Next: Invoking GCC, Prev: G++ and GCC, Up: Top
  111. 2 Language Standards Supported by GCC
  112. *************************************
  113. For each language compiled by GCC for which there is a standard, GCC
  114. attempts to follow one or more versions of that standard, possibly with
  115. some exceptions, and possibly with some extensions.
  116. 2.1 C Language
  117. ==============
  118. The original ANSI C standard (X3.159-1989) was ratified in 1989 and
  119. published in 1990. This standard was ratified as an ISO standard
  120. (ISO/IEC 9899:1990) later in 1990. There were no technical differences
  121. between these publications, although the sections of the ANSI standard
  122. were renumbered and became clauses in the ISO standard. The ANSI
  123. standard, but not the ISO standard, also came with a Rationale document.
  124. This standard, in both its forms, is commonly known as "C89", or
  125. occasionally as "C90", from the dates of ratification. To select this
  126. standard in GCC, use one of the options '-ansi', '-std=c90' or
  127. '-std=iso9899:1990'; to obtain all the diagnostics required by the
  128. standard, you should also specify '-pedantic' (or '-pedantic-errors' if
  129. you want them to be errors rather than warnings). *Note Options
  130. Controlling C Dialect: C Dialect Options.
  131. Errors in the 1990 ISO C standard were corrected in two Technical
  132. Corrigenda published in 1994 and 1996. GCC does not support the
  133. uncorrected version.
  134. An amendment to the 1990 standard was published in 1995. This
  135. amendment added digraphs and '__STDC_VERSION__' to the language, but
  136. otherwise concerned the library. This amendment is commonly known as
  137. "AMD1"; the amended standard is sometimes known as "C94" or "C95". To
  138. select this standard in GCC, use the option '-std=iso9899:199409' (with,
  139. as for other standard versions, '-pedantic' to receive all required
  140. diagnostics).
  141. A new edition of the ISO C standard was published in 1999 as ISO/IEC
  142. 9899:1999, and is commonly known as "C99". (While in development,
  143. drafts of this standard version were referred to as "C9X".) GCC has
  144. substantially complete support for this standard version; see
  145. <http://gcc.gnu.org/c99status.html> for details. To select this
  146. standard, use '-std=c99' or '-std=iso9899:1999'.
  147. Errors in the 1999 ISO C standard were corrected in three Technical
  148. Corrigenda published in 2001, 2004 and 2007. GCC does not support the
  149. uncorrected version.
  150. A fourth version of the C standard, known as "C11", was published in
  151. 2011 as ISO/IEC 9899:2011. (While in development, drafts of this
  152. standard version were referred to as "C1X".) GCC has substantially
  153. complete support for this standard, enabled with '-std=c11' or
  154. '-std=iso9899:2011'.
  155. By default, GCC provides some extensions to the C language that, on
  156. rare occasions conflict with the C standard. *Note Extensions to the C
  157. Language Family: C Extensions. Some features that are part of the C99
  158. standard are accepted as extensions in C90 mode, and some features that
  159. are part of the C11 standard are accepted as extensions in C90 and C99
  160. modes. Use of the '-std' options listed above disables these extensions
  161. where they conflict with the C standard version selected. You may also
  162. select an extended version of the C language explicitly with
  163. '-std=gnu90' (for C90 with GNU extensions), '-std=gnu99' (for C99 with
  164. GNU extensions) or '-std=gnu11' (for C11 with GNU extensions).
  165. The default, if no C language dialect options are given, is
  166. '-std=gnu11'.
  167. The ISO C standard defines (in clause 4) two classes of conforming
  168. implementation. A "conforming hosted implementation" supports the whole
  169. standard including all the library facilities; a "conforming
  170. freestanding implementation" is only required to provide certain library
  171. facilities: those in '<float.h>', '<limits.h>', '<stdarg.h>', and
  172. '<stddef.h>'; since AMD1, also those in '<iso646.h>'; since C99, also
  173. those in '<stdbool.h>' and '<stdint.h>'; and since C11, also those in
  174. '<stdalign.h>' and '<stdnoreturn.h>'. In addition, complex types, added
  175. in C99, are not required for freestanding implementations.
  176. The standard also defines two environments for programs, a
  177. "freestanding environment", required of all implementations and which
  178. may not have library facilities beyond those required of freestanding
  179. implementations, where the handling of program startup and termination
  180. are implementation-defined; and a "hosted environment", which is not
  181. required, in which all the library facilities are provided and startup
  182. is through a function 'int main (void)' or 'int main (int, char *[])'.
  183. An OS kernel is an example of a program running in a freestanding
  184. environment; a program using the facilities of an operating system is an
  185. example of a program running in a hosted environment.
  186. GCC aims towards being usable as a conforming freestanding
  187. implementation, or as the compiler for a conforming hosted
  188. implementation. By default, it acts as the compiler for a hosted
  189. implementation, defining '__STDC_HOSTED__' as '1' and presuming that
  190. when the names of ISO C functions are used, they have the semantics
  191. defined in the standard. To make it act as a conforming freestanding
  192. implementation for a freestanding environment, use the option
  193. '-ffreestanding'; it then defines '__STDC_HOSTED__' to '0' and does not
  194. make assumptions about the meanings of function names from the standard
  195. library, with exceptions noted below. To build an OS kernel, you may
  196. well still need to make your own arrangements for linking and startup.
  197. *Note Options Controlling C Dialect: C Dialect Options.
  198. GCC does not provide the library facilities required only of hosted
  199. implementations, nor yet all the facilities required by C99 of
  200. freestanding implementations on all platforms. To use the facilities of
  201. a hosted environment, you need to find them elsewhere (for example, in
  202. the GNU C library). *Note Standard Libraries: Standard Libraries.
  203. Most of the compiler support routines used by GCC are present in
  204. 'libgcc', but there are a few exceptions. GCC requires the freestanding
  205. environment provide 'memcpy', 'memmove', 'memset' and 'memcmp'.
  206. Finally, if '__builtin_trap' is used, and the target does not implement
  207. the 'trap' pattern, then GCC emits a call to 'abort'.
  208. For references to Technical Corrigenda, Rationale documents and
  209. information concerning the history of C that is available online, see
  210. <http://gcc.gnu.org/readings.html>
  211. 2.2 C++ Language
  212. ================
  213. GCC supports the original ISO C++ standard published in 1998, and the
  214. 2011 and 2014 revisions.
  215. The original ISO C++ standard was published as the ISO standard
  216. (ISO/IEC 14882:1998) and amended by a Technical Corrigenda published in
  217. 2003 (ISO/IEC 14882:2003). These standards are referred to as C++98 and
  218. C++03, respectively. GCC implements the majority of C++98 ('export' is
  219. a notable exception) and most of the changes in C++03. To select this
  220. standard in GCC, use one of the options '-ansi', '-std=c++98', or
  221. '-std=c++03'; to obtain all the diagnostics required by the standard,
  222. you should also specify '-pedantic' (or '-pedantic-errors' if you want
  223. them to be errors rather than warnings).
  224. A revised ISO C++ standard was published in 2011 as ISO/IEC 14882:2011,
  225. and is referred to as C++11; before its publication it was commonly
  226. referred to as C++0x. C++11 contains several changes to the C++
  227. language, all of which have been implemented in GCC. For details see
  228. <https://gcc.gnu.org/projects/cxx0x.html>. To select this standard in
  229. GCC, use the option '-std=c++11'.
  230. Another revised ISO C++ standard was published in 2014 as ISO/IEC
  231. 14882:2014, and is referred to as C++14; before its publication it was
  232. sometimes referred to as C++1y. C++14 contains several further changes
  233. to the C++ language, all of which have been implemented in GCC. For
  234. details see <https://gcc.gnu.org/projects/cxx1y.html>. To select this
  235. standard in GCC, use the option '-std=c++14'.
  236. GCC also supports the C++ Concepts Technical Specification, ISO/IEC TS
  237. 19217:2015, which allows constraints to be defined for templates,
  238. allowing template arguments to be checked and for templates to be
  239. overloaded or specialized based on the constraints. Support for C++
  240. Concepts is included in an experimental C++1z mode that corresponds to
  241. the next revision of the ISO C++ standard, expected to be published in
  242. 2017. To enable C++1z support in GCC, use the option '-std=c++17' or
  243. '-std=c++1z'.
  244. More information about the C++ standards is available on the ISO C++
  245. committee's web site at <http://www.open-std.org/jtc1/sc22/wg21/>.
  246. To obtain all the diagnostics required by any of the standard versions
  247. described above you should specify '-pedantic' or '-pedantic-errors',
  248. otherwise GCC will allow some non-ISO C++ features as extensions. *Note
  249. Warning Options::.
  250. By default, GCC also provides some additional extensions to the C++
  251. language that on rare occasions conflict with the C++ standard. *Note
  252. Options Controlling C++ Dialect: C++ Dialect Options. Use of the '-std'
  253. options listed above disables these extensions where they they conflict
  254. with the C++ standard version selected. You may also select an extended
  255. version of the C++ language explicitly with '-std=gnu++98' (for C++98
  256. with GNU extensions), or '-std=gnu++11' (for C++11 with GNU extensions),
  257. or '-std=gnu++14' (for C++14 with GNU extensions), or '-std=gnu++1z'
  258. (for C++1z with GNU extensions).
  259. The default, if no C++ language dialect options are given, is
  260. '-std=gnu++14'.
  261. 2.3 Objective-C and Objective-C++ Languages
  262. ===========================================
  263. GCC supports "traditional" Objective-C (also known as "Objective-C 1.0")
  264. and contains support for the Objective-C exception and synchronization
  265. syntax. It has also support for a number of "Objective-C 2.0" language
  266. extensions, including properties, fast enumeration (only for
  267. Objective-C), method attributes and the @optional and @required keywords
  268. in protocols. GCC supports Objective-C++ and features available in
  269. Objective-C are also available in Objective-C++.
  270. GCC by default uses the GNU Objective-C runtime library, which is part
  271. of GCC and is not the same as the Apple/NeXT Objective-C runtime library
  272. used on Apple systems. There are a number of differences documented in
  273. this manual. The options '-fgnu-runtime' and '-fnext-runtime' allow you
  274. to switch between producing output that works with the GNU Objective-C
  275. runtime library and output that works with the Apple/NeXT Objective-C
  276. runtime library.
  277. There is no formal written standard for Objective-C or Objective-C++.
  278. The authoritative manual on traditional Objective-C (1.0) is
  279. "Object-Oriented Programming and the Objective-C Language":
  280. <http://www.gnustep.org/resources/documentation/ObjectivCBook.pdf> is
  281. the original NeXTstep document.
  282. The Objective-C exception and synchronization syntax (that is, the
  283. keywords '@try', '@throw', '@catch', '@finally' and '@synchronized') is
  284. supported by GCC and is enabled with the option '-fobjc-exceptions'.
  285. The syntax is briefly documented in this manual and in the Objective-C
  286. 2.0 manuals from Apple.
  287. The Objective-C 2.0 language extensions and features are automatically
  288. enabled; they include properties (via the '@property', '@synthesize' and
  289. '@dynamic keywords'), fast enumeration (not available in Objective-C++),
  290. attributes for methods (such as 'deprecated', 'noreturn', 'sentinel',
  291. 'format'), the 'unused' attribute for method arguments, the '@package'
  292. keyword for instance variables and the '@optional' and '@required'
  293. keywords in protocols. You can disable all these Objective-C 2.0
  294. language extensions with the option '-fobjc-std=objc1', which causes the
  295. compiler to recognize the same Objective-C language syntax recognized by
  296. GCC 4.0, and to produce an error if one of the new features is used.
  297. GCC has currently no support for non-fragile instance variables.
  298. The authoritative manual on Objective-C 2.0 is available from Apple:
  299. *
  300. <https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html>
  301. For more information concerning the history of Objective-C that is
  302. available online, see <http://gcc.gnu.org/readings.html>
  303. 2.4 Go Language
  304. ===============
  305. As of the GCC 4.7.1 release, GCC supports the Go 1 language standard,
  306. described at <https://golang.org/doc/go1>.
  307. 2.5 HSA Intermediate Language (HSAIL)
  308. =====================================
  309. GCC can compile the binary representation (BRIG) of the HSAIL text
  310. format as described in HSA Programmer's Reference Manual version 1.0.1.
  311. This capability is typically utilized to implement the HSA runtime API's
  312. HSAIL finalization extension for a gcc supported processor. HSA
  313. standards are freely available at
  314. <http://www.hsafoundation.com/standards/>.
  315. 2.6 References for Other Languages
  316. ==================================
  317. *Note GNAT Reference Manual: (gnat_rm)Top, for information on standard
  318. conformance and compatibility of the Ada compiler.
  319. *Note Standards: (gfortran)Standards, for details of standards
  320. supported by GNU Fortran.
  321. 
  322. File: gcc.info, Node: Invoking GCC, Next: C Implementation, Prev: Standards, Up: Top
  323. 3 GCC Command Options
  324. *********************
  325. When you invoke GCC, it normally does preprocessing, compilation,
  326. assembly and linking. The "overall options" allow you to stop this
  327. process at an intermediate stage. For example, the '-c' option says not
  328. to run the linker. Then the output consists of object files output by
  329. the assembler. *Note Options Controlling the Kind of Output: Overall
  330. Options.
  331. Other options are passed on to one or more stages of processing. Some
  332. options control the preprocessor and others the compiler itself. Yet
  333. other options control the assembler and linker; most of these are not
  334. documented here, since you rarely need to use any of them.
  335. Most of the command-line options that you can use with GCC are useful
  336. for C programs; when an option is only useful with another language
  337. (usually C++), the explanation says so explicitly. If the description
  338. for a particular option does not mention a source language, you can use
  339. that option with all supported languages.
  340. The usual way to run GCC is to run the executable called 'gcc', or
  341. 'MACHINE-gcc' when cross-compiling, or 'MACHINE-gcc-VERSION' to run a
  342. specific version of GCC. When you compile C++ programs, you should
  343. invoke GCC as 'g++' instead. *Note Compiling C++ Programs: Invoking
  344. G++, for information about the differences in behavior between 'gcc' and
  345. 'g++' when compiling C++ programs.
  346. The 'gcc' program accepts options and file names as operands. Many
  347. options have multi-letter names; therefore multiple single-letter
  348. options may _not_ be grouped: '-dv' is very different from '-d -v'.
  349. You can mix options and other arguments. For the most part, the order
  350. you use doesn't matter. Order does matter when you use several options
  351. of the same kind; for example, if you specify '-L' more than once, the
  352. directories are searched in the order specified. Also, the placement of
  353. the '-l' option is significant.
  354. Many options have long names starting with '-f' or with '-W'--for
  355. example, '-fmove-loop-invariants', '-Wformat' and so on. Most of these
  356. have both positive and negative forms; the negative form of '-ffoo' is
  357. '-fno-foo'. This manual documents only one of these two forms,
  358. whichever one is not the default.
  359. *Note Option Index::, for an index to GCC's options.
  360. * Menu:
  361. * Option Summary:: Brief list of all options, without explanations.
  362. * Overall Options:: Controlling the kind of output:
  363. an executable, object files, assembler files,
  364. or preprocessed source.
  365. * Invoking G++:: Compiling C++ programs.
  366. * C Dialect Options:: Controlling the variant of C language compiled.
  367. * C++ Dialect Options:: Variations on C++.
  368. * Objective-C and Objective-C++ Dialect Options:: Variations on Objective-C
  369. and Objective-C++.
  370. * Diagnostic Message Formatting Options:: Controlling how diagnostics should
  371. be formatted.
  372. * Warning Options:: How picky should the compiler be?
  373. * Debugging Options:: Producing debuggable code.
  374. * Optimize Options:: How much optimization?
  375. * Instrumentation Options:: Enabling profiling and extra run-time error checking.
  376. * Preprocessor Options:: Controlling header files and macro definitions.
  377. Also, getting dependency information for Make.
  378. * Assembler Options:: Passing options to the assembler.
  379. * Link Options:: Specifying libraries and so on.
  380. * Directory Options:: Where to find header files and libraries.
  381. Where to find the compiler executable files.
  382. * Code Gen Options:: Specifying conventions for function calls, data layout
  383. and register usage.
  384. * Developer Options:: Printing GCC configuration info, statistics, and
  385. debugging dumps.
  386. * Submodel Options:: Target-specific options, such as compiling for a
  387. specific processor variant.
  388. * Spec Files:: How to pass switches to sub-processes.
  389. * Environment Variables:: Env vars that affect GCC.
  390. * Precompiled Headers:: Compiling a header once, and using it many times.
  391. 
  392. File: gcc.info, Node: Option Summary, Next: Overall Options, Up: Invoking GCC
  393. 3.1 Option Summary
  394. ==================
  395. Here is a summary of all the options, grouped by type. Explanations are
  396. in the following sections.
  397. _Overall Options_
  398. *Note Options Controlling the Kind of Output: Overall Options.
  399. -c -S -E -o FILE -x LANGUAGE
  400. -v -### --help[=CLASS[,...]] --target-help --version
  401. -pass-exit-codes -pipe -specs=FILE -wrapper
  402. @FILE -fplugin=FILE -fplugin-arg-NAME=ARG
  403. -fdump-ada-spec[-slim] -fada-spec-parent=UNIT -fdump-go-spec=FILE
  404. _C Language Options_
  405. *Note Options Controlling C Dialect: C Dialect Options.
  406. -ansi -std=STANDARD -fgnu89-inline
  407. -fpermitted-flt-eval-methods=STANDARD
  408. -aux-info FILENAME -fallow-parameterless-variadic-functions
  409. -fno-asm -fno-builtin -fno-builtin-FUNCTION -fgimple
  410. -fhosted -ffreestanding -fopenacc -fopenmp -fopenmp-simd
  411. -fms-extensions -fplan9-extensions -fsso-struct=ENDIANNESS
  412. -fallow-single-precision -fcond-mismatch -flax-vector-conversions
  413. -fsigned-bitfields -fsigned-char
  414. -funsigned-bitfields -funsigned-char
  415. _C++ Language Options_
  416. *Note Options Controlling C++ Dialect: C++ Dialect Options.
  417. -fabi-version=N -fno-access-control
  418. -faligned-new=N -fargs-in-order=N -fcheck-new
  419. -fconstexpr-depth=N -fconstexpr-loop-limit=N
  420. -ffriend-injection
  421. -fno-elide-constructors
  422. -fno-enforce-eh-specs
  423. -ffor-scope -fno-for-scope -fno-gnu-keywords
  424. -fno-implicit-templates
  425. -fno-implicit-inline-templates
  426. -fno-implement-inlines -fms-extensions
  427. -fnew-inheriting-ctors
  428. -fnew-ttp-matching
  429. -fno-nonansi-builtins -fnothrow-opt -fno-operator-names
  430. -fno-optional-diags -fpermissive
  431. -fno-pretty-templates
  432. -frepo -fno-rtti -fsized-deallocation
  433. -ftemplate-backtrace-limit=N
  434. -ftemplate-depth=N
  435. -fno-threadsafe-statics -fuse-cxa-atexit
  436. -fno-weak -nostdinc++
  437. -fvisibility-inlines-hidden
  438. -fvisibility-ms-compat
  439. -fext-numeric-literals
  440. -Wabi=N -Wabi-tag -Wconversion-null -Wctor-dtor-privacy
  441. -Wdelete-non-virtual-dtor -Wliteral-suffix -Wmultiple-inheritance
  442. -Wnamespaces -Wnarrowing
  443. -Wnoexcept -Wnoexcept-type -Wnon-virtual-dtor -Wreorder -Wregister
  444. -Weffc++ -Wstrict-null-sentinel -Wtemplates
  445. -Wno-non-template-friend -Wold-style-cast
  446. -Woverloaded-virtual -Wno-pmf-conversions
  447. -Wsign-promo -Wvirtual-inheritance
  448. _Objective-C and Objective-C++ Language Options_
  449. *Note Options Controlling Objective-C and Objective-C++ Dialects:
  450. Objective-C and Objective-C++ Dialect Options.
  451. -fconstant-string-class=CLASS-NAME
  452. -fgnu-runtime -fnext-runtime
  453. -fno-nil-receivers
  454. -fobjc-abi-version=N
  455. -fobjc-call-cxx-cdtors
  456. -fobjc-direct-dispatch
  457. -fobjc-exceptions
  458. -fobjc-gc
  459. -fobjc-nilcheck
  460. -fobjc-std=objc1
  461. -fno-local-ivars
  462. -fivar-visibility=[public|protected|private|package]
  463. -freplace-objc-classes
  464. -fzero-link
  465. -gen-decls
  466. -Wassign-intercept
  467. -Wno-protocol -Wselector
  468. -Wstrict-selector-match
  469. -Wundeclared-selector
  470. _Diagnostic Message Formatting Options_
  471. *Note Options to Control Diagnostic Messages Formatting: Diagnostic
  472. Message Formatting Options.
  473. -fmessage-length=N
  474. -fdiagnostics-show-location=[once|every-line]
  475. -fdiagnostics-color=[auto|never|always]
  476. -fno-diagnostics-show-option -fno-diagnostics-show-caret
  477. -fdiagnostics-parseable-fixits -fdiagnostics-generate-patch
  478. -fno-show-column
  479. _Warning Options_
  480. *Note Options to Request or Suppress Warnings: Warning Options.
  481. -fsyntax-only -fmax-errors=N -Wpedantic
  482. -pedantic-errors
  483. -w -Wextra -Wall -Waddress -Waggregate-return -Waligned-new
  484. -Walloc-zero -Walloc-size-larger-than=N
  485. -Walloca -Walloca-larger-than=N
  486. -Wno-aggressive-loop-optimizations -Warray-bounds -Warray-bounds=N
  487. -Wno-attributes -Wbool-compare -Wbool-operation
  488. -Wno-builtin-declaration-mismatch
  489. -Wno-builtin-macro-redefined -Wc90-c99-compat -Wc99-c11-compat
  490. -Wc++-compat -Wc++11-compat -Wc++14-compat -Wcast-align -Wcast-qual
  491. -Wchar-subscripts -Wchkp -Wclobbered -Wcomment
  492. -Wconditionally-supported
  493. -Wconversion -Wcoverage-mismatch -Wno-cpp -Wdangling-else -Wdate-time
  494. -Wdelete-incomplete
  495. -Wno-deprecated -Wno-deprecated-declarations -Wno-designated-init
  496. -Wdisabled-optimization
  497. -Wno-discarded-qualifiers -Wno-discarded-array-qualifiers
  498. -Wno-div-by-zero -Wdouble-promotion
  499. -Wduplicated-branches -Wduplicated-cond
  500. -Wempty-body -Wenum-compare -Wno-endif-labels -Wexpansion-to-defined
  501. -Werror -Werror=* -Wfatal-errors -Wfloat-equal -Wformat -Wformat=2
  502. -Wno-format-contains-nul -Wno-format-extra-args
  503. -Wformat-nonliteral -Wformat-overflow=N
  504. -Wformat-security -Wformat-signedness -Wformat-truncation=N
  505. -Wformat-y2k -Wframe-address
  506. -Wframe-larger-than=LEN -Wno-free-nonheap-object -Wjump-misses-init
  507. -Wignored-qualifiers -Wignored-attributes -Wincompatible-pointer-types
  508. -Wimplicit -Wimplicit-fallthrough -Wimplicit-fallthrough=N
  509. -Wimplicit-function-declaration -Wimplicit-int
  510. -Winit-self -Winline -Wno-int-conversion -Wint-in-bool-context
  511. -Wno-int-to-pointer-cast -Winvalid-memory-model -Wno-invalid-offsetof
  512. -Winvalid-pch -Wlarger-than=LEN
  513. -Wlogical-op -Wlogical-not-parentheses -Wlong-long
  514. -Wmain -Wmaybe-uninitialized -Wmemset-elt-size -Wmemset-transposed-args
  515. -Wmisleading-indentation -Wmissing-braces
  516. -Wmissing-field-initializers -Wmissing-include-dirs
  517. -Wno-multichar -Wnonnull -Wnonnull-compare
  518. -Wnormalized=[none|id|nfc|nfkc]
  519. -Wnull-dereference -Wodr -Wno-overflow -Wopenmp-simd
  520. -Woverride-init-side-effects -Woverlength-strings
  521. -Wpacked -Wpacked-bitfield-compat -Wpadded
  522. -Wparentheses -Wno-pedantic-ms-format
  523. -Wplacement-new -Wplacement-new=N
  524. -Wpointer-arith -Wpointer-compare -Wno-pointer-to-int-cast
  525. -Wno-pragmas -Wredundant-decls -Wrestrict -Wno-return-local-addr
  526. -Wreturn-type -Wsequence-point -Wshadow -Wno-shadow-ivar
  527. -Wshadow=global, -Wshadow=local, -Wshadow=compatible-local
  528. -Wshift-overflow -Wshift-overflow=N
  529. -Wshift-count-negative -Wshift-count-overflow -Wshift-negative-value
  530. -Wsign-compare -Wsign-conversion -Wfloat-conversion
  531. -Wno-scalar-storage-order
  532. -Wsizeof-pointer-memaccess -Wsizeof-array-argument
  533. -Wstack-protector -Wstack-usage=LEN -Wstrict-aliasing
  534. -Wstrict-aliasing=n -Wstrict-overflow -Wstrict-overflow=N
  535. -Wstringop-overflow=N
  536. -Wsuggest-attribute=[pure|const|noreturn|format]
  537. -Wsuggest-final-types -Wsuggest-final-methods -Wsuggest-override
  538. -Wmissing-format-attribute -Wsubobject-linkage
  539. -Wswitch -Wswitch-bool -Wswitch-default -Wswitch-enum
  540. -Wswitch-unreachable -Wsync-nand
  541. -Wsystem-headers -Wtautological-compare -Wtrampolines -Wtrigraphs
  542. -Wtype-limits -Wundef
  543. -Wuninitialized -Wunknown-pragmas -Wunsafe-loop-optimizations
  544. -Wunsuffixed-float-constants -Wunused -Wunused-function
  545. -Wunused-label -Wunused-local-typedefs -Wunused-macros
  546. -Wunused-parameter -Wno-unused-result
  547. -Wunused-value -Wunused-variable
  548. -Wunused-const-variable -Wunused-const-variable=N
  549. -Wunused-but-set-parameter -Wunused-but-set-variable
  550. -Wuseless-cast -Wvariadic-macros -Wvector-operation-performance
  551. -Wvla -Wvla-larger-than=N -Wvolatile-register-var -Wwrite-strings
  552. -Wzero-as-null-pointer-constant -Whsa
  553. _C and Objective-C-only Warning Options_
  554. -Wbad-function-cast -Wmissing-declarations
  555. -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs
  556. -Wold-style-declaration -Wold-style-definition
  557. -Wstrict-prototypes -Wtraditional -Wtraditional-conversion
  558. -Wdeclaration-after-statement -Wpointer-sign
  559. _Debugging Options_
  560. *Note Options for Debugging Your Program: Debugging Options.
  561. -g -gLEVEL -gcoff -gdwarf -gdwarf-VERSION
  562. -ggdb -grecord-gcc-switches -gno-record-gcc-switches
  563. -gstabs -gstabs+ -gstrict-dwarf -gno-strict-dwarf
  564. -gcolumn-info -gno-column-info
  565. -gvms -gxcoff -gxcoff+ -gz[=TYPE]
  566. -fdebug-prefix-map=OLD=NEW -fdebug-types-section
  567. -feliminate-dwarf2-dups -fno-eliminate-unused-debug-types
  568. -femit-struct-debug-baseonly -femit-struct-debug-reduced
  569. -femit-struct-debug-detailed[=SPEC-LIST]
  570. -feliminate-unused-debug-symbols -femit-class-debug-always
  571. -fno-merge-debug-strings -fno-dwarf2-cfi-asm
  572. -fvar-tracking -fvar-tracking-assignments
  573. _Optimization Options_
  574. *Note Options that Control Optimization: Optimize Options.
  575. -faggressive-loop-optimizations -falign-functions[=N]
  576. -falign-jumps[=N]
  577. -falign-labels[=N] -falign-loops[=N]
  578. -fassociative-math -fauto-profile -fauto-profile[=PATH]
  579. -fauto-inc-dec -fbranch-probabilities
  580. -fbranch-target-load-optimize -fbranch-target-load-optimize2
  581. -fbtr-bb-exclusive -fcaller-saves
  582. -fcombine-stack-adjustments -fconserve-stack
  583. -fcompare-elim -fcprop-registers -fcrossjumping
  584. -fcse-follow-jumps -fcse-skip-blocks -fcx-fortran-rules
  585. -fcx-limited-range
  586. -fdata-sections -fdce -fdelayed-branch
  587. -fdelete-null-pointer-checks -fdevirtualize -fdevirtualize-speculatively
  588. -fdevirtualize-at-ltrans -fdse
  589. -fearly-inlining -fipa-sra -fexpensive-optimizations -ffat-lto-objects
  590. -ffast-math -ffinite-math-only -ffloat-store -fexcess-precision=STYLE
  591. -fforward-propagate -ffp-contract=STYLE -ffunction-sections
  592. -fgcse -fgcse-after-reload -fgcse-las -fgcse-lm -fgraphite-identity
  593. -fgcse-sm -fhoist-adjacent-loads -fif-conversion
  594. -fif-conversion2 -findirect-inlining
  595. -finline-functions -finline-functions-called-once -finline-limit=N
  596. -finline-small-functions -fipa-cp -fipa-cp-clone
  597. -fipa-bit-cp -fipa-vrp
  598. -fipa-pta -fipa-profile -fipa-pure-const -fipa-reference -fipa-icf
  599. -fira-algorithm=ALGORITHM
  600. -fira-region=REGION -fira-hoist-pressure
  601. -fira-loop-pressure -fno-ira-share-save-slots
  602. -fno-ira-share-spill-slots
  603. -fisolate-erroneous-paths-dereference -fisolate-erroneous-paths-attribute
  604. -fivopts -fkeep-inline-functions -fkeep-static-functions
  605. -fkeep-static-consts -flimit-function-alignment -flive-range-shrinkage
  606. -floop-block -floop-interchange -floop-strip-mine
  607. -floop-unroll-and-jam -floop-nest-optimize
  608. -floop-parallelize-all -flra-remat -flto -flto-compression-level
  609. -flto-partition=ALG -fmerge-all-constants
  610. -fmerge-constants -fmodulo-sched -fmodulo-sched-allow-regmoves
  611. -fmove-loop-invariants -fno-branch-count-reg
  612. -fno-defer-pop -fno-fp-int-builtin-inexact -fno-function-cse
  613. -fno-guess-branch-probability -fno-inline -fno-math-errno -fno-peephole
  614. -fno-peephole2 -fno-printf-return-value -fno-sched-interblock
  615. -fno-sched-spec -fno-signed-zeros
  616. -fno-toplevel-reorder -fno-trapping-math -fno-zero-initialized-in-bss
  617. -fomit-frame-pointer -foptimize-sibling-calls
  618. -fpartial-inlining -fpeel-loops -fpredictive-commoning
  619. -fprefetch-loop-arrays
  620. -fprofile-correction
  621. -fprofile-use -fprofile-use=PATH -fprofile-values
  622. -fprofile-reorder-functions
  623. -freciprocal-math -free -frename-registers -freorder-blocks
  624. -freorder-blocks-algorithm=ALGORITHM
  625. -freorder-blocks-and-partition -freorder-functions
  626. -frerun-cse-after-loop -freschedule-modulo-scheduled-loops
  627. -frounding-math -fsched2-use-superblocks -fsched-pressure
  628. -fsched-spec-load -fsched-spec-load-dangerous
  629. -fsched-stalled-insns-dep[=N] -fsched-stalled-insns[=N]
  630. -fsched-group-heuristic -fsched-critical-path-heuristic
  631. -fsched-spec-insn-heuristic -fsched-rank-heuristic
  632. -fsched-last-insn-heuristic -fsched-dep-count-heuristic
  633. -fschedule-fusion
  634. -fschedule-insns -fschedule-insns2 -fsection-anchors
  635. -fselective-scheduling -fselective-scheduling2
  636. -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops
  637. -fsemantic-interposition -fshrink-wrap -fshrink-wrap-separate
  638. -fsignaling-nans
  639. -fsingle-precision-constant -fsplit-ivs-in-unroller -fsplit-loops
  640. -fsplit-paths
  641. -fsplit-wide-types -fssa-backprop -fssa-phiopt
  642. -fstdarg-opt -fstore-merging -fstrict-aliasing
  643. -fstrict-overflow -fthread-jumps -ftracer -ftree-bit-ccp
  644. -ftree-builtin-call-dce -ftree-ccp -ftree-ch
  645. -ftree-coalesce-vars -ftree-copy-prop -ftree-dce -ftree-dominator-opts
  646. -ftree-dse -ftree-forwprop -ftree-fre -fcode-hoisting
  647. -ftree-loop-if-convert -ftree-loop-im
  648. -ftree-phiprop -ftree-loop-distribution -ftree-loop-distribute-patterns
  649. -ftree-loop-ivcanon -ftree-loop-linear -ftree-loop-optimize
  650. -ftree-loop-vectorize
  651. -ftree-parallelize-loops=N -ftree-pre -ftree-partial-pre -ftree-pta
  652. -ftree-reassoc -ftree-sink -ftree-slsr -ftree-sra
  653. -ftree-switch-conversion -ftree-tail-merge
  654. -ftree-ter -ftree-vectorize -ftree-vrp -funconstrained-commons
  655. -funit-at-a-time -funroll-all-loops -funroll-loops
  656. -funsafe-math-optimizations -funswitch-loops
  657. -fipa-ra -fvariable-expansion-in-unroller -fvect-cost-model -fvpt
  658. -fweb -fwhole-program -fwpa -fuse-linker-plugin
  659. --param NAME=VALUE
  660. -O -O0 -O1 -O2 -O3 -Os -Ofast -Og
  661. _Program Instrumentation Options_
  662. *Note Program Instrumentation Options: Instrumentation Options.
  663. -p -pg -fprofile-arcs --coverage -ftest-coverage
  664. -fprofile-dir=PATH -fprofile-generate -fprofile-generate=PATH
  665. -fsanitize=STYLE -fsanitize-recover -fsanitize-recover=STYLE
  666. -fasan-shadow-offset=NUMBER -fsanitize-sections=S1,S2,...
  667. -fsanitize-undefined-trap-on-error -fbounds-check
  668. -fcheck-pointer-bounds -fchkp-check-incomplete-type
  669. -fchkp-first-field-has-own-bounds -fchkp-narrow-bounds
  670. -fchkp-narrow-to-innermost-array -fchkp-optimize
  671. -fchkp-use-fast-string-functions -fchkp-use-nochk-string-functions
  672. -fchkp-use-static-bounds -fchkp-use-static-const-bounds
  673. -fchkp-treat-zero-dynamic-size-as-infinite -fchkp-check-read
  674. -fchkp-check-read -fchkp-check-write -fchkp-store-bounds
  675. -fchkp-instrument-calls -fchkp-instrument-marked-only
  676. -fchkp-use-wrappers -fchkp-flexible-struct-trailing-arrays
  677. -fstack-protector -fstack-protector-all -fstack-protector-strong
  678. -fstack-protector-explicit -fstack-check
  679. -fstack-limit-register=REG -fstack-limit-symbol=SYM
  680. -fno-stack-limit -fsplit-stack
  681. -fvtable-verify=[std|preinit|none]
  682. -fvtv-counts -fvtv-debug
  683. -finstrument-functions
  684. -finstrument-functions-exclude-function-list=SYM,SYM,...
  685. -finstrument-functions-exclude-file-list=FILE,FILE,...
  686. _Preprocessor Options_
  687. *Note Options Controlling the Preprocessor: Preprocessor Options.
  688. -AQUESTION=ANSWER
  689. -A-QUESTION[=ANSWER]
  690. -C -CC -DMACRO[=DEFN]
  691. -dD -dI -dM -dN -dU
  692. -fdebug-cpp -fdirectives-only -fdollars-in-identifiers
  693. -fexec-charset=CHARSET -fextended-identifiers
  694. -finput-charset=CHARSET -fno-canonical-system-headers
  695. -fpch-deps -fpch-preprocess -fpreprocessed
  696. -ftabstop=WIDTH -ftrack-macro-expansion
  697. -fwide-exec-charset=CHARSET -fworking-directory
  698. -H -imacros FILE -include FILE
  699. -M -MD -MF -MG -MM -MMD -MP -MQ -MT
  700. -no-integrated-cpp -P -pthread -remap
  701. -traditional -traditional-cpp -trigraphs
  702. -UMACRO -undef
  703. -Wp,OPTION -Xpreprocessor OPTION
  704. _Assembler Options_
  705. *Note Passing Options to the Assembler: Assembler Options.
  706. -Wa,OPTION -Xassembler OPTION
  707. _Linker Options_
  708. *Note Options for Linking: Link Options.
  709. OBJECT-FILE-NAME -fuse-ld=LINKER -lLIBRARY
  710. -nostartfiles -nodefaultlibs -nostdlib -pie -pthread -rdynamic
  711. -s -static -static-libgcc -static-libstdc++
  712. -static-libasan -static-libtsan -static-liblsan -static-libubsan
  713. -static-libmpx -static-libmpxwrappers
  714. -shared -shared-libgcc -symbolic
  715. -T SCRIPT -Wl,OPTION -Xlinker OPTION
  716. -u SYMBOL -z KEYWORD
  717. _Directory Options_
  718. *Note Options for Directory Search: Directory Options.
  719. -BPREFIX -IDIR -I-
  720. -idirafter DIR
  721. -imacros FILE -imultilib DIR
  722. -iplugindir=DIR -iprefix FILE
  723. -iquote DIR -isysroot DIR -isystem DIR
  724. -iwithprefix DIR -iwithprefixbefore DIR
  725. -LDIR -no-canonical-prefixes --no-sysroot-suffix
  726. -nostdinc -nostdinc++ --sysroot=DIR
  727. _Code Generation Options_
  728. *Note Options for Code Generation Conventions: Code Gen Options.
  729. -fcall-saved-REG -fcall-used-REG
  730. -ffixed-REG -fexceptions
  731. -fnon-call-exceptions -fdelete-dead-exceptions -funwind-tables
  732. -fasynchronous-unwind-tables
  733. -fno-gnu-unique
  734. -finhibit-size-directive -fno-common -fno-ident
  735. -fpcc-struct-return -fpic -fPIC -fpie -fPIE -fno-plt
  736. -fno-jump-tables
  737. -frecord-gcc-switches
  738. -freg-struct-return -fshort-enums -fshort-wchar
  739. -fverbose-asm -fpack-struct[=N]
  740. -fleading-underscore -ftls-model=MODEL
  741. -fstack-reuse=REUSE_LEVEL
  742. -ftrampolines -ftrapv -fwrapv
  743. -fvisibility=[default|internal|hidden|protected]
  744. -fstrict-volatile-bitfields -fsync-libcalls
  745. _Developer Options_
  746. *Note GCC Developer Options: Developer Options.
  747. -dLETTERS -dumpspecs -dumpmachine -dumpversion
  748. -dumpfullversion -fchecking -fchecking=N -fdbg-cnt-list
  749. -fdbg-cnt=COUNTER-VALUE-LIST
  750. -fdisable-ipa-PASS_NAME
  751. -fdisable-rtl-PASS_NAME
  752. -fdisable-rtl-PASS-NAME=RANGE-LIST
  753. -fdisable-tree-PASS_NAME
  754. -fdisable-tree-PASS-NAME=RANGE-LIST
  755. -fdump-noaddr -fdump-unnumbered -fdump-unnumbered-links
  756. -fdump-translation-unit[-N]
  757. -fdump-class-hierarchy[-N]
  758. -fdump-ipa-all -fdump-ipa-cgraph -fdump-ipa-inline
  759. -fdump-passes
  760. -fdump-rtl-PASS -fdump-rtl-PASS=FILENAME
  761. -fdump-statistics
  762. -fdump-final-insns[=FILE]
  763. -fdump-tree-all
  764. -fdump-tree-SWITCH
  765. -fdump-tree-SWITCH-OPTIONS
  766. -fdump-tree-SWITCH-OPTIONS=FILENAME
  767. -fcompare-debug[=OPTS] -fcompare-debug-second
  768. -fenable-KIND-PASS
  769. -fenable-KIND-PASS=RANGE-LIST
  770. -fira-verbose=N
  771. -flto-report -flto-report-wpa -fmem-report-wpa
  772. -fmem-report -fpre-ipa-mem-report -fpost-ipa-mem-report
  773. -fopt-info -fopt-info-OPTIONS[=FILE]
  774. -fprofile-report
  775. -frandom-seed=STRING -fsched-verbose=N
  776. -fsel-sched-verbose -fsel-sched-dump-cfg -fsel-sched-pipelining-verbose
  777. -fstats -fstack-usage -ftime-report -ftime-report-details
  778. -fvar-tracking-assignments-toggle -gtoggle
  779. -print-file-name=LIBRARY -print-libgcc-file-name
  780. -print-multi-directory -print-multi-lib -print-multi-os-directory
  781. -print-prog-name=PROGRAM -print-search-dirs -Q
  782. -print-sysroot -print-sysroot-headers-suffix
  783. -save-temps -save-temps=cwd -save-temps=obj -time[=FILE]
  784. _Machine-Dependent Options_
  785. *Note Machine-Dependent Options: Submodel Options.
  786. _AArch64 Options_
  787. -mabi=NAME -mbig-endian -mlittle-endian
  788. -mgeneral-regs-only
  789. -mcmodel=tiny -mcmodel=small -mcmodel=large
  790. -mstrict-align
  791. -momit-leaf-frame-pointer
  792. -mtls-dialect=desc -mtls-dialect=traditional
  793. -mtls-size=SIZE
  794. -mfix-cortex-a53-835769 -mfix-cortex-a53-843419
  795. -mlow-precision-recip-sqrt -mlow-precision-sqrt -mlow-precision-div
  796. -mpc-relative-literal-loads
  797. -msign-return-address=SCOPE
  798. -march=NAME -mcpu=NAME -mtune=NAME -moverride=STRING
  799. _Adapteva Epiphany Options_
  800. -mhalf-reg-file -mprefer-short-insn-regs
  801. -mbranch-cost=NUM -mcmove -mnops=NUM -msoft-cmpsf
  802. -msplit-lohi -mpost-inc -mpost-modify -mstack-offset=NUM
  803. -mround-nearest -mlong-calls -mshort-calls -msmall16
  804. -mfp-mode=MODE -mvect-double -max-vect-align=NUM
  805. -msplit-vecmove-early -m1reg-REG
  806. _ARC Options_
  807. -mbarrel-shifter
  808. -mcpu=CPU -mA6 -mARC600 -mA7 -mARC700
  809. -mdpfp -mdpfp-compact -mdpfp-fast -mno-dpfp-lrsr
  810. -mea -mno-mpy -mmul32x16 -mmul64 -matomic
  811. -mnorm -mspfp -mspfp-compact -mspfp-fast -msimd -msoft-float -mswap
  812. -mcrc -mdsp-packa -mdvbf -mlock -mmac-d16 -mmac-24 -mrtsc -mswape
  813. -mtelephony -mxy -misize -mannotate-align -marclinux -marclinux_prof
  814. -mlong-calls -mmedium-calls -msdata
  815. -mvolatile-cache -mtp-regno=REGNO
  816. -malign-call -mauto-modify-reg -mbbit-peephole -mno-brcc
  817. -mcase-vector-pcrel -mcompact-casesi -mno-cond-exec -mearly-cbranchsi
  818. -mexpand-adddi -mindexed-loads -mlra -mlra-priority-none
  819. -mlra-priority-compact mlra-priority-noncompact -mno-millicode
  820. -mmixed-code -mq-class -mRcq -mRcw -msize-level=LEVEL
  821. -mtune=CPU -mmultcost=NUM
  822. -munalign-prob-threshold=PROBABILITY -mmpy-option=MULTO
  823. -mdiv-rem -mcode-density -mll64 -mfpu=FPU
  824. _ARM Options_
  825. -mapcs-frame -mno-apcs-frame
  826. -mabi=NAME
  827. -mapcs-stack-check -mno-apcs-stack-check
  828. -mapcs-reentrant -mno-apcs-reentrant
  829. -msched-prolog -mno-sched-prolog
  830. -mlittle-endian -mbig-endian
  831. -mfloat-abi=NAME
  832. -mfp16-format=NAME
  833. -mthumb-interwork -mno-thumb-interwork
  834. -mcpu=NAME -march=NAME -mfpu=NAME
  835. -mtune=NAME -mprint-tune-info
  836. -mstructure-size-boundary=N
  837. -mabort-on-noreturn
  838. -mlong-calls -mno-long-calls
  839. -msingle-pic-base -mno-single-pic-base
  840. -mpic-register=REG
  841. -mnop-fun-dllimport
  842. -mpoke-function-name
  843. -mthumb -marm
  844. -mtpcs-frame -mtpcs-leaf-frame
  845. -mcaller-super-interworking -mcallee-super-interworking
  846. -mtp=NAME -mtls-dialect=DIALECT
  847. -mword-relocations
  848. -mfix-cortex-m3-ldrd
  849. -munaligned-access
  850. -mneon-for-64bits
  851. -mslow-flash-data
  852. -masm-syntax-unified
  853. -mrestrict-it
  854. -mpure-code
  855. -mcmse
  856. _AVR Options_
  857. -mmcu=MCU -mabsdata -maccumulate-args
  858. -mbranch-cost=COST
  859. -mcall-prologues -mint8 -mn_flash=SIZE -mno-interrupts
  860. -mrelax -mrmw -mstrict-X -mtiny-stack -mfract-convert-truncate
  861. -nodevicelib
  862. -Waddr-space-convert -Wmisspelled-isr
  863. _Blackfin Options_
  864. -mcpu=CPU[-SIREVISION]
  865. -msim -momit-leaf-frame-pointer -mno-omit-leaf-frame-pointer
  866. -mspecld-anomaly -mno-specld-anomaly -mcsync-anomaly -mno-csync-anomaly
  867. -mlow-64k -mno-low64k -mstack-check-l1 -mid-shared-library
  868. -mno-id-shared-library -mshared-library-id=N
  869. -mleaf-id-shared-library -mno-leaf-id-shared-library
  870. -msep-data -mno-sep-data -mlong-calls -mno-long-calls
  871. -mfast-fp -minline-plt -mmulticore -mcorea -mcoreb -msdram
  872. -micplb
  873. _C6X Options_
  874. -mbig-endian -mlittle-endian -march=CPU
  875. -msim -msdata=SDATA-TYPE
  876. _CRIS Options_
  877. -mcpu=CPU -march=CPU -mtune=CPU
  878. -mmax-stack-frame=N -melinux-stacksize=N
  879. -metrax4 -metrax100 -mpdebug -mcc-init -mno-side-effects
  880. -mstack-align -mdata-align -mconst-align
  881. -m32-bit -m16-bit -m8-bit -mno-prologue-epilogue -mno-gotplt
  882. -melf -maout -melinux -mlinux -sim -sim2
  883. -mmul-bug-workaround -mno-mul-bug-workaround
  884. _CR16 Options_
  885. -mmac
  886. -mcr16cplus -mcr16c
  887. -msim -mint32 -mbit-ops
  888. -mdata-model=MODEL
  889. _Darwin Options_
  890. -all_load -allowable_client -arch -arch_errors_fatal
  891. -arch_only -bind_at_load -bundle -bundle_loader
  892. -client_name -compatibility_version -current_version
  893. -dead_strip
  894. -dependency-file -dylib_file -dylinker_install_name
  895. -dynamic -dynamiclib -exported_symbols_list
  896. -filelist -flat_namespace -force_cpusubtype_ALL
  897. -force_flat_namespace -headerpad_max_install_names
  898. -iframework
  899. -image_base -init -install_name -keep_private_externs
  900. -multi_module -multiply_defined -multiply_defined_unused
  901. -noall_load -no_dead_strip_inits_and_terms
  902. -nofixprebinding -nomultidefs -noprebind -noseglinkedit
  903. -pagezero_size -prebind -prebind_all_twolevel_modules
  904. -private_bundle -read_only_relocs -sectalign
  905. -sectobjectsymbols -whyload -seg1addr
  906. -sectcreate -sectobjectsymbols -sectorder
  907. -segaddr -segs_read_only_addr -segs_read_write_addr
  908. -seg_addr_table -seg_addr_table_filename -seglinkedit
  909. -segprot -segs_read_only_addr -segs_read_write_addr
  910. -single_module -static -sub_library -sub_umbrella
  911. -twolevel_namespace -umbrella -undefined
  912. -unexported_symbols_list -weak_reference_mismatches
  913. -whatsloaded -F -gused -gfull -mmacosx-version-min=VERSION
  914. -mkernel -mone-byte-bool
  915. _DEC Alpha Options_
  916. -mno-fp-regs -msoft-float
  917. -mieee -mieee-with-inexact -mieee-conformant
  918. -mfp-trap-mode=MODE -mfp-rounding-mode=MODE
  919. -mtrap-precision=MODE -mbuild-constants
  920. -mcpu=CPU-TYPE -mtune=CPU-TYPE
  921. -mbwx -mmax -mfix -mcix
  922. -mfloat-vax -mfloat-ieee
  923. -mexplicit-relocs -msmall-data -mlarge-data
  924. -msmall-text -mlarge-text
  925. -mmemory-latency=TIME
  926. _FR30 Options_
  927. -msmall-model -mno-lsim
  928. _FT32 Options_
  929. -msim -mlra -mnodiv
  930. _FRV Options_
  931. -mgpr-32 -mgpr-64 -mfpr-32 -mfpr-64
  932. -mhard-float -msoft-float
  933. -malloc-cc -mfixed-cc -mdword -mno-dword
  934. -mdouble -mno-double
  935. -mmedia -mno-media -mmuladd -mno-muladd
  936. -mfdpic -minline-plt -mgprel-ro -multilib-library-pic
  937. -mlinked-fp -mlong-calls -malign-labels
  938. -mlibrary-pic -macc-4 -macc-8
  939. -mpack -mno-pack -mno-eflags -mcond-move -mno-cond-move
  940. -moptimize-membar -mno-optimize-membar
  941. -mscc -mno-scc -mcond-exec -mno-cond-exec
  942. -mvliw-branch -mno-vliw-branch
  943. -mmulti-cond-exec -mno-multi-cond-exec -mnested-cond-exec
  944. -mno-nested-cond-exec -mtomcat-stats
  945. -mTLS -mtls
  946. -mcpu=CPU
  947. _GNU/Linux Options_
  948. -mglibc -muclibc -mmusl -mbionic -mandroid
  949. -tno-android-cc -tno-android-ld
  950. _H8/300 Options_
  951. -mrelax -mh -ms -mn -mexr -mno-exr -mint32 -malign-300
  952. _HPPA Options_
  953. -march=ARCHITECTURE-TYPE
  954. -mcaller-copies -mdisable-fpregs -mdisable-indexing
  955. -mfast-indirect-calls -mgas -mgnu-ld -mhp-ld
  956. -mfixed-range=REGISTER-RANGE
  957. -mjump-in-delay -mlinker-opt -mlong-calls
  958. -mlong-load-store -mno-disable-fpregs
  959. -mno-disable-indexing -mno-fast-indirect-calls -mno-gas
  960. -mno-jump-in-delay -mno-long-load-store
  961. -mno-portable-runtime -mno-soft-float
  962. -mno-space-regs -msoft-float -mpa-risc-1-0
  963. -mpa-risc-1-1 -mpa-risc-2-0 -mportable-runtime
  964. -mschedule=CPU-TYPE -mspace-regs -msio -mwsio
  965. -munix=UNIX-STD -nolibdld -static -threads
  966. _IA-64 Options_
  967. -mbig-endian -mlittle-endian -mgnu-as -mgnu-ld -mno-pic
  968. -mvolatile-asm-stop -mregister-names -msdata -mno-sdata
  969. -mconstant-gp -mauto-pic -mfused-madd
  970. -minline-float-divide-min-latency
  971. -minline-float-divide-max-throughput
  972. -mno-inline-float-divide
  973. -minline-int-divide-min-latency
  974. -minline-int-divide-max-throughput
  975. -mno-inline-int-divide
  976. -minline-sqrt-min-latency -minline-sqrt-max-throughput
  977. -mno-inline-sqrt
  978. -mdwarf2-asm -mearly-stop-bits
  979. -mfixed-range=REGISTER-RANGE -mtls-size=TLS-SIZE
  980. -mtune=CPU-TYPE -milp32 -mlp64
  981. -msched-br-data-spec -msched-ar-data-spec -msched-control-spec
  982. -msched-br-in-data-spec -msched-ar-in-data-spec -msched-in-control-spec
  983. -msched-spec-ldc -msched-spec-control-ldc
  984. -msched-prefer-non-data-spec-insns -msched-prefer-non-control-spec-insns
  985. -msched-stop-bits-after-every-cycle -msched-count-spec-in-critical-path
  986. -msel-sched-dont-check-control-spec -msched-fp-mem-deps-zero-cost
  987. -msched-max-memory-insns-hard-limit -msched-max-memory-insns=MAX-INSNS
  988. _LM32 Options_
  989. -mbarrel-shift-enabled -mdivide-enabled -mmultiply-enabled
  990. -msign-extend-enabled -muser-enabled
  991. _M32R/D Options_
  992. -m32r2 -m32rx -m32r
  993. -mdebug
  994. -malign-loops -mno-align-loops
  995. -missue-rate=NUMBER
  996. -mbranch-cost=NUMBER
  997. -mmodel=CODE-SIZE-MODEL-TYPE
  998. -msdata=SDATA-TYPE
  999. -mno-flush-func -mflush-func=NAME
  1000. -mno-flush-trap -mflush-trap=NUMBER
  1001. -G NUM
  1002. _M32C Options_
  1003. -mcpu=CPU -msim -memregs=NUMBER
  1004. _M680x0 Options_
  1005. -march=ARCH -mcpu=CPU -mtune=TUNE
  1006. -m68000 -m68020 -m68020-40 -m68020-60 -m68030 -m68040
  1007. -m68060 -mcpu32 -m5200 -m5206e -m528x -m5307 -m5407
  1008. -mcfv4e -mbitfield -mno-bitfield -mc68000 -mc68020
  1009. -mnobitfield -mrtd -mno-rtd -mdiv -mno-div -mshort
  1010. -mno-short -mhard-float -m68881 -msoft-float -mpcrel
  1011. -malign-int -mstrict-align -msep-data -mno-sep-data
  1012. -mshared-library-id=n -mid-shared-library -mno-id-shared-library
  1013. -mxgot -mno-xgot -mlong-jump-table-offsets
  1014. _MCore Options_
  1015. -mhardlit -mno-hardlit -mdiv -mno-div -mrelax-immediates
  1016. -mno-relax-immediates -mwide-bitfields -mno-wide-bitfields
  1017. -m4byte-functions -mno-4byte-functions -mcallgraph-data
  1018. -mno-callgraph-data -mslow-bytes -mno-slow-bytes -mno-lsim
  1019. -mlittle-endian -mbig-endian -m210 -m340 -mstack-increment
  1020. _MeP Options_
  1021. -mabsdiff -mall-opts -maverage -mbased=N -mbitops
  1022. -mc=N -mclip -mconfig=NAME -mcop -mcop32 -mcop64 -mivc2
  1023. -mdc -mdiv -meb -mel -mio-volatile -ml -mleadz -mm -mminmax
  1024. -mmult -mno-opts -mrepeat -ms -msatur -msdram -msim -msimnovec -mtf
  1025. -mtiny=N
  1026. _MicroBlaze Options_
  1027. -msoft-float -mhard-float -msmall-divides -mcpu=CPU
  1028. -mmemcpy -mxl-soft-mul -mxl-soft-div -mxl-barrel-shift
  1029. -mxl-pattern-compare -mxl-stack-check -mxl-gp-opt -mno-clearbss
  1030. -mxl-multiply-high -mxl-float-convert -mxl-float-sqrt
  1031. -mbig-endian -mlittle-endian -mxl-reorder -mxl-mode-APP-MODEL
  1032. _MIPS Options_
  1033. -EL -EB -march=ARCH -mtune=ARCH
  1034. -mips1 -mips2 -mips3 -mips4 -mips32 -mips32r2 -mips32r3 -mips32r5
  1035. -mips32r6 -mips64 -mips64r2 -mips64r3 -mips64r5 -mips64r6
  1036. -mips16 -mno-mips16 -mflip-mips16
  1037. -minterlink-compressed -mno-interlink-compressed
  1038. -minterlink-mips16 -mno-interlink-mips16
  1039. -mabi=ABI -mabicalls -mno-abicalls
  1040. -mshared -mno-shared -mplt -mno-plt -mxgot -mno-xgot
  1041. -mgp32 -mgp64 -mfp32 -mfpxx -mfp64 -mhard-float -msoft-float
  1042. -mno-float -msingle-float -mdouble-float
  1043. -modd-spreg -mno-odd-spreg
  1044. -mabs=MODE -mnan=ENCODING
  1045. -mdsp -mno-dsp -mdspr2 -mno-dspr2
  1046. -mmcu -mmno-mcu
  1047. -meva -mno-eva
  1048. -mvirt -mno-virt
  1049. -mxpa -mno-xpa
  1050. -mmicromips -mno-micromips
  1051. -mmsa -mno-msa
  1052. -mfpu=FPU-TYPE
  1053. -msmartmips -mno-smartmips
  1054. -mpaired-single -mno-paired-single -mdmx -mno-mdmx
  1055. -mips3d -mno-mips3d -mmt -mno-mt -mllsc -mno-llsc
  1056. -mlong64 -mlong32 -msym32 -mno-sym32
  1057. -GNUM -mlocal-sdata -mno-local-sdata
  1058. -mextern-sdata -mno-extern-sdata -mgpopt -mno-gopt
  1059. -membedded-data -mno-embedded-data
  1060. -muninit-const-in-rodata -mno-uninit-const-in-rodata
  1061. -mcode-readable=SETTING
  1062. -msplit-addresses -mno-split-addresses
  1063. -mexplicit-relocs -mno-explicit-relocs
  1064. -mcheck-zero-division -mno-check-zero-division
  1065. -mdivide-traps -mdivide-breaks
  1066. -mload-store-pairs -mno-load-store-pairs
  1067. -mmemcpy -mno-memcpy -mlong-calls -mno-long-calls
  1068. -mmad -mno-mad -mimadd -mno-imadd -mfused-madd -mno-fused-madd -nocpp
  1069. -mfix-24k -mno-fix-24k
  1070. -mfix-r4000 -mno-fix-r4000 -mfix-r4400 -mno-fix-r4400
  1071. -mfix-r10000 -mno-fix-r10000 -mfix-rm7000 -mno-fix-rm7000
  1072. -mfix-vr4120 -mno-fix-vr4120
  1073. -mfix-vr4130 -mno-fix-vr4130 -mfix-sb1 -mno-fix-sb1
  1074. -mflush-func=FUNC -mno-flush-func
  1075. -mbranch-cost=NUM -mbranch-likely -mno-branch-likely
  1076. -mcompact-branches=POLICY
  1077. -mfp-exceptions -mno-fp-exceptions
  1078. -mvr4130-align -mno-vr4130-align -msynci -mno-synci
  1079. -mlxc1-sxc1 -mno-lxc1-sxc1 -mmadd4 -mno-madd4
  1080. -mrelax-pic-calls -mno-relax-pic-calls -mmcount-ra-address
  1081. -mframe-header-opt -mno-frame-header-opt
  1082. _MMIX Options_
  1083. -mlibfuncs -mno-libfuncs -mepsilon -mno-epsilon -mabi=gnu
  1084. -mabi=mmixware -mzero-extend -mknuthdiv -mtoplevel-symbols
  1085. -melf -mbranch-predict -mno-branch-predict -mbase-addresses
  1086. -mno-base-addresses -msingle-exit -mno-single-exit
  1087. _MN10300 Options_
  1088. -mmult-bug -mno-mult-bug
  1089. -mno-am33 -mam33 -mam33-2 -mam34
  1090. -mtune=CPU-TYPE
  1091. -mreturn-pointer-on-d0
  1092. -mno-crt0 -mrelax -mliw -msetlb
  1093. _Moxie Options_
  1094. -meb -mel -mmul.x -mno-crt0
  1095. _MSP430 Options_
  1096. -msim -masm-hex -mmcu= -mcpu= -mlarge -msmall -mrelax
  1097. -mwarn-mcu
  1098. -mcode-region= -mdata-region=
  1099. -msilicon-errata= -msilicon-errata-warn=
  1100. -mhwmult= -minrt
  1101. _NDS32 Options_
  1102. -mbig-endian -mlittle-endian
  1103. -mreduced-regs -mfull-regs
  1104. -mcmov -mno-cmov
  1105. -mperf-ext -mno-perf-ext
  1106. -mv3push -mno-v3push
  1107. -m16bit -mno-16bit
  1108. -misr-vector-size=NUM
  1109. -mcache-block-size=NUM
  1110. -march=ARCH
  1111. -mcmodel=CODE-MODEL
  1112. -mctor-dtor -mrelax
  1113. _Nios II Options_
  1114. -G NUM -mgpopt=OPTION -mgpopt -mno-gpopt
  1115. -mel -meb
  1116. -mno-bypass-cache -mbypass-cache
  1117. -mno-cache-volatile -mcache-volatile
  1118. -mno-fast-sw-div -mfast-sw-div
  1119. -mhw-mul -mno-hw-mul -mhw-mulx -mno-hw-mulx -mno-hw-div -mhw-div
  1120. -mcustom-INSN=N -mno-custom-INSN
  1121. -mcustom-fpu-cfg=NAME
  1122. -mhal -msmallc -msys-crt0=NAME -msys-lib=NAME
  1123. -march=ARCH -mbmx -mno-bmx -mcdx -mno-cdx
  1124. _Nvidia PTX Options_
  1125. -m32 -m64 -mmainkernel -moptimize
  1126. _PDP-11 Options_
  1127. -mfpu -msoft-float -mac0 -mno-ac0 -m40 -m45 -m10
  1128. -mbcopy -mbcopy-builtin -mint32 -mno-int16
  1129. -mint16 -mno-int32 -mfloat32 -mno-float64
  1130. -mfloat64 -mno-float32 -mabshi -mno-abshi
  1131. -mbranch-expensive -mbranch-cheap
  1132. -munix-asm -mdec-asm
  1133. _picoChip Options_
  1134. -mae=AE_TYPE -mvliw-lookahead=N
  1135. -msymbol-as-address -mno-inefficient-warnings
  1136. _PowerPC Options_ See RS/6000 and PowerPC Options.
  1137. _RISC-V Options_
  1138. -mbranch-cost=N-INSTRUCTION
  1139. -mplt -mno-plt
  1140. -mabi=ABI-STRING
  1141. -mfdiv -mno-fdiv
  1142. -mdiv -mno-div
  1143. -march=ISA-STRING
  1144. -mtune=PROCESSOR-STRING
  1145. -msmall-data-limit=N-BYTES
  1146. -msave-restore -mno-save-restore
  1147. -mstrict-align -mno-strict-align
  1148. -mcmodel=medlow -mcmodel=medany
  1149. -mexplicit-relocs -mno-explicit-relocs
  1150. _RL78 Options_
  1151. -msim -mmul=none -mmul=g13 -mmul=g14 -mallregs
  1152. -mcpu=g10 -mcpu=g13 -mcpu=g14 -mg10 -mg13 -mg14
  1153. -m64bit-doubles -m32bit-doubles -msave-mduc-in-interrupts
  1154. _RS/6000 and PowerPC Options_
  1155. -mcpu=CPU-TYPE
  1156. -mtune=CPU-TYPE
  1157. -mcmodel=CODE-MODEL
  1158. -mpowerpc64
  1159. -maltivec -mno-altivec
  1160. -mpowerpc-gpopt -mno-powerpc-gpopt
  1161. -mpowerpc-gfxopt -mno-powerpc-gfxopt
  1162. -mmfcrf -mno-mfcrf -mpopcntb -mno-popcntb -mpopcntd -mno-popcntd
  1163. -mfprnd -mno-fprnd
  1164. -mcmpb -mno-cmpb -mmfpgpr -mno-mfpgpr -mhard-dfp -mno-hard-dfp
  1165. -mfull-toc -mminimal-toc -mno-fp-in-toc -mno-sum-in-toc
  1166. -m64 -m32 -mxl-compat -mno-xl-compat -mpe
  1167. -malign-power -malign-natural
  1168. -msoft-float -mhard-float -mmultiple -mno-multiple
  1169. -msingle-float -mdouble-float -msimple-fpu
  1170. -mstring -mno-string -mupdate -mno-update
  1171. -mavoid-indexed-addresses -mno-avoid-indexed-addresses
  1172. -mfused-madd -mno-fused-madd -mbit-align -mno-bit-align
  1173. -mstrict-align -mno-strict-align -mrelocatable
  1174. -mno-relocatable -mrelocatable-lib -mno-relocatable-lib
  1175. -mtoc -mno-toc -mlittle -mlittle-endian -mbig -mbig-endian
  1176. -mdynamic-no-pic -maltivec -mswdiv -msingle-pic-base
  1177. -mprioritize-restricted-insns=PRIORITY
  1178. -msched-costly-dep=DEPENDENCE_TYPE
  1179. -minsert-sched-nops=SCHEME
  1180. -mcall-sysv -mcall-netbsd
  1181. -maix-struct-return -msvr4-struct-return
  1182. -mabi=ABI-TYPE -msecure-plt -mbss-plt
  1183. -mblock-move-inline-limit=NUM
  1184. -misel -mno-isel
  1185. -misel=yes -misel=no
  1186. -mspe -mno-spe
  1187. -mspe=yes -mspe=no
  1188. -mpaired
  1189. -mgen-cell-microcode -mwarn-cell-microcode
  1190. -mvrsave -mno-vrsave
  1191. -mmulhw -mno-mulhw
  1192. -mdlmzb -mno-dlmzb
  1193. -mfloat-gprs=yes -mfloat-gprs=no -mfloat-gprs=single -mfloat-gprs=double
  1194. -mprototype -mno-prototype
  1195. -msim -mmvme -mads -myellowknife -memb -msdata
  1196. -msdata=OPT -mreadonly-in-sdata -mvxworks -G NUM
  1197. -mrecip -mrecip=OPT -mno-recip -mrecip-precision
  1198. -mno-recip-precision
  1199. -mveclibabi=TYPE -mfriz -mno-friz
  1200. -mpointers-to-nested-functions -mno-pointers-to-nested-functions
  1201. -msave-toc-indirect -mno-save-toc-indirect
  1202. -mpower8-fusion -mno-mpower8-fusion -mpower8-vector -mno-power8-vector
  1203. -mcrypto -mno-crypto -mhtm -mno-htm -mdirect-move -mno-direct-move
  1204. -mquad-memory -mno-quad-memory
  1205. -mquad-memory-atomic -mno-quad-memory-atomic
  1206. -mcompat-align-parm -mno-compat-align-parm
  1207. -mupper-regs-df -mno-upper-regs-df -mupper-regs-sf -mno-upper-regs-sf
  1208. -mupper-regs-di -mno-upper-regs-di
  1209. -mupper-regs -mno-upper-regs
  1210. -mfloat128 -mno-float128 -mfloat128-hardware -mno-float128-hardware
  1211. -mgnu-attribute -mno-gnu-attribute
  1212. -mstack-protector-guard=GUARD -mstack-protector-guard-reg=REG
  1213. -mstack-protector-guard-offset=OFFSET
  1214. -mlra -mno-lra
  1215. _RX Options_
  1216. -m64bit-doubles -m32bit-doubles -fpu -nofpu
  1217. -mcpu=
  1218. -mbig-endian-data -mlittle-endian-data
  1219. -msmall-data
  1220. -msim -mno-sim
  1221. -mas100-syntax -mno-as100-syntax
  1222. -mrelax
  1223. -mmax-constant-size=
  1224. -mint-register=
  1225. -mpid
  1226. -mallow-string-insns -mno-allow-string-insns
  1227. -mjsr
  1228. -mno-warn-multiple-fast-interrupts
  1229. -msave-acc-in-interrupts
  1230. _S/390 and zSeries Options_
  1231. -mtune=CPU-TYPE -march=CPU-TYPE
  1232. -mhard-float -msoft-float -mhard-dfp -mno-hard-dfp
  1233. -mlong-double-64 -mlong-double-128
  1234. -mbackchain -mno-backchain -mpacked-stack -mno-packed-stack
  1235. -msmall-exec -mno-small-exec -mmvcle -mno-mvcle
  1236. -m64 -m31 -mdebug -mno-debug -mesa -mzarch
  1237. -mhtm -mvx -mzvector
  1238. -mtpf-trace -mno-tpf-trace -mfused-madd -mno-fused-madd
  1239. -mwarn-framesize -mwarn-dynamicstack -mstack-size -mstack-guard
  1240. -mhotpatch=HALFWORDS,HALFWORDS
  1241. _Score Options_
  1242. -meb -mel
  1243. -mnhwloop
  1244. -muls
  1245. -mmac
  1246. -mscore5 -mscore5u -mscore7 -mscore7d
  1247. _SH Options_
  1248. -m1 -m2 -m2e
  1249. -m2a-nofpu -m2a-single-only -m2a-single -m2a
  1250. -m3 -m3e
  1251. -m4-nofpu -m4-single-only -m4-single -m4
  1252. -m4a-nofpu -m4a-single-only -m4a-single -m4a -m4al
  1253. -mb -ml -mdalign -mrelax
  1254. -mbigtable -mfmovd -mrenesas -mno-renesas -mnomacsave
  1255. -mieee -mno-ieee -mbitops -misize -minline-ic_invalidate -mpadstruct
  1256. -mprefergot -musermode -multcost=NUMBER -mdiv=STRATEGY
  1257. -mdivsi3_libfunc=NAME -mfixed-range=REGISTER-RANGE
  1258. -maccumulate-outgoing-args
  1259. -matomic-model=ATOMIC-MODEL
  1260. -mbranch-cost=NUM -mzdcbranch -mno-zdcbranch
  1261. -mcbranch-force-delay-slot
  1262. -mfused-madd -mno-fused-madd -mfsca -mno-fsca -mfsrra -mno-fsrra
  1263. -mpretend-cmove -mtas
  1264. _Solaris 2 Options_
  1265. -mclear-hwcap -mno-clear-hwcap -mimpure-text -mno-impure-text
  1266. -pthreads
  1267. _SPARC Options_
  1268. -mcpu=CPU-TYPE
  1269. -mtune=CPU-TYPE
  1270. -mcmodel=CODE-MODEL
  1271. -mmemory-model=MEM-MODEL
  1272. -m32 -m64 -mapp-regs -mno-app-regs
  1273. -mfaster-structs -mno-faster-structs -mflat -mno-flat
  1274. -mfpu -mno-fpu -mhard-float -msoft-float
  1275. -mhard-quad-float -msoft-quad-float
  1276. -mstack-bias -mno-stack-bias
  1277. -mstd-struct-return -mno-std-struct-return
  1278. -munaligned-doubles -mno-unaligned-doubles
  1279. -muser-mode -mno-user-mode
  1280. -mv8plus -mno-v8plus -mvis -mno-vis
  1281. -mvis2 -mno-vis2 -mvis3 -mno-vis3
  1282. -mvis4 -mno-vis4 -mvis4b -mno-vis4b
  1283. -mcbcond -mno-cbcond -mfmaf -mno-fmaf -mfsmuld -mno-fsmuld
  1284. -mpopc -mno-popc -msubxc -mno-subxc
  1285. -mfix-at697f -mfix-ut699 -mfix-ut700 -mfix-gr712rc
  1286. -mlra -mno-lra
  1287. _SPU Options_
  1288. -mwarn-reloc -merror-reloc
  1289. -msafe-dma -munsafe-dma
  1290. -mbranch-hints
  1291. -msmall-mem -mlarge-mem -mstdmain
  1292. -mfixed-range=REGISTER-RANGE
  1293. -mea32 -mea64
  1294. -maddress-space-conversion -mno-address-space-conversion
  1295. -mcache-size=CACHE-SIZE
  1296. -matomic-updates -mno-atomic-updates
  1297. _System V Options_
  1298. -Qy -Qn -YP,PATHS -Ym,DIR
  1299. _TILE-Gx Options_
  1300. -mcpu=CPU -m32 -m64 -mbig-endian -mlittle-endian
  1301. -mcmodel=CODE-MODEL
  1302. _TILEPro Options_
  1303. -mcpu=CPU -m32
  1304. _V850 Options_
  1305. -mlong-calls -mno-long-calls -mep -mno-ep
  1306. -mprolog-function -mno-prolog-function -mspace
  1307. -mtda=N -msda=N -mzda=N
  1308. -mapp-regs -mno-app-regs
  1309. -mdisable-callt -mno-disable-callt
  1310. -mv850e2v3 -mv850e2 -mv850e1 -mv850es
  1311. -mv850e -mv850 -mv850e3v5
  1312. -mloop
  1313. -mrelax
  1314. -mlong-jumps
  1315. -msoft-float
  1316. -mhard-float
  1317. -mgcc-abi
  1318. -mrh850-abi
  1319. -mbig-switch
  1320. _VAX Options_
  1321. -mg -mgnu -munix
  1322. _Visium Options_
  1323. -mdebug -msim -mfpu -mno-fpu -mhard-float -msoft-float
  1324. -mcpu=CPU-TYPE -mtune=CPU-TYPE -msv-mode -muser-mode
  1325. _VMS Options_
  1326. -mvms-return-codes -mdebug-main=PREFIX -mmalloc64
  1327. -mpointer-size=SIZE
  1328. _VxWorks Options_
  1329. -mrtp -non-static -Bstatic -Bdynamic
  1330. -Xbind-lazy -Xbind-now
  1331. _x86 Options_
  1332. -mtune=CPU-TYPE -march=CPU-TYPE
  1333. -mtune-ctrl=FEATURE-LIST -mdump-tune-features -mno-default
  1334. -mfpmath=UNIT
  1335. -masm=DIALECT -mno-fancy-math-387
  1336. -mno-fp-ret-in-387 -m80387 -mhard-float -msoft-float
  1337. -mno-wide-multiply -mrtd -malign-double
  1338. -mpreferred-stack-boundary=NUM
  1339. -mincoming-stack-boundary=NUM
  1340. -mcld -mcx16 -msahf -mmovbe -mcrc32
  1341. -mrecip -mrecip=OPT
  1342. -mvzeroupper -mprefer-avx128
  1343. -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx
  1344. -mavx2 -mavx512f -mavx512pf -mavx512er -mavx512cd -mavx512vl
  1345. -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi -msha -maes
  1346. -mpclmul -mfsgsbase -mrdrnd -mf16c -mfma
  1347. -mprefetchwt1 -mclflushopt -mxsavec -mxsaves
  1348. -msse4a -m3dnow -m3dnowa -mpopcnt -mabm -mbmi -mtbm -mfma4 -mxop
  1349. -mlzcnt -mbmi2 -mfxsr -mxsave -mxsaveopt -mrtm -mlwp -mmpx
  1350. -mmwaitx -mclzero -mpku -mthreads
  1351. -mms-bitfields -mno-align-stringops -minline-all-stringops
  1352. -minline-stringops-dynamically -mstringop-strategy=ALG
  1353. -mmemcpy-strategy=STRATEGY -mmemset-strategy=STRATEGY
  1354. -mpush-args -maccumulate-outgoing-args -m128bit-long-double
  1355. -m96bit-long-double -mlong-double-64 -mlong-double-80 -mlong-double-128
  1356. -mregparm=NUM -msseregparm
  1357. -mveclibabi=TYPE -mvect8-ret-in-mem
  1358. -mpc32 -mpc64 -mpc80 -mstackrealign
  1359. -momit-leaf-frame-pointer -mno-red-zone -mno-tls-direct-seg-refs
  1360. -mcmodel=CODE-MODEL -mabi=NAME -maddress-mode=MODE
  1361. -m32 -m64 -mx32 -m16 -miamcu -mlarge-data-threshold=NUM
  1362. -msse2avx -mfentry -mrecord-mcount -mnop-mcount -m8bit-idiv
  1363. -mavx256-split-unaligned-load -mavx256-split-unaligned-store
  1364. -malign-data=TYPE -mstack-protector-guard=GUARD
  1365. -mmitigate-rop -mgeneral-regs-only
  1366. -mindirect-branch=CHOICE -mfunction-return=CHOICE
  1367. -mindirect-branch-register
  1368. _x86 Windows Options_
  1369. -mconsole -mcygwin -mno-cygwin -mdll
  1370. -mnop-fun-dllimport -mthread
  1371. -municode -mwin32 -mwindows -fno-set-stack-executable
  1372. _Xstormy16 Options_
  1373. -msim
  1374. _Xtensa Options_
  1375. -mconst16 -mno-const16
  1376. -mfused-madd -mno-fused-madd
  1377. -mforce-no-pic
  1378. -mserialize-volatile -mno-serialize-volatile
  1379. -mtext-section-literals -mno-text-section-literals
  1380. -mauto-litpools -mno-auto-litpools
  1381. -mtarget-align -mno-target-align
  1382. -mlongcalls -mno-longcalls
  1383. _zSeries Options_ See S/390 and zSeries Options.
  1384. 
  1385. File: gcc.info, Node: Overall Options, Next: Invoking G++, Prev: Option Summary, Up: Invoking GCC
  1386. 3.2 Options Controlling the Kind of Output
  1387. ==========================================
  1388. Compilation can involve up to four stages: preprocessing, compilation
  1389. proper, assembly and linking, always in that order. GCC is capable of
  1390. preprocessing and compiling several files either into several assembler
  1391. input files, or into one assembler input file; then each assembler input
  1392. file produces an object file, and linking combines all the object files
  1393. (those newly compiled, and those specified as input) into an executable
  1394. file.
  1395. For any given input file, the file name suffix determines what kind of
  1396. compilation is done:
  1397. 'FILE.c'
  1398. C source code that must be preprocessed.
  1399. 'FILE.i'
  1400. C source code that should not be preprocessed.
  1401. 'FILE.ii'
  1402. C++ source code that should not be preprocessed.
  1403. 'FILE.m'
  1404. Objective-C source code. Note that you must link with the
  1405. 'libobjc' library to make an Objective-C program work.
  1406. 'FILE.mi'
  1407. Objective-C source code that should not be preprocessed.
  1408. 'FILE.mm'
  1409. 'FILE.M'
  1410. Objective-C++ source code. Note that you must link with the
  1411. 'libobjc' library to make an Objective-C++ program work. Note that
  1412. '.M' refers to a literal capital M.
  1413. 'FILE.mii'
  1414. Objective-C++ source code that should not be preprocessed.
  1415. 'FILE.h'
  1416. C, C++, Objective-C or Objective-C++ header file to be turned into
  1417. a precompiled header (default), or C, C++ header file to be turned
  1418. into an Ada spec (via the '-fdump-ada-spec' switch).
  1419. 'FILE.cc'
  1420. 'FILE.cp'
  1421. 'FILE.cxx'
  1422. 'FILE.cpp'
  1423. 'FILE.CPP'
  1424. 'FILE.c++'
  1425. 'FILE.C'
  1426. C++ source code that must be preprocessed. Note that in '.cxx',
  1427. the last two letters must both be literally 'x'. Likewise, '.C'
  1428. refers to a literal capital C.
  1429. 'FILE.mm'
  1430. 'FILE.M'
  1431. Objective-C++ source code that must be preprocessed.
  1432. 'FILE.mii'
  1433. Objective-C++ source code that should not be preprocessed.
  1434. 'FILE.hh'
  1435. 'FILE.H'
  1436. 'FILE.hp'
  1437. 'FILE.hxx'
  1438. 'FILE.hpp'
  1439. 'FILE.HPP'
  1440. 'FILE.h++'
  1441. 'FILE.tcc'
  1442. C++ header file to be turned into a precompiled header or Ada spec.
  1443. 'FILE.f'
  1444. 'FILE.for'
  1445. 'FILE.ftn'
  1446. Fixed form Fortran source code that should not be preprocessed.
  1447. 'FILE.F'
  1448. 'FILE.FOR'
  1449. 'FILE.fpp'
  1450. 'FILE.FPP'
  1451. 'FILE.FTN'
  1452. Fixed form Fortran source code that must be preprocessed (with the
  1453. traditional preprocessor).
  1454. 'FILE.f90'
  1455. 'FILE.f95'
  1456. 'FILE.f03'
  1457. 'FILE.f08'
  1458. Free form Fortran source code that should not be preprocessed.
  1459. 'FILE.F90'
  1460. 'FILE.F95'
  1461. 'FILE.F03'
  1462. 'FILE.F08'
  1463. Free form Fortran source code that must be preprocessed (with the
  1464. traditional preprocessor).
  1465. 'FILE.go'
  1466. Go source code.
  1467. 'FILE.brig'
  1468. BRIG files (binary representation of HSAIL).
  1469. 'FILE.ads'
  1470. Ada source code file that contains a library unit declaration (a
  1471. declaration of a package, subprogram, or generic, or a generic
  1472. instantiation), or a library unit renaming declaration (a package,
  1473. generic, or subprogram renaming declaration). Such files are also
  1474. called "specs".
  1475. 'FILE.adb'
  1476. Ada source code file containing a library unit body (a subprogram
  1477. or package body). Such files are also called "bodies".
  1478. 'FILE.s'
  1479. Assembler code.
  1480. 'FILE.S'
  1481. 'FILE.sx'
  1482. Assembler code that must be preprocessed.
  1483. 'OTHER'
  1484. An object file to be fed straight into linking. Any file name with
  1485. no recognized suffix is treated this way.
  1486. You can specify the input language explicitly with the '-x' option:
  1487. '-x LANGUAGE'
  1488. Specify explicitly the LANGUAGE for the following input files
  1489. (rather than letting the compiler choose a default based on the
  1490. file name suffix). This option applies to all following input
  1491. files until the next '-x' option. Possible values for LANGUAGE
  1492. are:
  1493. c c-header cpp-output
  1494. c++ c++-header c++-cpp-output
  1495. objective-c objective-c-header objective-c-cpp-output
  1496. objective-c++ objective-c++-header objective-c++-cpp-output
  1497. assembler assembler-with-cpp
  1498. ada
  1499. f77 f77-cpp-input f95 f95-cpp-input
  1500. go
  1501. brig
  1502. '-x none'
  1503. Turn off any specification of a language, so that subsequent files
  1504. are handled according to their file name suffixes (as they are if
  1505. '-x' has not been used at all).
  1506. If you only want some of the stages of compilation, you can use '-x'
  1507. (or filename suffixes) to tell 'gcc' where to start, and one of the
  1508. options '-c', '-S', or '-E' to say where 'gcc' is to stop. Note that
  1509. some combinations (for example, '-x cpp-output -E') instruct 'gcc' to do
  1510. nothing at all.
  1511. '-c'
  1512. Compile or assemble the source files, but do not link. The linking
  1513. stage simply is not done. The ultimate output is in the form of an
  1514. object file for each source file.
  1515. By default, the object file name for a source file is made by
  1516. replacing the suffix '.c', '.i', '.s', etc., with '.o'.
  1517. Unrecognized input files, not requiring compilation or assembly,
  1518. are ignored.
  1519. '-S'
  1520. Stop after the stage of compilation proper; do not assemble. The
  1521. output is in the form of an assembler code file for each
  1522. non-assembler input file specified.
  1523. By default, the assembler file name for a source file is made by
  1524. replacing the suffix '.c', '.i', etc., with '.s'.
  1525. Input files that don't require compilation are ignored.
  1526. '-E'
  1527. Stop after the preprocessing stage; do not run the compiler proper.
  1528. The output is in the form of preprocessed source code, which is
  1529. sent to the standard output.
  1530. Input files that don't require preprocessing are ignored.
  1531. '-o FILE'
  1532. Place output in file FILE. This applies to whatever sort of output
  1533. is being produced, whether it be an executable file, an object
  1534. file, an assembler file or preprocessed C code.
  1535. If '-o' is not specified, the default is to put an executable file
  1536. in 'a.out', the object file for 'SOURCE.SUFFIX' in 'SOURCE.o', its
  1537. assembler file in 'SOURCE.s', a precompiled header file in
  1538. 'SOURCE.SUFFIX.gch', and all preprocessed C source on standard
  1539. output.
  1540. '-v'
  1541. Print (on standard error output) the commands executed to run the
  1542. stages of compilation. Also print the version number of the
  1543. compiler driver program and of the preprocessor and the compiler
  1544. proper.
  1545. '-###'
  1546. Like '-v' except the commands are not executed and arguments are
  1547. quoted unless they contain only alphanumeric characters or './-_'.
  1548. This is useful for shell scripts to capture the driver-generated
  1549. command lines.
  1550. '--help'
  1551. Print (on the standard output) a description of the command-line
  1552. options understood by 'gcc'. If the '-v' option is also specified
  1553. then '--help' is also passed on to the various processes invoked by
  1554. 'gcc', so that they can display the command-line options they
  1555. accept. If the '-Wextra' option has also been specified (prior to
  1556. the '--help' option), then command-line options that have no
  1557. documentation associated with them are also displayed.
  1558. '--target-help'
  1559. Print (on the standard output) a description of target-specific
  1560. command-line options for each tool. For some targets extra
  1561. target-specific information may also be printed.
  1562. '--help={CLASS|[^]QUALIFIER}[,...]'
  1563. Print (on the standard output) a description of the command-line
  1564. options understood by the compiler that fit into all specified
  1565. classes and qualifiers. These are the supported classes:
  1566. 'optimizers'
  1567. Display all of the optimization options supported by the
  1568. compiler.
  1569. 'warnings'
  1570. Display all of the options controlling warning messages
  1571. produced by the compiler.
  1572. 'target'
  1573. Display target-specific options. Unlike the '--target-help'
  1574. option however, target-specific options of the linker and
  1575. assembler are not displayed. This is because those tools do
  1576. not currently support the extended '--help=' syntax.
  1577. 'params'
  1578. Display the values recognized by the '--param' option.
  1579. LANGUAGE
  1580. Display the options supported for LANGUAGE, where LANGUAGE is
  1581. the name of one of the languages supported in this version of
  1582. GCC.
  1583. 'common'
  1584. Display the options that are common to all languages.
  1585. These are the supported qualifiers:
  1586. 'undocumented'
  1587. Display only those options that are undocumented.
  1588. 'joined'
  1589. Display options taking an argument that appears after an equal
  1590. sign in the same continuous piece of text, such as:
  1591. '--help=target'.
  1592. 'separate'
  1593. Display options taking an argument that appears as a separate
  1594. word following the original option, such as: '-o output-file'.
  1595. Thus for example to display all the undocumented target-specific
  1596. switches supported by the compiler, use:
  1597. --help=target,undocumented
  1598. The sense of a qualifier can be inverted by prefixing it with the
  1599. '^' character, so for example to display all binary warning options
  1600. (i.e., ones that are either on or off and that do not take an
  1601. argument) that have a description, use:
  1602. --help=warnings,^joined,^undocumented
  1603. The argument to '--help=' should not consist solely of inverted
  1604. qualifiers.
  1605. Combining several classes is possible, although this usually
  1606. restricts the output so much that there is nothing to display. One
  1607. case where it does work, however, is when one of the classes is
  1608. TARGET. For example, to display all the target-specific
  1609. optimization options, use:
  1610. --help=target,optimizers
  1611. The '--help=' option can be repeated on the command line. Each
  1612. successive use displays its requested class of options, skipping
  1613. those that have already been displayed.
  1614. If the '-Q' option appears on the command line before the '--help='
  1615. option, then the descriptive text displayed by '--help=' is
  1616. changed. Instead of describing the displayed options, an
  1617. indication is given as to whether the option is enabled, disabled
  1618. or set to a specific value (assuming that the compiler knows this
  1619. at the point where the '--help=' option is used).
  1620. Here is a truncated example from the ARM port of 'gcc':
  1621. % gcc -Q -mabi=2 --help=target -c
  1622. The following options are target specific:
  1623. -mabi= 2
  1624. -mabort-on-noreturn [disabled]
  1625. -mapcs [disabled]
  1626. The output is sensitive to the effects of previous command-line
  1627. options, so for example it is possible to find out which
  1628. optimizations are enabled at '-O2' by using:
  1629. -Q -O2 --help=optimizers
  1630. Alternatively you can discover which binary optimizations are
  1631. enabled by '-O3' by using:
  1632. gcc -c -Q -O3 --help=optimizers > /tmp/O3-opts
  1633. gcc -c -Q -O2 --help=optimizers > /tmp/O2-opts
  1634. diff /tmp/O2-opts /tmp/O3-opts | grep enabled
  1635. '--version'
  1636. Display the version number and copyrights of the invoked GCC.
  1637. '-pass-exit-codes'
  1638. Normally the 'gcc' program exits with the code of 1 if any phase of
  1639. the compiler returns a non-success return code. If you specify
  1640. '-pass-exit-codes', the 'gcc' program instead returns with the
  1641. numerically highest error produced by any phase returning an error
  1642. indication. The C, C++, and Fortran front ends return 4 if an
  1643. internal compiler error is encountered.
  1644. '-pipe'
  1645. Use pipes rather than temporary files for communication between the
  1646. various stages of compilation. This fails to work on some systems
  1647. where the assembler is unable to read from a pipe; but the GNU
  1648. assembler has no trouble.
  1649. '-specs=FILE'
  1650. Process FILE after the compiler reads in the standard 'specs' file,
  1651. in order to override the defaults which the 'gcc' driver program
  1652. uses when determining what switches to pass to 'cc1', 'cc1plus',
  1653. 'as', 'ld', etc. More than one '-specs=FILE' can be specified on
  1654. the command line, and they are processed in order, from left to
  1655. right. *Note Spec Files::, for information about the format of the
  1656. FILE.
  1657. '-wrapper'
  1658. Invoke all subcommands under a wrapper program. The name of the
  1659. wrapper program and its parameters are passed as a comma separated
  1660. list.
  1661. gcc -c t.c -wrapper gdb,--args
  1662. This invokes all subprograms of 'gcc' under 'gdb --args', thus the
  1663. invocation of 'cc1' is 'gdb --args cc1 ...'.
  1664. '-fplugin=NAME.so'
  1665. Load the plugin code in file NAME.so, assumed to be a shared object
  1666. to be dlopen'd by the compiler. The base name of the shared object
  1667. file is used to identify the plugin for the purposes of argument
  1668. parsing (See '-fplugin-arg-NAME-KEY=VALUE' below). Each plugin
  1669. should define the callback functions specified in the Plugins API.
  1670. '-fplugin-arg-NAME-KEY=VALUE'
  1671. Define an argument called KEY with a value of VALUE for the plugin
  1672. called NAME.
  1673. '-fdump-ada-spec[-slim]'
  1674. For C and C++ source and include files, generate corresponding Ada
  1675. specs. *Note (gnat_ugn)Generating Ada Bindings for C and C++
  1676. headers::, which provides detailed documentation on this feature.
  1677. '-fada-spec-parent=UNIT'
  1678. In conjunction with '-fdump-ada-spec[-slim]' above, generate Ada
  1679. specs as child units of parent UNIT.
  1680. '-fdump-go-spec=FILE'
  1681. For input files in any language, generate corresponding Go
  1682. declarations in FILE. This generates Go 'const', 'type', 'var',
  1683. and 'func' declarations which may be a useful way to start writing
  1684. a Go interface to code written in some other language.
  1685. '@FILE'
  1686. Read command-line options from FILE. The options read are inserted
  1687. in place of the original @FILE option. If FILE does not exist, or
  1688. cannot be read, then the option will be treated literally, and not
  1689. removed.
  1690. Options in FILE are separated by whitespace. A whitespace
  1691. character may be included in an option by surrounding the entire
  1692. option in either single or double quotes. Any character (including
  1693. a backslash) may be included by prefixing the character to be
  1694. included with a backslash. The FILE may itself contain additional
  1695. @FILE options; any such options will be processed recursively.
  1696. 
  1697. File: gcc.info, Node: Invoking G++, Next: C Dialect Options, Prev: Overall Options, Up: Invoking GCC
  1698. 3.3 Compiling C++ Programs
  1699. ==========================
  1700. C++ source files conventionally use one of the suffixes '.C', '.cc',
  1701. '.cpp', '.CPP', '.c++', '.cp', or '.cxx'; C++ header files often use
  1702. '.hh', '.hpp', '.H', or (for shared template code) '.tcc'; and
  1703. preprocessed C++ files use the suffix '.ii'. GCC recognizes files with
  1704. these names and compiles them as C++ programs even if you call the
  1705. compiler the same way as for compiling C programs (usually with the name
  1706. 'gcc').
  1707. However, the use of 'gcc' does not add the C++ library. 'g++' is a
  1708. program that calls GCC and automatically specifies linking against the
  1709. C++ library. It treats '.c', '.h' and '.i' files as C++ source files
  1710. instead of C source files unless '-x' is used. This program is also
  1711. useful when precompiling a C header file with a '.h' extension for use
  1712. in C++ compilations. On many systems, 'g++' is also installed with the
  1713. name 'c++'.
  1714. When you compile C++ programs, you may specify many of the same
  1715. command-line options that you use for compiling programs in any
  1716. language; or command-line options meaningful for C and related
  1717. languages; or options that are meaningful only for C++ programs. *Note
  1718. Options Controlling C Dialect: C Dialect Options, for explanations of
  1719. options for languages related to C. *Note Options Controlling C++
  1720. Dialect: C++ Dialect Options, for explanations of options that are
  1721. meaningful only for C++ programs.
  1722. 
  1723. File: gcc.info, Node: C Dialect Options, Next: C++ Dialect Options, Prev: Invoking G++, Up: Invoking GCC
  1724. 3.4 Options Controlling C Dialect
  1725. =================================
  1726. The following options control the dialect of C (or languages derived
  1727. from C, such as C++, Objective-C and Objective-C++) that the compiler
  1728. accepts:
  1729. '-ansi'
  1730. In C mode, this is equivalent to '-std=c90'. In C++ mode, it is
  1731. equivalent to '-std=c++98'.
  1732. This turns off certain features of GCC that are incompatible with
  1733. ISO C90 (when compiling C code), or of standard C++ (when compiling
  1734. C++ code), such as the 'asm' and 'typeof' keywords, and predefined
  1735. macros such as 'unix' and 'vax' that identify the type of system
  1736. you are using. It also enables the undesirable and rarely used ISO
  1737. trigraph feature. For the C compiler, it disables recognition of
  1738. C++ style '//' comments as well as the 'inline' keyword.
  1739. The alternate keywords '__asm__', '__extension__', '__inline__' and
  1740. '__typeof__' continue to work despite '-ansi'. You would not want
  1741. to use them in an ISO C program, of course, but it is useful to put
  1742. them in header files that might be included in compilations done
  1743. with '-ansi'. Alternate predefined macros such as '__unix__' and
  1744. '__vax__' are also available, with or without '-ansi'.
  1745. The '-ansi' option does not cause non-ISO programs to be rejected
  1746. gratuitously. For that, '-Wpedantic' is required in addition to
  1747. '-ansi'. *Note Warning Options::.
  1748. The macro '__STRICT_ANSI__' is predefined when the '-ansi' option
  1749. is used. Some header files may notice this macro and refrain from
  1750. declaring certain functions or defining certain macros that the ISO
  1751. standard doesn't call for; this is to avoid interfering with any
  1752. programs that might use these names for other things.
  1753. Functions that are normally built in but do not have semantics
  1754. defined by ISO C (such as 'alloca' and 'ffs') are not built-in
  1755. functions when '-ansi' is used. *Note Other built-in functions
  1756. provided by GCC: Other Builtins, for details of the functions
  1757. affected.
  1758. '-std='
  1759. Determine the language standard. *Note Language Standards
  1760. Supported by GCC: Standards, for details of these standard
  1761. versions. This option is currently only supported when compiling C
  1762. or C++.
  1763. The compiler can accept several base standards, such as 'c90' or
  1764. 'c++98', and GNU dialects of those standards, such as 'gnu90' or
  1765. 'gnu++98'. When a base standard is specified, the compiler accepts
  1766. all programs following that standard plus those using GNU
  1767. extensions that do not contradict it. For example, '-std=c90'
  1768. turns off certain features of GCC that are incompatible with ISO
  1769. C90, such as the 'asm' and 'typeof' keywords, but not other GNU
  1770. extensions that do not have a meaning in ISO C90, such as omitting
  1771. the middle term of a '?:' expression. On the other hand, when a
  1772. GNU dialect of a standard is specified, all features supported by
  1773. the compiler are enabled, even when those features change the
  1774. meaning of the base standard. As a result, some strict-conforming
  1775. programs may be rejected. The particular standard is used by
  1776. '-Wpedantic' to identify which features are GNU extensions given
  1777. that version of the standard. For example '-std=gnu90 -Wpedantic'
  1778. warns about C++ style '//' comments, while '-std=gnu99 -Wpedantic'
  1779. does not.
  1780. A value for this option must be provided; possible values are
  1781. 'c90'
  1782. 'c89'
  1783. 'iso9899:1990'
  1784. Support all ISO C90 programs (certain GNU extensions that
  1785. conflict with ISO C90 are disabled). Same as '-ansi' for C
  1786. code.
  1787. 'iso9899:199409'
  1788. ISO C90 as modified in amendment 1.
  1789. 'c99'
  1790. 'c9x'
  1791. 'iso9899:1999'
  1792. 'iso9899:199x'
  1793. ISO C99. This standard is substantially completely supported,
  1794. modulo bugs and floating-point issues (mainly but not entirely
  1795. relating to optional C99 features from Annexes F and G). See <http://gcc.gnu.org/c99status.html>
  1796. for more information. The names 'c9x' and 'iso9899:199x' are
  1797. deprecated.
  1798. 'c11'
  1799. 'c1x'
  1800. 'iso9899:2011'
  1801. ISO C11, the 2011 revision of the ISO C standard. This
  1802. standard is substantially completely supported, modulo bugs,
  1803. floating-point issues (mainly but not entirely relating to
  1804. optional C11 features from Annexes F and G) and the optional
  1805. Annexes K (Bounds-checking interfaces) and L (Analyzability).
  1806. The name 'c1x' is deprecated.
  1807. 'gnu90'
  1808. 'gnu89'
  1809. GNU dialect of ISO C90 (including some C99 features).
  1810. 'gnu99'
  1811. 'gnu9x'
  1812. GNU dialect of ISO C99. The name 'gnu9x' is deprecated.
  1813. 'gnu11'
  1814. 'gnu1x'
  1815. GNU dialect of ISO C11. This is the default for C code. The
  1816. name 'gnu1x' is deprecated.
  1817. 'c++98'
  1818. 'c++03'
  1819. The 1998 ISO C++ standard plus the 2003 technical corrigendum
  1820. and some additional defect reports. Same as '-ansi' for C++
  1821. code.
  1822. 'gnu++98'
  1823. 'gnu++03'
  1824. GNU dialect of '-std=c++98'.
  1825. 'c++11'
  1826. 'c++0x'
  1827. The 2011 ISO C++ standard plus amendments. The name 'c++0x'
  1828. is deprecated.
  1829. 'gnu++11'
  1830. 'gnu++0x'
  1831. GNU dialect of '-std=c++11'. The name 'gnu++0x' is
  1832. deprecated.
  1833. 'c++14'
  1834. 'c++1y'
  1835. The 2014 ISO C++ standard plus amendments. The name 'c++1y'
  1836. is deprecated.
  1837. 'gnu++14'
  1838. 'gnu++1y'
  1839. GNU dialect of '-std=c++14'. This is the default for C++
  1840. code. The name 'gnu++1y' is deprecated.
  1841. 'c++1z'
  1842. The next revision of the ISO C++ standard, tentatively planned
  1843. for 2017. Support is highly experimental, and will almost
  1844. certainly change in incompatible ways in future releases.
  1845. 'gnu++1z'
  1846. GNU dialect of '-std=c++1z'. Support is highly experimental,
  1847. and will almost certainly change in incompatible ways in
  1848. future releases.
  1849. '-fgnu89-inline'
  1850. The option '-fgnu89-inline' tells GCC to use the traditional GNU
  1851. semantics for 'inline' functions when in C99 mode. *Note An Inline
  1852. Function is As Fast As a Macro: Inline. Using this option is
  1853. roughly equivalent to adding the 'gnu_inline' function attribute to
  1854. all inline functions (*note Function Attributes::).
  1855. The option '-fno-gnu89-inline' explicitly tells GCC to use the C99
  1856. semantics for 'inline' when in C99 or gnu99 mode (i.e., it
  1857. specifies the default behavior). This option is not supported in
  1858. '-std=c90' or '-std=gnu90' mode.
  1859. The preprocessor macros '__GNUC_GNU_INLINE__' and
  1860. '__GNUC_STDC_INLINE__' may be used to check which semantics are in
  1861. effect for 'inline' functions. *Note (cpp)Common Predefined
  1862. Macros::.
  1863. '-fpermitted-flt-eval-methods=STYLE'
  1864. ISO/IEC TS 18661-3 defines new permissible values for
  1865. 'FLT_EVAL_METHOD' that indicate that operations and constants with
  1866. a semantic type that is an interchange or extended format should be
  1867. evaluated to the precision and range of that type. These new
  1868. values are a superset of those permitted under C99/C11, which does
  1869. not specify the meaning of other positive values of
  1870. 'FLT_EVAL_METHOD'. As such, code conforming to C11 may not have
  1871. been written expecting the possibility of the new values.
  1872. '-fpermitted-flt-eval-methods' specifies whether the compiler
  1873. should allow only the values of 'FLT_EVAL_METHOD' specified in
  1874. C99/C11, or the extended set of values specified in ISO/IEC TS
  1875. 18661-3.
  1876. STYLE is either 'c11' or 'ts-18661-3' as appropriate.
  1877. The default when in a standards compliant mode ('-std=c11' or
  1878. similar) is '-fpermitted-flt-eval-methods=c11'. The default when
  1879. in a GNU dialect ('-std=gnu11' or similar) is
  1880. '-fpermitted-flt-eval-methods=ts-18661-3'.
  1881. '-aux-info FILENAME'
  1882. Output to the given filename prototyped declarations for all
  1883. functions declared and/or defined in a translation unit, including
  1884. those in header files. This option is silently ignored in any
  1885. language other than C.
  1886. Besides declarations, the file indicates, in comments, the origin
  1887. of each declaration (source file and line), whether the declaration
  1888. was implicit, prototyped or unprototyped ('I', 'N' for new or 'O'
  1889. for old, respectively, in the first character after the line number
  1890. and the colon), and whether it came from a declaration or a
  1891. definition ('C' or 'F', respectively, in the following character).
  1892. In the case of function definitions, a K&R-style list of arguments
  1893. followed by their declarations is also provided, inside comments,
  1894. after the declaration.
  1895. '-fallow-parameterless-variadic-functions'
  1896. Accept variadic functions without named parameters.
  1897. Although it is possible to define such a function, this is not very
  1898. useful as it is not possible to read the arguments. This is only
  1899. supported for C as this construct is allowed by C++.
  1900. '-fno-asm'
  1901. Do not recognize 'asm', 'inline' or 'typeof' as a keyword, so that
  1902. code can use these words as identifiers. You can use the keywords
  1903. '__asm__', '__inline__' and '__typeof__' instead. '-ansi' implies
  1904. '-fno-asm'.
  1905. In C++, this switch only affects the 'typeof' keyword, since 'asm'
  1906. and 'inline' are standard keywords. You may want to use the
  1907. '-fno-gnu-keywords' flag instead, which has the same effect. In
  1908. C99 mode ('-std=c99' or '-std=gnu99'), this switch only affects the
  1909. 'asm' and 'typeof' keywords, since 'inline' is a standard keyword
  1910. in ISO C99.
  1911. '-fno-builtin'
  1912. '-fno-builtin-FUNCTION'
  1913. Don't recognize built-in functions that do not begin with
  1914. '__builtin_' as prefix. *Note Other built-in functions provided by
  1915. GCC: Other Builtins, for details of the functions affected,
  1916. including those which are not built-in functions when '-ansi' or
  1917. '-std' options for strict ISO C conformance are used because they
  1918. do not have an ISO standard meaning.
  1919. GCC normally generates special code to handle certain built-in
  1920. functions more efficiently; for instance, calls to 'alloca' may
  1921. become single instructions which adjust the stack directly, and
  1922. calls to 'memcpy' may become inline copy loops. The resulting code
  1923. is often both smaller and faster, but since the function calls no
  1924. longer appear as such, you cannot set a breakpoint on those calls,
  1925. nor can you change the behavior of the functions by linking with a
  1926. different library. In addition, when a function is recognized as a
  1927. built-in function, GCC may use information about that function to
  1928. warn about problems with calls to that function, or to generate
  1929. more efficient code, even if the resulting code still contains
  1930. calls to that function. For example, warnings are given with
  1931. '-Wformat' for bad calls to 'printf' when 'printf' is built in and
  1932. 'strlen' is known not to modify global memory.
  1933. With the '-fno-builtin-FUNCTION' option only the built-in function
  1934. FUNCTION is disabled. FUNCTION must not begin with '__builtin_'.
  1935. If a function is named that is not built-in in this version of GCC,
  1936. this option is ignored. There is no corresponding
  1937. '-fbuiltin-FUNCTION' option; if you wish to enable built-in
  1938. functions selectively when using '-fno-builtin' or
  1939. '-ffreestanding', you may define macros such as:
  1940. #define abs(n) __builtin_abs ((n))
  1941. #define strcpy(d, s) __builtin_strcpy ((d), (s))
  1942. '-fgimple'
  1943. Enable parsing of function definitions marked with '__GIMPLE'.
  1944. This is an experimental feature that allows unit testing of GIMPLE
  1945. passes.
  1946. '-fhosted'
  1947. Assert that compilation targets a hosted environment. This implies
  1948. '-fbuiltin'. A hosted environment is one in which the entire
  1949. standard library is available, and in which 'main' has a return
  1950. type of 'int'. Examples are nearly everything except a kernel.
  1951. This is equivalent to '-fno-freestanding'.
  1952. '-ffreestanding'
  1953. Assert that compilation targets a freestanding environment. This
  1954. implies '-fno-builtin'. A freestanding environment is one in which
  1955. the standard library may not exist, and program startup may not
  1956. necessarily be at 'main'. The most obvious example is an OS
  1957. kernel. This is equivalent to '-fno-hosted'.
  1958. *Note Language Standards Supported by GCC: Standards, for details
  1959. of freestanding and hosted environments.
  1960. '-fopenacc'
  1961. Enable handling of OpenACC directives '#pragma acc' in C/C++ and
  1962. '!$acc' in Fortran. When '-fopenacc' is specified, the compiler
  1963. generates accelerated code according to the OpenACC Application
  1964. Programming Interface v2.0 <http://www.openacc.org/>. This option
  1965. implies '-pthread', and thus is only supported on targets that have
  1966. support for '-pthread'.
  1967. '-fopenacc-dim=GEOM'
  1968. Specify default compute dimensions for parallel offload regions
  1969. that do not explicitly specify. The GEOM value is a triple of
  1970. ':'-separated sizes, in order 'gang', 'worker' and, 'vector'. A
  1971. size can be omitted, to use a target-specific default value.
  1972. '-fopenmp'
  1973. Enable handling of OpenMP directives '#pragma omp' in C/C++ and
  1974. '!$omp' in Fortran. When '-fopenmp' is specified, the compiler
  1975. generates parallel code according to the OpenMP Application Program
  1976. Interface v4.5 <http://www.openmp.org/>. This option implies
  1977. '-pthread', and thus is only supported on targets that have support
  1978. for '-pthread'. '-fopenmp' implies '-fopenmp-simd'.
  1979. '-fopenmp-simd'
  1980. Enable handling of OpenMP's SIMD directives with '#pragma omp' in
  1981. C/C++ and '!$omp' in Fortran. Other OpenMP directives are ignored.
  1982. '-fcilkplus'
  1983. Enable the usage of Cilk Plus language extension features for
  1984. C/C++. When the option '-fcilkplus' is specified, enable the usage
  1985. of the Cilk Plus Language extension features for C/C++. The
  1986. present implementation follows ABI version 1.2. This is an
  1987. experimental feature that is only partially complete, and whose
  1988. interface may change in future versions of GCC as the official
  1989. specification changes. Currently, all features but '_Cilk_for'
  1990. have been implemented.
  1991. '-fgnu-tm'
  1992. When the option '-fgnu-tm' is specified, the compiler generates
  1993. code for the Linux variant of Intel's current Transactional Memory
  1994. ABI specification document (Revision 1.1, May 6 2009). This is an
  1995. experimental feature whose interface may change in future versions
  1996. of GCC, as the official specification changes. Please note that
  1997. not all architectures are supported for this feature.
  1998. For more information on GCC's support for transactional memory,
  1999. *Note The GNU Transactional Memory Library: (libitm)Enabling
  2000. libitm.
  2001. Note that the transactional memory feature is not supported with
  2002. non-call exceptions ('-fnon-call-exceptions').
  2003. '-fms-extensions'
  2004. Accept some non-standard constructs used in Microsoft header files.
  2005. In C++ code, this allows member names in structures to be similar
  2006. to previous types declarations.
  2007. typedef int UOW;
  2008. struct ABC {
  2009. UOW UOW;
  2010. };
  2011. Some cases of unnamed fields in structures and unions are only
  2012. accepted with this option. *Note Unnamed struct/union fields
  2013. within structs/unions: Unnamed Fields, for details.
  2014. Note that this option is off for all targets but x86 targets using
  2015. ms-abi.
  2016. '-fplan9-extensions'
  2017. Accept some non-standard constructs used in Plan 9 code.
  2018. This enables '-fms-extensions', permits passing pointers to
  2019. structures with anonymous fields to functions that expect pointers
  2020. to elements of the type of the field, and permits referring to
  2021. anonymous fields declared using a typedef. *Note Unnamed
  2022. struct/union fields within structs/unions: Unnamed Fields, for
  2023. details. This is only supported for C, not C++.
  2024. '-fcond-mismatch'
  2025. Allow conditional expressions with mismatched types in the second
  2026. and third arguments. The value of such an expression is void.
  2027. This option is not supported for C++.
  2028. '-flax-vector-conversions'
  2029. Allow implicit conversions between vectors with differing numbers
  2030. of elements and/or incompatible element types. This option should
  2031. not be used for new code.
  2032. '-funsigned-char'
  2033. Let the type 'char' be unsigned, like 'unsigned char'.
  2034. Each kind of machine has a default for what 'char' should be. It
  2035. is either like 'unsigned char' by default or like 'signed char' by
  2036. default.
  2037. Ideally, a portable program should always use 'signed char' or
  2038. 'unsigned char' when it depends on the signedness of an object.
  2039. But many programs have been written to use plain 'char' and expect
  2040. it to be signed, or expect it to be unsigned, depending on the
  2041. machines they were written for. This option, and its inverse, let
  2042. you make such a program work with the opposite default.
  2043. The type 'char' is always a distinct type from each of 'signed
  2044. char' or 'unsigned char', even though its behavior is always just
  2045. like one of those two.
  2046. '-fsigned-char'
  2047. Let the type 'char' be signed, like 'signed char'.
  2048. Note that this is equivalent to '-fno-unsigned-char', which is the
  2049. negative form of '-funsigned-char'. Likewise, the option
  2050. '-fno-signed-char' is equivalent to '-funsigned-char'.
  2051. '-fsigned-bitfields'
  2052. '-funsigned-bitfields'
  2053. '-fno-signed-bitfields'
  2054. '-fno-unsigned-bitfields'
  2055. These options control whether a bit-field is signed or unsigned,
  2056. when the declaration does not use either 'signed' or 'unsigned'.
  2057. By default, such a bit-field is signed, because this is consistent:
  2058. the basic integer types such as 'int' are signed types.
  2059. '-fsso-struct=ENDIANNESS'
  2060. Set the default scalar storage order of structures and unions to
  2061. the specified endianness. The accepted values are 'big-endian',
  2062. 'little-endian' and 'native' for the native endianness of the
  2063. target (the default). This option is not supported for C++.
  2064. *Warning:* the '-fsso-struct' switch causes GCC to generate code
  2065. that is not binary compatible with code generated without it if the
  2066. specified endianness is not the native endianness of the target.
  2067. 
  2068. File: gcc.info, Node: C++ Dialect Options, Next: Objective-C and Objective-C++ Dialect Options, Prev: C Dialect Options, Up: Invoking GCC
  2069. 3.5 Options Controlling C++ Dialect
  2070. ===================================
  2071. This section describes the command-line options that are only meaningful
  2072. for C++ programs. You can also use most of the GNU compiler options
  2073. regardless of what language your program is in. For example, you might
  2074. compile a file 'firstClass.C' like this:
  2075. g++ -g -fstrict-enums -O -c firstClass.C
  2076. In this example, only '-fstrict-enums' is an option meant only for C++
  2077. programs; you can use the other options with any language supported by
  2078. GCC.
  2079. Some options for compiling C programs, such as '-std', are also
  2080. relevant for C++ programs. *Note Options Controlling C Dialect: C
  2081. Dialect Options.
  2082. Here is a list of options that are _only_ for compiling C++ programs:
  2083. '-fabi-version=N'
  2084. Use version N of the C++ ABI. The default is version 0.
  2085. Version 0 refers to the version conforming most closely to the C++
  2086. ABI specification. Therefore, the ABI obtained using version 0
  2087. will change in different versions of G++ as ABI bugs are fixed.
  2088. Version 1 is the version of the C++ ABI that first appeared in G++
  2089. 3.2.
  2090. Version 2 is the version of the C++ ABI that first appeared in G++
  2091. 3.4, and was the default through G++ 4.9.
  2092. Version 3 corrects an error in mangling a constant address as a
  2093. template argument.
  2094. Version 4, which first appeared in G++ 4.5, implements a standard
  2095. mangling for vector types.
  2096. Version 5, which first appeared in G++ 4.6, corrects the mangling
  2097. of attribute const/volatile on function pointer types, decltype of
  2098. a plain decl, and use of a function parameter in the declaration of
  2099. another parameter.
  2100. Version 6, which first appeared in G++ 4.7, corrects the promotion
  2101. behavior of C++11 scoped enums and the mangling of template
  2102. argument packs, const/static_cast, prefix ++ and -, and a class
  2103. scope function used as a template argument.
  2104. Version 7, which first appeared in G++ 4.8, that treats nullptr_t
  2105. as a builtin type and corrects the mangling of lambdas in default
  2106. argument scope.
  2107. Version 8, which first appeared in G++ 4.9, corrects the
  2108. substitution behavior of function types with
  2109. function-cv-qualifiers.
  2110. Version 9, which first appeared in G++ 5.2, corrects the alignment
  2111. of 'nullptr_t'.
  2112. Version 10, which first appeared in G++ 6.1, adds mangling of
  2113. attributes that affect type identity, such as ia32 calling
  2114. convention attributes (e.g. 'stdcall').
  2115. Version 11, which first appeared in G++ 7, corrects the mangling of
  2116. sizeof... expressions and operator names. For multiple entities
  2117. with the same name within a function, that are declared in
  2118. different scopes, the mangling now changes starting with the
  2119. twelfth occurrence. It also implies '-fnew-inheriting-ctors'.
  2120. See also '-Wabi'.
  2121. '-fabi-compat-version=N'
  2122. On targets that support strong aliases, G++ works around mangling
  2123. changes by creating an alias with the correct mangled name when
  2124. defining a symbol with an incorrect mangled name. This switch
  2125. specifies which ABI version to use for the alias.
  2126. With '-fabi-version=0' (the default), this defaults to 8 (GCC 5
  2127. compatibility). If another ABI version is explicitly selected,
  2128. this defaults to 0. For compatibility with GCC versions 3.2
  2129. through 4.9, use '-fabi-compat-version=2'.
  2130. If this option is not provided but '-Wabi=N' is, that version is
  2131. used for compatibility aliases. If this option is provided along
  2132. with '-Wabi' (without the version), the version from this option is
  2133. used for the warning.
  2134. '-fno-access-control'
  2135. Turn off all access checking. This switch is mainly useful for
  2136. working around bugs in the access control code.
  2137. '-faligned-new'
  2138. Enable support for C++17 'new' of types that require more alignment
  2139. than 'void* ::operator new(std::size_t)' provides. A numeric
  2140. argument such as '-faligned-new=32' can be used to specify how much
  2141. alignment (in bytes) is provided by that function, but few users
  2142. will need to override the default of 'alignof(std::max_align_t)'.
  2143. '-fcheck-new'
  2144. Check that the pointer returned by 'operator new' is non-null
  2145. before attempting to modify the storage allocated. This check is
  2146. normally unnecessary because the C++ standard specifies that
  2147. 'operator new' only returns '0' if it is declared 'throw()', in
  2148. which case the compiler always checks the return value even without
  2149. this option. In all other cases, when 'operator new' has a
  2150. non-empty exception specification, memory exhaustion is signalled
  2151. by throwing 'std::bad_alloc'. See also 'new (nothrow)'.
  2152. '-fconcepts'
  2153. Enable support for the C++ Extensions for Concepts Technical
  2154. Specification, ISO 19217 (2015), which allows code like
  2155. template <class T> concept bool Addable = requires (T t) { t + t; };
  2156. template <Addable T> T add (T a, T b) { return a + b; }
  2157. '-fconstexpr-depth=N'
  2158. Set the maximum nested evaluation depth for C++11 constexpr
  2159. functions to N. A limit is needed to detect endless recursion
  2160. during constant expression evaluation. The minimum specified by
  2161. the standard is 512.
  2162. '-fconstexpr-loop-limit=N'
  2163. Set the maximum number of iterations for a loop in C++14 constexpr
  2164. functions to N. A limit is needed to detect infinite loops during
  2165. constant expression evaluation. The default is 262144 (1<<18).
  2166. '-fdeduce-init-list'
  2167. Enable deduction of a template type parameter as
  2168. 'std::initializer_list' from a brace-enclosed initializer list,
  2169. i.e.
  2170. template <class T> auto forward(T t) -> decltype (realfn (t))
  2171. {
  2172. return realfn (t);
  2173. }
  2174. void f()
  2175. {
  2176. forward({1,2}); // call forward<std::initializer_list<int>>
  2177. }
  2178. This deduction was implemented as a possible extension to the
  2179. originally proposed semantics for the C++11 standard, but was not
  2180. part of the final standard, so it is disabled by default. This
  2181. option is deprecated, and may be removed in a future version of
  2182. G++.
  2183. '-ffriend-injection'
  2184. Inject friend functions into the enclosing namespace, so that they
  2185. are visible outside the scope of the class in which they are
  2186. declared. Friend functions were documented to work this way in the
  2187. old Annotated C++ Reference Manual. However, in ISO C++ a friend
  2188. function that is not declared in an enclosing scope can only be
  2189. found using argument dependent lookup. GCC defaults to the
  2190. standard behavior.
  2191. This option is for compatibility, and may be removed in a future
  2192. release of G++.
  2193. '-fno-elide-constructors'
  2194. The C++ standard allows an implementation to omit creating a
  2195. temporary that is only used to initialize another object of the
  2196. same type. Specifying this option disables that optimization, and
  2197. forces G++ to call the copy constructor in all cases. This option
  2198. also causes G++ to call trivial member functions which otherwise
  2199. would be expanded inline.
  2200. In C++17, the compiler is required to omit these temporaries, but
  2201. this option still affects trivial member functions.
  2202. '-fno-enforce-eh-specs'
  2203. Don't generate code to check for violation of exception
  2204. specifications at run time. This option violates the C++ standard,
  2205. but may be useful for reducing code size in production builds, much
  2206. like defining 'NDEBUG'. This does not give user code permission to
  2207. throw exceptions in violation of the exception specifications; the
  2208. compiler still optimizes based on the specifications, so throwing
  2209. an unexpected exception results in undefined behavior at run time.
  2210. '-fextern-tls-init'
  2211. '-fno-extern-tls-init'
  2212. The C++11 and OpenMP standards allow 'thread_local' and
  2213. 'threadprivate' variables to have dynamic (runtime) initialization.
  2214. To support this, any use of such a variable goes through a wrapper
  2215. function that performs any necessary initialization. When the use
  2216. and definition of the variable are in the same translation unit,
  2217. this overhead can be optimized away, but when the use is in a
  2218. different translation unit there is significant overhead even if
  2219. the variable doesn't actually need dynamic initialization. If the
  2220. programmer can be sure that no use of the variable in a
  2221. non-defining TU needs to trigger dynamic initialization (either
  2222. because the variable is statically initialized, or a use of the
  2223. variable in the defining TU will be executed before any uses in
  2224. another TU), they can avoid this overhead with the
  2225. '-fno-extern-tls-init' option.
  2226. On targets that support symbol aliases, the default is
  2227. '-fextern-tls-init'. On targets that do not support symbol
  2228. aliases, the default is '-fno-extern-tls-init'.
  2229. '-ffor-scope'
  2230. '-fno-for-scope'
  2231. If '-ffor-scope' is specified, the scope of variables declared in a
  2232. for-init-statement is limited to the 'for' loop itself, as
  2233. specified by the C++ standard. If '-fno-for-scope' is specified,
  2234. the scope of variables declared in a for-init-statement extends to
  2235. the end of the enclosing scope, as was the case in old versions of
  2236. G++, and other (traditional) implementations of C++.
  2237. If neither flag is given, the default is to follow the standard,
  2238. but to allow and give a warning for old-style code that would
  2239. otherwise be invalid, or have different behavior.
  2240. '-fno-gnu-keywords'
  2241. Do not recognize 'typeof' as a keyword, so that code can use this
  2242. word as an identifier. You can use the keyword '__typeof__'
  2243. instead. This option is implied by the strict ISO C++ dialects:
  2244. '-ansi', '-std=c++98', '-std=c++11', etc.
  2245. '-fno-implicit-templates'
  2246. Never emit code for non-inline templates that are instantiated
  2247. implicitly (i.e. by use); only emit code for explicit
  2248. instantiations. *Note Template Instantiation::, for more
  2249. information.
  2250. '-fno-implicit-inline-templates'
  2251. Don't emit code for implicit instantiations of inline templates,
  2252. either. The default is to handle inlines differently so that
  2253. compiles with and without optimization need the same set of
  2254. explicit instantiations.
  2255. '-fno-implement-inlines'
  2256. To save space, do not emit out-of-line copies of inline functions
  2257. controlled by '#pragma implementation'. This causes linker errors
  2258. if these functions are not inlined everywhere they are called.
  2259. '-fms-extensions'
  2260. Disable Wpedantic warnings about constructs used in MFC, such as
  2261. implicit int and getting a pointer to member function via
  2262. non-standard syntax.
  2263. '-fnew-inheriting-ctors'
  2264. Enable the P0136 adjustment to the semantics of C++11 constructor
  2265. inheritance. This is part of C++17 but also considered to be a
  2266. Defect Report against C++11 and C++14. This flag is enabled by
  2267. default unless '-fabi-version=10' or lower is specified.
  2268. '-fnew-ttp-matching'
  2269. Enable the P0522 resolution to Core issue 150, template template
  2270. parameters and default arguments: this allows a template with
  2271. default template arguments as an argument for a template template
  2272. parameter with fewer template parameters. This flag is enabled by
  2273. default for '-std=c++1z'.
  2274. '-fno-nonansi-builtins'
  2275. Disable built-in declarations of functions that are not mandated by
  2276. ANSI/ISO C. These include 'ffs', 'alloca', '_exit', 'index',
  2277. 'bzero', 'conjf', and other related functions.
  2278. '-fnothrow-opt'
  2279. Treat a 'throw()' exception specification as if it were a
  2280. 'noexcept' specification to reduce or eliminate the text size
  2281. overhead relative to a function with no exception specification.
  2282. If the function has local variables of types with non-trivial
  2283. destructors, the exception specification actually makes the
  2284. function smaller because the EH cleanups for those variables can be
  2285. optimized away. The semantic effect is that an exception thrown
  2286. out of a function with such an exception specification results in a
  2287. call to 'terminate' rather than 'unexpected'.
  2288. '-fno-operator-names'
  2289. Do not treat the operator name keywords 'and', 'bitand', 'bitor',
  2290. 'compl', 'not', 'or' and 'xor' as synonyms as keywords.
  2291. '-fno-optional-diags'
  2292. Disable diagnostics that the standard says a compiler does not need
  2293. to issue. Currently, the only such diagnostic issued by G++ is the
  2294. one for a name having multiple meanings within a class.
  2295. '-fpermissive'
  2296. Downgrade some diagnostics about nonconformant code from errors to
  2297. warnings. Thus, using '-fpermissive' allows some nonconforming
  2298. code to compile.
  2299. '-fno-pretty-templates'
  2300. When an error message refers to a specialization of a function
  2301. template, the compiler normally prints the signature of the
  2302. template followed by the template arguments and any typedefs or
  2303. typenames in the signature (e.g. 'void f(T) [with T = int]' rather
  2304. than 'void f(int)') so that it's clear which template is involved.
  2305. When an error message refers to a specialization of a class
  2306. template, the compiler omits any template arguments that match the
  2307. default template arguments for that template. If either of these
  2308. behaviors make it harder to understand the error message rather
  2309. than easier, you can use '-fno-pretty-templates' to disable them.
  2310. '-frepo'
  2311. Enable automatic template instantiation at link time. This option
  2312. also implies '-fno-implicit-templates'. *Note Template
  2313. Instantiation::, for more information.
  2314. '-fno-rtti'
  2315. Disable generation of information about every class with virtual
  2316. functions for use by the C++ run-time type identification features
  2317. ('dynamic_cast' and 'typeid'). If you don't use those parts of the
  2318. language, you can save some space by using this flag. Note that
  2319. exception handling uses the same information, but G++ generates it
  2320. as needed. The 'dynamic_cast' operator can still be used for casts
  2321. that do not require run-time type information, i.e. casts to 'void
  2322. *' or to unambiguous base classes.
  2323. '-fsized-deallocation'
  2324. Enable the built-in global declarations
  2325. void operator delete (void *, std::size_t) noexcept;
  2326. void operator delete[] (void *, std::size_t) noexcept;
  2327. as introduced in C++14. This is useful for user-defined
  2328. replacement deallocation functions that, for example, use the size
  2329. of the object to make deallocation faster. Enabled by default
  2330. under '-std=c++14' and above. The flag '-Wsized-deallocation'
  2331. warns about places that might want to add a definition.
  2332. '-fstrict-enums'
  2333. Allow the compiler to optimize using the assumption that a value of
  2334. enumerated type can only be one of the values of the enumeration
  2335. (as defined in the C++ standard; basically, a value that can be
  2336. represented in the minimum number of bits needed to represent all
  2337. the enumerators). This assumption may not be valid if the program
  2338. uses a cast to convert an arbitrary integer value to the enumerated
  2339. type.
  2340. '-fstrong-eval-order'
  2341. Evaluate member access, array subscripting, and shift expressions
  2342. in left-to-right order, and evaluate assignment in right-to-left
  2343. order, as adopted for C++17. Enabled by default with '-std=c++1z'.
  2344. '-fstrong-eval-order=some' enables just the ordering of member
  2345. access and shift expressions, and is the default without
  2346. '-std=c++1z'.
  2347. '-ftemplate-backtrace-limit=N'
  2348. Set the maximum number of template instantiation notes for a single
  2349. warning or error to N. The default value is 10.
  2350. '-ftemplate-depth=N'
  2351. Set the maximum instantiation depth for template classes to N. A
  2352. limit on the template instantiation depth is needed to detect
  2353. endless recursions during template class instantiation. ANSI/ISO
  2354. C++ conforming programs must not rely on a maximum depth greater
  2355. than 17 (changed to 1024 in C++11). The default value is 900, as
  2356. the compiler can run out of stack space before hitting 1024 in some
  2357. situations.
  2358. '-fno-threadsafe-statics'
  2359. Do not emit the extra code to use the routines specified in the C++
  2360. ABI for thread-safe initialization of local statics. You can use
  2361. this option to reduce code size slightly in code that doesn't need
  2362. to be thread-safe.
  2363. '-fuse-cxa-atexit'
  2364. Register destructors for objects with static storage duration with
  2365. the '__cxa_atexit' function rather than the 'atexit' function.
  2366. This option is required for fully standards-compliant handling of
  2367. static destructors, but only works if your C library supports
  2368. '__cxa_atexit'.
  2369. '-fno-use-cxa-get-exception-ptr'
  2370. Don't use the '__cxa_get_exception_ptr' runtime routine. This
  2371. causes 'std::uncaught_exception' to be incorrect, but is necessary
  2372. if the runtime routine is not available.
  2373. '-fvisibility-inlines-hidden'
  2374. This switch declares that the user does not attempt to compare
  2375. pointers to inline functions or methods where the addresses of the
  2376. two functions are taken in different shared objects.
  2377. The effect of this is that GCC may, effectively, mark inline
  2378. methods with '__attribute__ ((visibility ("hidden")))' so that they
  2379. do not appear in the export table of a DSO and do not require a PLT
  2380. indirection when used within the DSO. Enabling this option can
  2381. have a dramatic effect on load and link times of a DSO as it
  2382. massively reduces the size of the dynamic export table when the
  2383. library makes heavy use of templates.
  2384. The behavior of this switch is not quite the same as marking the
  2385. methods as hidden directly, because it does not affect static
  2386. variables local to the function or cause the compiler to deduce
  2387. that the function is defined in only one shared object.
  2388. You may mark a method as having a visibility explicitly to negate
  2389. the effect of the switch for that method. For example, if you do
  2390. want to compare pointers to a particular inline method, you might
  2391. mark it as having default visibility. Marking the enclosing class
  2392. with explicit visibility has no effect.
  2393. Explicitly instantiated inline methods are unaffected by this
  2394. option as their linkage might otherwise cross a shared library
  2395. boundary. *Note Template Instantiation::.
  2396. '-fvisibility-ms-compat'
  2397. This flag attempts to use visibility settings to make GCC's C++
  2398. linkage model compatible with that of Microsoft Visual Studio.
  2399. The flag makes these changes to GCC's linkage model:
  2400. 1. It sets the default visibility to 'hidden', like
  2401. '-fvisibility=hidden'.
  2402. 2. Types, but not their members, are not hidden by default.
  2403. 3. The One Definition Rule is relaxed for types without explicit
  2404. visibility specifications that are defined in more than one
  2405. shared object: those declarations are permitted if they are
  2406. permitted when this option is not used.
  2407. In new code it is better to use '-fvisibility=hidden' and export
  2408. those classes that are intended to be externally visible.
  2409. Unfortunately it is possible for code to rely, perhaps
  2410. accidentally, on the Visual Studio behavior.
  2411. Among the consequences of these changes are that static data
  2412. members of the same type with the same name but defined in
  2413. different shared objects are different, so changing one does not
  2414. change the other; and that pointers to function members defined in
  2415. different shared objects may not compare equal. When this flag is
  2416. given, it is a violation of the ODR to define types with the same
  2417. name differently.
  2418. '-fno-weak'
  2419. Do not use weak symbol support, even if it is provided by the
  2420. linker. By default, G++ uses weak symbols if they are available.
  2421. This option exists only for testing, and should not be used by
  2422. end-users; it results in inferior code and has no benefits. This
  2423. option may be removed in a future release of G++.
  2424. '-nostdinc++'
  2425. Do not search for header files in the standard directories specific
  2426. to C++, but do still search the other standard directories. (This
  2427. option is used when building the C++ library.)
  2428. In addition, these optimization, warning, and code generation options
  2429. have meanings only for C++ programs:
  2430. '-Wabi (C, Objective-C, C++ and Objective-C++ only)'
  2431. Warn when G++ it generates code that is probably not compatible
  2432. with the vendor-neutral C++ ABI. Since G++ now defaults to
  2433. updating the ABI with each major release, normally '-Wabi' will
  2434. warn only if there is a check added later in a release series for
  2435. an ABI issue discovered since the initial release. '-Wabi' will
  2436. warn about more things if an older ABI version is selected (with
  2437. '-fabi-version=N').
  2438. '-Wabi' can also be used with an explicit version number to warn
  2439. about compatibility with a particular '-fabi-version' level, e.g.
  2440. '-Wabi=2' to warn about changes relative to '-fabi-version=2'.
  2441. If an explicit version number is provided and
  2442. '-fabi-compat-version' is not specified, the version number from
  2443. this option is used for compatibility aliases. If no explicit
  2444. version number is provided with this option, but
  2445. '-fabi-compat-version' is specified, that version number is used
  2446. for ABI warnings.
  2447. Although an effort has been made to warn about all such cases,
  2448. there are probably some cases that are not warned about, even
  2449. though G++ is generating incompatible code. There may also be
  2450. cases where warnings are emitted even though the code that is
  2451. generated is compatible.
  2452. You should rewrite your code to avoid these warnings if you are
  2453. concerned about the fact that code generated by G++ may not be
  2454. binary compatible with code generated by other compilers.
  2455. Known incompatibilities in '-fabi-version=2' (which was the default
  2456. from GCC 3.4 to 4.9) include:
  2457. * A template with a non-type template parameter of reference
  2458. type was mangled incorrectly:
  2459. extern int N;
  2460. template <int &> struct S {};
  2461. void n (S<N>) {2}
  2462. This was fixed in '-fabi-version=3'.
  2463. * SIMD vector types declared using '__attribute ((vector_size))'
  2464. were mangled in a non-standard way that does not allow for
  2465. overloading of functions taking vectors of different sizes.
  2466. The mangling was changed in '-fabi-version=4'.
  2467. * '__attribute ((const))' and 'noreturn' were mangled as type
  2468. qualifiers, and 'decltype' of a plain declaration was folded
  2469. away.
  2470. These mangling issues were fixed in '-fabi-version=5'.
  2471. * Scoped enumerators passed as arguments to a variadic function
  2472. are promoted like unscoped enumerators, causing 'va_arg' to
  2473. complain. On most targets this does not actually affect the
  2474. parameter passing ABI, as there is no way to pass an argument
  2475. smaller than 'int'.
  2476. Also, the ABI changed the mangling of template argument packs,
  2477. 'const_cast', 'static_cast', prefix increment/decrement, and a
  2478. class scope function used as a template argument.
  2479. These issues were corrected in '-fabi-version=6'.
  2480. * Lambdas in default argument scope were mangled incorrectly,
  2481. and the ABI changed the mangling of 'nullptr_t'.
  2482. These issues were corrected in '-fabi-version=7'.
  2483. * When mangling a function type with function-cv-qualifiers, the
  2484. un-qualified function type was incorrectly treated as a
  2485. substitution candidate.
  2486. This was fixed in '-fabi-version=8', the default for GCC 5.1.
  2487. * 'decltype(nullptr)' incorrectly had an alignment of 1, leading
  2488. to unaligned accesses. Note that this did not affect the ABI
  2489. of a function with a 'nullptr_t' parameter, as parameters have
  2490. a minimum alignment.
  2491. This was fixed in '-fabi-version=9', the default for GCC 5.2.
  2492. * Target-specific attributes that affect the identity of a type,
  2493. such as ia32 calling conventions on a function type (stdcall,
  2494. regparm, etc.), did not affect the mangled name, leading to
  2495. name collisions when function pointers were used as template
  2496. arguments.
  2497. This was fixed in '-fabi-version=10', the default for GCC 6.1.
  2498. It also warns about psABI-related changes. The known psABI changes
  2499. at this point include:
  2500. * For SysV/x86-64, unions with 'long double' members are passed
  2501. in memory as specified in psABI. For example:
  2502. union U {
  2503. long double ld;
  2504. int i;
  2505. };
  2506. 'union U' is always passed in memory.
  2507. '-Wabi-tag (C++ and Objective-C++ only)'
  2508. Warn when a type with an ABI tag is used in a context that does not
  2509. have that ABI tag. See *note C++ Attributes:: for more information
  2510. about ABI tags.
  2511. '-Wctor-dtor-privacy (C++ and Objective-C++ only)'
  2512. Warn when a class seems unusable because all the constructors or
  2513. destructors in that class are private, and it has neither friends
  2514. nor public static member functions. Also warn if there are no
  2515. non-private methods, and there's at least one private member
  2516. function that isn't a constructor or destructor.
  2517. '-Wdelete-non-virtual-dtor (C++ and Objective-C++ only)'
  2518. Warn when 'delete' is used to destroy an instance of a class that
  2519. has virtual functions and non-virtual destructor. It is unsafe to
  2520. delete an instance of a derived class through a pointer to a base
  2521. class if the base class does not have a virtual destructor. This
  2522. warning is enabled by '-Wall'.
  2523. '-Wliteral-suffix (C++ and Objective-C++ only)'
  2524. Warn when a string or character literal is followed by a ud-suffix
  2525. which does not begin with an underscore. As a conforming
  2526. extension, GCC treats such suffixes as separate preprocessing
  2527. tokens in order to maintain backwards compatibility with code that
  2528. uses formatting macros from '<inttypes.h>'. For example:
  2529. #define __STDC_FORMAT_MACROS
  2530. #include <inttypes.h>
  2531. #include <stdio.h>
  2532. int main() {
  2533. int64_t i64 = 123;
  2534. printf("My int64: %" PRId64"\n", i64);
  2535. }
  2536. In this case, 'PRId64' is treated as a separate preprocessing
  2537. token.
  2538. Additionally, warn when a user-defined literal operator is declared
  2539. with a literal suffix identifier that doesn't begin with an
  2540. underscore. Literal suffix identifiers that don't begin with an
  2541. underscore are reserved for future standardization.
  2542. This warning is enabled by default.
  2543. '-Wlto-type-mismatch'
  2544. During the link-time optimization warn about type mismatches in
  2545. global declarations from different compilation units. Requires
  2546. '-flto' to be enabled. Enabled by default.
  2547. '-Wno-narrowing (C++ and Objective-C++ only)'
  2548. For C++11 and later standards, narrowing conversions are diagnosed
  2549. by default, as required by the standard. A narrowing conversion
  2550. from a constant produces an error, and a narrowing conversion from
  2551. a non-constant produces a warning, but '-Wno-narrowing' suppresses
  2552. the diagnostic. Note that this does not affect the meaning of
  2553. well-formed code; narrowing conversions are still considered
  2554. ill-formed in SFINAE contexts.
  2555. With '-Wnarrowing' in C++98, warn when a narrowing conversion
  2556. prohibited by C++11 occurs within '{ }', e.g.
  2557. int i = { 2.2 }; // error: narrowing from double to int
  2558. This flag is included in '-Wall' and '-Wc++11-compat'.
  2559. '-Wnoexcept (C++ and Objective-C++ only)'
  2560. Warn when a noexcept-expression evaluates to false because of a
  2561. call to a function that does not have a non-throwing exception
  2562. specification (i.e. 'throw()' or 'noexcept') but is known by the
  2563. compiler to never throw an exception.
  2564. '-Wnoexcept-type (C++ and Objective-C++ only)'
  2565. Warn if the C++1z feature making 'noexcept' part of a function type
  2566. changes the mangled name of a symbol relative to C++14. Enabled by
  2567. '-Wabi' and '-Wc++1z-compat'.
  2568. template <class T> void f(T t) { t(); };
  2569. void g() noexcept;
  2570. void h() { f(g); } // in C++14 calls f<void(*)()>, in C++1z calls f<void(*)()noexcept>
  2571. '-Wnon-virtual-dtor (C++ and Objective-C++ only)'
  2572. Warn when a class has virtual functions and an accessible
  2573. non-virtual destructor itself or in an accessible polymorphic base
  2574. class, in which case it is possible but unsafe to delete an
  2575. instance of a derived class through a pointer to the class itself
  2576. or base class. This warning is automatically enabled if '-Weffc++'
  2577. is specified.
  2578. '-Wregister (C++ and Objective-C++ only)'
  2579. Warn on uses of the 'register' storage class specifier, except when
  2580. it is part of the GNU *note Explicit Register Variables::
  2581. extension. The use of the 'register' keyword as storage class
  2582. specifier has been deprecated in C++11 and removed in C++17.
  2583. Enabled by default with '-std=c++1z'.
  2584. '-Wreorder (C++ and Objective-C++ only)'
  2585. Warn when the order of member initializers given in the code does
  2586. not match the order in which they must be executed. For instance:
  2587. struct A {
  2588. int i;
  2589. int j;
  2590. A(): j (0), i (1) { }
  2591. };
  2592. The compiler rearranges the member initializers for 'i' and 'j' to
  2593. match the declaration order of the members, emitting a warning to
  2594. that effect. This warning is enabled by '-Wall'.
  2595. '-fext-numeric-literals (C++ and Objective-C++ only)'
  2596. Accept imaginary, fixed-point, or machine-defined literal number
  2597. suffixes as GNU extensions. When this option is turned off these
  2598. suffixes are treated as C++11 user-defined literal numeric
  2599. suffixes. This is on by default for all pre-C++11 dialects and all
  2600. GNU dialects: '-std=c++98', '-std=gnu++98', '-std=gnu++11',
  2601. '-std=gnu++14'. This option is off by default for ISO C++11
  2602. onwards ('-std=c++11', ...).
  2603. The following '-W...' options are not affected by '-Wall'.
  2604. '-Weffc++ (C++ and Objective-C++ only)'
  2605. Warn about violations of the following style guidelines from Scott
  2606. Meyers' 'Effective C++' series of books:
  2607. * Define a copy constructor and an assignment operator for
  2608. classes with dynamically-allocated memory.
  2609. * Prefer initialization to assignment in constructors.
  2610. * Have 'operator=' return a reference to '*this'.
  2611. * Don't try to return a reference when you must return an
  2612. object.
  2613. * Distinguish between prefix and postfix forms of increment and
  2614. decrement operators.
  2615. * Never overload '&&', '||', or ','.
  2616. This option also enables '-Wnon-virtual-dtor', which is also one of
  2617. the effective C++ recommendations. However, the check is extended
  2618. to warn about the lack of virtual destructor in accessible
  2619. non-polymorphic bases classes too.
  2620. When selecting this option, be aware that the standard library
  2621. headers do not obey all of these guidelines; use 'grep -v' to
  2622. filter out those warnings.
  2623. '-Wstrict-null-sentinel (C++ and Objective-C++ only)'
  2624. Warn about the use of an uncasted 'NULL' as sentinel. When
  2625. compiling only with GCC this is a valid sentinel, as 'NULL' is
  2626. defined to '__null'. Although it is a null pointer constant rather
  2627. than a null pointer, it is guaranteed to be of the same size as a
  2628. pointer. But this use is not portable across different compilers.
  2629. '-Wno-non-template-friend (C++ and Objective-C++ only)'
  2630. Disable warnings when non-template friend functions are declared
  2631. within a template. In very old versions of GCC that predate
  2632. implementation of the ISO standard, declarations such as 'friend
  2633. int foo(int)', where the name of the friend is an unqualified-id,
  2634. could be interpreted as a particular specialization of a template
  2635. function; the warning exists to diagnose compatibility problems,
  2636. and is enabled by default.
  2637. '-Wold-style-cast (C++ and Objective-C++ only)'
  2638. Warn if an old-style (C-style) cast to a non-void type is used
  2639. within a C++ program. The new-style casts ('dynamic_cast',
  2640. 'static_cast', 'reinterpret_cast', and 'const_cast') are less
  2641. vulnerable to unintended effects and much easier to search for.
  2642. '-Woverloaded-virtual (C++ and Objective-C++ only)'
  2643. Warn when a function declaration hides virtual functions from a
  2644. base class. For example, in:
  2645. struct A {
  2646. virtual void f();
  2647. };
  2648. struct B: public A {
  2649. void f(int);
  2650. };
  2651. the 'A' class version of 'f' is hidden in 'B', and code like:
  2652. B* b;
  2653. b->f();
  2654. fails to compile.
  2655. '-Wno-pmf-conversions (C++ and Objective-C++ only)'
  2656. Disable the diagnostic for converting a bound pointer to member
  2657. function to a plain pointer.
  2658. '-Wsign-promo (C++ and Objective-C++ only)'
  2659. Warn when overload resolution chooses a promotion from unsigned or
  2660. enumerated type to a signed type, over a conversion to an unsigned
  2661. type of the same size. Previous versions of G++ tried to preserve
  2662. unsignedness, but the standard mandates the current behavior.
  2663. '-Wtemplates (C++ and Objective-C++ only)'
  2664. Warn when a primary template declaration is encountered. Some
  2665. coding rules disallow templates, and this may be used to enforce
  2666. that rule. The warning is inactive inside a system header file,
  2667. such as the STL, so one can still use the STL. One may also
  2668. instantiate or specialize templates.
  2669. '-Wmultiple-inheritance (C++ and Objective-C++ only)'
  2670. Warn when a class is defined with multiple direct base classes.
  2671. Some coding rules disallow multiple inheritance, and this may be
  2672. used to enforce that rule. The warning is inactive inside a system
  2673. header file, such as the STL, so one can still use the STL. One may
  2674. also define classes that indirectly use multiple inheritance.
  2675. '-Wvirtual-inheritance'
  2676. Warn when a class is defined with a virtual direct base class.
  2677. Some coding rules disallow multiple inheritance, and this may be
  2678. used to enforce that rule. The warning is inactive inside a system
  2679. header file, such as the STL, so one can still use the STL. One may
  2680. also define classes that indirectly use virtual inheritance.
  2681. '-Wnamespaces'
  2682. Warn when a namespace definition is opened. Some coding rules
  2683. disallow namespaces, and this may be used to enforce that rule.
  2684. The warning is inactive inside a system header file, such as the
  2685. STL, so one can still use the STL. One may also use using
  2686. directives and qualified names.
  2687. '-Wno-terminate (C++ and Objective-C++ only)'
  2688. Disable the warning about a throw-expression that will immediately
  2689. result in a call to 'terminate'.
  2690. 
  2691. File: gcc.info, Node: Objective-C and Objective-C++ Dialect Options, Next: Diagnostic Message Formatting Options, Prev: C++ Dialect Options, Up: Invoking GCC
  2692. 3.6 Options Controlling Objective-C and Objective-C++ Dialects
  2693. ==============================================================
  2694. (NOTE: This manual does not describe the Objective-C and Objective-C++
  2695. languages themselves. *Note Language Standards Supported by GCC:
  2696. Standards, for references.)
  2697. This section describes the command-line options that are only
  2698. meaningful for Objective-C and Objective-C++ programs. You can also use
  2699. most of the language-independent GNU compiler options. For example, you
  2700. might compile a file 'some_class.m' like this:
  2701. gcc -g -fgnu-runtime -O -c some_class.m
  2702. In this example, '-fgnu-runtime' is an option meant only for Objective-C
  2703. and Objective-C++ programs; you can use the other options with any
  2704. language supported by GCC.
  2705. Note that since Objective-C is an extension of the C language,
  2706. Objective-C compilations may also use options specific to the C
  2707. front-end (e.g., '-Wtraditional'). Similarly, Objective-C++
  2708. compilations may use C++-specific options (e.g., '-Wabi').
  2709. Here is a list of options that are _only_ for compiling Objective-C and
  2710. Objective-C++ programs:
  2711. '-fconstant-string-class=CLASS-NAME'
  2712. Use CLASS-NAME as the name of the class to instantiate for each
  2713. literal string specified with the syntax '@"..."'. The default
  2714. class name is 'NXConstantString' if the GNU runtime is being used,
  2715. and 'NSConstantString' if the NeXT runtime is being used (see
  2716. below). The '-fconstant-cfstrings' option, if also present,
  2717. overrides the '-fconstant-string-class' setting and cause '@"..."'
  2718. literals to be laid out as constant CoreFoundation strings.
  2719. '-fgnu-runtime'
  2720. Generate object code compatible with the standard GNU Objective-C
  2721. runtime. This is the default for most types of systems.
  2722. '-fnext-runtime'
  2723. Generate output compatible with the NeXT runtime. This is the
  2724. default for NeXT-based systems, including Darwin and Mac OS X. The
  2725. macro '__NEXT_RUNTIME__' is predefined if (and only if) this option
  2726. is used.
  2727. '-fno-nil-receivers'
  2728. Assume that all Objective-C message dispatches ('[receiver
  2729. message:arg]') in this translation unit ensure that the receiver is
  2730. not 'nil'. This allows for more efficient entry points in the
  2731. runtime to be used. This option is only available in conjunction
  2732. with the NeXT runtime and ABI version 0 or 1.
  2733. '-fobjc-abi-version=N'
  2734. Use version N of the Objective-C ABI for the selected runtime.
  2735. This option is currently supported only for the NeXT runtime. In
  2736. that case, Version 0 is the traditional (32-bit) ABI without
  2737. support for properties and other Objective-C 2.0 additions.
  2738. Version 1 is the traditional (32-bit) ABI with support for
  2739. properties and other Objective-C 2.0 additions. Version 2 is the
  2740. modern (64-bit) ABI. If nothing is specified, the default is
  2741. Version 0 on 32-bit target machines, and Version 2 on 64-bit target
  2742. machines.
  2743. '-fobjc-call-cxx-cdtors'
  2744. For each Objective-C class, check if any of its instance variables
  2745. is a C++ object with a non-trivial default constructor. If so,
  2746. synthesize a special '- (id) .cxx_construct' instance method which
  2747. runs non-trivial default constructors on any such instance
  2748. variables, in order, and then return 'self'. Similarly, check if
  2749. any instance variable is a C++ object with a non-trivial
  2750. destructor, and if so, synthesize a special '- (void)
  2751. .cxx_destruct' method which runs all such default destructors, in
  2752. reverse order.
  2753. The '- (id) .cxx_construct' and '- (void) .cxx_destruct' methods
  2754. thusly generated only operate on instance variables declared in the
  2755. current Objective-C class, and not those inherited from
  2756. superclasses. It is the responsibility of the Objective-C runtime
  2757. to invoke all such methods in an object's inheritance hierarchy.
  2758. The '- (id) .cxx_construct' methods are invoked by the runtime
  2759. immediately after a new object instance is allocated; the '- (void)
  2760. .cxx_destruct' methods are invoked immediately before the runtime
  2761. deallocates an object instance.
  2762. As of this writing, only the NeXT runtime on Mac OS X 10.4 and
  2763. later has support for invoking the '- (id) .cxx_construct' and '-
  2764. (void) .cxx_destruct' methods.
  2765. '-fobjc-direct-dispatch'
  2766. Allow fast jumps to the message dispatcher. On Darwin this is
  2767. accomplished via the comm page.
  2768. '-fobjc-exceptions'
  2769. Enable syntactic support for structured exception handling in
  2770. Objective-C, similar to what is offered by C++. This option is
  2771. required to use the Objective-C keywords '@try', '@throw',
  2772. '@catch', '@finally' and '@synchronized'. This option is available
  2773. with both the GNU runtime and the NeXT runtime (but not available
  2774. in conjunction with the NeXT runtime on Mac OS X 10.2 and earlier).
  2775. '-fobjc-gc'
  2776. Enable garbage collection (GC) in Objective-C and Objective-C++
  2777. programs. This option is only available with the NeXT runtime; the
  2778. GNU runtime has a different garbage collection implementation that
  2779. does not require special compiler flags.
  2780. '-fobjc-nilcheck'
  2781. For the NeXT runtime with version 2 of the ABI, check for a nil
  2782. receiver in method invocations before doing the actual method call.
  2783. This is the default and can be disabled using '-fno-objc-nilcheck'.
  2784. Class methods and super calls are never checked for nil in this way
  2785. no matter what this flag is set to. Currently this flag does
  2786. nothing when the GNU runtime, or an older version of the NeXT
  2787. runtime ABI, is used.
  2788. '-fobjc-std=objc1'
  2789. Conform to the language syntax of Objective-C 1.0, the language
  2790. recognized by GCC 4.0. This only affects the Objective-C additions
  2791. to the C/C++ language; it does not affect conformance to C/C++
  2792. standards, which is controlled by the separate C/C++ dialect option
  2793. flags. When this option is used with the Objective-C or
  2794. Objective-C++ compiler, any Objective-C syntax that is not
  2795. recognized by GCC 4.0 is rejected. This is useful if you need to
  2796. make sure that your Objective-C code can be compiled with older
  2797. versions of GCC.
  2798. '-freplace-objc-classes'
  2799. Emit a special marker instructing 'ld(1)' not to statically link in
  2800. the resulting object file, and allow 'dyld(1)' to load it in at run
  2801. time instead. This is used in conjunction with the
  2802. Fix-and-Continue debugging mode, where the object file in question
  2803. may be recompiled and dynamically reloaded in the course of program
  2804. execution, without the need to restart the program itself.
  2805. Currently, Fix-and-Continue functionality is only available in
  2806. conjunction with the NeXT runtime on Mac OS X 10.3 and later.
  2807. '-fzero-link'
  2808. When compiling for the NeXT runtime, the compiler ordinarily
  2809. replaces calls to 'objc_getClass("...")' (when the name of the
  2810. class is known at compile time) with static class references that
  2811. get initialized at load time, which improves run-time performance.
  2812. Specifying the '-fzero-link' flag suppresses this behavior and
  2813. causes calls to 'objc_getClass("...")' to be retained. This is
  2814. useful in Zero-Link debugging mode, since it allows for individual
  2815. class implementations to be modified during program execution. The
  2816. GNU runtime currently always retains calls to
  2817. 'objc_get_class("...")' regardless of command-line options.
  2818. '-fno-local-ivars'
  2819. By default instance variables in Objective-C can be accessed as if
  2820. they were local variables from within the methods of the class
  2821. they're declared in. This can lead to shadowing between instance
  2822. variables and other variables declared either locally inside a
  2823. class method or globally with the same name. Specifying the
  2824. '-fno-local-ivars' flag disables this behavior thus avoiding
  2825. variable shadowing issues.
  2826. '-fivar-visibility=[public|protected|private|package]'
  2827. Set the default instance variable visibility to the specified
  2828. option so that instance variables declared outside the scope of any
  2829. access modifier directives default to the specified visibility.
  2830. '-gen-decls'
  2831. Dump interface declarations for all classes seen in the source file
  2832. to a file named 'SOURCENAME.decl'.
  2833. '-Wassign-intercept (Objective-C and Objective-C++ only)'
  2834. Warn whenever an Objective-C assignment is being intercepted by the
  2835. garbage collector.
  2836. '-Wno-protocol (Objective-C and Objective-C++ only)'
  2837. If a class is declared to implement a protocol, a warning is issued
  2838. for every method in the protocol that is not implemented by the
  2839. class. The default behavior is to issue a warning for every method
  2840. not explicitly implemented in the class, even if a method
  2841. implementation is inherited from the superclass. If you use the
  2842. '-Wno-protocol' option, then methods inherited from the superclass
  2843. are considered to be implemented, and no warning is issued for
  2844. them.
  2845. '-Wselector (Objective-C and Objective-C++ only)'
  2846. Warn if multiple methods of different types for the same selector
  2847. are found during compilation. The check is performed on the list
  2848. of methods in the final stage of compilation. Additionally, a
  2849. check is performed for each selector appearing in a
  2850. '@selector(...)' expression, and a corresponding method for that
  2851. selector has been found during compilation. Because these checks
  2852. scan the method table only at the end of compilation, these
  2853. warnings are not produced if the final stage of compilation is not
  2854. reached, for example because an error is found during compilation,
  2855. or because the '-fsyntax-only' option is being used.
  2856. '-Wstrict-selector-match (Objective-C and Objective-C++ only)'
  2857. Warn if multiple methods with differing argument and/or return
  2858. types are found for a given selector when attempting to send a
  2859. message using this selector to a receiver of type 'id' or 'Class'.
  2860. When this flag is off (which is the default behavior), the compiler
  2861. omits such warnings if any differences found are confined to types
  2862. that share the same size and alignment.
  2863. '-Wundeclared-selector (Objective-C and Objective-C++ only)'
  2864. Warn if a '@selector(...)' expression referring to an undeclared
  2865. selector is found. A selector is considered undeclared if no
  2866. method with that name has been declared before the '@selector(...)'
  2867. expression, either explicitly in an '@interface' or '@protocol'
  2868. declaration, or implicitly in an '@implementation' section. This
  2869. option always performs its checks as soon as a '@selector(...)'
  2870. expression is found, while '-Wselector' only performs its checks in
  2871. the final stage of compilation. This also enforces the coding
  2872. style convention that methods and selectors must be declared before
  2873. being used.
  2874. '-print-objc-runtime-info'
  2875. Generate C header describing the largest structure that is passed
  2876. by value, if any.
  2877. 
  2878. File: gcc.info, Node: Diagnostic Message Formatting Options, Next: Warning Options, Prev: Objective-C and Objective-C++ Dialect Options, Up: Invoking GCC
  2879. 3.7 Options to Control Diagnostic Messages Formatting
  2880. =====================================================
  2881. Traditionally, diagnostic messages have been formatted irrespective of
  2882. the output device's aspect (e.g. its width, ...). You can use the
  2883. options described below to control the formatting algorithm for
  2884. diagnostic messages, e.g. how many characters per line, how often source
  2885. location information should be reported. Note that some language front
  2886. ends may not honor these options.
  2887. '-fmessage-length=N'
  2888. Try to format error messages so that they fit on lines of about N
  2889. characters. If N is zero, then no line-wrapping is done; each
  2890. error message appears on a single line. This is the default for
  2891. all front ends.
  2892. '-fdiagnostics-show-location=once'
  2893. Only meaningful in line-wrapping mode. Instructs the diagnostic
  2894. messages reporter to emit source location information _once_; that
  2895. is, in case the message is too long to fit on a single physical
  2896. line and has to be wrapped, the source location won't be emitted
  2897. (as prefix) again, over and over, in subsequent continuation lines.
  2898. This is the default behavior.
  2899. '-fdiagnostics-show-location=every-line'
  2900. Only meaningful in line-wrapping mode. Instructs the diagnostic
  2901. messages reporter to emit the same source location information (as
  2902. prefix) for physical lines that result from the process of breaking
  2903. a message which is too long to fit on a single line.
  2904. '-fdiagnostics-color[=WHEN]'
  2905. '-fno-diagnostics-color'
  2906. Use color in diagnostics. WHEN is 'never', 'always', or 'auto'.
  2907. The default depends on how the compiler has been configured, it can
  2908. be any of the above WHEN options or also 'never' if 'GCC_COLORS'
  2909. environment variable isn't present in the environment, and 'auto'
  2910. otherwise. 'auto' means to use color only when the standard error
  2911. is a terminal. The forms '-fdiagnostics-color' and
  2912. '-fno-diagnostics-color' are aliases for
  2913. '-fdiagnostics-color=always' and '-fdiagnostics-color=never',
  2914. respectively.
  2915. The colors are defined by the environment variable 'GCC_COLORS'.
  2916. Its value is a colon-separated list of capabilities and Select
  2917. Graphic Rendition (SGR) substrings. SGR commands are interpreted
  2918. by the terminal or terminal emulator. (See the section in the
  2919. documentation of your text terminal for permitted values and their
  2920. meanings as character attributes.) These substring values are
  2921. integers in decimal representation and can be concatenated with
  2922. semicolons. Common values to concatenate include '1' for bold, '4'
  2923. for underline, '5' for blink, '7' for inverse, '39' for default
  2924. foreground color, '30' to '37' for foreground colors, '90' to '97'
  2925. for 16-color mode foreground colors, '38;5;0' to '38;5;255' for
  2926. 88-color and 256-color modes foreground colors, '49' for default
  2927. background color, '40' to '47' for background colors, '100' to
  2928. '107' for 16-color mode background colors, and '48;5;0' to
  2929. '48;5;255' for 88-color and 256-color modes background colors.
  2930. The default 'GCC_COLORS' is
  2931. error=01;31:warning=01;35:note=01;36:range1=32:range2=34:locus=01:\
  2932. quote=01:fixit-insert=32:fixit-delete=31:\
  2933. diff-filename=01:diff-hunk=32:diff-delete=31:diff-insert=32
  2934. where '01;31' is bold red, '01;35' is bold magenta, '01;36' is bold
  2935. cyan, '32' is green, '34' is blue, '01' is bold, and '31' is red.
  2936. Setting 'GCC_COLORS' to the empty string disables colors.
  2937. Supported capabilities are as follows.
  2938. 'error='
  2939. SGR substring for error: markers.
  2940. 'warning='
  2941. SGR substring for warning: markers.
  2942. 'note='
  2943. SGR substring for note: markers.
  2944. 'range1='
  2945. SGR substring for first additional range.
  2946. 'range2='
  2947. SGR substring for second additional range.
  2948. 'locus='
  2949. SGR substring for location information, 'file:line' or
  2950. 'file:line:column' etc.
  2951. 'quote='
  2952. SGR substring for information printed within quotes.
  2953. 'fixit-insert='
  2954. SGR substring for fix-it hints suggesting text to be inserted
  2955. or replaced.
  2956. 'fixit-delete='
  2957. SGR substring for fix-it hints suggesting text to be deleted.
  2958. 'diff-filename='
  2959. SGR substring for filename headers within generated patches.
  2960. 'diff-hunk='
  2961. SGR substring for the starts of hunks within generated
  2962. patches.
  2963. 'diff-delete='
  2964. SGR substring for deleted lines within generated patches.
  2965. 'diff-insert='
  2966. SGR substring for inserted lines within generated patches.
  2967. '-fno-diagnostics-show-option'
  2968. By default, each diagnostic emitted includes text indicating the
  2969. command-line option that directly controls the diagnostic (if such
  2970. an option is known to the diagnostic machinery). Specifying the
  2971. '-fno-diagnostics-show-option' flag suppresses that behavior.
  2972. '-fno-diagnostics-show-caret'
  2973. By default, each diagnostic emitted includes the original source
  2974. line and a caret '^' indicating the column. This option suppresses
  2975. this information. The source line is truncated to N characters, if
  2976. the '-fmessage-length=n' option is given. When the output is done
  2977. to the terminal, the width is limited to the width given by the
  2978. 'COLUMNS' environment variable or, if not set, to the terminal
  2979. width.
  2980. '-fdiagnostics-parseable-fixits'
  2981. Emit fix-it hints in a machine-parseable format, suitable for
  2982. consumption by IDEs. For each fix-it, a line will be printed after
  2983. the relevant diagnostic, starting with the string "fix-it:". For
  2984. example:
  2985. fix-it:"test.c":{45:3-45:21}:"gtk_widget_show_all"
  2986. The location is expressed as a half-open range, expressed as a
  2987. count of bytes, starting at byte 1 for the initial column. In the
  2988. above example, bytes 3 through 20 of line 45 of "test.c" are to be
  2989. replaced with the given string:
  2990. 00000000011111111112222222222
  2991. 12345678901234567890123456789
  2992. gtk_widget_showall (dlg);
  2993. ^^^^^^^^^^^^^^^^^^
  2994. gtk_widget_show_all
  2995. The filename and replacement string escape backslash as "\\", tab
  2996. as "\t", newline as "\n", double quotes as "\"", non-printable
  2997. characters as octal (e.g. vertical tab as "\013").
  2998. An empty replacement string indicates that the given range is to be
  2999. removed. An empty range (e.g. "45:3-45:3") indicates that the
  3000. string is to be inserted at the given position.
  3001. '-fdiagnostics-generate-patch'
  3002. Print fix-it hints to stderr in unified diff format, after any
  3003. diagnostics are printed. For example:
  3004. --- test.c
  3005. +++ test.c
  3006. @ -42,5 +42,5 @
  3007. void show_cb(GtkDialog *dlg)
  3008. {
  3009. - gtk_widget_showall(dlg);
  3010. + gtk_widget_show_all(dlg);
  3011. }
  3012. The diff may or may not be colorized, following the same rules as
  3013. for diagnostics (see '-fdiagnostics-color').
  3014. '-fno-show-column'
  3015. Do not print column numbers in diagnostics. This may be necessary
  3016. if diagnostics are being scanned by a program that does not
  3017. understand the column numbers, such as 'dejagnu'.
  3018. 
  3019. File: gcc.info, Node: Warning Options, Next: Debugging Options, Prev: Diagnostic Message Formatting Options, Up: Invoking GCC
  3020. 3.8 Options to Request or Suppress Warnings
  3021. ===========================================
  3022. Warnings are diagnostic messages that report constructions that are not
  3023. inherently erroneous but that are risky or suggest there may have been
  3024. an error.
  3025. The following language-independent options do not enable specific
  3026. warnings but control the kinds of diagnostics produced by GCC.
  3027. '-fsyntax-only'
  3028. Check the code for syntax errors, but don't do anything beyond
  3029. that.
  3030. '-fmax-errors=N'
  3031. Limits the maximum number of error messages to N, at which point
  3032. GCC bails out rather than attempting to continue processing the
  3033. source code. If N is 0 (the default), there is no limit on the
  3034. number of error messages produced. If '-Wfatal-errors' is also
  3035. specified, then '-Wfatal-errors' takes precedence over this option.
  3036. '-w'
  3037. Inhibit all warning messages.
  3038. '-Werror'
  3039. Make all warnings into errors.
  3040. '-Werror='
  3041. Make the specified warning into an error. The specifier for a
  3042. warning is appended; for example '-Werror=switch' turns the
  3043. warnings controlled by '-Wswitch' into errors. This switch takes a
  3044. negative form, to be used to negate '-Werror' for specific
  3045. warnings; for example '-Wno-error=switch' makes '-Wswitch' warnings
  3046. not be errors, even when '-Werror' is in effect.
  3047. The warning message for each controllable warning includes the
  3048. option that controls the warning. That option can then be used
  3049. with '-Werror=' and '-Wno-error=' as described above. (Printing of
  3050. the option in the warning message can be disabled using the
  3051. '-fno-diagnostics-show-option' flag.)
  3052. Note that specifying '-Werror='FOO automatically implies '-W'FOO.
  3053. However, '-Wno-error='FOO does not imply anything.
  3054. '-Wfatal-errors'
  3055. This option causes the compiler to abort compilation on the first
  3056. error occurred rather than trying to keep going and printing
  3057. further error messages.
  3058. You can request many specific warnings with options beginning with
  3059. '-W', for example '-Wimplicit' to request warnings on implicit
  3060. declarations. Each of these specific warning options also has a
  3061. negative form beginning '-Wno-' to turn off warnings; for example,
  3062. '-Wno-implicit'. This manual lists only one of the two forms, whichever
  3063. is not the default. For further language-specific options also refer to
  3064. *note C++ Dialect Options:: and *note Objective-C and Objective-C++
  3065. Dialect Options::.
  3066. Some options, such as '-Wall' and '-Wextra', turn on other options,
  3067. such as '-Wunused', which may turn on further options, such as
  3068. '-Wunused-value'. The combined effect of positive and negative forms is
  3069. that more specific options have priority over less specific ones,
  3070. independently of their position in the command-line. For options of the
  3071. same specificity, the last one takes effect. Options enabled or
  3072. disabled via pragmas (*note Diagnostic Pragmas::) take effect as if they
  3073. appeared at the end of the command-line.
  3074. When an unrecognized warning option is requested (e.g.,
  3075. '-Wunknown-warning'), GCC emits a diagnostic stating that the option is
  3076. not recognized. However, if the '-Wno-' form is used, the behavior is
  3077. slightly different: no diagnostic is produced for '-Wno-unknown-warning'
  3078. unless other diagnostics are being produced. This allows the use of new
  3079. '-Wno-' options with old compilers, but if something goes wrong, the
  3080. compiler warns that an unrecognized option is present.
  3081. '-Wpedantic'
  3082. '-pedantic'
  3083. Issue all the warnings demanded by strict ISO C and ISO C++; reject
  3084. all programs that use forbidden extensions, and some other programs
  3085. that do not follow ISO C and ISO C++. For ISO C, follows the
  3086. version of the ISO C standard specified by any '-std' option used.
  3087. Valid ISO C and ISO C++ programs should compile properly with or
  3088. without this option (though a rare few require '-ansi' or a '-std'
  3089. option specifying the required version of ISO C). However, without
  3090. this option, certain GNU extensions and traditional C and C++
  3091. features are supported as well. With this option, they are
  3092. rejected.
  3093. '-Wpedantic' does not cause warning messages for use of the
  3094. alternate keywords whose names begin and end with '__'. Pedantic
  3095. warnings are also disabled in the expression that follows
  3096. '__extension__'. However, only system header files should use
  3097. these escape routes; application programs should avoid them. *Note
  3098. Alternate Keywords::.
  3099. Some users try to use '-Wpedantic' to check programs for strict ISO
  3100. C conformance. They soon find that it does not do quite what they
  3101. want: it finds some non-ISO practices, but not all--only those for
  3102. which ISO C _requires_ a diagnostic, and some others for which
  3103. diagnostics have been added.
  3104. A feature to report any failure to conform to ISO C might be useful
  3105. in some instances, but would require considerable additional work
  3106. and would be quite different from '-Wpedantic'. We don't have
  3107. plans to support such a feature in the near future.
  3108. Where the standard specified with '-std' represents a GNU extended
  3109. dialect of C, such as 'gnu90' or 'gnu99', there is a corresponding
  3110. "base standard", the version of ISO C on which the GNU extended
  3111. dialect is based. Warnings from '-Wpedantic' are given where they
  3112. are required by the base standard. (It does not make sense for
  3113. such warnings to be given only for features not in the specified
  3114. GNU C dialect, since by definition the GNU dialects of C include
  3115. all features the compiler supports with the given option, and there
  3116. would be nothing to warn about.)
  3117. '-pedantic-errors'
  3118. Give an error whenever the "base standard" (see '-Wpedantic')
  3119. requires a diagnostic, in some cases where there is undefined
  3120. behavior at compile-time and in some other cases that do not
  3121. prevent compilation of programs that are valid according to the
  3122. standard. This is not equivalent to '-Werror=pedantic', since
  3123. there are errors enabled by this option and not enabled by the
  3124. latter and vice versa.
  3125. '-Wall'
  3126. This enables all the warnings about constructions that some users
  3127. consider questionable, and that are easy to avoid (or modify to
  3128. prevent the warning), even in conjunction with macros. This also
  3129. enables some language-specific warnings described in *note C++
  3130. Dialect Options:: and *note Objective-C and Objective-C++ Dialect
  3131. Options::.
  3132. '-Wall' turns on the following warning flags:
  3133. -Waddress
  3134. -Warray-bounds=1 (only with -O2)
  3135. -Wbool-compare
  3136. -Wbool-operation
  3137. -Wc++11-compat -Wc++14-compat
  3138. -Wchar-subscripts
  3139. -Wcomment
  3140. -Wduplicate-decl-specifier (C and Objective-C only)
  3141. -Wenum-compare (in C/ObjC; this is on by default in C++)
  3142. -Wformat
  3143. -Wint-in-bool-context
  3144. -Wimplicit (C and Objective-C only)
  3145. -Wimplicit-int (C and Objective-C only)
  3146. -Wimplicit-function-declaration (C and Objective-C only)
  3147. -Winit-self (only for C++)
  3148. -Wlogical-not-parentheses
  3149. -Wmain (only for C/ObjC and unless -ffreestanding)
  3150. -Wmaybe-uninitialized
  3151. -Wmemset-elt-size
  3152. -Wmemset-transposed-args
  3153. -Wmisleading-indentation (only for C/C++)
  3154. -Wmissing-braces (only for C/ObjC)
  3155. -Wnarrowing (only for C++)
  3156. -Wnonnull
  3157. -Wnonnull-compare
  3158. -Wopenmp-simd
  3159. -Wparentheses
  3160. -Wpointer-sign
  3161. -Wreorder
  3162. -Wreturn-type
  3163. -Wsequence-point
  3164. -Wsign-compare (only in C++)
  3165. -Wsizeof-pointer-memaccess
  3166. -Wstrict-aliasing
  3167. -Wstrict-overflow=1
  3168. -Wswitch
  3169. -Wtautological-compare
  3170. -Wtrigraphs
  3171. -Wuninitialized
  3172. -Wunknown-pragmas
  3173. -Wunused-function
  3174. -Wunused-label
  3175. -Wunused-value
  3176. -Wunused-variable
  3177. -Wvolatile-register-var
  3178. Note that some warning flags are not implied by '-Wall'. Some of
  3179. them warn about constructions that users generally do not consider
  3180. questionable, but which occasionally you might wish to check for;
  3181. others warn about constructions that are necessary or hard to avoid
  3182. in some cases, and there is no simple way to modify the code to
  3183. suppress the warning. Some of them are enabled by '-Wextra' but
  3184. many of them must be enabled individually.
  3185. '-Wextra'
  3186. This enables some extra warning flags that are not enabled by
  3187. '-Wall'. (This option used to be called '-W'. The older name is
  3188. still supported, but the newer name is more descriptive.)
  3189. -Wclobbered
  3190. -Wempty-body
  3191. -Wignored-qualifiers
  3192. -Wimplicit-fallthrough=3
  3193. -Wmissing-field-initializers
  3194. -Wmissing-parameter-type (C only)
  3195. -Wold-style-declaration (C only)
  3196. -Woverride-init
  3197. -Wsign-compare (C only)
  3198. -Wtype-limits
  3199. -Wuninitialized
  3200. -Wshift-negative-value (in C++03 and in C99 and newer)
  3201. -Wunused-parameter (only with -Wunused or -Wall)
  3202. -Wunused-but-set-parameter (only with -Wunused or -Wall)
  3203. The option '-Wextra' also prints warning messages for the following
  3204. cases:
  3205. * A pointer is compared against integer zero with '<', '<=',
  3206. '>', or '>='.
  3207. * (C++ only) An enumerator and a non-enumerator both appear in a
  3208. conditional expression.
  3209. * (C++ only) Ambiguous virtual bases.
  3210. * (C++ only) Subscripting an array that has been declared
  3211. 'register'.
  3212. * (C++ only) Taking the address of a variable that has been
  3213. declared 'register'.
  3214. * (C++ only) A base class is not initialized in the copy
  3215. constructor of a derived class.
  3216. '-Wchar-subscripts'
  3217. Warn if an array subscript has type 'char'. This is a common cause
  3218. of error, as programmers often forget that this type is signed on
  3219. some machines. This warning is enabled by '-Wall'.
  3220. '-Wchkp'
  3221. Warn about an invalid memory access that is found by Pointer Bounds
  3222. Checker ('-fcheck-pointer-bounds').
  3223. '-Wno-coverage-mismatch'
  3224. Warn if feedback profiles do not match when using the
  3225. '-fprofile-use' option. If a source file is changed between
  3226. compiling with '-fprofile-gen' and with '-fprofile-use', the files
  3227. with the profile feedback can fail to match the source file and GCC
  3228. cannot use the profile feedback information. By default, this
  3229. warning is enabled and is treated as an error.
  3230. '-Wno-coverage-mismatch' can be used to disable the warning or
  3231. '-Wno-error=coverage-mismatch' can be used to disable the error.
  3232. Disabling the error for this warning can result in poorly optimized
  3233. code and is useful only in the case of very minor changes such as
  3234. bug fixes to an existing code-base. Completely disabling the
  3235. warning is not recommended.
  3236. '-Wno-cpp'
  3237. (C, Objective-C, C++, Objective-C++ and Fortran only)
  3238. Suppress warning messages emitted by '#warning' directives.
  3239. '-Wdouble-promotion (C, C++, Objective-C and Objective-C++ only)'
  3240. Give a warning when a value of type 'float' is implicitly promoted
  3241. to 'double'. CPUs with a 32-bit "single-precision" floating-point
  3242. unit implement 'float' in hardware, but emulate 'double' in
  3243. software. On such a machine, doing computations using 'double'
  3244. values is much more expensive because of the overhead required for
  3245. software emulation.
  3246. It is easy to accidentally do computations with 'double' because
  3247. floating-point literals are implicitly of type 'double'. For
  3248. example, in:
  3249. float area(float radius)
  3250. {
  3251. return 3.14159 * radius * radius;
  3252. }
  3253. the compiler performs the entire computation with 'double' because
  3254. the floating-point literal is a 'double'.
  3255. '-Wduplicate-decl-specifier (C and Objective-C only)'
  3256. Warn if a declaration has duplicate 'const', 'volatile', 'restrict'
  3257. or '_Atomic' specifier. This warning is enabled by '-Wall'.
  3258. '-Wformat'
  3259. '-Wformat=N'
  3260. Check calls to 'printf' and 'scanf', etc., to make sure that the
  3261. arguments supplied have types appropriate to the format string
  3262. specified, and that the conversions specified in the format string
  3263. make sense. This includes standard functions, and others specified
  3264. by format attributes (*note Function Attributes::), in the
  3265. 'printf', 'scanf', 'strftime' and 'strfmon' (an X/Open extension,
  3266. not in the C standard) families (or other target-specific
  3267. families). Which functions are checked without format attributes
  3268. having been specified depends on the standard version selected, and
  3269. such checks of functions without the attribute specified are
  3270. disabled by '-ffreestanding' or '-fno-builtin'.
  3271. The formats are checked against the format features supported by
  3272. GNU libc version 2.2. These include all ISO C90 and C99 features,
  3273. as well as features from the Single Unix Specification and some BSD
  3274. and GNU extensions. Other library implementations may not support
  3275. all these features; GCC does not support warning about features
  3276. that go beyond a particular library's limitations. However, if
  3277. '-Wpedantic' is used with '-Wformat', warnings are given about
  3278. format features not in the selected standard version (but not for
  3279. 'strfmon' formats, since those are not in any version of the C
  3280. standard). *Note Options Controlling C Dialect: C Dialect Options.
  3281. '-Wformat=1'
  3282. '-Wformat'
  3283. Option '-Wformat' is equivalent to '-Wformat=1', and
  3284. '-Wno-format' is equivalent to '-Wformat=0'. Since '-Wformat'
  3285. also checks for null format arguments for several functions,
  3286. '-Wformat' also implies '-Wnonnull'. Some aspects of this
  3287. level of format checking can be disabled by the options:
  3288. '-Wno-format-contains-nul', '-Wno-format-extra-args', and
  3289. '-Wno-format-zero-length'. '-Wformat' is enabled by '-Wall'.
  3290. '-Wno-format-contains-nul'
  3291. If '-Wformat' is specified, do not warn about format strings
  3292. that contain NUL bytes.
  3293. '-Wno-format-extra-args'
  3294. If '-Wformat' is specified, do not warn about excess arguments
  3295. to a 'printf' or 'scanf' format function. The C standard
  3296. specifies that such arguments are ignored.
  3297. Where the unused arguments lie between used arguments that are
  3298. specified with '$' operand number specifications, normally
  3299. warnings are still given, since the implementation could not
  3300. know what type to pass to 'va_arg' to skip the unused
  3301. arguments. However, in the case of 'scanf' formats, this
  3302. option suppresses the warning if the unused arguments are all
  3303. pointers, since the Single Unix Specification says that such
  3304. unused arguments are allowed.
  3305. '-Wformat-overflow'
  3306. '-Wformat-overflow=LEVEL'
  3307. Warn about calls to formatted input/output functions such as
  3308. 'sprintf' and 'vsprintf' that might overflow the destination
  3309. buffer. When the exact number of bytes written by a format
  3310. directive cannot be determined at compile-time it is estimated
  3311. based on heuristics that depend on the LEVEL argument and on
  3312. optimization. While enabling optimization will in most cases
  3313. improve the accuracy of the warning, it may also result in
  3314. false positives.
  3315. '-Wformat-overflow'
  3316. '-Wformat-overflow=1'
  3317. Level 1 of '-Wformat-overflow' enabled by '-Wformat'
  3318. employs a conservative approach that warns only about
  3319. calls that most likely overflow the buffer. At this
  3320. level, numeric arguments to format directives with
  3321. unknown values are assumed to have the value of one, and
  3322. strings of unknown length to be empty. Numeric arguments
  3323. that are known to be bounded to a subrange of their type,
  3324. or string arguments whose output is bounded either by
  3325. their directive's precision or by a finite set of string
  3326. literals, are assumed to take on the value within the
  3327. range that results in the most bytes on output. For
  3328. example, the call to 'sprintf' below is diagnosed because
  3329. even with both A and B equal to zero, the terminating NUL
  3330. character (''\0'') appended by the function to the
  3331. destination buffer will be written past its end.
  3332. Increasing the size of the buffer by a single byte is
  3333. sufficient to avoid the warning, though it may not be
  3334. sufficient to avoid the overflow.
  3335. void f (int a, int b)
  3336. {
  3337. char buf [12];
  3338. sprintf (buf, "a = %i, b = %i\n", a, b);
  3339. }
  3340. '-Wformat-overflow=2'
  3341. Level 2 warns also about calls that might overflow the
  3342. destination buffer given an argument of sufficient length
  3343. or magnitude. At level 2, unknown numeric arguments are
  3344. assumed to have the minimum representable value for
  3345. signed types with a precision greater than 1, and the
  3346. maximum representable value otherwise. Unknown string
  3347. arguments whose length cannot be assumed to be bounded
  3348. either by the directive's precision, or by a finite set
  3349. of string literals they may evaluate to, or the character
  3350. array they may point to, are assumed to be 1 character
  3351. long.
  3352. At level 2, the call in the example above is again
  3353. diagnosed, but this time because with A equal to a 32-bit
  3354. 'INT_MIN' the first '%i' directive will write some of its
  3355. digits beyond the end of the destination buffer. To make
  3356. the call safe regardless of the values of the two
  3357. variables, the size of the destination buffer must be
  3358. increased to at least 34 bytes. GCC includes the minimum
  3359. size of the buffer in an informational note following the
  3360. warning.
  3361. An alternative to increasing the size of the destination
  3362. buffer is to constrain the range of formatted values.
  3363. The maximum length of string arguments can be bounded by
  3364. specifying the precision in the format directive. When
  3365. numeric arguments of format directives can be assumed to
  3366. be bounded by less than the precision of their type,
  3367. choosing an appropriate length modifier to the format
  3368. specifier will reduce the required buffer size. For
  3369. example, if A and B in the example above can be assumed
  3370. to be within the precision of the 'short int' type then
  3371. using either the '%hi' format directive or casting the
  3372. argument to 'short' reduces the maximum required size of
  3373. the buffer to 24 bytes.
  3374. void f (int a, int b)
  3375. {
  3376. char buf [23];
  3377. sprintf (buf, "a = %hi, b = %i\n", a, (short)b);
  3378. }
  3379. '-Wno-format-zero-length'
  3380. If '-Wformat' is specified, do not warn about zero-length
  3381. formats. The C standard specifies that zero-length formats
  3382. are allowed.
  3383. '-Wformat=2'
  3384. Enable '-Wformat' plus additional format checks. Currently
  3385. equivalent to '-Wformat -Wformat-nonliteral -Wformat-security
  3386. -Wformat-y2k'.
  3387. '-Wformat-nonliteral'
  3388. If '-Wformat' is specified, also warn if the format string is
  3389. not a string literal and so cannot be checked, unless the
  3390. format function takes its format arguments as a 'va_list'.
  3391. '-Wformat-security'
  3392. If '-Wformat' is specified, also warn about uses of format
  3393. functions that represent possible security problems. At
  3394. present, this warns about calls to 'printf' and 'scanf'
  3395. functions where the format string is not a string literal and
  3396. there are no format arguments, as in 'printf (foo);'. This
  3397. may be a security hole if the format string came from
  3398. untrusted input and contains '%n'. (This is currently a
  3399. subset of what '-Wformat-nonliteral' warns about, but in
  3400. future warnings may be added to '-Wformat-security' that are
  3401. not included in '-Wformat-nonliteral'.)
  3402. '-Wformat-signedness'
  3403. If '-Wformat' is specified, also warn if the format string
  3404. requires an unsigned argument and the argument is signed and
  3405. vice versa.
  3406. '-Wformat-truncation'
  3407. '-Wformat-truncation=LEVEL'
  3408. Warn about calls to formatted input/output functions such as
  3409. 'snprintf' and 'vsnprintf' that might result in output
  3410. truncation. When the exact number of bytes written by a
  3411. format directive cannot be determined at compile-time it is
  3412. estimated based on heuristics that depend on the LEVEL
  3413. argument and on optimization. While enabling optimization
  3414. will in most cases improve the accuracy of the warning, it may
  3415. also result in false positives. Except as noted otherwise,
  3416. the option uses the same logic '-Wformat-overflow'.
  3417. '-Wformat-truncation'
  3418. '-Wformat-truncation=1'
  3419. Level 1 of '-Wformat-truncation' enabled by '-Wformat'
  3420. employs a conservative approach that warns only about
  3421. calls to bounded functions whose return value is unused
  3422. and that will most likely result in output truncation.
  3423. '-Wformat-truncation=2'
  3424. Level 2 warns also about calls to bounded functions whose
  3425. return value is used and that might result in truncation
  3426. given an argument of sufficient length or magnitude.
  3427. '-Wformat-y2k'
  3428. If '-Wformat' is specified, also warn about 'strftime' formats
  3429. that may yield only a two-digit year.
  3430. '-Wnonnull'
  3431. Warn about passing a null pointer for arguments marked as requiring
  3432. a non-null value by the 'nonnull' function attribute.
  3433. '-Wnonnull' is included in '-Wall' and '-Wformat'. It can be
  3434. disabled with the '-Wno-nonnull' option.
  3435. '-Wnonnull-compare'
  3436. Warn when comparing an argument marked with the 'nonnull' function
  3437. attribute against null inside the function.
  3438. '-Wnonnull-compare' is included in '-Wall'. It can be disabled
  3439. with the '-Wno-nonnull-compare' option.
  3440. '-Wnull-dereference'
  3441. Warn if the compiler detects paths that trigger erroneous or
  3442. undefined behavior due to dereferencing a null pointer. This
  3443. option is only active when '-fdelete-null-pointer-checks' is
  3444. active, which is enabled by optimizations in most targets. The
  3445. precision of the warnings depends on the optimization options used.
  3446. '-Winit-self (C, C++, Objective-C and Objective-C++ only)'
  3447. Warn about uninitialized variables that are initialized with
  3448. themselves. Note this option can only be used with the
  3449. '-Wuninitialized' option.
  3450. For example, GCC warns about 'i' being uninitialized in the
  3451. following snippet only when '-Winit-self' has been specified:
  3452. int f()
  3453. {
  3454. int i = i;
  3455. return i;
  3456. }
  3457. This warning is enabled by '-Wall' in C++.
  3458. '-Wimplicit-int (C and Objective-C only)'
  3459. Warn when a declaration does not specify a type. This warning is
  3460. enabled by '-Wall'.
  3461. '-Wimplicit-function-declaration (C and Objective-C only)'
  3462. Give a warning whenever a function is used before being declared.
  3463. In C99 mode ('-std=c99' or '-std=gnu99'), this warning is enabled
  3464. by default and it is made into an error by '-pedantic-errors'.
  3465. This warning is also enabled by '-Wall'.
  3466. '-Wimplicit (C and Objective-C only)'
  3467. Same as '-Wimplicit-int' and '-Wimplicit-function-declaration'.
  3468. This warning is enabled by '-Wall'.
  3469. '-Wimplicit-fallthrough'
  3470. '-Wimplicit-fallthrough' is the same as '-Wimplicit-fallthrough=3'
  3471. and '-Wno-implicit-fallthrough' is the same as
  3472. '-Wimplicit-fallthrough=0'.
  3473. '-Wimplicit-fallthrough=N'
  3474. Warn when a switch case falls through. For example:
  3475. switch (cond)
  3476. {
  3477. case 1:
  3478. a = 1;
  3479. break;
  3480. case 2:
  3481. a = 2;
  3482. case 3:
  3483. a = 3;
  3484. break;
  3485. }
  3486. This warning does not warn when the last statement of a case cannot
  3487. fall through, e.g. when there is a return statement or a call to
  3488. function declared with the noreturn attribute.
  3489. '-Wimplicit-fallthrough=' also takes into account control flow
  3490. statements, such as ifs, and only warns when appropriate. E.g.
  3491. switch (cond)
  3492. {
  3493. case 1:
  3494. if (i > 3) {
  3495. bar (5);
  3496. break;
  3497. } else if (i < 1) {
  3498. bar (0);
  3499. } else
  3500. return;
  3501. default:
  3502. ...
  3503. }
  3504. Since there are occasions where a switch case fall through is
  3505. desirable, GCC provides an attribute, '__attribute__
  3506. ((fallthrough))', that is to be used along with a null statement to
  3507. suppress this warning that would normally occur:
  3508. switch (cond)
  3509. {
  3510. case 1:
  3511. bar (0);
  3512. __attribute__ ((fallthrough));
  3513. default:
  3514. ...
  3515. }
  3516. C++17 provides a standard way to suppress the
  3517. '-Wimplicit-fallthrough' warning using '[[fallthrough]];' instead
  3518. of the GNU attribute. In C++11 or C++14 users can use
  3519. '[[gnu::fallthrough]];', which is a GNU extension. Instead of the
  3520. these attributes, it is also possible to add a fallthrough comment
  3521. to silence the warning. The whole body of the C or C++ style
  3522. comment should match the given regular expressions listed below.
  3523. The option argument N specifies what kind of comments are accepted:
  3524. * '-Wimplicit-fallthrough=0' disables the warning altogether.
  3525. * '-Wimplicit-fallthrough=1' matches '.*' regular expression,
  3526. any comment is used as fallthrough comment.
  3527. * '-Wimplicit-fallthrough=2' case insensitively matches
  3528. '.*falls?[ \t-]*thr(ough|u).*' regular expression.
  3529. * '-Wimplicit-fallthrough=3' case sensitively matches one of the
  3530. following regular expressions:
  3531. * '-fallthrough'
  3532. * '@fallthrough@'
  3533. * 'lint -fallthrough[ \t]*'
  3534. * '[ \t.!]*(ELSE,? |INTENTIONAL(LY)? )?
  3535. FALL(S | |-)?THR(OUGH|U)[ \t.!]*(-[^\n\r]*)?'
  3536. * '[ \t.!]*(Else,? |Intentional(ly)? )?
  3537. Fall((s | |-)[Tt]|t)hr(ough|u)[ \t.!]*(-[^\n\r]*)?'
  3538. * '[ \t.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?
  3539. fall(s | |-)?thr(ough|u)[ \t.!]*(-[^\n\r]*)?'
  3540. * '-Wimplicit-fallthrough=4' case sensitively matches one of the
  3541. following regular expressions:
  3542. * '-fallthrough'
  3543. * '@fallthrough@'
  3544. * 'lint -fallthrough[ \t]*'
  3545. * '[ \t]*FALLTHR(OUGH|U)[ \t]*'
  3546. * '-Wimplicit-fallthrough=5' doesn't recognize any comments as
  3547. fallthrough comments, only attributes disable the warning.
  3548. The comment needs to be followed after optional whitespace and
  3549. other comments by 'case' or 'default' keywords or by a user label
  3550. that precedes some 'case' or 'default' label.
  3551. switch (cond)
  3552. {
  3553. case 1:
  3554. bar (0);
  3555. /* FALLTHRU */
  3556. default:
  3557. ...
  3558. }
  3559. The '-Wimplicit-fallthrough=3' warning is enabled by '-Wextra'.
  3560. '-Wignored-qualifiers (C and C++ only)'
  3561. Warn if the return type of a function has a type qualifier such as
  3562. 'const'. For ISO C such a type qualifier has no effect, since the
  3563. value returned by a function is not an lvalue. For C++, the
  3564. warning is only emitted for scalar types or 'void'. ISO C
  3565. prohibits qualified 'void' return types on function definitions, so
  3566. such return types always receive a warning even without this
  3567. option.
  3568. This warning is also enabled by '-Wextra'.
  3569. '-Wignored-attributes (C and C++ only)'
  3570. Warn when an attribute is ignored. This is different from the
  3571. '-Wattributes' option in that it warns whenever the compiler
  3572. decides to drop an attribute, not that the attribute is either
  3573. unknown, used in a wrong place, etc. This warning is enabled by
  3574. default.
  3575. '-Wmain'
  3576. Warn if the type of 'main' is suspicious. 'main' should be a
  3577. function with external linkage, returning int, taking either zero
  3578. arguments, two, or three arguments of appropriate types. This
  3579. warning is enabled by default in C++ and is enabled by either
  3580. '-Wall' or '-Wpedantic'.
  3581. '-Wmisleading-indentation (C and C++ only)'
  3582. Warn when the indentation of the code does not reflect the block
  3583. structure. Specifically, a warning is issued for 'if', 'else',
  3584. 'while', and 'for' clauses with a guarded statement that does not
  3585. use braces, followed by an unguarded statement with the same
  3586. indentation.
  3587. In the following example, the call to "bar" is misleadingly
  3588. indented as if it were guarded by the "if" conditional.
  3589. if (some_condition ())
  3590. foo ();
  3591. bar (); /* Gotcha: this is not guarded by the "if". */
  3592. In the case of mixed tabs and spaces, the warning uses the
  3593. '-ftabstop=' option to determine if the statements line up
  3594. (defaulting to 8).
  3595. The warning is not issued for code involving multiline preprocessor
  3596. logic such as the following example.
  3597. if (flagA)
  3598. foo (0);
  3599. #if SOME_CONDITION_THAT_DOES_NOT_HOLD
  3600. if (flagB)
  3601. #endif
  3602. foo (1);
  3603. The warning is not issued after a '#line' directive, since this
  3604. typically indicates autogenerated code, and no assumptions can be
  3605. made about the layout of the file that the directive references.
  3606. This warning is enabled by '-Wall' in C and C++.
  3607. '-Wmissing-braces'
  3608. Warn if an aggregate or union initializer is not fully bracketed.
  3609. In the following example, the initializer for 'a' is not fully
  3610. bracketed, but that for 'b' is fully bracketed. This warning is
  3611. enabled by '-Wall' in C.
  3612. int a[2][2] = { 0, 1, 2, 3 };
  3613. int b[2][2] = { { 0, 1 }, { 2, 3 } };
  3614. This warning is enabled by '-Wall'.
  3615. '-Wmissing-include-dirs (C, C++, Objective-C and Objective-C++ only)'
  3616. Warn if a user-supplied include directory does not exist.
  3617. '-Wparentheses'
  3618. Warn if parentheses are omitted in certain contexts, such as when
  3619. there is an assignment in a context where a truth value is
  3620. expected, or when operators are nested whose precedence people
  3621. often get confused about.
  3622. Also warn if a comparison like 'x<=y<=z' appears; this is
  3623. equivalent to '(x<=y ? 1 : 0) <= z', which is a different
  3624. interpretation from that of ordinary mathematical notation.
  3625. Also warn for dangerous uses of the GNU extension to '?:' with
  3626. omitted middle operand. When the condition in the '?': operator is
  3627. a boolean expression, the omitted value is always 1. Often
  3628. programmers expect it to be a value computed inside the conditional
  3629. expression instead.
  3630. This warning is enabled by '-Wall'.
  3631. '-Wsequence-point'
  3632. Warn about code that may have undefined semantics because of
  3633. violations of sequence point rules in the C and C++ standards.
  3634. The C and C++ standards define the order in which expressions in a
  3635. C/C++ program are evaluated in terms of "sequence points", which
  3636. represent a partial ordering between the execution of parts of the
  3637. program: those executed before the sequence point, and those
  3638. executed after it. These occur after the evaluation of a full
  3639. expression (one which is not part of a larger expression), after
  3640. the evaluation of the first operand of a '&&', '||', '? :' or ','
  3641. (comma) operator, before a function is called (but after the
  3642. evaluation of its arguments and the expression denoting the called
  3643. function), and in certain other places. Other than as expressed by
  3644. the sequence point rules, the order of evaluation of subexpressions
  3645. of an expression is not specified. All these rules describe only a
  3646. partial order rather than a total order, since, for example, if two
  3647. functions are called within one expression with no sequence point
  3648. between them, the order in which the functions are called is not
  3649. specified. However, the standards committee have ruled that
  3650. function calls do not overlap.
  3651. It is not specified when between sequence points modifications to
  3652. the values of objects take effect. Programs whose behavior depends
  3653. on this have undefined behavior; the C and C++ standards specify
  3654. that "Between the previous and next sequence point an object shall
  3655. have its stored value modified at most once by the evaluation of an
  3656. expression. Furthermore, the prior value shall be read only to
  3657. determine the value to be stored.". If a program breaks these
  3658. rules, the results on any particular implementation are entirely
  3659. unpredictable.
  3660. Examples of code with undefined behavior are 'a = a++;', 'a[n] =
  3661. b[n++]' and 'a[i++] = i;'. Some more complicated cases are not
  3662. diagnosed by this option, and it may give an occasional false
  3663. positive result, but in general it has been found fairly effective
  3664. at detecting this sort of problem in programs.
  3665. The C++17 standard will define the order of evaluation of operands
  3666. in more cases: in particular it requires that the right-hand side
  3667. of an assignment be evaluated before the left-hand side, so the
  3668. above examples are no longer undefined. But this warning will
  3669. still warn about them, to help people avoid writing code that is
  3670. undefined in C and earlier revisions of C++.
  3671. The standard is worded confusingly, therefore there is some debate
  3672. over the precise meaning of the sequence point rules in subtle
  3673. cases. Links to discussions of the problem, including proposed
  3674. formal definitions, may be found on the GCC readings page, at
  3675. <http://gcc.gnu.org/readings.html>.
  3676. This warning is enabled by '-Wall' for C and C++.
  3677. '-Wno-return-local-addr'
  3678. Do not warn about returning a pointer (or in C++, a reference) to a
  3679. variable that goes out of scope after the function returns.
  3680. '-Wreturn-type'
  3681. Warn whenever a function is defined with a return type that
  3682. defaults to 'int'. Also warn about any 'return' statement with no
  3683. return value in a function whose return type is not 'void' (falling
  3684. off the end of the function body is considered returning without a
  3685. value).
  3686. For C only, warn about a 'return' statement with an expression in a
  3687. function whose return type is 'void', unless the expression type is
  3688. also 'void'. As a GNU extension, the latter case is accepted
  3689. without a warning unless '-Wpedantic' is used.
  3690. For C++, a function without return type always produces a
  3691. diagnostic message, even when '-Wno-return-type' is specified. The
  3692. only exceptions are 'main' and functions defined in system headers.
  3693. This warning is enabled by '-Wall'.
  3694. '-Wshift-count-negative'
  3695. Warn if shift count is negative. This warning is enabled by
  3696. default.
  3697. '-Wshift-count-overflow'
  3698. Warn if shift count >= width of type. This warning is enabled by
  3699. default.
  3700. '-Wshift-negative-value'
  3701. Warn if left shifting a negative value. This warning is enabled by
  3702. '-Wextra' in C99 and C++11 modes (and newer).
  3703. '-Wshift-overflow'
  3704. '-Wshift-overflow=N'
  3705. Warn about left shift overflows. This warning is enabled by
  3706. default in C99 and C++11 modes (and newer).
  3707. '-Wshift-overflow=1'
  3708. This is the warning level of '-Wshift-overflow' and is enabled
  3709. by default in C99 and C++11 modes (and newer). This warning
  3710. level does not warn about left-shifting 1 into the sign bit.
  3711. (However, in C, such an overflow is still rejected in contexts
  3712. where an integer constant expression is required.)
  3713. '-Wshift-overflow=2'
  3714. This warning level also warns about left-shifting 1 into the
  3715. sign bit, unless C++14 mode is active.
  3716. '-Wswitch'
  3717. Warn whenever a 'switch' statement has an index of enumerated type
  3718. and lacks a 'case' for one or more of the named codes of that
  3719. enumeration. (The presence of a 'default' label prevents this
  3720. warning.) 'case' labels outside the enumeration range also provoke
  3721. warnings when this option is used (even if there is a 'default'
  3722. label). This warning is enabled by '-Wall'.
  3723. '-Wswitch-default'
  3724. Warn whenever a 'switch' statement does not have a 'default' case.
  3725. '-Wswitch-enum'
  3726. Warn whenever a 'switch' statement has an index of enumerated type
  3727. and lacks a 'case' for one or more of the named codes of that
  3728. enumeration. 'case' labels outside the enumeration range also
  3729. provoke warnings when this option is used. The only difference
  3730. between '-Wswitch' and this option is that this option gives a
  3731. warning about an omitted enumeration code even if there is a
  3732. 'default' label.
  3733. '-Wswitch-bool'
  3734. Warn whenever a 'switch' statement has an index of boolean type and
  3735. the case values are outside the range of a boolean type. It is
  3736. possible to suppress this warning by casting the controlling
  3737. expression to a type other than 'bool'. For example:
  3738. switch ((int) (a == 4))
  3739. {
  3740. ...
  3741. }
  3742. This warning is enabled by default for C and C++ programs.
  3743. '-Wswitch-unreachable'
  3744. Warn whenever a 'switch' statement contains statements between the
  3745. controlling expression and the first case label, which will never
  3746. be executed. For example:
  3747. switch (cond)
  3748. {
  3749. i = 15;
  3750. ...
  3751. case 5:
  3752. ...
  3753. }
  3754. '-Wswitch-unreachable' does not warn if the statement between the
  3755. controlling expression and the first case label is just a
  3756. declaration:
  3757. switch (cond)
  3758. {
  3759. int i;
  3760. ...
  3761. case 5:
  3762. i = 5;
  3763. ...
  3764. }
  3765. This warning is enabled by default for C and C++ programs.
  3766. '-Wsync-nand (C and C++ only)'
  3767. Warn when '__sync_fetch_and_nand' and '__sync_nand_and_fetch'
  3768. built-in functions are used. These functions changed semantics in
  3769. GCC 4.4.
  3770. '-Wunused-but-set-parameter'
  3771. Warn whenever a function parameter is assigned to, but otherwise
  3772. unused (aside from its declaration).
  3773. To suppress this warning use the 'unused' attribute (*note Variable
  3774. Attributes::).
  3775. This warning is also enabled by '-Wunused' together with '-Wextra'.
  3776. '-Wunused-but-set-variable'
  3777. Warn whenever a local variable is assigned to, but otherwise unused
  3778. (aside from its declaration). This warning is enabled by '-Wall'.
  3779. To suppress this warning use the 'unused' attribute (*note Variable
  3780. Attributes::).
  3781. This warning is also enabled by '-Wunused', which is enabled by
  3782. '-Wall'.
  3783. '-Wunused-function'
  3784. Warn whenever a static function is declared but not defined or a
  3785. non-inline static function is unused. This warning is enabled by
  3786. '-Wall'.
  3787. '-Wunused-label'
  3788. Warn whenever a label is declared but not used. This warning is
  3789. enabled by '-Wall'.
  3790. To suppress this warning use the 'unused' attribute (*note Variable
  3791. Attributes::).
  3792. '-Wunused-local-typedefs (C, Objective-C, C++ and Objective-C++ only)'
  3793. Warn when a typedef locally defined in a function is not used.
  3794. This warning is enabled by '-Wall'.
  3795. '-Wunused-parameter'
  3796. Warn whenever a function parameter is unused aside from its
  3797. declaration.
  3798. To suppress this warning use the 'unused' attribute (*note Variable
  3799. Attributes::).
  3800. '-Wno-unused-result'
  3801. Do not warn if a caller of a function marked with attribute
  3802. 'warn_unused_result' (*note Function Attributes::) does not use its
  3803. return value. The default is '-Wunused-result'.
  3804. '-Wunused-variable'
  3805. Warn whenever a local or static variable is unused aside from its
  3806. declaration. This option implies '-Wunused-const-variable=1' for
  3807. C, but not for C++. This warning is enabled by '-Wall'.
  3808. To suppress this warning use the 'unused' attribute (*note Variable
  3809. Attributes::).
  3810. '-Wunused-const-variable'
  3811. '-Wunused-const-variable=N'
  3812. Warn whenever a constant static variable is unused aside from its
  3813. declaration. '-Wunused-const-variable=1' is enabled by
  3814. '-Wunused-variable' for C, but not for C++. In C this declares
  3815. variable storage, but in C++ this is not an error since const
  3816. variables take the place of '#define's.
  3817. To suppress this warning use the 'unused' attribute (*note Variable
  3818. Attributes::).
  3819. '-Wunused-const-variable=1'
  3820. This is the warning level that is enabled by
  3821. '-Wunused-variable' for C. It warns only about unused static
  3822. const variables defined in the main compilation unit, but not
  3823. about static const variables declared in any header included.
  3824. '-Wunused-const-variable=2'
  3825. This warning level also warns for unused constant static
  3826. variables in headers (excluding system headers). This is the
  3827. warning level of '-Wunused-const-variable' and must be
  3828. explicitly requested since in C++ this isn't an error and in C
  3829. it might be harder to clean up all headers included.
  3830. '-Wunused-value'
  3831. Warn whenever a statement computes a result that is explicitly not
  3832. used. To suppress this warning cast the unused expression to
  3833. 'void'. This includes an expression-statement or the left-hand
  3834. side of a comma expression that contains no side effects. For
  3835. example, an expression such as 'x[i,j]' causes a warning, while
  3836. 'x[(void)i,j]' does not.
  3837. This warning is enabled by '-Wall'.
  3838. '-Wunused'
  3839. All the above '-Wunused' options combined.
  3840. In order to get a warning about an unused function parameter, you
  3841. must either specify '-Wextra -Wunused' (note that '-Wall' implies
  3842. '-Wunused'), or separately specify '-Wunused-parameter'.
  3843. '-Wuninitialized'
  3844. Warn if an automatic variable is used without first being
  3845. initialized or if a variable may be clobbered by a 'setjmp' call.
  3846. In C++, warn if a non-static reference or non-static 'const' member
  3847. appears in a class without constructors.
  3848. If you want to warn about code that uses the uninitialized value of
  3849. the variable in its own initializer, use the '-Winit-self' option.
  3850. These warnings occur for individual uninitialized or clobbered
  3851. elements of structure, union or array variables as well as for
  3852. variables that are uninitialized or clobbered as a whole. They do
  3853. not occur for variables or elements declared 'volatile'. Because
  3854. these warnings depend on optimization, the exact variables or
  3855. elements for which there are warnings depends on the precise
  3856. optimization options and version of GCC used.
  3857. Note that there may be no warning about a variable that is used
  3858. only to compute a value that itself is never used, because such
  3859. computations may be deleted by data flow analysis before the
  3860. warnings are printed.
  3861. '-Winvalid-memory-model'
  3862. Warn for invocations of *note __atomic Builtins::, *note __sync
  3863. Builtins::, and the C11 atomic generic functions with a memory
  3864. consistency argument that is either invalid for the operation or
  3865. outside the range of values of the 'memory_order' enumeration. For
  3866. example, since the '__atomic_store' and '__atomic_store_n'
  3867. built-ins are only defined for the relaxed, release, and
  3868. sequentially consistent memory orders the following code is
  3869. diagnosed:
  3870. void store (int *i)
  3871. {
  3872. __atomic_store_n (i, 0, memory_order_consume);
  3873. }
  3874. '-Winvalid-memory-model' is enabled by default.
  3875. '-Wmaybe-uninitialized'
  3876. For an automatic variable, if there exists a path from the function
  3877. entry to a use of the variable that is initialized, but there exist
  3878. some other paths for which the variable is not initialized, the
  3879. compiler emits a warning if it cannot prove the uninitialized paths
  3880. are not executed at run time. These warnings are made optional
  3881. because GCC is not smart enough to see all the reasons why the code
  3882. might be correct in spite of appearing to have an error. Here is
  3883. one example of how this can happen:
  3884. {
  3885. int x;
  3886. switch (y)
  3887. {
  3888. case 1: x = 1;
  3889. break;
  3890. case 2: x = 4;
  3891. break;
  3892. case 3: x = 5;
  3893. }
  3894. foo (x);
  3895. }
  3896. If the value of 'y' is always 1, 2 or 3, then 'x' is always
  3897. initialized, but GCC doesn't know this. To suppress the warning,
  3898. you need to provide a default case with assert(0) or similar code.
  3899. This option also warns when a non-volatile automatic variable might
  3900. be changed by a call to 'longjmp'. These warnings as well are
  3901. possible only in optimizing compilation.
  3902. The compiler sees only the calls to 'setjmp'. It cannot know where
  3903. 'longjmp' will be called; in fact, a signal handler could call it
  3904. at any point in the code. As a result, you may get a warning even
  3905. when there is in fact no problem because 'longjmp' cannot in fact
  3906. be called at the place that would cause a problem.
  3907. Some spurious warnings can be avoided if you declare all the
  3908. functions you use that never return as 'noreturn'. *Note Function
  3909. Attributes::.
  3910. This warning is enabled by '-Wall' or '-Wextra'.
  3911. '-Wunknown-pragmas'
  3912. Warn when a '#pragma' directive is encountered that is not
  3913. understood by GCC. If this command-line option is used, warnings
  3914. are even issued for unknown pragmas in system header files. This
  3915. is not the case if the warnings are only enabled by the '-Wall'
  3916. command-line option.
  3917. '-Wno-pragmas'
  3918. Do not warn about misuses of pragmas, such as incorrect parameters,
  3919. invalid syntax, or conflicts between pragmas. See also
  3920. '-Wunknown-pragmas'.
  3921. '-Wstrict-aliasing'
  3922. This option is only active when '-fstrict-aliasing' is active. It
  3923. warns about code that might break the strict aliasing rules that
  3924. the compiler is using for optimization. The warning does not catch
  3925. all cases, but does attempt to catch the more common pitfalls. It
  3926. is included in '-Wall'. It is equivalent to '-Wstrict-aliasing=3'
  3927. '-Wstrict-aliasing=n'
  3928. This option is only active when '-fstrict-aliasing' is active. It
  3929. warns about code that might break the strict aliasing rules that
  3930. the compiler is using for optimization. Higher levels correspond
  3931. to higher accuracy (fewer false positives). Higher levels also
  3932. correspond to more effort, similar to the way '-O' works.
  3933. '-Wstrict-aliasing' is equivalent to '-Wstrict-aliasing=3'.
  3934. Level 1: Most aggressive, quick, least accurate. Possibly useful
  3935. when higher levels do not warn but '-fstrict-aliasing' still breaks
  3936. the code, as it has very few false negatives. However, it has many
  3937. false positives. Warns for all pointer conversions between
  3938. possibly incompatible types, even if never dereferenced. Runs in
  3939. the front end only.
  3940. Level 2: Aggressive, quick, not too precise. May still have many
  3941. false positives (not as many as level 1 though), and few false
  3942. negatives (but possibly more than level 1). Unlike level 1, it
  3943. only warns when an address is taken. Warns about incomplete types.
  3944. Runs in the front end only.
  3945. Level 3 (default for '-Wstrict-aliasing'): Should have very few
  3946. false positives and few false negatives. Slightly slower than
  3947. levels 1 or 2 when optimization is enabled. Takes care of the
  3948. common pun+dereference pattern in the front end:
  3949. '*(int*)&some_float'. If optimization is enabled, it also runs in
  3950. the back end, where it deals with multiple statement cases using
  3951. flow-sensitive points-to information. Only warns when the
  3952. converted pointer is dereferenced. Does not warn about incomplete
  3953. types.
  3954. '-Wstrict-overflow'
  3955. '-Wstrict-overflow=N'
  3956. This option is only active when '-fstrict-overflow' is active. It
  3957. warns about cases where the compiler optimizes based on the
  3958. assumption that signed overflow does not occur. Note that it does
  3959. not warn about all cases where the code might overflow: it only
  3960. warns about cases where the compiler implements some optimization.
  3961. Thus this warning depends on the optimization level.
  3962. An optimization that assumes that signed overflow does not occur is
  3963. perfectly safe if the values of the variables involved are such
  3964. that overflow never does, in fact, occur. Therefore this warning
  3965. can easily give a false positive: a warning about code that is not
  3966. actually a problem. To help focus on important issues, several
  3967. warning levels are defined. No warnings are issued for the use of
  3968. undefined signed overflow when estimating how many iterations a
  3969. loop requires, in particular when determining whether a loop will
  3970. be executed at all.
  3971. '-Wstrict-overflow=1'
  3972. Warn about cases that are both questionable and easy to avoid.
  3973. For example, with '-fstrict-overflow', the compiler simplifies
  3974. 'x + 1 > x' to '1'. This level of '-Wstrict-overflow' is
  3975. enabled by '-Wall'; higher levels are not, and must be
  3976. explicitly requested.
  3977. '-Wstrict-overflow=2'
  3978. Also warn about other cases where a comparison is simplified
  3979. to a constant. For example: 'abs (x) >= 0'. This can only be
  3980. simplified when '-fstrict-overflow' is in effect, because 'abs
  3981. (INT_MIN)' overflows to 'INT_MIN', which is less than zero.
  3982. '-Wstrict-overflow' (with no level) is the same as
  3983. '-Wstrict-overflow=2'.
  3984. '-Wstrict-overflow=3'
  3985. Also warn about other cases where a comparison is simplified.
  3986. For example: 'x + 1 > 1' is simplified to 'x > 0'.
  3987. '-Wstrict-overflow=4'
  3988. Also warn about other simplifications not covered by the above
  3989. cases. For example: '(x * 10) / 5' is simplified to 'x * 2'.
  3990. '-Wstrict-overflow=5'
  3991. Also warn about cases where the compiler reduces the magnitude
  3992. of a constant involved in a comparison. For example: 'x + 2 >
  3993. y' is simplified to 'x + 1 >= y'. This is reported only at
  3994. the highest warning level because this simplification applies
  3995. to many comparisons, so this warning level gives a very large
  3996. number of false positives.
  3997. '-Wstringop-overflow'
  3998. '-Wstringop-overflow=TYPE'
  3999. Warn for calls to string manipulation functions such as 'memcpy'
  4000. and 'strcpy' that are determined to overflow the destination
  4001. buffer. The optional argument is one greater than the type of
  4002. Object Size Checking to perform to determine the size of the
  4003. destination. *Note Object Size Checking::. The argument is
  4004. meaningful only for functions that operate on character arrays but
  4005. not for raw memory functions like 'memcpy' which always make use of
  4006. Object Size type-0. The option also warns for calls that specify a
  4007. size in excess of the largest possible object or at most 'SIZE_MAX
  4008. / 2' bytes. The option produces the best results with optimization
  4009. enabled but can detect a small subset of simple buffer overflows
  4010. even without optimization in calls to the GCC built-in functions
  4011. like '__builtin_memcpy' that correspond to the standard functions.
  4012. In any case, the option warns about just a subset of buffer
  4013. overflows detected by the corresponding overflow checking
  4014. built-ins. For example, the option will issue a warning for the
  4015. 'strcpy' call below because it copies at least 5 characters (the
  4016. string '"blue"' including the terminating NUL) into the buffer of
  4017. size 4.
  4018. enum Color { blue, purple, yellow };
  4019. const char* f (enum Color clr)
  4020. {
  4021. static char buf [4];
  4022. const char *str;
  4023. switch (clr)
  4024. {
  4025. case blue: str = "blue"; break;
  4026. case purple: str = "purple"; break;
  4027. case yellow: str = "yellow"; break;
  4028. }
  4029. return strcpy (buf, str); // warning here
  4030. }
  4031. Option '-Wstringop-overflow=2' is enabled by default.
  4032. '-Wstringop-overflow'
  4033. '-Wstringop-overflow=1'
  4034. The '-Wstringop-overflow=1' option uses type-zero Object Size
  4035. Checking to determine the sizes of destination objects. This
  4036. is the default setting of the option. At this setting the
  4037. option will not warn for writes past the end of subobjects of
  4038. larger objects accessed by pointers unless the size of the
  4039. largest surrounding object is known. When the destination may
  4040. be one of several objects it is assumed to be the largest one
  4041. of them. On Linux systems, when optimization is enabled at
  4042. this setting the option warns for the same code as when the
  4043. '_FORTIFY_SOURCE' macro is defined to a non-zero value.
  4044. '-Wstringop-overflow=2'
  4045. The '-Wstringop-overflow=2' option uses type-one Object Size
  4046. Checking to determine the sizes of destination objects. At
  4047. this setting the option will warn about overflows when writing
  4048. to members of the largest complete objects whose exact size is
  4049. known. It will, however, not warn for excessive writes to the
  4050. same members of unknown objects referenced by pointers since
  4051. they may point to arrays containing unknown numbers of
  4052. elements.
  4053. '-Wstringop-overflow=3'
  4054. The '-Wstringop-overflow=3' option uses type-two Object Size
  4055. Checking to determine the sizes of destination objects. At
  4056. this setting the option warns about overflowing the smallest
  4057. object or data member. This is the most restrictive setting
  4058. of the option that may result in warnings for safe code.
  4059. '-Wstringop-overflow=4'
  4060. The '-Wstringop-overflow=4' option uses type-three Object Size
  4061. Checking to determine the sizes of destination objects. At
  4062. this setting the option will warn about overflowing any data
  4063. members, and when the destination is one of several objects it
  4064. uses the size of the largest of them to decide whether to
  4065. issue a warning. Similarly to '-Wstringop-overflow=3' this
  4066. setting of the option may result in warnings for benign code.
  4067. '-Wsuggest-attribute=[pure|const|noreturn|format]'
  4068. Warn for cases where adding an attribute may be beneficial. The
  4069. attributes currently supported are listed below.
  4070. '-Wsuggest-attribute=pure'
  4071. '-Wsuggest-attribute=const'
  4072. '-Wsuggest-attribute=noreturn'
  4073. Warn about functions that might be candidates for attributes
  4074. 'pure', 'const' or 'noreturn'. The compiler only warns for
  4075. functions visible in other compilation units or (in the case
  4076. of 'pure' and 'const') if it cannot prove that the function
  4077. returns normally. A function returns normally if it doesn't
  4078. contain an infinite loop or return abnormally by throwing,
  4079. calling 'abort' or trapping. This analysis requires option
  4080. '-fipa-pure-const', which is enabled by default at '-O' and
  4081. higher. Higher optimization levels improve the accuracy of
  4082. the analysis.
  4083. '-Wsuggest-attribute=format'
  4084. '-Wmissing-format-attribute'
  4085. Warn about function pointers that might be candidates for
  4086. 'format' attributes. Note these are only possible candidates,
  4087. not absolute ones. GCC guesses that function pointers with
  4088. 'format' attributes that are used in assignment,
  4089. initialization, parameter passing or return statements should
  4090. have a corresponding 'format' attribute in the resulting type.
  4091. I.e. the left-hand side of the assignment or initialization,
  4092. the type of the parameter variable, or the return type of the
  4093. containing function respectively should also have a 'format'
  4094. attribute to avoid the warning.
  4095. GCC also warns about function definitions that might be
  4096. candidates for 'format' attributes. Again, these are only
  4097. possible candidates. GCC guesses that 'format' attributes
  4098. might be appropriate for any function that calls a function
  4099. like 'vprintf' or 'vscanf', but this might not always be the
  4100. case, and some functions for which 'format' attributes are
  4101. appropriate may not be detected.
  4102. '-Wsuggest-final-types'
  4103. Warn about types with virtual methods where code quality would be
  4104. improved if the type were declared with the C++11 'final'
  4105. specifier, or, if possible, declared in an anonymous namespace.
  4106. This allows GCC to more aggressively devirtualize the polymorphic
  4107. calls. This warning is more effective with link time optimization,
  4108. where the information about the class hierarchy graph is more
  4109. complete.
  4110. '-Wsuggest-final-methods'
  4111. Warn about virtual methods where code quality would be improved if
  4112. the method were declared with the C++11 'final' specifier, or, if
  4113. possible, its type were declared in an anonymous namespace or with
  4114. the 'final' specifier. This warning is more effective with
  4115. link-time optimization, where the information about the class
  4116. hierarchy graph is more complete. It is recommended to first
  4117. consider suggestions of '-Wsuggest-final-types' and then rebuild
  4118. with new annotations.
  4119. '-Wsuggest-override'
  4120. Warn about overriding virtual functions that are not marked with
  4121. the override keyword.
  4122. '-Walloc-zero'
  4123. Warn about calls to allocation functions decorated with attribute
  4124. 'alloc_size' that specify zero bytes, including those to the
  4125. built-in forms of the functions 'aligned_alloc', 'alloca',
  4126. 'calloc', 'malloc', and 'realloc'. Because the behavior of these
  4127. functions when called with a zero size differs among
  4128. implementations (and in the case of 'realloc' has been deprecated)
  4129. relying on it may result in subtle portability bugs and should be
  4130. avoided.
  4131. '-Walloc-size-larger-than=N'
  4132. Warn about calls to functions decorated with attribute 'alloc_size'
  4133. that attempt to allocate objects larger than the specified number
  4134. of bytes, or where the result of the size computation in an integer
  4135. type with infinite precision would exceed 'SIZE_MAX / 2'. The
  4136. option argument N may end in one of the standard suffixes
  4137. designating a multiple of bytes such as 'kB' and 'KiB' for kilobyte
  4138. and kibibyte, respectively, 'MB' and 'MiB' for megabyte and
  4139. mebibyte, and so on. '-Walloc-size-larger-than='PTRDIFF_MAX is
  4140. enabled by default. Warnings controlled by the option can be
  4141. disabled by specifying N of SIZE_MAX or more. *Note Function
  4142. Attributes::.
  4143. '-Walloca'
  4144. This option warns on all uses of 'alloca' in the source.
  4145. '-Walloca-larger-than=N'
  4146. This option warns on calls to 'alloca' that are not bounded by a
  4147. controlling predicate limiting its argument of integer type to at
  4148. most N bytes, or calls to 'alloca' where the bound is unknown.
  4149. Arguments of non-integer types are considered unbounded even if
  4150. they appear to be constrained to the expected range.
  4151. For example, a bounded case of 'alloca' could be:
  4152. void func (size_t n)
  4153. {
  4154. void *p;
  4155. if (n <= 1000)
  4156. p = alloca (n);
  4157. else
  4158. p = malloc (n);
  4159. f (p);
  4160. }
  4161. In the above example, passing '-Walloca-larger-than=1000' would not
  4162. issue a warning because the call to 'alloca' is known to be at most
  4163. 1000 bytes. However, if '-Walloca-larger-than=500' were passed,
  4164. the compiler would emit a warning.
  4165. Unbounded uses, on the other hand, are uses of 'alloca' with no
  4166. controlling predicate constraining its integer argument. For
  4167. example:
  4168. void func ()
  4169. {
  4170. void *p = alloca (n);
  4171. f (p);
  4172. }
  4173. If '-Walloca-larger-than=500' were passed, the above would trigger
  4174. a warning, but this time because of the lack of bounds checking.
  4175. Note, that even seemingly correct code involving signed integers
  4176. could cause a warning:
  4177. void func (signed int n)
  4178. {
  4179. if (n < 500)
  4180. {
  4181. p = alloca (n);
  4182. f (p);
  4183. }
  4184. }
  4185. In the above example, N could be negative, causing a larger than
  4186. expected argument to be implicitly cast into the 'alloca' call.
  4187. This option also warns when 'alloca' is used in a loop.
  4188. This warning is not enabled by '-Wall', and is only active when
  4189. '-ftree-vrp' is active (default for '-O2' and above).
  4190. See also '-Wvla-larger-than=N'.
  4191. '-Warray-bounds'
  4192. '-Warray-bounds=N'
  4193. This option is only active when '-ftree-vrp' is active (default for
  4194. '-O2' and above). It warns about subscripts to arrays that are
  4195. always out of bounds. This warning is enabled by '-Wall'.
  4196. '-Warray-bounds=1'
  4197. This is the warning level of '-Warray-bounds' and is enabled
  4198. by '-Wall'; higher levels are not, and must be explicitly
  4199. requested.
  4200. '-Warray-bounds=2'
  4201. This warning level also warns about out of bounds access for
  4202. arrays at the end of a struct and for arrays accessed through
  4203. pointers. This warning level may give a larger number of
  4204. false positives and is deactivated by default.
  4205. '-Wbool-compare'
  4206. Warn about boolean expression compared with an integer value
  4207. different from 'true'/'false'. For instance, the following
  4208. comparison is always false:
  4209. int n = 5;
  4210. ...
  4211. if ((n > 1) == 2) { ... }
  4212. This warning is enabled by '-Wall'.
  4213. '-Wbool-operation'
  4214. Warn about suspicious operations on expressions of a boolean type.
  4215. For instance, bitwise negation of a boolean is very likely a bug in
  4216. the program. For C, this warning also warns about incrementing or
  4217. decrementing a boolean, which rarely makes sense. (In C++,
  4218. decrementing a boolean is always invalid. Incrementing a boolean
  4219. is invalid in C++1z, and deprecated otherwise.)
  4220. This warning is enabled by '-Wall'.
  4221. '-Wduplicated-branches'
  4222. Warn when an if-else has identical branches. This warning detects
  4223. cases like
  4224. if (p != NULL)
  4225. return 0;
  4226. else
  4227. return 0;
  4228. It doesn't warn when both branches contain just a null statement.
  4229. This warning also warn for conditional operators:
  4230. int i = x ? *p : *p;
  4231. '-Wduplicated-cond'
  4232. Warn about duplicated conditions in an if-else-if chain. For
  4233. instance, warn for the following code:
  4234. if (p->q != NULL) { ... }
  4235. else if (p->q != NULL) { ... }
  4236. '-Wframe-address'
  4237. Warn when the '__builtin_frame_address' or
  4238. '__builtin_return_address' is called with an argument greater than
  4239. 0. Such calls may return indeterminate values or crash the
  4240. program. The warning is included in '-Wall'.
  4241. '-Wno-discarded-qualifiers (C and Objective-C only)'
  4242. Do not warn if type qualifiers on pointers are being discarded.
  4243. Typically, the compiler warns if a 'const char *' variable is
  4244. passed to a function that takes a 'char *' parameter. This option
  4245. can be used to suppress such a warning.
  4246. '-Wno-discarded-array-qualifiers (C and Objective-C only)'
  4247. Do not warn if type qualifiers on arrays which are pointer targets
  4248. are being discarded. Typically, the compiler warns if a 'const int
  4249. (*)[]' variable is passed to a function that takes a 'int (*)[]'
  4250. parameter. This option can be used to suppress such a warning.
  4251. '-Wno-incompatible-pointer-types (C and Objective-C only)'
  4252. Do not warn when there is a conversion between pointers that have
  4253. incompatible types. This warning is for cases not covered by
  4254. '-Wno-pointer-sign', which warns for pointer argument passing or
  4255. assignment with different signedness.
  4256. '-Wno-int-conversion (C and Objective-C only)'
  4257. Do not warn about incompatible integer to pointer and pointer to
  4258. integer conversions. This warning is about implicit conversions;
  4259. for explicit conversions the warnings '-Wno-int-to-pointer-cast'
  4260. and '-Wno-pointer-to-int-cast' may be used.
  4261. '-Wno-div-by-zero'
  4262. Do not warn about compile-time integer division by zero.
  4263. Floating-point division by zero is not warned about, as it can be a
  4264. legitimate way of obtaining infinities and NaNs.
  4265. '-Wsystem-headers'
  4266. Print warning messages for constructs found in system header files.
  4267. Warnings from system headers are normally suppressed, on the
  4268. assumption that they usually do not indicate real problems and
  4269. would only make the compiler output harder to read. Using this
  4270. command-line option tells GCC to emit warnings from system headers
  4271. as if they occurred in user code. However, note that using '-Wall'
  4272. in conjunction with this option does _not_ warn about unknown
  4273. pragmas in system headers--for that, '-Wunknown-pragmas' must also
  4274. be used.
  4275. '-Wtautological-compare'
  4276. Warn if a self-comparison always evaluates to true or false. This
  4277. warning detects various mistakes such as:
  4278. int i = 1;
  4279. ...
  4280. if (i > i) { ... }
  4281. This warning is enabled by '-Wall'.
  4282. '-Wtrampolines'
  4283. Warn about trampolines generated for pointers to nested functions.
  4284. A trampoline is a small piece of data or code that is created at
  4285. run time on the stack when the address of a nested function is
  4286. taken, and is used to call the nested function indirectly. For
  4287. some targets, it is made up of data only and thus requires no
  4288. special treatment. But, for most targets, it is made up of code
  4289. and thus requires the stack to be made executable in order for the
  4290. program to work properly.
  4291. '-Wfloat-equal'
  4292. Warn if floating-point values are used in equality comparisons.
  4293. The idea behind this is that sometimes it is convenient (for the
  4294. programmer) to consider floating-point values as approximations to
  4295. infinitely precise real numbers. If you are doing this, then you
  4296. need to compute (by analyzing the code, or in some other way) the
  4297. maximum or likely maximum error that the computation introduces,
  4298. and allow for it when performing comparisons (and when producing
  4299. output, but that's a different problem). In particular, instead of
  4300. testing for equality, you should check to see whether the two
  4301. values have ranges that overlap; and this is done with the
  4302. relational operators, so equality comparisons are probably
  4303. mistaken.
  4304. '-Wtraditional (C and Objective-C only)'
  4305. Warn about certain constructs that behave differently in
  4306. traditional and ISO C. Also warn about ISO C constructs that have
  4307. no traditional C equivalent, and/or problematic constructs that
  4308. should be avoided.
  4309. * Macro parameters that appear within string literals in the
  4310. macro body. In traditional C macro replacement takes place
  4311. within string literals, but in ISO C it does not.
  4312. * In traditional C, some preprocessor directives did not exist.
  4313. Traditional preprocessors only considered a line to be a
  4314. directive if the '#' appeared in column 1 on the line.
  4315. Therefore '-Wtraditional' warns about directives that
  4316. traditional C understands but ignores because the '#' does not
  4317. appear as the first character on the line. It also suggests
  4318. you hide directives like '#pragma' not understood by
  4319. traditional C by indenting them. Some traditional
  4320. implementations do not recognize '#elif', so this option
  4321. suggests avoiding it altogether.
  4322. * A function-like macro that appears without arguments.
  4323. * The unary plus operator.
  4324. * The 'U' integer constant suffix, or the 'F' or 'L'
  4325. floating-point constant suffixes. (Traditional C does support
  4326. the 'L' suffix on integer constants.) Note, these suffixes
  4327. appear in macros defined in the system headers of most modern
  4328. systems, e.g. the '_MIN'/'_MAX' macros in '<limits.h>'. Use
  4329. of these macros in user code might normally lead to spurious
  4330. warnings, however GCC's integrated preprocessor has enough
  4331. context to avoid warning in these cases.
  4332. * A function declared external in one block and then used after
  4333. the end of the block.
  4334. * A 'switch' statement has an operand of type 'long'.
  4335. * A non-'static' function declaration follows a 'static' one.
  4336. This construct is not accepted by some traditional C
  4337. compilers.
  4338. * The ISO type of an integer constant has a different width or
  4339. signedness from its traditional type. This warning is only
  4340. issued if the base of the constant is ten. I.e. hexadecimal
  4341. or octal values, which typically represent bit patterns, are
  4342. not warned about.
  4343. * Usage of ISO string concatenation is detected.
  4344. * Initialization of automatic aggregates.
  4345. * Identifier conflicts with labels. Traditional C lacks a
  4346. separate namespace for labels.
  4347. * Initialization of unions. If the initializer is zero, the
  4348. warning is omitted. This is done under the assumption that
  4349. the zero initializer in user code appears conditioned on e.g.
  4350. '__STDC__' to avoid missing initializer warnings and relies on
  4351. default initialization to zero in the traditional C case.
  4352. * Conversions by prototypes between fixed/floating-point values
  4353. and vice versa. The absence of these prototypes when
  4354. compiling with traditional C causes serious problems. This is
  4355. a subset of the possible conversion warnings; for the full set
  4356. use '-Wtraditional-conversion'.
  4357. * Use of ISO C style function definitions. This warning
  4358. intentionally is _not_ issued for prototype declarations or
  4359. variadic functions because these ISO C features appear in your
  4360. code when using libiberty's traditional C compatibility
  4361. macros, 'PARAMS' and 'VPARAMS'. This warning is also bypassed
  4362. for nested functions because that feature is already a GCC
  4363. extension and thus not relevant to traditional C
  4364. compatibility.
  4365. '-Wtraditional-conversion (C and Objective-C only)'
  4366. Warn if a prototype causes a type conversion that is different from
  4367. what would happen to the same argument in the absence of a
  4368. prototype. This includes conversions of fixed point to floating
  4369. and vice versa, and conversions changing the width or signedness of
  4370. a fixed-point argument except when the same as the default
  4371. promotion.
  4372. '-Wdeclaration-after-statement (C and Objective-C only)'
  4373. Warn when a declaration is found after a statement in a block.
  4374. This construct, known from C++, was introduced with ISO C99 and is
  4375. by default allowed in GCC. It is not supported by ISO C90. *Note
  4376. Mixed Declarations::.
  4377. '-Wshadow'
  4378. Warn whenever a local variable or type declaration shadows another
  4379. variable, parameter, type, class member (in C++), or instance
  4380. variable (in Objective-C) or whenever a built-in function is
  4381. shadowed. Note that in C++, the compiler warns if a local variable
  4382. shadows an explicit typedef, but not if it shadows a
  4383. struct/class/enum. Same as '-Wshadow=global'.
  4384. '-Wno-shadow-ivar (Objective-C only)'
  4385. Do not warn whenever a local variable shadows an instance variable
  4386. in an Objective-C method.
  4387. '-Wshadow=global'
  4388. The default for '-Wshadow'. Warns for any (global) shadowing.
  4389. '-Wshadow=local'
  4390. Warn when a local variable shadows another local variable or
  4391. parameter. This warning is enabled by '-Wshadow=global'.
  4392. '-Wshadow=compatible-local'
  4393. Warn when a local variable shadows another local variable or
  4394. parameter whose type is compatible with that of the shadowing
  4395. variable. In C++, type compatibility here means the type of the
  4396. shadowing variable can be converted to that of the shadowed
  4397. variable. The creation of this flag (in addition to
  4398. '-Wshadow=local') is based on the idea that when a local variable
  4399. shadows another one of incompatible type, it is most likely
  4400. intentional, not a bug or typo, as shown in the following example:
  4401. for (SomeIterator i = SomeObj.begin(); i != SomeObj.end(); ++i)
  4402. {
  4403. for (int i = 0; i < N; ++i)
  4404. {
  4405. ...
  4406. }
  4407. ...
  4408. }
  4409. Since the two variable 'i' in the example above have incompatible
  4410. types, enabling only '-Wshadow=compatible-local' will not emit a
  4411. warning. Because their types are incompatible, if a programmer
  4412. accidentally uses one in place of the other, type checking will
  4413. catch that and emit an error or warning. So not warning (about
  4414. shadowing) in this case will not lead to undetected bugs. Use of
  4415. this flag instead of '-Wshadow=local' can possibly reduce the
  4416. number of warnings triggered by intentional shadowing.
  4417. This warning is enabled by '-Wshadow=local'.
  4418. '-Wlarger-than=LEN'
  4419. Warn whenever an object of larger than LEN bytes is defined.
  4420. '-Wframe-larger-than=LEN'
  4421. Warn if the size of a function frame is larger than LEN bytes. The
  4422. computation done to determine the stack frame size is approximate
  4423. and not conservative. The actual requirements may be somewhat
  4424. greater than LEN even if you do not get a warning. In addition,
  4425. any space allocated via 'alloca', variable-length arrays, or
  4426. related constructs is not included by the compiler when determining
  4427. whether or not to issue a warning.
  4428. '-Wno-free-nonheap-object'
  4429. Do not warn when attempting to free an object that was not
  4430. allocated on the heap.
  4431. '-Wstack-usage=LEN'
  4432. Warn if the stack usage of a function might be larger than LEN
  4433. bytes. The computation done to determine the stack usage is
  4434. conservative. Any space allocated via 'alloca', variable-length
  4435. arrays, or related constructs is included by the compiler when
  4436. determining whether or not to issue a warning.
  4437. The message is in keeping with the output of '-fstack-usage'.
  4438. * If the stack usage is fully static but exceeds the specified
  4439. amount, it's:
  4440. warning: stack usage is 1120 bytes
  4441. * If the stack usage is (partly) dynamic but bounded, it's:
  4442. warning: stack usage might be 1648 bytes
  4443. * If the stack usage is (partly) dynamic and not bounded, it's:
  4444. warning: stack usage might be unbounded
  4445. '-Wunsafe-loop-optimizations'
  4446. Warn if the loop cannot be optimized because the compiler cannot
  4447. assume anything on the bounds of the loop indices. With
  4448. '-funsafe-loop-optimizations' warn if the compiler makes such
  4449. assumptions.
  4450. '-Wno-pedantic-ms-format (MinGW targets only)'
  4451. When used in combination with '-Wformat' and '-pedantic' without
  4452. GNU extensions, this option disables the warnings about non-ISO
  4453. 'printf' / 'scanf' format width specifiers 'I32', 'I64', and 'I'
  4454. used on Windows targets, which depend on the MS runtime.
  4455. '-Waligned-new'
  4456. Warn about a new-expression of a type that requires greater
  4457. alignment than the 'alignof(std::max_align_t)' but uses an
  4458. allocation function without an explicit alignment parameter. This
  4459. option is enabled by '-Wall'.
  4460. Normally this only warns about global allocation functions, but
  4461. '-Waligned-new=all' also warns about class member allocation
  4462. functions.
  4463. '-Wplacement-new'
  4464. '-Wplacement-new=N'
  4465. Warn about placement new expressions with undefined behavior, such
  4466. as constructing an object in a buffer that is smaller than the type
  4467. of the object. For example, the placement new expression below is
  4468. diagnosed because it attempts to construct an array of 64 integers
  4469. in a buffer only 64 bytes large.
  4470. char buf [64];
  4471. new (buf) int[64];
  4472. This warning is enabled by default.
  4473. '-Wplacement-new=1'
  4474. This is the default warning level of '-Wplacement-new'. At
  4475. this level the warning is not issued for some strictly
  4476. undefined constructs that GCC allows as extensions for
  4477. compatibility with legacy code. For example, the following
  4478. 'new' expression is not diagnosed at this level even though it
  4479. has undefined behavior according to the C++ standard because
  4480. it writes past the end of the one-element array.
  4481. struct S { int n, a[1]; };
  4482. S *s = (S *)malloc (sizeof *s + 31 * sizeof s->a[0]);
  4483. new (s->a)int [32]();
  4484. '-Wplacement-new=2'
  4485. At this level, in addition to diagnosing all the same
  4486. constructs as at level 1, a diagnostic is also issued for
  4487. placement new expressions that construct an object in the last
  4488. member of structure whose type is an array of a single element
  4489. and whose size is less than the size of the object being
  4490. constructed. While the previous example would be diagnosed,
  4491. the following construct makes use of the flexible member array
  4492. extension to avoid the warning at level 2.
  4493. struct S { int n, a[]; };
  4494. S *s = (S *)malloc (sizeof *s + 32 * sizeof s->a[0]);
  4495. new (s->a)int [32]();
  4496. '-Wpointer-arith'
  4497. Warn about anything that depends on the "size of" a function type
  4498. or of 'void'. GNU C assigns these types a size of 1, for
  4499. convenience in calculations with 'void *' pointers and pointers to
  4500. functions. In C++, warn also when an arithmetic operation involves
  4501. 'NULL'. This warning is also enabled by '-Wpedantic'.
  4502. '-Wpointer-compare'
  4503. Warn if a pointer is compared with a zero character constant. This
  4504. usually means that the pointer was meant to be dereferenced. For
  4505. example:
  4506. const char *p = foo ();
  4507. if (p == '\0')
  4508. return 42;
  4509. Note that the code above is invalid in C++11.
  4510. This warning is enabled by default.
  4511. '-Wtype-limits'
  4512. Warn if a comparison is always true or always false due to the
  4513. limited range of the data type, but do not warn for constant
  4514. expressions. For example, warn if an unsigned variable is compared
  4515. against zero with '<' or '>='. This warning is also enabled by
  4516. '-Wextra'.
  4517. '-Wcomment'
  4518. '-Wcomments'
  4519. Warn whenever a comment-start sequence '/*' appears in a '/*'
  4520. comment, or whenever a backslash-newline appears in a '//' comment.
  4521. This warning is enabled by '-Wall'.
  4522. '-Wtrigraphs'
  4523. Warn if any trigraphs are encountered that might change the meaning
  4524. of the program. Trigraphs within comments are not warned about,
  4525. except those that would form escaped newlines.
  4526. This option is implied by '-Wall'. If '-Wall' is not given, this
  4527. option is still enabled unless trigraphs are enabled. To get
  4528. trigraph conversion without warnings, but get the other '-Wall'
  4529. warnings, use '-trigraphs -Wall -Wno-trigraphs'.
  4530. '-Wundef'
  4531. Warn if an undefined identifier is evaluated in an '#if' directive.
  4532. Such identifiers are replaced with zero.
  4533. '-Wexpansion-to-defined'
  4534. Warn whenever 'defined' is encountered in the expansion of a macro
  4535. (including the case where the macro is expanded by an '#if'
  4536. directive). Such usage is not portable. This warning is also
  4537. enabled by '-Wpedantic' and '-Wextra'.
  4538. '-Wunused-macros'
  4539. Warn about macros defined in the main file that are unused. A
  4540. macro is "used" if it is expanded or tested for existence at least
  4541. once. The preprocessor also warns if the macro has not been used
  4542. at the time it is redefined or undefined.
  4543. Built-in macros, macros defined on the command line, and macros
  4544. defined in include files are not warned about.
  4545. _Note:_ If a macro is actually used, but only used in skipped
  4546. conditional blocks, then the preprocessor reports it as unused. To
  4547. avoid the warning in such a case, you might improve the scope of
  4548. the macro's definition by, for example, moving it into the first
  4549. skipped block. Alternatively, you could provide a dummy use with
  4550. something like:
  4551. #if defined the_macro_causing_the_warning
  4552. #endif
  4553. '-Wno-endif-labels'
  4554. Do not warn whenever an '#else' or an '#endif' are followed by
  4555. text. This sometimes happens in older programs with code of the
  4556. form
  4557. #if FOO
  4558. ...
  4559. #else FOO
  4560. ...
  4561. #endif FOO
  4562. The second and third 'FOO' should be in comments. This warning is
  4563. on by default.
  4564. '-Wbad-function-cast (C and Objective-C only)'
  4565. Warn when a function call is cast to a non-matching type. For
  4566. example, warn if a call to a function returning an integer type is
  4567. cast to a pointer type.
  4568. '-Wc90-c99-compat (C and Objective-C only)'
  4569. Warn about features not present in ISO C90, but present in ISO C99.
  4570. For instance, warn about use of variable length arrays, 'long long'
  4571. type, 'bool' type, compound literals, designated initializers, and
  4572. so on. This option is independent of the standards mode. Warnings
  4573. are disabled in the expression that follows '__extension__'.
  4574. '-Wc99-c11-compat (C and Objective-C only)'
  4575. Warn about features not present in ISO C99, but present in ISO C11.
  4576. For instance, warn about use of anonymous structures and unions,
  4577. '_Atomic' type qualifier, '_Thread_local' storage-class specifier,
  4578. '_Alignas' specifier, 'Alignof' operator, '_Generic' keyword, and
  4579. so on. This option is independent of the standards mode. Warnings
  4580. are disabled in the expression that follows '__extension__'.
  4581. '-Wc++-compat (C and Objective-C only)'
  4582. Warn about ISO C constructs that are outside of the common subset
  4583. of ISO C and ISO C++, e.g. request for implicit conversion from
  4584. 'void *' to a pointer to non-'void' type.
  4585. '-Wc++11-compat (C++ and Objective-C++ only)'
  4586. Warn about C++ constructs whose meaning differs between ISO C++
  4587. 1998 and ISO C++ 2011, e.g., identifiers in ISO C++ 1998 that are
  4588. keywords in ISO C++ 2011. This warning turns on '-Wnarrowing' and
  4589. is enabled by '-Wall'.
  4590. '-Wc++14-compat (C++ and Objective-C++ only)'
  4591. Warn about C++ constructs whose meaning differs between ISO C++
  4592. 2011 and ISO C++ 2014. This warning is enabled by '-Wall'.
  4593. '-Wc++1z-compat (C++ and Objective-C++ only)'
  4594. Warn about C++ constructs whose meaning differs between ISO C++
  4595. 2014 and the forthoming ISO C++ 2017(?). This warning is enabled
  4596. by '-Wall'.
  4597. '-Wcast-qual'
  4598. Warn whenever a pointer is cast so as to remove a type qualifier
  4599. from the target type. For example, warn if a 'const char *' is
  4600. cast to an ordinary 'char *'.
  4601. Also warn when making a cast that introduces a type qualifier in an
  4602. unsafe way. For example, casting 'char **' to 'const char **' is
  4603. unsafe, as in this example:
  4604. /* p is char ** value. */
  4605. const char **q = (const char **) p;
  4606. /* Assignment of readonly string to const char * is OK. */
  4607. *q = "string";
  4608. /* Now char** pointer points to read-only memory. */
  4609. **p = 'b';
  4610. '-Wcast-align'
  4611. Warn whenever a pointer is cast such that the required alignment of
  4612. the target is increased. For example, warn if a 'char *' is cast
  4613. to an 'int *' on machines where integers can only be accessed at
  4614. two- or four-byte boundaries.
  4615. '-Wwrite-strings'
  4616. When compiling C, give string constants the type 'const
  4617. char[LENGTH]' so that copying the address of one into a non-'const'
  4618. 'char *' pointer produces a warning. These warnings help you find
  4619. at compile time code that can try to write into a string constant,
  4620. but only if you have been very careful about using 'const' in
  4621. declarations and prototypes. Otherwise, it is just a nuisance.
  4622. This is why we did not make '-Wall' request these warnings.
  4623. When compiling C++, warn about the deprecated conversion from
  4624. string literals to 'char *'. This warning is enabled by default
  4625. for C++ programs.
  4626. '-Wclobbered'
  4627. Warn for variables that might be changed by 'longjmp' or 'vfork'.
  4628. This warning is also enabled by '-Wextra'.
  4629. '-Wconditionally-supported (C++ and Objective-C++ only)'
  4630. Warn for conditionally-supported (C++11 [intro.defs]) constructs.
  4631. '-Wconversion'
  4632. Warn for implicit conversions that may alter a value. This
  4633. includes conversions between real and integer, like 'abs (x)' when
  4634. 'x' is 'double'; conversions between signed and unsigned, like
  4635. 'unsigned ui = -1'; and conversions to smaller types, like 'sqrtf
  4636. (M_PI)'. Do not warn for explicit casts like 'abs ((int) x)' and
  4637. 'ui = (unsigned) -1', or if the value is not changed by the
  4638. conversion like in 'abs (2.0)'. Warnings about conversions between
  4639. signed and unsigned integers can be disabled by using
  4640. '-Wno-sign-conversion'.
  4641. For C++, also warn for confusing overload resolution for
  4642. user-defined conversions; and conversions that never use a type
  4643. conversion operator: conversions to 'void', the same type, a base
  4644. class or a reference to them. Warnings about conversions between
  4645. signed and unsigned integers are disabled by default in C++ unless
  4646. '-Wsign-conversion' is explicitly enabled.
  4647. '-Wno-conversion-null (C++ and Objective-C++ only)'
  4648. Do not warn for conversions between 'NULL' and non-pointer types.
  4649. '-Wconversion-null' is enabled by default.
  4650. '-Wzero-as-null-pointer-constant (C++ and Objective-C++ only)'
  4651. Warn when a literal '0' is used as null pointer constant. This can
  4652. be useful to facilitate the conversion to 'nullptr' in C++11.
  4653. '-Wsubobject-linkage (C++ and Objective-C++ only)'
  4654. Warn if a class type has a base or a field whose type uses the
  4655. anonymous namespace or depends on a type with no linkage. If a
  4656. type A depends on a type B with no or internal linkage, defining it
  4657. in multiple translation units would be an ODR violation because the
  4658. meaning of B is different in each translation unit. If A only
  4659. appears in a single translation unit, the best way to silence the
  4660. warning is to give it internal linkage by putting it in an
  4661. anonymous namespace as well. The compiler doesn't give this
  4662. warning for types defined in the main .C file, as those are
  4663. unlikely to have multiple definitions. '-Wsubobject-linkage' is
  4664. enabled by default.
  4665. '-Wdangling-else'
  4666. Warn about constructions where there may be confusion to which 'if'
  4667. statement an 'else' branch belongs. Here is an example of such a
  4668. case:
  4669. {
  4670. if (a)
  4671. if (b)
  4672. foo ();
  4673. else
  4674. bar ();
  4675. }
  4676. In C/C++, every 'else' branch belongs to the innermost possible
  4677. 'if' statement, which in this example is 'if (b)'. This is often
  4678. not what the programmer expected, as illustrated in the above
  4679. example by indentation the programmer chose. When there is the
  4680. potential for this confusion, GCC issues a warning when this flag
  4681. is specified. To eliminate the warning, add explicit braces around
  4682. the innermost 'if' statement so there is no way the 'else' can
  4683. belong to the enclosing 'if'. The resulting code looks like this:
  4684. {
  4685. if (a)
  4686. {
  4687. if (b)
  4688. foo ();
  4689. else
  4690. bar ();
  4691. }
  4692. }
  4693. This warning is enabled by '-Wparentheses'.
  4694. '-Wdate-time'
  4695. Warn when macros '__TIME__', '__DATE__' or '__TIMESTAMP__' are
  4696. encountered as they might prevent bit-wise-identical reproducible
  4697. compilations.
  4698. '-Wdelete-incomplete (C++ and Objective-C++ only)'
  4699. Warn when deleting a pointer to incomplete type, which may cause
  4700. undefined behavior at runtime. This warning is enabled by default.
  4701. '-Wuseless-cast (C++ and Objective-C++ only)'
  4702. Warn when an expression is casted to its own type.
  4703. '-Wempty-body'
  4704. Warn if an empty body occurs in an 'if', 'else' or 'do while'
  4705. statement. This warning is also enabled by '-Wextra'.
  4706. '-Wenum-compare'
  4707. Warn about a comparison between values of different enumerated
  4708. types. In C++ enumerated type mismatches in conditional
  4709. expressions are also diagnosed and the warning is enabled by
  4710. default. In C this warning is enabled by '-Wall'.
  4711. '-Wjump-misses-init (C, Objective-C only)'
  4712. Warn if a 'goto' statement or a 'switch' statement jumps forward
  4713. across the initialization of a variable, or jumps backward to a
  4714. label after the variable has been initialized. This only warns
  4715. about variables that are initialized when they are declared. This
  4716. warning is only supported for C and Objective-C; in C++ this sort
  4717. of branch is an error in any case.
  4718. '-Wjump-misses-init' is included in '-Wc++-compat'. It can be
  4719. disabled with the '-Wno-jump-misses-init' option.
  4720. '-Wsign-compare'
  4721. Warn when a comparison between signed and unsigned values could
  4722. produce an incorrect result when the signed value is converted to
  4723. unsigned. In C++, this warning is also enabled by '-Wall'. In C,
  4724. it is also enabled by '-Wextra'.
  4725. '-Wsign-conversion'
  4726. Warn for implicit conversions that may change the sign of an
  4727. integer value, like assigning a signed integer expression to an
  4728. unsigned integer variable. An explicit cast silences the warning.
  4729. In C, this option is enabled also by '-Wconversion'.
  4730. '-Wfloat-conversion'
  4731. Warn for implicit conversions that reduce the precision of a real
  4732. value. This includes conversions from real to integer, and from
  4733. higher precision real to lower precision real values. This option
  4734. is also enabled by '-Wconversion'.
  4735. '-Wno-scalar-storage-order'
  4736. Do not warn on suspicious constructs involving reverse scalar
  4737. storage order.
  4738. '-Wsized-deallocation (C++ and Objective-C++ only)'
  4739. Warn about a definition of an unsized deallocation function
  4740. void operator delete (void *) noexcept;
  4741. void operator delete[] (void *) noexcept;
  4742. without a definition of the corresponding sized deallocation
  4743. function
  4744. void operator delete (void *, std::size_t) noexcept;
  4745. void operator delete[] (void *, std::size_t) noexcept;
  4746. or vice versa. Enabled by '-Wextra' along with
  4747. '-fsized-deallocation'.
  4748. '-Wsizeof-pointer-memaccess'
  4749. Warn for suspicious length parameters to certain string and memory
  4750. built-in functions if the argument uses 'sizeof'. This warning
  4751. warns e.g. about 'memset (ptr, 0, sizeof (ptr));' if 'ptr' is not
  4752. an array, but a pointer, and suggests a possible fix, or about
  4753. 'memcpy (&foo, ptr, sizeof (&foo));'. This warning is enabled by
  4754. '-Wall'.
  4755. '-Wsizeof-array-argument'
  4756. Warn when the 'sizeof' operator is applied to a parameter that is
  4757. declared as an array in a function definition. This warning is
  4758. enabled by default for C and C++ programs.
  4759. '-Wmemset-elt-size'
  4760. Warn for suspicious calls to the 'memset' built-in function, if the
  4761. first argument references an array, and the third argument is a
  4762. number equal to the number of elements, but not equal to the size
  4763. of the array in memory. This indicates that the user has omitted a
  4764. multiplication by the element size. This warning is enabled by
  4765. '-Wall'.
  4766. '-Wmemset-transposed-args'
  4767. Warn for suspicious calls to the 'memset' built-in function, if the
  4768. second argument is not zero and the third argument is zero. This
  4769. warns e.g. about 'memset (buf, sizeof buf, 0)' where most probably
  4770. 'memset (buf, 0, sizeof buf)' was meant instead. The diagnostics
  4771. is only emitted if the third argument is literal zero. If it is
  4772. some expression that is folded to zero, a cast of zero to some
  4773. type, etc., it is far less likely that the user has mistakenly
  4774. exchanged the arguments and no warning is emitted. This warning is
  4775. enabled by '-Wall'.
  4776. '-Waddress'
  4777. Warn about suspicious uses of memory addresses. These include
  4778. using the address of a function in a conditional expression, such
  4779. as 'void func(void); if (func)', and comparisons against the memory
  4780. address of a string literal, such as 'if (x == "abc")'. Such uses
  4781. typically indicate a programmer error: the address of a function
  4782. always evaluates to true, so their use in a conditional usually
  4783. indicate that the programmer forgot the parentheses in a function
  4784. call; and comparisons against string literals result in unspecified
  4785. behavior and are not portable in C, so they usually indicate that
  4786. the programmer intended to use 'strcmp'. This warning is enabled
  4787. by '-Wall'.
  4788. '-Wlogical-op'
  4789. Warn about suspicious uses of logical operators in expressions.
  4790. This includes using logical operators in contexts where a bit-wise
  4791. operator is likely to be expected. Also warns when the operands of
  4792. a logical operator are the same:
  4793. extern int a;
  4794. if (a < 0 && a < 0) { ... }
  4795. '-Wlogical-not-parentheses'
  4796. Warn about logical not used on the left hand side operand of a
  4797. comparison. This option does not warn if the right operand is
  4798. considered to be a boolean expression. Its purpose is to detect
  4799. suspicious code like the following:
  4800. int a;
  4801. ...
  4802. if (!a > 1) { ... }
  4803. It is possible to suppress the warning by wrapping the LHS into
  4804. parentheses:
  4805. if ((!a) > 1) { ... }
  4806. This warning is enabled by '-Wall'.
  4807. '-Waggregate-return'
  4808. Warn if any functions that return structures or unions are defined
  4809. or called. (In languages where you can return an array, this also
  4810. elicits a warning.)
  4811. '-Wno-aggressive-loop-optimizations'
  4812. Warn if in a loop with constant number of iterations the compiler
  4813. detects undefined behavior in some statement during one or more of
  4814. the iterations.
  4815. '-Wno-attributes'
  4816. Do not warn if an unexpected '__attribute__' is used, such as
  4817. unrecognized attributes, function attributes applied to variables,
  4818. etc. This does not stop errors for incorrect use of supported
  4819. attributes.
  4820. '-Wno-builtin-declaration-mismatch'
  4821. Warn if a built-in function is declared with the wrong signature.
  4822. This warning is enabled by default.
  4823. '-Wno-builtin-macro-redefined'
  4824. Do not warn if certain built-in macros are redefined. This
  4825. suppresses warnings for redefinition of '__TIMESTAMP__',
  4826. '__TIME__', '__DATE__', '__FILE__', and '__BASE_FILE__'.
  4827. '-Wstrict-prototypes (C and Objective-C only)'
  4828. Warn if a function is declared or defined without specifying the
  4829. argument types. (An old-style function definition is permitted
  4830. without a warning if preceded by a declaration that specifies the
  4831. argument types.)
  4832. '-Wold-style-declaration (C and Objective-C only)'
  4833. Warn for obsolescent usages, according to the C Standard, in a
  4834. declaration. For example, warn if storage-class specifiers like
  4835. 'static' are not the first things in a declaration. This warning
  4836. is also enabled by '-Wextra'.
  4837. '-Wold-style-definition (C and Objective-C only)'
  4838. Warn if an old-style function definition is used. A warning is
  4839. given even if there is a previous prototype.
  4840. '-Wmissing-parameter-type (C and Objective-C only)'
  4841. A function parameter is declared without a type specifier in
  4842. K&R-style functions:
  4843. void foo(bar) { }
  4844. This warning is also enabled by '-Wextra'.
  4845. '-Wmissing-prototypes (C and Objective-C only)'
  4846. Warn if a global function is defined without a previous prototype
  4847. declaration. This warning is issued even if the definition itself
  4848. provides a prototype. Use this option to detect global functions
  4849. that do not have a matching prototype declaration in a header file.
  4850. This option is not valid for C++ because all function declarations
  4851. provide prototypes and a non-matching declaration declares an
  4852. overload rather than conflict with an earlier declaration. Use
  4853. '-Wmissing-declarations' to detect missing declarations in C++.
  4854. '-Wmissing-declarations'
  4855. Warn if a global function is defined without a previous
  4856. declaration. Do so even if the definition itself provides a
  4857. prototype. Use this option to detect global functions that are not
  4858. declared in header files. In C, no warnings are issued for
  4859. functions with previous non-prototype declarations; use
  4860. '-Wmissing-prototypes' to detect missing prototypes. In C++, no
  4861. warnings are issued for function templates, or for inline
  4862. functions, or for functions in anonymous namespaces.
  4863. '-Wmissing-field-initializers'
  4864. Warn if a structure's initializer has some fields missing. For
  4865. example, the following code causes such a warning, because 'x.h' is
  4866. implicitly zero:
  4867. struct s { int f, g, h; };
  4868. struct s x = { 3, 4 };
  4869. This option does not warn about designated initializers, so the
  4870. following modification does not trigger a warning:
  4871. struct s { int f, g, h; };
  4872. struct s x = { .f = 3, .g = 4 };
  4873. In C++ this option does not warn either about the empty { }
  4874. initializer, for example:
  4875. struct s { int f, g, h; };
  4876. s x = { };
  4877. This warning is included in '-Wextra'. To get other '-Wextra'
  4878. warnings without this one, use '-Wextra
  4879. -Wno-missing-field-initializers'.
  4880. '-Wno-multichar'
  4881. Do not warn if a multicharacter constant (''FOOF'') is used.
  4882. Usually they indicate a typo in the user's code, as they have
  4883. implementation-defined values, and should not be used in portable
  4884. code.
  4885. '-Wnormalized=[none|id|nfc|nfkc]'
  4886. In ISO C and ISO C++, two identifiers are different if they are
  4887. different sequences of characters. However, sometimes when
  4888. characters outside the basic ASCII character set are used, you can
  4889. have two different character sequences that look the same. To
  4890. avoid confusion, the ISO 10646 standard sets out some
  4891. "normalization rules" which when applied ensure that two sequences
  4892. that look the same are turned into the same sequence. GCC can warn
  4893. you if you are using identifiers that have not been normalized;
  4894. this option controls that warning.
  4895. There are four levels of warning supported by GCC. The default is
  4896. '-Wnormalized=nfc', which warns about any identifier that is not in
  4897. the ISO 10646 "C" normalized form, "NFC". NFC is the recommended
  4898. form for most uses. It is equivalent to '-Wnormalized'.
  4899. Unfortunately, there are some characters allowed in identifiers by
  4900. ISO C and ISO C++ that, when turned into NFC, are not allowed in
  4901. identifiers. That is, there's no way to use these symbols in
  4902. portable ISO C or C++ and have all your identifiers in NFC.
  4903. '-Wnormalized=id' suppresses the warning for these characters. It
  4904. is hoped that future versions of the standards involved will
  4905. correct this, which is why this option is not the default.
  4906. You can switch the warning off for all characters by writing
  4907. '-Wnormalized=none' or '-Wno-normalized'. You should only do this
  4908. if you are using some other normalization scheme (like "D"),
  4909. because otherwise you can easily create bugs that are literally
  4910. impossible to see.
  4911. Some characters in ISO 10646 have distinct meanings but look
  4912. identical in some fonts or display methodologies, especially once
  4913. formatting has been applied. For instance '\u207F', "SUPERSCRIPT
  4914. LATIN SMALL LETTER N", displays just like a regular 'n' that has
  4915. been placed in a superscript. ISO 10646 defines the "NFKC"
  4916. normalization scheme to convert all these into a standard form as
  4917. well, and GCC warns if your code is not in NFKC if you use
  4918. '-Wnormalized=nfkc'. This warning is comparable to warning about
  4919. every identifier that contains the letter O because it might be
  4920. confused with the digit 0, and so is not the default, but may be
  4921. useful as a local coding convention if the programming environment
  4922. cannot be fixed to display these characters distinctly.
  4923. '-Wno-deprecated'
  4924. Do not warn about usage of deprecated features. *Note Deprecated
  4925. Features::.
  4926. '-Wno-deprecated-declarations'
  4927. Do not warn about uses of functions (*note Function Attributes::),
  4928. variables (*note Variable Attributes::), and types (*note Type
  4929. Attributes::) marked as deprecated by using the 'deprecated'
  4930. attribute.
  4931. '-Wno-overflow'
  4932. Do not warn about compile-time overflow in constant expressions.
  4933. '-Wno-odr'
  4934. Warn about One Definition Rule violations during link-time
  4935. optimization. Requires '-flto-odr-type-merging' to be enabled.
  4936. Enabled by default.
  4937. '-Wopenmp-simd'
  4938. Warn if the vectorizer cost model overrides the OpenMP or the Cilk
  4939. Plus simd directive set by user. The '-fsimd-cost-model=unlimited'
  4940. option can be used to relax the cost model.
  4941. '-Woverride-init (C and Objective-C only)'
  4942. Warn if an initialized field without side effects is overridden
  4943. when using designated initializers (*note Designated Initializers:
  4944. Designated Inits.).
  4945. This warning is included in '-Wextra'. To get other '-Wextra'
  4946. warnings without this one, use '-Wextra -Wno-override-init'.
  4947. '-Woverride-init-side-effects (C and Objective-C only)'
  4948. Warn if an initialized field with side effects is overridden when
  4949. using designated initializers (*note Designated Initializers:
  4950. Designated Inits.). This warning is enabled by default.
  4951. '-Wpacked'
  4952. Warn if a structure is given the packed attribute, but the packed
  4953. attribute has no effect on the layout or size of the structure.
  4954. Such structures may be mis-aligned for little benefit. For
  4955. instance, in this code, the variable 'f.x' in 'struct bar' is
  4956. misaligned even though 'struct bar' does not itself have the packed
  4957. attribute:
  4958. struct foo {
  4959. int x;
  4960. char a, b, c, d;
  4961. } __attribute__((packed));
  4962. struct bar {
  4963. char z;
  4964. struct foo f;
  4965. };
  4966. '-Wpacked-bitfield-compat'
  4967. The 4.1, 4.2 and 4.3 series of GCC ignore the 'packed' attribute on
  4968. bit-fields of type 'char'. This has been fixed in GCC 4.4 but the
  4969. change can lead to differences in the structure layout. GCC
  4970. informs you when the offset of such a field has changed in GCC 4.4.
  4971. For example there is no longer a 4-bit padding between field 'a'
  4972. and 'b' in this structure:
  4973. struct foo
  4974. {
  4975. char a:4;
  4976. char b:8;
  4977. } __attribute__ ((packed));
  4978. This warning is enabled by default. Use
  4979. '-Wno-packed-bitfield-compat' to disable this warning.
  4980. '-Wpadded'
  4981. Warn if padding is included in a structure, either to align an
  4982. element of the structure or to align the whole structure.
  4983. Sometimes when this happens it is possible to rearrange the fields
  4984. of the structure to reduce the padding and so make the structure
  4985. smaller.
  4986. '-Wredundant-decls'
  4987. Warn if anything is declared more than once in the same scope, even
  4988. in cases where multiple declaration is valid and changes nothing.
  4989. '-Wrestrict'
  4990. Warn when an argument passed to a restrict-qualified parameter
  4991. aliases with another argument.
  4992. '-Wnested-externs (C and Objective-C only)'
  4993. Warn if an 'extern' declaration is encountered within a function.
  4994. '-Wno-inherited-variadic-ctor'
  4995. Suppress warnings about use of C++11 inheriting constructors when
  4996. the base class inherited from has a C variadic constructor; the
  4997. warning is on by default because the ellipsis is not inherited.
  4998. '-Winline'
  4999. Warn if a function that is declared as inline cannot be inlined.
  5000. Even with this option, the compiler does not warn about failures to
  5001. inline functions declared in system headers.
  5002. The compiler uses a variety of heuristics to determine whether or
  5003. not to inline a function. For example, the compiler takes into
  5004. account the size of the function being inlined and the amount of
  5005. inlining that has already been done in the current function.
  5006. Therefore, seemingly insignificant changes in the source program
  5007. can cause the warnings produced by '-Winline' to appear or
  5008. disappear.
  5009. '-Wno-invalid-offsetof (C++ and Objective-C++ only)'
  5010. Suppress warnings from applying the 'offsetof' macro to a non-POD
  5011. type. According to the 2014 ISO C++ standard, applying 'offsetof'
  5012. to a non-standard-layout type is undefined. In existing C++
  5013. implementations, however, 'offsetof' typically gives meaningful
  5014. results. This flag is for users who are aware that they are
  5015. writing nonportable code and who have deliberately chosen to ignore
  5016. the warning about it.
  5017. The restrictions on 'offsetof' may be relaxed in a future version
  5018. of the C++ standard.
  5019. '-Wint-in-bool-context'
  5020. Warn for suspicious use of integer values where boolean values are
  5021. expected, such as conditional expressions (?:) using non-boolean
  5022. integer constants in boolean context, like 'if (a <= b ? 2 : 3)'.
  5023. Or left shifting of signed integers in boolean context, like 'for
  5024. (a = 0; 1 << a; a++);'. Likewise for all kinds of multiplications
  5025. regardless of the data type. This warning is enabled by '-Wall'.
  5026. '-Wno-int-to-pointer-cast'
  5027. Suppress warnings from casts to pointer type of an integer of a
  5028. different size. In C++, casting to a pointer type of smaller size
  5029. is an error. 'Wint-to-pointer-cast' is enabled by default.
  5030. '-Wno-pointer-to-int-cast (C and Objective-C only)'
  5031. Suppress warnings from casts from a pointer to an integer type of a
  5032. different size.
  5033. '-Winvalid-pch'
  5034. Warn if a precompiled header (*note Precompiled Headers::) is found
  5035. in the search path but cannot be used.
  5036. '-Wlong-long'
  5037. Warn if 'long long' type is used. This is enabled by either
  5038. '-Wpedantic' or '-Wtraditional' in ISO C90 and C++98 modes. To
  5039. inhibit the warning messages, use '-Wno-long-long'.
  5040. '-Wvariadic-macros'
  5041. Warn if variadic macros are used in ISO C90 mode, or if the GNU
  5042. alternate syntax is used in ISO C99 mode. This is enabled by
  5043. either '-Wpedantic' or '-Wtraditional'. To inhibit the warning
  5044. messages, use '-Wno-variadic-macros'.
  5045. '-Wvarargs'
  5046. Warn upon questionable usage of the macros used to handle variable
  5047. arguments like 'va_start'. This is default. To inhibit the
  5048. warning messages, use '-Wno-varargs'.
  5049. '-Wvector-operation-performance'
  5050. Warn if vector operation is not implemented via SIMD capabilities
  5051. of the architecture. Mainly useful for the performance tuning.
  5052. Vector operation can be implemented 'piecewise', which means that
  5053. the scalar operation is performed on every vector element; 'in
  5054. parallel', which means that the vector operation is implemented
  5055. using scalars of wider type, which normally is more performance
  5056. efficient; and 'as a single scalar', which means that vector fits
  5057. into a scalar type.
  5058. '-Wno-virtual-move-assign'
  5059. Suppress warnings about inheriting from a virtual base with a
  5060. non-trivial C++11 move assignment operator. This is dangerous
  5061. because if the virtual base is reachable along more than one path,
  5062. it is moved multiple times, which can mean both objects end up in
  5063. the moved-from state. If the move assignment operator is written
  5064. to avoid moving from a moved-from object, this warning can be
  5065. disabled.
  5066. '-Wvla'
  5067. Warn if a variable-length array is used in the code. '-Wno-vla'
  5068. prevents the '-Wpedantic' warning of the variable-length array.
  5069. '-Wvla-larger-than=N'
  5070. If this option is used, the compiler will warn on uses of
  5071. variable-length arrays where the size is either unbounded, or
  5072. bounded by an argument that can be larger than N bytes. This is
  5073. similar to how '-Walloca-larger-than=N' works, but with
  5074. variable-length arrays.
  5075. Note that GCC may optimize small variable-length arrays of a known
  5076. value into plain arrays, so this warning may not get triggered for
  5077. such arrays.
  5078. This warning is not enabled by '-Wall', and is only active when
  5079. '-ftree-vrp' is active (default for '-O2' and above).
  5080. See also '-Walloca-larger-than=N'.
  5081. '-Wvolatile-register-var'
  5082. Warn if a register variable is declared volatile. The volatile
  5083. modifier does not inhibit all optimizations that may eliminate
  5084. reads and/or writes to register variables. This warning is enabled
  5085. by '-Wall'.
  5086. '-Wdisabled-optimization'
  5087. Warn if a requested optimization pass is disabled. This warning
  5088. does not generally indicate that there is anything wrong with your
  5089. code; it merely indicates that GCC's optimizers are unable to
  5090. handle the code effectively. Often, the problem is that your code
  5091. is too big or too complex; GCC refuses to optimize programs when
  5092. the optimization itself is likely to take inordinate amounts of
  5093. time.
  5094. '-Wpointer-sign (C and Objective-C only)'
  5095. Warn for pointer argument passing or assignment with different
  5096. signedness. This option is only supported for C and Objective-C.
  5097. It is implied by '-Wall' and by '-Wpedantic', which can be disabled
  5098. with '-Wno-pointer-sign'.
  5099. '-Wstack-protector'
  5100. This option is only active when '-fstack-protector' is active. It
  5101. warns about functions that are not protected against stack
  5102. smashing.
  5103. '-Woverlength-strings'
  5104. Warn about string constants that are longer than the "minimum
  5105. maximum" length specified in the C standard. Modern compilers
  5106. generally allow string constants that are much longer than the
  5107. standard's minimum limit, but very portable programs should avoid
  5108. using longer strings.
  5109. The limit applies _after_ string constant concatenation, and does
  5110. not count the trailing NUL. In C90, the limit was 509 characters;
  5111. in C99, it was raised to 4095. C++98 does not specify a normative
  5112. minimum maximum, so we do not diagnose overlength strings in C++.
  5113. This option is implied by '-Wpedantic', and can be disabled with
  5114. '-Wno-overlength-strings'.
  5115. '-Wunsuffixed-float-constants (C and Objective-C only)'
  5116. Issue a warning for any floating constant that does not have a
  5117. suffix. When used together with '-Wsystem-headers' it warns about
  5118. such constants in system header files. This can be useful when
  5119. preparing code to use with the 'FLOAT_CONST_DECIMAL64' pragma from
  5120. the decimal floating-point extension to C99.
  5121. '-Wno-designated-init (C and Objective-C only)'
  5122. Suppress warnings when a positional initializer is used to
  5123. initialize a structure that has been marked with the
  5124. 'designated_init' attribute.
  5125. '-Whsa'
  5126. Issue a warning when HSAIL cannot be emitted for the compiled
  5127. function or OpenMP construct.
  5128. 
  5129. File: gcc.info, Node: Debugging Options, Next: Optimize Options, Prev: Warning Options, Up: Invoking GCC
  5130. 3.9 Options for Debugging Your Program
  5131. ======================================
  5132. To tell GCC to emit extra information for use by a debugger, in almost
  5133. all cases you need only to add '-g' to your other options.
  5134. GCC allows you to use '-g' with '-O'. The shortcuts taken by optimized
  5135. code may occasionally be surprising: some variables you declared may not
  5136. exist at all; flow of control may briefly move where you did not expect
  5137. it; some statements may not be executed because they compute constant
  5138. results or their values are already at hand; some statements may execute
  5139. in different places because they have been moved out of loops.
  5140. Nevertheless it is possible to debug optimized output. This makes it
  5141. reasonable to use the optimizer for programs that might have bugs.
  5142. If you are not using some other optimization option, consider using
  5143. '-Og' (*note Optimize Options::) with '-g'. With no '-O' option at all,
  5144. some compiler passes that collect information useful for debugging do
  5145. not run at all, so that '-Og' may result in a better debugging
  5146. experience.
  5147. '-g'
  5148. Produce debugging information in the operating system's native
  5149. format (stabs, COFF, XCOFF, or DWARF). GDB can work with this
  5150. debugging information.
  5151. On most systems that use stabs format, '-g' enables use of extra
  5152. debugging information that only GDB can use; this extra information
  5153. makes debugging work better in GDB but probably makes other
  5154. debuggers crash or refuse to read the program. If you want to
  5155. control for certain whether to generate the extra information, use
  5156. '-gstabs+', '-gstabs', '-gxcoff+', '-gxcoff', or '-gvms' (see
  5157. below).
  5158. '-ggdb'
  5159. Produce debugging information for use by GDB. This means to use
  5160. the most expressive format available (DWARF, stabs, or the native
  5161. format if neither of those are supported), including GDB extensions
  5162. if at all possible.
  5163. '-gdwarf'
  5164. '-gdwarf-VERSION'
  5165. Produce debugging information in DWARF format (if that is
  5166. supported). The value of VERSION may be either 2, 3, 4 or 5; the
  5167. default version for most targets is 4. DWARF Version 5 is only
  5168. experimental.
  5169. Note that with DWARF Version 2, some ports require and always use
  5170. some non-conflicting DWARF 3 extensions in the unwind tables.
  5171. Version 4 may require GDB 7.0 and '-fvar-tracking-assignments' for
  5172. maximum benefit.
  5173. GCC no longer supports DWARF Version 1, which is substantially
  5174. different than Version 2 and later. For historical reasons, some
  5175. other DWARF-related options (including '-feliminate-dwarf2-dups'
  5176. and '-fno-dwarf2-cfi-asm') retain a reference to DWARF Version 2 in
  5177. their names, but apply to all currently-supported versions of
  5178. DWARF.
  5179. '-gstabs'
  5180. Produce debugging information in stabs format (if that is
  5181. supported), without GDB extensions. This is the format used by DBX
  5182. on most BSD systems. On MIPS, Alpha and System V Release 4 systems
  5183. this option produces stabs debugging output that is not understood
  5184. by DBX or SDB. On System V Release 4 systems this option requires
  5185. the GNU assembler.
  5186. '-gstabs+'
  5187. Produce debugging information in stabs format (if that is
  5188. supported), using GNU extensions understood only by the GNU
  5189. debugger (GDB). The use of these extensions is likely to make
  5190. other debuggers crash or refuse to read the program.
  5191. '-gcoff'
  5192. Produce debugging information in COFF format (if that is
  5193. supported). This is the format used by SDB on most System V
  5194. systems prior to System V Release 4.
  5195. '-gxcoff'
  5196. Produce debugging information in XCOFF format (if that is
  5197. supported). This is the format used by the DBX debugger on IBM
  5198. RS/6000 systems.
  5199. '-gxcoff+'
  5200. Produce debugging information in XCOFF format (if that is
  5201. supported), using GNU extensions understood only by the GNU
  5202. debugger (GDB). The use of these extensions is likely to make
  5203. other debuggers crash or refuse to read the program, and may cause
  5204. assemblers other than the GNU assembler (GAS) to fail with an
  5205. error.
  5206. '-gvms'
  5207. Produce debugging information in Alpha/VMS debug format (if that is
  5208. supported). This is the format used by DEBUG on Alpha/VMS systems.
  5209. '-gLEVEL'
  5210. '-ggdbLEVEL'
  5211. '-gstabsLEVEL'
  5212. '-gcoffLEVEL'
  5213. '-gxcoffLEVEL'
  5214. '-gvmsLEVEL'
  5215. Request debugging information and also use LEVEL to specify how
  5216. much information. The default level is 2.
  5217. Level 0 produces no debug information at all. Thus, '-g0' negates
  5218. '-g'.
  5219. Level 1 produces minimal information, enough for making backtraces
  5220. in parts of the program that you don't plan to debug. This
  5221. includes descriptions of functions and external variables, and line
  5222. number tables, but no information about local variables.
  5223. Level 3 includes extra information, such as all the macro
  5224. definitions present in the program. Some debuggers support macro
  5225. expansion when you use '-g3'.
  5226. '-gdwarf' does not accept a concatenated debug level, to avoid
  5227. confusion with '-gdwarf-LEVEL'. Instead use an additional
  5228. '-gLEVEL' option to change the debug level for DWARF.
  5229. '-feliminate-unused-debug-symbols'
  5230. Produce debugging information in stabs format (if that is
  5231. supported), for only symbols that are actually used.
  5232. '-femit-class-debug-always'
  5233. Instead of emitting debugging information for a C++ class in only
  5234. one object file, emit it in all object files using the class. This
  5235. option should be used only with debuggers that are unable to handle
  5236. the way GCC normally emits debugging information for classes
  5237. because using this option increases the size of debugging
  5238. information by as much as a factor of two.
  5239. '-fno-merge-debug-strings'
  5240. Direct the linker to not merge together strings in the debugging
  5241. information that are identical in different object files. Merging
  5242. is not supported by all assemblers or linkers. Merging decreases
  5243. the size of the debug information in the output file at the cost of
  5244. increasing link processing time. Merging is enabled by default.
  5245. '-fdebug-prefix-map=OLD=NEW'
  5246. When compiling files in directory 'OLD', record debugging
  5247. information describing them as in 'NEW' instead.
  5248. '-fvar-tracking'
  5249. Run variable tracking pass. It computes where variables are stored
  5250. at each position in code. Better debugging information is then
  5251. generated (if the debugging information format supports this
  5252. information).
  5253. It is enabled by default when compiling with optimization ('-Os',
  5254. '-O', '-O2', ...), debugging information ('-g') and the debug info
  5255. format supports it.
  5256. '-fvar-tracking-assignments'
  5257. Annotate assignments to user variables early in the compilation and
  5258. attempt to carry the annotations over throughout the compilation
  5259. all the way to the end, in an attempt to improve debug information
  5260. while optimizing. Use of '-gdwarf-4' is recommended along with it.
  5261. It can be enabled even if var-tracking is disabled, in which case
  5262. annotations are created and maintained, but discarded at the end.
  5263. By default, this flag is enabled together with '-fvar-tracking',
  5264. except when selective scheduling is enabled.
  5265. '-gsplit-dwarf'
  5266. Separate as much DWARF debugging information as possible into a
  5267. separate output file with the extension '.dwo'. This option allows
  5268. the build system to avoid linking files with debug information. To
  5269. be useful, this option requires a debugger capable of reading
  5270. '.dwo' files.
  5271. '-gpubnames'
  5272. Generate DWARF '.debug_pubnames' and '.debug_pubtypes' sections.
  5273. '-ggnu-pubnames'
  5274. Generate '.debug_pubnames' and '.debug_pubtypes' sections in a
  5275. format suitable for conversion into a GDB index. This option is
  5276. only useful with a linker that can produce GDB index version 7.
  5277. '-fdebug-types-section'
  5278. When using DWARF Version 4 or higher, type DIEs can be put into
  5279. their own '.debug_types' section instead of making them part of the
  5280. '.debug_info' section. It is more efficient to put them in a
  5281. separate comdat sections since the linker can then remove
  5282. duplicates. But not all DWARF consumers support '.debug_types'
  5283. sections yet and on some objects '.debug_types' produces larger
  5284. instead of smaller debugging information.
  5285. '-grecord-gcc-switches'
  5286. '-gno-record-gcc-switches'
  5287. This switch causes the command-line options used to invoke the
  5288. compiler that may affect code generation to be appended to the
  5289. DW_AT_producer attribute in DWARF debugging information. The
  5290. options are concatenated with spaces separating them from each
  5291. other and from the compiler version. It is enabled by default.
  5292. See also '-frecord-gcc-switches' for another way of storing
  5293. compiler options into the object file.
  5294. '-gstrict-dwarf'
  5295. Disallow using extensions of later DWARF standard version than
  5296. selected with '-gdwarf-VERSION'. On most targets using
  5297. non-conflicting DWARF extensions from later standard versions is
  5298. allowed.
  5299. '-gno-strict-dwarf'
  5300. Allow using extensions of later DWARF standard version than
  5301. selected with '-gdwarf-VERSION'.
  5302. '-gcolumn-info'
  5303. '-gno-column-info'
  5304. Emit location column information into DWARF debugging information,
  5305. rather than just file and line. This option is disabled by
  5306. default.
  5307. '-gz[=TYPE]'
  5308. Produce compressed debug sections in DWARF format, if that is
  5309. supported. If TYPE is not given, the default type depends on the
  5310. capabilities of the assembler and linker used. TYPE may be one of
  5311. 'none' (don't compress debug sections), 'zlib' (use zlib
  5312. compression in ELF gABI format), or 'zlib-gnu' (use zlib
  5313. compression in traditional GNU format). If the linker doesn't
  5314. support writing compressed debug sections, the option is rejected.
  5315. Otherwise, if the assembler does not support them, '-gz' is
  5316. silently ignored when producing object files.
  5317. '-feliminate-dwarf2-dups'
  5318. Compress DWARF debugging information by eliminating duplicated
  5319. information about each symbol. This option only makes sense when
  5320. generating DWARF debugging information.
  5321. '-femit-struct-debug-baseonly'
  5322. Emit debug information for struct-like types only when the base
  5323. name of the compilation source file matches the base name of file
  5324. in which the struct is defined.
  5325. This option substantially reduces the size of debugging
  5326. information, but at significant potential loss in type information
  5327. to the debugger. See '-femit-struct-debug-reduced' for a less
  5328. aggressive option. See '-femit-struct-debug-detailed' for more
  5329. detailed control.
  5330. This option works only with DWARF debug output.
  5331. '-femit-struct-debug-reduced'
  5332. Emit debug information for struct-like types only when the base
  5333. name of the compilation source file matches the base name of file
  5334. in which the type is defined, unless the struct is a template or
  5335. defined in a system header.
  5336. This option significantly reduces the size of debugging
  5337. information, with some potential loss in type information to the
  5338. debugger. See '-femit-struct-debug-baseonly' for a more aggressive
  5339. option. See '-femit-struct-debug-detailed' for more detailed
  5340. control.
  5341. This option works only with DWARF debug output.
  5342. '-femit-struct-debug-detailed[=SPEC-LIST]'
  5343. Specify the struct-like types for which the compiler generates
  5344. debug information. The intent is to reduce duplicate struct debug
  5345. information between different object files within the same program.
  5346. This option is a detailed version of '-femit-struct-debug-reduced'
  5347. and '-femit-struct-debug-baseonly', which serves for most needs.
  5348. A specification has the syntax
  5349. ['dir:'|'ind:']['ord:'|'gen:']('any'|'sys'|'base'|'none')
  5350. The optional first word limits the specification to structs that
  5351. are used directly ('dir:') or used indirectly ('ind:'). A struct
  5352. type is used directly when it is the type of a variable, member.
  5353. Indirect uses arise through pointers to structs. That is, when use
  5354. of an incomplete struct is valid, the use is indirect. An example
  5355. is 'struct one direct; struct two * indirect;'.
  5356. The optional second word limits the specification to ordinary
  5357. structs ('ord:') or generic structs ('gen:'). Generic structs are
  5358. a bit complicated to explain. For C++, these are non-explicit
  5359. specializations of template classes, or non-template classes within
  5360. the above. Other programming languages have generics, but
  5361. '-femit-struct-debug-detailed' does not yet implement them.
  5362. The third word specifies the source files for those structs for
  5363. which the compiler should emit debug information. The values
  5364. 'none' and 'any' have the normal meaning. The value 'base' means
  5365. that the base of name of the file in which the type declaration
  5366. appears must match the base of the name of the main compilation
  5367. file. In practice, this means that when compiling 'foo.c', debug
  5368. information is generated for types declared in that file and
  5369. 'foo.h', but not other header files. The value 'sys' means those
  5370. types satisfying 'base' or declared in system or compiler headers.
  5371. You may need to experiment to determine the best settings for your
  5372. application.
  5373. The default is '-femit-struct-debug-detailed=all'.
  5374. This option works only with DWARF debug output.
  5375. '-fno-dwarf2-cfi-asm'
  5376. Emit DWARF unwind info as compiler generated '.eh_frame' section
  5377. instead of using GAS '.cfi_*' directives.
  5378. '-fno-eliminate-unused-debug-types'
  5379. Normally, when producing DWARF output, GCC avoids producing debug
  5380. symbol output for types that are nowhere used in the source file
  5381. being compiled. Sometimes it is useful to have GCC emit debugging
  5382. information for all types declared in a compilation unit,
  5383. regardless of whether or not they are actually used in that
  5384. compilation unit, for example if, in the debugger, you want to cast
  5385. a value to a type that is not actually used in your program (but is
  5386. declared). More often, however, this results in a significant
  5387. amount of wasted space.
  5388. 
  5389. File: gcc.info, Node: Optimize Options, Next: Instrumentation Options, Prev: Debugging Options, Up: Invoking GCC
  5390. 3.10 Options That Control Optimization
  5391. ======================================
  5392. These options control various sorts of optimizations.
  5393. Without any optimization option, the compiler's goal is to reduce the
  5394. cost of compilation and to make debugging produce the expected results.
  5395. Statements are independent: if you stop the program with a breakpoint
  5396. between statements, you can then assign a new value to any variable or
  5397. change the program counter to any other statement in the function and
  5398. get exactly the results you expect from the source code.
  5399. Turning on optimization flags makes the compiler attempt to improve the
  5400. performance and/or code size at the expense of compilation time and
  5401. possibly the ability to debug the program.
  5402. The compiler performs optimization based on the knowledge it has of the
  5403. program. Compiling multiple files at once to a single output file mode
  5404. allows the compiler to use information gained from all of the files when
  5405. compiling each of them.
  5406. Not all optimizations are controlled directly by a flag. Only
  5407. optimizations that have a flag are listed in this section.
  5408. Most optimizations are only enabled if an '-O' level is set on the
  5409. command line. Otherwise they are disabled, even if individual
  5410. optimization flags are specified.
  5411. Depending on the target and how GCC was configured, a slightly
  5412. different set of optimizations may be enabled at each '-O' level than
  5413. those listed here. You can invoke GCC with '-Q --help=optimizers' to
  5414. find out the exact set of optimizations that are enabled at each level.
  5415. *Note Overall Options::, for examples.
  5416. '-O'
  5417. '-O1'
  5418. Optimize. Optimizing compilation takes somewhat more time, and a
  5419. lot more memory for a large function.
  5420. With '-O', the compiler tries to reduce code size and execution
  5421. time, without performing any optimizations that take a great deal
  5422. of compilation time.
  5423. '-O' turns on the following optimization flags:
  5424. -fauto-inc-dec
  5425. -fbranch-count-reg
  5426. -fcombine-stack-adjustments
  5427. -fcompare-elim
  5428. -fcprop-registers
  5429. -fdce
  5430. -fdefer-pop
  5431. -fdelayed-branch
  5432. -fdse
  5433. -fforward-propagate
  5434. -fguess-branch-probability
  5435. -fif-conversion2
  5436. -fif-conversion
  5437. -finline-functions-called-once
  5438. -fipa-pure-const
  5439. -fipa-profile
  5440. -fipa-reference
  5441. -fmerge-constants
  5442. -fmove-loop-invariants
  5443. -freorder-blocks
  5444. -fshrink-wrap
  5445. -fshrink-wrap-separate
  5446. -fsplit-wide-types
  5447. -fssa-backprop
  5448. -fssa-phiopt
  5449. -ftree-bit-ccp
  5450. -ftree-ccp
  5451. -ftree-ch
  5452. -ftree-coalesce-vars
  5453. -ftree-copy-prop
  5454. -ftree-dce
  5455. -ftree-dominator-opts
  5456. -ftree-dse
  5457. -ftree-forwprop
  5458. -ftree-fre
  5459. -ftree-phiprop
  5460. -ftree-sink
  5461. -ftree-slsr
  5462. -ftree-sra
  5463. -ftree-pta
  5464. -ftree-ter
  5465. -funit-at-a-time
  5466. '-O' also turns on '-fomit-frame-pointer' on machines where doing
  5467. so does not interfere with debugging.
  5468. '-O2'
  5469. Optimize even more. GCC performs nearly all supported
  5470. optimizations that do not involve a space-speed tradeoff. As
  5471. compared to '-O', this option increases both compilation time and
  5472. the performance of the generated code.
  5473. '-O2' turns on all optimization flags specified by '-O'. It also
  5474. turns on the following optimization flags:
  5475. -fthread-jumps
  5476. -falign-functions -falign-jumps
  5477. -falign-loops -falign-labels
  5478. -fcaller-saves
  5479. -fcrossjumping
  5480. -fcse-follow-jumps -fcse-skip-blocks
  5481. -fdelete-null-pointer-checks
  5482. -fdevirtualize -fdevirtualize-speculatively
  5483. -fexpensive-optimizations
  5484. -fgcse -fgcse-lm
  5485. -fhoist-adjacent-loads
  5486. -finline-small-functions
  5487. -findirect-inlining
  5488. -fipa-cp
  5489. -fipa-bit-cp
  5490. -fipa-vrp
  5491. -fipa-sra
  5492. -fipa-icf
  5493. -fisolate-erroneous-paths-dereference
  5494. -flra-remat
  5495. -foptimize-sibling-calls
  5496. -foptimize-strlen
  5497. -fpartial-inlining
  5498. -fpeephole2
  5499. -freorder-blocks-algorithm=stc
  5500. -freorder-blocks-and-partition -freorder-functions
  5501. -frerun-cse-after-loop
  5502. -fsched-interblock -fsched-spec
  5503. -fschedule-insns -fschedule-insns2
  5504. -fstore-merging
  5505. -fstrict-aliasing -fstrict-overflow
  5506. -ftree-builtin-call-dce
  5507. -ftree-switch-conversion -ftree-tail-merge
  5508. -fcode-hoisting
  5509. -ftree-pre
  5510. -ftree-vrp
  5511. -fipa-ra
  5512. Please note the warning under '-fgcse' about invoking '-O2' on
  5513. programs that use computed gotos.
  5514. '-O3'
  5515. Optimize yet more. '-O3' turns on all optimizations specified by
  5516. '-O2' and also turns on the '-finline-functions',
  5517. '-funswitch-loops', '-fpredictive-commoning',
  5518. '-fgcse-after-reload', '-ftree-loop-vectorize',
  5519. '-ftree-loop-distribute-patterns', '-fsplit-paths'
  5520. '-ftree-slp-vectorize', '-fvect-cost-model', '-ftree-partial-pre',
  5521. '-fpeel-loops' and '-fipa-cp-clone' options.
  5522. '-O0'
  5523. Reduce compilation time and make debugging produce the expected
  5524. results. This is the default.
  5525. '-Os'
  5526. Optimize for size. '-Os' enables all '-O2' optimizations that do
  5527. not typically increase code size.
  5528. '-Os' disables the following optimization flags:
  5529. -falign-functions -falign-jumps -falign-loops
  5530. -falign-labels -fprefetch-loop-arrays
  5531. It also enables '-finline-functions', causes the compiler to tune
  5532. for code size rather than execution speed, and performs further
  5533. optimizations designed to reduce code size.
  5534. '-Ofast'
  5535. Disregard strict standards compliance. '-Ofast' enables all '-O3'
  5536. optimizations. It also enables optimizations that are not valid
  5537. for all standard-compliant programs. It turns on '-ffast-math' and
  5538. the Fortran-specific '-fno-protect-parens' and '-fstack-arrays'.
  5539. '-Og'
  5540. Optimize debugging experience. '-Og' enables optimizations that do
  5541. not interfere with debugging. It should be the optimization level
  5542. of choice for the standard edit-compile-debug cycle, offering a
  5543. reasonable level of optimization while maintaining fast compilation
  5544. and a good debugging experience.
  5545. If you use multiple '-O' options, with or without level numbers, the
  5546. last such option is the one that is effective.
  5547. Options of the form '-fFLAG' specify machine-independent flags. Most
  5548. flags have both positive and negative forms; the negative form of
  5549. '-ffoo' is '-fno-foo'. In the table below, only one of the forms is
  5550. listed--the one you typically use. You can figure out the other form by
  5551. either removing 'no-' or adding it.
  5552. The following options control specific optimizations. They are either
  5553. activated by '-O' options or are related to ones that are. You can use
  5554. the following flags in the rare cases when "fine-tuning" of
  5555. optimizations to be performed is desired.
  5556. '-fno-defer-pop'
  5557. Always pop the arguments to each function call as soon as that
  5558. function returns. For machines that must pop arguments after a
  5559. function call, the compiler normally lets arguments accumulate on
  5560. the stack for several function calls and pops them all at once.
  5561. Disabled at levels '-O', '-O2', '-O3', '-Os'.
  5562. '-fforward-propagate'
  5563. Perform a forward propagation pass on RTL. The pass tries to
  5564. combine two instructions and checks if the result can be
  5565. simplified. If loop unrolling is active, two passes are performed
  5566. and the second is scheduled after loop unrolling.
  5567. This option is enabled by default at optimization levels '-O',
  5568. '-O2', '-O3', '-Os'.
  5569. '-ffp-contract=STYLE'
  5570. '-ffp-contract=off' disables floating-point expression contraction.
  5571. '-ffp-contract=fast' enables floating-point expression contraction
  5572. such as forming of fused multiply-add operations if the target has
  5573. native support for them. '-ffp-contract=on' enables floating-point
  5574. expression contraction if allowed by the language standard. This
  5575. is currently not implemented and treated equal to
  5576. '-ffp-contract=off'.
  5577. The default is '-ffp-contract=fast'.
  5578. '-fomit-frame-pointer'
  5579. Don't keep the frame pointer in a register for functions that don't
  5580. need one. This avoids the instructions to save, set up and restore
  5581. frame pointers; it also makes an extra register available in many
  5582. functions. *It also makes debugging impossible on some machines.*
  5583. On some machines, such as the VAX, this flag has no effect, because
  5584. the standard calling sequence automatically handles the frame
  5585. pointer and nothing is saved by pretending it doesn't exist. The
  5586. machine-description macro 'FRAME_POINTER_REQUIRED' controls whether
  5587. a target machine supports this flag. *Note Register Usage:
  5588. (gccint)Registers.
  5589. The default setting (when not optimizing for size) for 32-bit
  5590. GNU/Linux x86 and 32-bit Darwin x86 targets is
  5591. '-fomit-frame-pointer'. You can configure GCC with the
  5592. '--enable-frame-pointer' configure option to change the default.
  5593. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  5594. '-foptimize-sibling-calls'
  5595. Optimize sibling and tail recursive calls.
  5596. Enabled at levels '-O2', '-O3', '-Os'.
  5597. '-foptimize-strlen'
  5598. Optimize various standard C string functions (e.g. 'strlen',
  5599. 'strchr' or 'strcpy') and their '_FORTIFY_SOURCE' counterparts into
  5600. faster alternatives.
  5601. Enabled at levels '-O2', '-O3'.
  5602. '-fno-inline'
  5603. Do not expand any functions inline apart from those marked with the
  5604. 'always_inline' attribute. This is the default when not
  5605. optimizing.
  5606. Single functions can be exempted from inlining by marking them with
  5607. the 'noinline' attribute.
  5608. '-finline-small-functions'
  5609. Integrate functions into their callers when their body is smaller
  5610. than expected function call code (so overall size of program gets
  5611. smaller). The compiler heuristically decides which functions are
  5612. simple enough to be worth integrating in this way. This inlining
  5613. applies to all functions, even those not declared inline.
  5614. Enabled at level '-O2', '-O3', '-Os'.
  5615. '-findirect-inlining'
  5616. Inline also indirect calls that are discovered to be known at
  5617. compile time thanks to previous inlining. This option has any
  5618. effect only when inlining itself is turned on by the
  5619. '-finline-functions' or '-finline-small-functions' options.
  5620. Enabled at level '-O2', '-O3', '-Os'.
  5621. '-finline-functions'
  5622. Consider all functions for inlining, even if they are not declared
  5623. inline. The compiler heuristically decides which functions are
  5624. worth integrating in this way.
  5625. If all calls to a given function are integrated, and the function
  5626. is declared 'static', then the function is normally not output as
  5627. assembler code in its own right.
  5628. Enabled at levels '-O3', '-Os'. Also enabled by '-fprofile-use'
  5629. and '-fauto-profile'.
  5630. '-finline-functions-called-once'
  5631. Consider all 'static' functions called once for inlining into their
  5632. caller even if they are not marked 'inline'. If a call to a given
  5633. function is integrated, then the function is not output as
  5634. assembler code in its own right.
  5635. Enabled at levels '-O1', '-O2', '-O3' and '-Os'.
  5636. '-fearly-inlining'
  5637. Inline functions marked by 'always_inline' and functions whose body
  5638. seems smaller than the function call overhead early before doing
  5639. '-fprofile-generate' instrumentation and real inlining pass. Doing
  5640. so makes profiling significantly cheaper and usually inlining
  5641. faster on programs having large chains of nested wrapper functions.
  5642. Enabled by default.
  5643. '-fipa-sra'
  5644. Perform interprocedural scalar replacement of aggregates, removal
  5645. of unused parameters and replacement of parameters passed by
  5646. reference by parameters passed by value.
  5647. Enabled at levels '-O2', '-O3' and '-Os'.
  5648. '-finline-limit=N'
  5649. By default, GCC limits the size of functions that can be inlined.
  5650. This flag allows coarse control of this limit. N is the size of
  5651. functions that can be inlined in number of pseudo instructions.
  5652. Inlining is actually controlled by a number of parameters, which
  5653. may be specified individually by using '--param NAME=VALUE'. The
  5654. '-finline-limit=N' option sets some of these parameters as follows:
  5655. 'max-inline-insns-single'
  5656. is set to N/2.
  5657. 'max-inline-insns-auto'
  5658. is set to N/2.
  5659. See below for a documentation of the individual parameters
  5660. controlling inlining and for the defaults of these parameters.
  5661. _Note:_ there may be no value to '-finline-limit' that results in
  5662. default behavior.
  5663. _Note:_ pseudo instruction represents, in this particular context,
  5664. an abstract measurement of function's size. In no way does it
  5665. represent a count of assembly instructions and as such its exact
  5666. meaning might change from one release to an another.
  5667. '-fno-keep-inline-dllexport'
  5668. This is a more fine-grained version of '-fkeep-inline-functions',
  5669. which applies only to functions that are declared using the
  5670. 'dllexport' attribute or declspec. *Note Declaring Attributes of
  5671. Functions: Function Attributes.
  5672. '-fkeep-inline-functions'
  5673. In C, emit 'static' functions that are declared 'inline' into the
  5674. object file, even if the function has been inlined into all of its
  5675. callers. This switch does not affect functions using the 'extern
  5676. inline' extension in GNU C90. In C++, emit any and all inline
  5677. functions into the object file.
  5678. '-fkeep-static-functions'
  5679. Emit 'static' functions into the object file, even if the function
  5680. is never used.
  5681. '-fkeep-static-consts'
  5682. Emit variables declared 'static const' when optimization isn't
  5683. turned on, even if the variables aren't referenced.
  5684. GCC enables this option by default. If you want to force the
  5685. compiler to check if a variable is referenced, regardless of
  5686. whether or not optimization is turned on, use the
  5687. '-fno-keep-static-consts' option.
  5688. '-fmerge-constants'
  5689. Attempt to merge identical constants (string constants and
  5690. floating-point constants) across compilation units.
  5691. This option is the default for optimized compilation if the
  5692. assembler and linker support it. Use '-fno-merge-constants' to
  5693. inhibit this behavior.
  5694. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  5695. '-fmerge-all-constants'
  5696. Attempt to merge identical constants and identical variables.
  5697. This option implies '-fmerge-constants'. In addition to
  5698. '-fmerge-constants' this considers e.g. even constant initialized
  5699. arrays or initialized constant variables with integral or
  5700. floating-point types. Languages like C or C++ require each
  5701. variable, including multiple instances of the same variable in
  5702. recursive calls, to have distinct locations, so using this option
  5703. results in non-conforming behavior.
  5704. '-fmodulo-sched'
  5705. Perform swing modulo scheduling immediately before the first
  5706. scheduling pass. This pass looks at innermost loops and reorders
  5707. their instructions by overlapping different iterations.
  5708. '-fmodulo-sched-allow-regmoves'
  5709. Perform more aggressive SMS-based modulo scheduling with register
  5710. moves allowed. By setting this flag certain anti-dependences edges
  5711. are deleted, which triggers the generation of reg-moves based on
  5712. the life-range analysis. This option is effective only with
  5713. '-fmodulo-sched' enabled.
  5714. '-fno-branch-count-reg'
  5715. Avoid running a pass scanning for opportunities to use "decrement
  5716. and branch" instructions on a count register instead of generating
  5717. sequences of instructions that decrement a register, compare it
  5718. against zero, and then branch based upon the result. This option
  5719. is only meaningful on architectures that support such instructions,
  5720. which include x86, PowerPC, IA-64 and S/390. Note that the
  5721. '-fno-branch-count-reg' option doesn't remove the decrement and
  5722. branch instructions from the generated instruction stream
  5723. introduced by other optimization passes.
  5724. Enabled by default at '-O1' and higher.
  5725. The default is '-fbranch-count-reg'.
  5726. '-fno-function-cse'
  5727. Do not put function addresses in registers; make each instruction
  5728. that calls a constant function contain the function's address
  5729. explicitly.
  5730. This option results in less efficient code, but some strange hacks
  5731. that alter the assembler output may be confused by the
  5732. optimizations performed when this option is not used.
  5733. The default is '-ffunction-cse'
  5734. '-fno-zero-initialized-in-bss'
  5735. If the target supports a BSS section, GCC by default puts variables
  5736. that are initialized to zero into BSS. This can save space in the
  5737. resulting code.
  5738. This option turns off this behavior because some programs
  5739. explicitly rely on variables going to the data section--e.g., so
  5740. that the resulting executable can find the beginning of that
  5741. section and/or make assumptions based on that.
  5742. The default is '-fzero-initialized-in-bss'.
  5743. '-fthread-jumps'
  5744. Perform optimizations that check to see if a jump branches to a
  5745. location where another comparison subsumed by the first is found.
  5746. If so, the first branch is redirected to either the destination of
  5747. the second branch or a point immediately following it, depending on
  5748. whether the condition is known to be true or false.
  5749. Enabled at levels '-O2', '-O3', '-Os'.
  5750. '-fsplit-wide-types'
  5751. When using a type that occupies multiple registers, such as 'long
  5752. long' on a 32-bit system, split the registers apart and allocate
  5753. them independently. This normally generates better code for those
  5754. types, but may make debugging more difficult.
  5755. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  5756. '-fcse-follow-jumps'
  5757. In common subexpression elimination (CSE), scan through jump
  5758. instructions when the target of the jump is not reached by any
  5759. other path. For example, when CSE encounters an 'if' statement
  5760. with an 'else' clause, CSE follows the jump when the condition
  5761. tested is false.
  5762. Enabled at levels '-O2', '-O3', '-Os'.
  5763. '-fcse-skip-blocks'
  5764. This is similar to '-fcse-follow-jumps', but causes CSE to follow
  5765. jumps that conditionally skip over blocks. When CSE encounters a
  5766. simple 'if' statement with no else clause, '-fcse-skip-blocks'
  5767. causes CSE to follow the jump around the body of the 'if'.
  5768. Enabled at levels '-O2', '-O3', '-Os'.
  5769. '-frerun-cse-after-loop'
  5770. Re-run common subexpression elimination after loop optimizations
  5771. are performed.
  5772. Enabled at levels '-O2', '-O3', '-Os'.
  5773. '-fgcse'
  5774. Perform a global common subexpression elimination pass. This pass
  5775. also performs global constant and copy propagation.
  5776. _Note:_ When compiling a program using computed gotos, a GCC
  5777. extension, you may get better run-time performance if you disable
  5778. the global common subexpression elimination pass by adding
  5779. '-fno-gcse' to the command line.
  5780. Enabled at levels '-O2', '-O3', '-Os'.
  5781. '-fgcse-lm'
  5782. When '-fgcse-lm' is enabled, global common subexpression
  5783. elimination attempts to move loads that are only killed by stores
  5784. into themselves. This allows a loop containing a load/store
  5785. sequence to be changed to a load outside the loop, and a copy/store
  5786. within the loop.
  5787. Enabled by default when '-fgcse' is enabled.
  5788. '-fgcse-sm'
  5789. When '-fgcse-sm' is enabled, a store motion pass is run after
  5790. global common subexpression elimination. This pass attempts to
  5791. move stores out of loops. When used in conjunction with
  5792. '-fgcse-lm', loops containing a load/store sequence can be changed
  5793. to a load before the loop and a store after the loop.
  5794. Not enabled at any optimization level.
  5795. '-fgcse-las'
  5796. When '-fgcse-las' is enabled, the global common subexpression
  5797. elimination pass eliminates redundant loads that come after stores
  5798. to the same memory location (both partial and full redundancies).
  5799. Not enabled at any optimization level.
  5800. '-fgcse-after-reload'
  5801. When '-fgcse-after-reload' is enabled, a redundant load elimination
  5802. pass is performed after reload. The purpose of this pass is to
  5803. clean up redundant spilling.
  5804. '-faggressive-loop-optimizations'
  5805. This option tells the loop optimizer to use language constraints to
  5806. derive bounds for the number of iterations of a loop. This assumes
  5807. that loop code does not invoke undefined behavior by for example
  5808. causing signed integer overflows or out-of-bound array accesses.
  5809. The bounds for the number of iterations of a loop are used to guide
  5810. loop unrolling and peeling and loop exit test optimizations. This
  5811. option is enabled by default.
  5812. '-funconstrained-commons'
  5813. This option tells the compiler that variables declared in common
  5814. blocks (e.g. Fortran) may later be overridden with longer trailing
  5815. arrays. This prevents certain optimizations that depend on knowing
  5816. the array bounds.
  5817. '-fcrossjumping'
  5818. Perform cross-jumping transformation. This transformation unifies
  5819. equivalent code and saves code size. The resulting code may or may
  5820. not perform better than without cross-jumping.
  5821. Enabled at levels '-O2', '-O3', '-Os'.
  5822. '-fauto-inc-dec'
  5823. Combine increments or decrements of addresses with memory accesses.
  5824. This pass is always skipped on architectures that do not have
  5825. instructions to support this. Enabled by default at '-O' and
  5826. higher on architectures that support this.
  5827. '-fdce'
  5828. Perform dead code elimination (DCE) on RTL. Enabled by default at
  5829. '-O' and higher.
  5830. '-fdse'
  5831. Perform dead store elimination (DSE) on RTL. Enabled by default at
  5832. '-O' and higher.
  5833. '-fif-conversion'
  5834. Attempt to transform conditional jumps into branch-less
  5835. equivalents. This includes use of conditional moves, min, max, set
  5836. flags and abs instructions, and some tricks doable by standard
  5837. arithmetics. The use of conditional execution on chips where it is
  5838. available is controlled by '-fif-conversion2'.
  5839. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  5840. '-fif-conversion2'
  5841. Use conditional execution (where available) to transform
  5842. conditional jumps into branch-less equivalents.
  5843. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  5844. '-fdeclone-ctor-dtor'
  5845. The C++ ABI requires multiple entry points for constructors and
  5846. destructors: one for a base subobject, one for a complete object,
  5847. and one for a virtual destructor that calls operator delete
  5848. afterwards. For a hierarchy with virtual bases, the base and
  5849. complete variants are clones, which means two copies of the
  5850. function. With this option, the base and complete variants are
  5851. changed to be thunks that call a common implementation.
  5852. Enabled by '-Os'.
  5853. '-fdelete-null-pointer-checks'
  5854. Assume that programs cannot safely dereference null pointers, and
  5855. that no code or data element resides at address zero. This option
  5856. enables simple constant folding optimizations at all optimization
  5857. levels. In addition, other optimization passes in GCC use this
  5858. flag to control global dataflow analyses that eliminate useless
  5859. checks for null pointers; these assume that a memory access to
  5860. address zero always results in a trap, so that if a pointer is
  5861. checked after it has already been dereferenced, it cannot be null.
  5862. Note however that in some environments this assumption is not true.
  5863. Use '-fno-delete-null-pointer-checks' to disable this optimization
  5864. for programs that depend on that behavior.
  5865. This option is enabled by default on most targets. On Nios II ELF,
  5866. it defaults to off. On AVR and CR16, this option is completely
  5867. disabled.
  5868. Passes that use the dataflow information are enabled independently
  5869. at different optimization levels.
  5870. '-fdevirtualize'
  5871. Attempt to convert calls to virtual functions to direct calls.
  5872. This is done both within a procedure and interprocedurally as part
  5873. of indirect inlining ('-findirect-inlining') and interprocedural
  5874. constant propagation ('-fipa-cp'). Enabled at levels '-O2', '-O3',
  5875. '-Os'.
  5876. '-fdevirtualize-speculatively'
  5877. Attempt to convert calls to virtual functions to speculative direct
  5878. calls. Based on the analysis of the type inheritance graph,
  5879. determine for a given call the set of likely targets. If the set
  5880. is small, preferably of size 1, change the call into a conditional
  5881. deciding between direct and indirect calls. The speculative calls
  5882. enable more optimizations, such as inlining. When they seem
  5883. useless after further optimization, they are converted back into
  5884. original form.
  5885. '-fdevirtualize-at-ltrans'
  5886. Stream extra information needed for aggressive devirtualization
  5887. when running the link-time optimizer in local transformation mode.
  5888. This option enables more devirtualization but significantly
  5889. increases the size of streamed data. For this reason it is
  5890. disabled by default.
  5891. '-fexpensive-optimizations'
  5892. Perform a number of minor optimizations that are relatively
  5893. expensive.
  5894. Enabled at levels '-O2', '-O3', '-Os'.
  5895. '-free'
  5896. Attempt to remove redundant extension instructions. This is
  5897. especially helpful for the x86-64 architecture, which implicitly
  5898. zero-extends in 64-bit registers after writing to their lower
  5899. 32-bit half.
  5900. Enabled for Alpha, AArch64 and x86 at levels '-O2', '-O3', '-Os'.
  5901. '-fno-lifetime-dse'
  5902. In C++ the value of an object is only affected by changes within
  5903. its lifetime: when the constructor begins, the object has an
  5904. indeterminate value, and any changes during the lifetime of the
  5905. object are dead when the object is destroyed. Normally dead store
  5906. elimination will take advantage of this; if your code relies on the
  5907. value of the object storage persisting beyond the lifetime of the
  5908. object, you can use this flag to disable this optimization. To
  5909. preserve stores before the constructor starts (e.g. because your
  5910. operator new clears the object storage) but still treat the object
  5911. as dead after the destructor you, can use '-flifetime-dse=1'. The
  5912. default behavior can be explicitly selected with
  5913. '-flifetime-dse=2'. '-flifetime-dse=0' is equivalent to
  5914. '-fno-lifetime-dse'.
  5915. '-flive-range-shrinkage'
  5916. Attempt to decrease register pressure through register live range
  5917. shrinkage. This is helpful for fast processors with small or
  5918. moderate size register sets.
  5919. '-fira-algorithm=ALGORITHM'
  5920. Use the specified coloring algorithm for the integrated register
  5921. allocator. The ALGORITHM argument can be 'priority', which
  5922. specifies Chow's priority coloring, or 'CB', which specifies
  5923. Chaitin-Briggs coloring. Chaitin-Briggs coloring is not
  5924. implemented for all architectures, but for those targets that do
  5925. support it, it is the default because it generates better code.
  5926. '-fira-region=REGION'
  5927. Use specified regions for the integrated register allocator. The
  5928. REGION argument should be one of the following:
  5929. 'all'
  5930. Use all loops as register allocation regions. This can give
  5931. the best results for machines with a small and/or irregular
  5932. register set.
  5933. 'mixed'
  5934. Use all loops except for loops with small register pressure as
  5935. the regions. This value usually gives the best results in
  5936. most cases and for most architectures, and is enabled by
  5937. default when compiling with optimization for speed ('-O',
  5938. '-O2', ...).
  5939. 'one'
  5940. Use all functions as a single region. This typically results
  5941. in the smallest code size, and is enabled by default for '-Os'
  5942. or '-O0'.
  5943. '-fira-hoist-pressure'
  5944. Use IRA to evaluate register pressure in the code hoisting pass for
  5945. decisions to hoist expressions. This option usually results in
  5946. smaller code, but it can slow the compiler down.
  5947. This option is enabled at level '-Os' for all targets.
  5948. '-fira-loop-pressure'
  5949. Use IRA to evaluate register pressure in loops for decisions to
  5950. move loop invariants. This option usually results in generation of
  5951. faster and smaller code on machines with large register files (>=
  5952. 32 registers), but it can slow the compiler down.
  5953. This option is enabled at level '-O3' for some targets.
  5954. '-fno-ira-share-save-slots'
  5955. Disable sharing of stack slots used for saving call-used hard
  5956. registers living through a call. Each hard register gets a
  5957. separate stack slot, and as a result function stack frames are
  5958. larger.
  5959. '-fno-ira-share-spill-slots'
  5960. Disable sharing of stack slots allocated for pseudo-registers.
  5961. Each pseudo-register that does not get a hard register gets a
  5962. separate stack slot, and as a result function stack frames are
  5963. larger.
  5964. '-flra-remat'
  5965. Enable CFG-sensitive rematerialization in LRA. Instead of loading
  5966. values of spilled pseudos, LRA tries to rematerialize (recalculate)
  5967. values if it is profitable.
  5968. Enabled at levels '-O2', '-O3', '-Os'.
  5969. '-fdelayed-branch'
  5970. If supported for the target machine, attempt to reorder
  5971. instructions to exploit instruction slots available after delayed
  5972. branch instructions.
  5973. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  5974. '-fschedule-insns'
  5975. If supported for the target machine, attempt to reorder
  5976. instructions to eliminate execution stalls due to required data
  5977. being unavailable. This helps machines that have slow floating
  5978. point or memory load instructions by allowing other instructions to
  5979. be issued until the result of the load or floating-point
  5980. instruction is required.
  5981. Enabled at levels '-O2', '-O3'.
  5982. '-fschedule-insns2'
  5983. Similar to '-fschedule-insns', but requests an additional pass of
  5984. instruction scheduling after register allocation has been done.
  5985. This is especially useful on machines with a relatively small
  5986. number of registers and where memory load instructions take more
  5987. than one cycle.
  5988. Enabled at levels '-O2', '-O3', '-Os'.
  5989. '-fno-sched-interblock'
  5990. Don't schedule instructions across basic blocks. This is normally
  5991. enabled by default when scheduling before register allocation, i.e.
  5992. with '-fschedule-insns' or at '-O2' or higher.
  5993. '-fno-sched-spec'
  5994. Don't allow speculative motion of non-load instructions. This is
  5995. normally enabled by default when scheduling before register
  5996. allocation, i.e. with '-fschedule-insns' or at '-O2' or higher.
  5997. '-fsched-pressure'
  5998. Enable register pressure sensitive insn scheduling before register
  5999. allocation. This only makes sense when scheduling before register
  6000. allocation is enabled, i.e. with '-fschedule-insns' or at '-O2' or
  6001. higher. Usage of this option can improve the generated code and
  6002. decrease its size by preventing register pressure increase above
  6003. the number of available hard registers and subsequent spills in
  6004. register allocation.
  6005. '-fsched-spec-load'
  6006. Allow speculative motion of some load instructions. This only
  6007. makes sense when scheduling before register allocation, i.e. with
  6008. '-fschedule-insns' or at '-O2' or higher.
  6009. '-fsched-spec-load-dangerous'
  6010. Allow speculative motion of more load instructions. This only
  6011. makes sense when scheduling before register allocation, i.e. with
  6012. '-fschedule-insns' or at '-O2' or higher.
  6013. '-fsched-stalled-insns'
  6014. '-fsched-stalled-insns=N'
  6015. Define how many insns (if any) can be moved prematurely from the
  6016. queue of stalled insns into the ready list during the second
  6017. scheduling pass. '-fno-sched-stalled-insns' means that no insns
  6018. are moved prematurely, '-fsched-stalled-insns=0' means there is no
  6019. limit on how many queued insns can be moved prematurely.
  6020. '-fsched-stalled-insns' without a value is equivalent to
  6021. '-fsched-stalled-insns=1'.
  6022. '-fsched-stalled-insns-dep'
  6023. '-fsched-stalled-insns-dep=N'
  6024. Define how many insn groups (cycles) are examined for a dependency
  6025. on a stalled insn that is a candidate for premature removal from
  6026. the queue of stalled insns. This has an effect only during the
  6027. second scheduling pass, and only if '-fsched-stalled-insns' is
  6028. used. '-fno-sched-stalled-insns-dep' is equivalent to
  6029. '-fsched-stalled-insns-dep=0'. '-fsched-stalled-insns-dep' without
  6030. a value is equivalent to '-fsched-stalled-insns-dep=1'.
  6031. '-fsched2-use-superblocks'
  6032. When scheduling after register allocation, use superblock
  6033. scheduling. This allows motion across basic block boundaries,
  6034. resulting in faster schedules. This option is experimental, as not
  6035. all machine descriptions used by GCC model the CPU closely enough
  6036. to avoid unreliable results from the algorithm.
  6037. This only makes sense when scheduling after register allocation,
  6038. i.e. with '-fschedule-insns2' or at '-O2' or higher.
  6039. '-fsched-group-heuristic'
  6040. Enable the group heuristic in the scheduler. This heuristic favors
  6041. the instruction that belongs to a schedule group. This is enabled
  6042. by default when scheduling is enabled, i.e. with '-fschedule-insns'
  6043. or '-fschedule-insns2' or at '-O2' or higher.
  6044. '-fsched-critical-path-heuristic'
  6045. Enable the critical-path heuristic in the scheduler. This
  6046. heuristic favors instructions on the critical path. This is
  6047. enabled by default when scheduling is enabled, i.e. with
  6048. '-fschedule-insns' or '-fschedule-insns2' or at '-O2' or higher.
  6049. '-fsched-spec-insn-heuristic'
  6050. Enable the speculative instruction heuristic in the scheduler.
  6051. This heuristic favors speculative instructions with greater
  6052. dependency weakness. This is enabled by default when scheduling is
  6053. enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or at
  6054. '-O2' or higher.
  6055. '-fsched-rank-heuristic'
  6056. Enable the rank heuristic in the scheduler. This heuristic favors
  6057. the instruction belonging to a basic block with greater size or
  6058. frequency. This is enabled by default when scheduling is enabled,
  6059. i.e. with '-fschedule-insns' or '-fschedule-insns2' or at '-O2' or
  6060. higher.
  6061. '-fsched-last-insn-heuristic'
  6062. Enable the last-instruction heuristic in the scheduler. This
  6063. heuristic favors the instruction that is less dependent on the last
  6064. instruction scheduled. This is enabled by default when scheduling
  6065. is enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or
  6066. at '-O2' or higher.
  6067. '-fsched-dep-count-heuristic'
  6068. Enable the dependent-count heuristic in the scheduler. This
  6069. heuristic favors the instruction that has more instructions
  6070. depending on it. This is enabled by default when scheduling is
  6071. enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or at
  6072. '-O2' or higher.
  6073. '-freschedule-modulo-scheduled-loops'
  6074. Modulo scheduling is performed before traditional scheduling. If a
  6075. loop is modulo scheduled, later scheduling passes may change its
  6076. schedule. Use this option to control that behavior.
  6077. '-fselective-scheduling'
  6078. Schedule instructions using selective scheduling algorithm.
  6079. Selective scheduling runs instead of the first scheduler pass.
  6080. '-fselective-scheduling2'
  6081. Schedule instructions using selective scheduling algorithm.
  6082. Selective scheduling runs instead of the second scheduler pass.
  6083. '-fsel-sched-pipelining'
  6084. Enable software pipelining of innermost loops during selective
  6085. scheduling. This option has no effect unless one of
  6086. '-fselective-scheduling' or '-fselective-scheduling2' is turned on.
  6087. '-fsel-sched-pipelining-outer-loops'
  6088. When pipelining loops during selective scheduling, also pipeline
  6089. outer loops. This option has no effect unless
  6090. '-fsel-sched-pipelining' is turned on.
  6091. '-fsemantic-interposition'
  6092. Some object formats, like ELF, allow interposing of symbols by the
  6093. dynamic linker. This means that for symbols exported from the DSO,
  6094. the compiler cannot perform interprocedural propagation, inlining
  6095. and other optimizations in anticipation that the function or
  6096. variable in question may change. While this feature is useful, for
  6097. example, to rewrite memory allocation functions by a debugging
  6098. implementation, it is expensive in the terms of code quality. With
  6099. '-fno-semantic-interposition' the compiler assumes that if
  6100. interposition happens for functions the overwriting function will
  6101. have precisely the same semantics (and side effects). Similarly if
  6102. interposition happens for variables, the constructor of the
  6103. variable will be the same. The flag has no effect for functions
  6104. explicitly declared inline (where it is never allowed for
  6105. interposition to change semantics) and for symbols explicitly
  6106. declared weak.
  6107. '-fshrink-wrap'
  6108. Emit function prologues only before parts of the function that need
  6109. it, rather than at the top of the function. This flag is enabled
  6110. by default at '-O' and higher.
  6111. '-fshrink-wrap-separate'
  6112. Shrink-wrap separate parts of the prologue and epilogue separately,
  6113. so that those parts are only executed when needed. This option is
  6114. on by default, but has no effect unless '-fshrink-wrap' is also
  6115. turned on and the target supports this.
  6116. '-fcaller-saves'
  6117. Enable allocation of values to registers that are clobbered by
  6118. function calls, by emitting extra instructions to save and restore
  6119. the registers around such calls. Such allocation is done only when
  6120. it seems to result in better code.
  6121. This option is always enabled by default on certain machines,
  6122. usually those which have no call-preserved registers to use
  6123. instead.
  6124. Enabled at levels '-O2', '-O3', '-Os'.
  6125. '-fcombine-stack-adjustments'
  6126. Tracks stack adjustments (pushes and pops) and stack memory
  6127. references and then tries to find ways to combine them.
  6128. Enabled by default at '-O1' and higher.
  6129. '-fipa-ra'
  6130. Use caller save registers for allocation if those registers are not
  6131. used by any called function. In that case it is not necessary to
  6132. save and restore them around calls. This is only possible if
  6133. called functions are part of same compilation unit as current
  6134. function and they are compiled before it.
  6135. Enabled at levels '-O2', '-O3', '-Os', however the option is
  6136. disabled if generated code will be instrumented for profiling
  6137. ('-p', or '-pg') or if callee's register usage cannot be known
  6138. exactly (this happens on targets that do not expose prologues and
  6139. epilogues in RTL).
  6140. '-fconserve-stack'
  6141. Attempt to minimize stack usage. The compiler attempts to use less
  6142. stack space, even if that makes the program slower. This option
  6143. implies setting the 'large-stack-frame' parameter to 100 and the
  6144. 'large-stack-frame-growth' parameter to 400.
  6145. '-ftree-reassoc'
  6146. Perform reassociation on trees. This flag is enabled by default at
  6147. '-O' and higher.
  6148. '-fcode-hoisting'
  6149. Perform code hoisting. Code hoisting tries to move the evaluation
  6150. of expressions executed on all paths to the function exit as early
  6151. as possible. This is especially useful as a code size
  6152. optimization, but it often helps for code speed as well. This flag
  6153. is enabled by default at '-O2' and higher.
  6154. '-ftree-pre'
  6155. Perform partial redundancy elimination (PRE) on trees. This flag
  6156. is enabled by default at '-O2' and '-O3'.
  6157. '-ftree-partial-pre'
  6158. Make partial redundancy elimination (PRE) more aggressive. This
  6159. flag is enabled by default at '-O3'.
  6160. '-ftree-forwprop'
  6161. Perform forward propagation on trees. This flag is enabled by
  6162. default at '-O' and higher.
  6163. '-ftree-fre'
  6164. Perform full redundancy elimination (FRE) on trees. The difference
  6165. between FRE and PRE is that FRE only considers expressions that are
  6166. computed on all paths leading to the redundant computation. This
  6167. analysis is faster than PRE, though it exposes fewer redundancies.
  6168. This flag is enabled by default at '-O' and higher.
  6169. '-ftree-phiprop'
  6170. Perform hoisting of loads from conditional pointers on trees. This
  6171. pass is enabled by default at '-O' and higher.
  6172. '-fhoist-adjacent-loads'
  6173. Speculatively hoist loads from both branches of an if-then-else if
  6174. the loads are from adjacent locations in the same structure and the
  6175. target architecture has a conditional move instruction. This flag
  6176. is enabled by default at '-O2' and higher.
  6177. '-ftree-copy-prop'
  6178. Perform copy propagation on trees. This pass eliminates
  6179. unnecessary copy operations. This flag is enabled by default at
  6180. '-O' and higher.
  6181. '-fipa-pure-const'
  6182. Discover which functions are pure or constant. Enabled by default
  6183. at '-O' and higher.
  6184. '-fipa-reference'
  6185. Discover which static variables do not escape the compilation unit.
  6186. Enabled by default at '-O' and higher.
  6187. '-fipa-pta'
  6188. Perform interprocedural pointer analysis and interprocedural
  6189. modification and reference analysis. This option can cause
  6190. excessive memory and compile-time usage on large compilation units.
  6191. It is not enabled by default at any optimization level.
  6192. '-fipa-profile'
  6193. Perform interprocedural profile propagation. The functions called
  6194. only from cold functions are marked as cold. Also functions
  6195. executed once (such as 'cold', 'noreturn', static constructors or
  6196. destructors) are identified. Cold functions and loop less parts of
  6197. functions executed once are then optimized for size. Enabled by
  6198. default at '-O' and higher.
  6199. '-fipa-cp'
  6200. Perform interprocedural constant propagation. This optimization
  6201. analyzes the program to determine when values passed to functions
  6202. are constants and then optimizes accordingly. This optimization
  6203. can substantially increase performance if the application has
  6204. constants passed to functions. This flag is enabled by default at
  6205. '-O2', '-Os' and '-O3'.
  6206. '-fipa-cp-clone'
  6207. Perform function cloning to make interprocedural constant
  6208. propagation stronger. When enabled, interprocedural constant
  6209. propagation performs function cloning when externally visible
  6210. function can be called with constant arguments. Because this
  6211. optimization can create multiple copies of functions, it may
  6212. significantly increase code size (see '--param
  6213. ipcp-unit-growth=VALUE'). This flag is enabled by default at
  6214. '-O3'.
  6215. '-fipa-bit-cp'
  6216. When enabled, perform interprocedural bitwise constant propagation.
  6217. This flag is enabled by default at '-O2'. It requires that
  6218. '-fipa-cp' is enabled.
  6219. '-fipa-vrp'
  6220. When enabled, perform interprocedural propagation of value ranges.
  6221. This flag is enabled by default at '-O2'. It requires that
  6222. '-fipa-cp' is enabled.
  6223. '-fipa-icf'
  6224. Perform Identical Code Folding for functions and read-only
  6225. variables. The optimization reduces code size and may disturb
  6226. unwind stacks by replacing a function by equivalent one with a
  6227. different name. The optimization works more effectively with
  6228. link-time optimization enabled.
  6229. Nevertheless the behavior is similar to Gold Linker ICF
  6230. optimization, GCC ICF works on different levels and thus the
  6231. optimizations are not same - there are equivalences that are found
  6232. only by GCC and equivalences found only by Gold.
  6233. This flag is enabled by default at '-O2' and '-Os'.
  6234. '-fisolate-erroneous-paths-dereference'
  6235. Detect paths that trigger erroneous or undefined behavior due to
  6236. dereferencing a null pointer. Isolate those paths from the main
  6237. control flow and turn the statement with erroneous or undefined
  6238. behavior into a trap. This flag is enabled by default at '-O2' and
  6239. higher and depends on '-fdelete-null-pointer-checks' also being
  6240. enabled.
  6241. '-fisolate-erroneous-paths-attribute'
  6242. Detect paths that trigger erroneous or undefined behavior due to a
  6243. null value being used in a way forbidden by a 'returns_nonnull' or
  6244. 'nonnull' attribute. Isolate those paths from the main control
  6245. flow and turn the statement with erroneous or undefined behavior
  6246. into a trap. This is not currently enabled, but may be enabled by
  6247. '-O2' in the future.
  6248. '-ftree-sink'
  6249. Perform forward store motion on trees. This flag is enabled by
  6250. default at '-O' and higher.
  6251. '-ftree-bit-ccp'
  6252. Perform sparse conditional bit constant propagation on trees and
  6253. propagate pointer alignment information. This pass only operates
  6254. on local scalar variables and is enabled by default at '-O' and
  6255. higher. It requires that '-ftree-ccp' is enabled.
  6256. '-ftree-ccp'
  6257. Perform sparse conditional constant propagation (CCP) on trees.
  6258. This pass only operates on local scalar variables and is enabled by
  6259. default at '-O' and higher.
  6260. '-fssa-backprop'
  6261. Propagate information about uses of a value up the definition chain
  6262. in order to simplify the definitions. For example, this pass
  6263. strips sign operations if the sign of a value never matters. The
  6264. flag is enabled by default at '-O' and higher.
  6265. '-fssa-phiopt'
  6266. Perform pattern matching on SSA PHI nodes to optimize conditional
  6267. code. This pass is enabled by default at '-O' and higher.
  6268. '-ftree-switch-conversion'
  6269. Perform conversion of simple initializations in a switch to
  6270. initializations from a scalar array. This flag is enabled by
  6271. default at '-O2' and higher.
  6272. '-ftree-tail-merge'
  6273. Look for identical code sequences. When found, replace one with a
  6274. jump to the other. This optimization is known as tail merging or
  6275. cross jumping. This flag is enabled by default at '-O2' and
  6276. higher. The compilation time in this pass can be limited using
  6277. 'max-tail-merge-comparisons' parameter and
  6278. 'max-tail-merge-iterations' parameter.
  6279. '-ftree-dce'
  6280. Perform dead code elimination (DCE) on trees. This flag is enabled
  6281. by default at '-O' and higher.
  6282. '-ftree-builtin-call-dce'
  6283. Perform conditional dead code elimination (DCE) for calls to
  6284. built-in functions that may set 'errno' but are otherwise
  6285. side-effect free. This flag is enabled by default at '-O2' and
  6286. higher if '-Os' is not also specified.
  6287. '-ftree-dominator-opts'
  6288. Perform a variety of simple scalar cleanups (constant/copy
  6289. propagation, redundancy elimination, range propagation and
  6290. expression simplification) based on a dominator tree traversal.
  6291. This also performs jump threading (to reduce jumps to jumps). This
  6292. flag is enabled by default at '-O' and higher.
  6293. '-ftree-dse'
  6294. Perform dead store elimination (DSE) on trees. A dead store is a
  6295. store into a memory location that is later overwritten by another
  6296. store without any intervening loads. In this case the earlier
  6297. store can be deleted. This flag is enabled by default at '-O' and
  6298. higher.
  6299. '-ftree-ch'
  6300. Perform loop header copying on trees. This is beneficial since it
  6301. increases effectiveness of code motion optimizations. It also
  6302. saves one jump. This flag is enabled by default at '-O' and
  6303. higher. It is not enabled for '-Os', since it usually increases
  6304. code size.
  6305. '-ftree-loop-optimize'
  6306. Perform loop optimizations on trees. This flag is enabled by
  6307. default at '-O' and higher.
  6308. '-ftree-loop-linear'
  6309. '-floop-interchange'
  6310. '-floop-strip-mine'
  6311. '-floop-block'
  6312. '-floop-unroll-and-jam'
  6313. Perform loop nest optimizations. Same as '-floop-nest-optimize'.
  6314. To use this code transformation, GCC has to be configured with
  6315. '--with-isl' to enable the Graphite loop transformation
  6316. infrastructure.
  6317. '-fgraphite-identity'
  6318. Enable the identity transformation for graphite. For every SCoP we
  6319. generate the polyhedral representation and transform it back to
  6320. gimple. Using '-fgraphite-identity' we can check the costs or
  6321. benefits of the GIMPLE -> GRAPHITE -> GIMPLE transformation. Some
  6322. minimal optimizations are also performed by the code generator isl,
  6323. like index splitting and dead code elimination in loops.
  6324. '-floop-nest-optimize'
  6325. Enable the isl based loop nest optimizer. This is a generic loop
  6326. nest optimizer based on the Pluto optimization algorithms. It
  6327. calculates a loop structure optimized for data-locality and
  6328. parallelism. This option is experimental.
  6329. '-floop-parallelize-all'
  6330. Use the Graphite data dependence analysis to identify loops that
  6331. can be parallelized. Parallelize all the loops that can be
  6332. analyzed to not contain loop carried dependences without checking
  6333. that it is profitable to parallelize the loops.
  6334. '-ftree-coalesce-vars'
  6335. While transforming the program out of the SSA representation,
  6336. attempt to reduce copying by coalescing versions of different
  6337. user-defined variables, instead of just compiler temporaries. This
  6338. may severely limit the ability to debug an optimized program
  6339. compiled with '-fno-var-tracking-assignments'. In the negated
  6340. form, this flag prevents SSA coalescing of user variables. This
  6341. option is enabled by default if optimization is enabled, and it
  6342. does very little otherwise.
  6343. '-ftree-loop-if-convert'
  6344. Attempt to transform conditional jumps in the innermost loops to
  6345. branch-less equivalents. The intent is to remove control-flow from
  6346. the innermost loops in order to improve the ability of the
  6347. vectorization pass to handle these loops. This is enabled by
  6348. default if vectorization is enabled.
  6349. '-ftree-loop-distribution'
  6350. Perform loop distribution. This flag can improve cache performance
  6351. on big loop bodies and allow further loop optimizations, like
  6352. parallelization or vectorization, to take place. For example, the
  6353. loop
  6354. DO I = 1, N
  6355. A(I) = B(I) + C
  6356. D(I) = E(I) * F
  6357. ENDDO
  6358. is transformed to
  6359. DO I = 1, N
  6360. A(I) = B(I) + C
  6361. ENDDO
  6362. DO I = 1, N
  6363. D(I) = E(I) * F
  6364. ENDDO
  6365. '-ftree-loop-distribute-patterns'
  6366. Perform loop distribution of patterns that can be code generated
  6367. with calls to a library. This flag is enabled by default at '-O3'.
  6368. This pass distributes the initialization loops and generates a call
  6369. to memset zero. For example, the loop
  6370. DO I = 1, N
  6371. A(I) = 0
  6372. B(I) = A(I) + I
  6373. ENDDO
  6374. is transformed to
  6375. DO I = 1, N
  6376. A(I) = 0
  6377. ENDDO
  6378. DO I = 1, N
  6379. B(I) = A(I) + I
  6380. ENDDO
  6381. and the initialization loop is transformed into a call to memset
  6382. zero.
  6383. '-ftree-loop-im'
  6384. Perform loop invariant motion on trees. This pass moves only
  6385. invariants that are hard to handle at RTL level (function calls,
  6386. operations that expand to nontrivial sequences of insns). With
  6387. '-funswitch-loops' it also moves operands of conditions that are
  6388. invariant out of the loop, so that we can use just trivial
  6389. invariantness analysis in loop unswitching. The pass also includes
  6390. store motion.
  6391. '-ftree-loop-ivcanon'
  6392. Create a canonical counter for number of iterations in loops for
  6393. which determining number of iterations requires complicated
  6394. analysis. Later optimizations then may determine the number
  6395. easily. Useful especially in connection with unrolling.
  6396. '-fivopts'
  6397. Perform induction variable optimizations (strength reduction,
  6398. induction variable merging and induction variable elimination) on
  6399. trees.
  6400. '-ftree-parallelize-loops=n'
  6401. Parallelize loops, i.e., split their iteration space to run in n
  6402. threads. This is only possible for loops whose iterations are
  6403. independent and can be arbitrarily reordered. The optimization is
  6404. only profitable on multiprocessor machines, for loops that are
  6405. CPU-intensive, rather than constrained e.g. by memory bandwidth.
  6406. This option implies '-pthread', and thus is only supported on
  6407. targets that have support for '-pthread'.
  6408. '-ftree-pta'
  6409. Perform function-local points-to analysis on trees. This flag is
  6410. enabled by default at '-O' and higher.
  6411. '-ftree-sra'
  6412. Perform scalar replacement of aggregates. This pass replaces
  6413. structure references with scalars to prevent committing structures
  6414. to memory too early. This flag is enabled by default at '-O' and
  6415. higher.
  6416. '-fstore-merging'
  6417. Perform merging of narrow stores to consecutive memory addresses.
  6418. This pass merges contiguous stores of immediate values narrower
  6419. than a word into fewer wider stores to reduce the number of
  6420. instructions. This is enabled by default at '-O2' and higher as
  6421. well as '-Os'.
  6422. '-ftree-ter'
  6423. Perform temporary expression replacement during the SSA->normal
  6424. phase. Single use/single def temporaries are replaced at their use
  6425. location with their defining expression. This results in
  6426. non-GIMPLE code, but gives the expanders much more complex trees to
  6427. work on resulting in better RTL generation. This is enabled by
  6428. default at '-O' and higher.
  6429. '-ftree-slsr'
  6430. Perform straight-line strength reduction on trees. This recognizes
  6431. related expressions involving multiplications and replaces them by
  6432. less expensive calculations when possible. This is enabled by
  6433. default at '-O' and higher.
  6434. '-ftree-vectorize'
  6435. Perform vectorization on trees. This flag enables
  6436. '-ftree-loop-vectorize' and '-ftree-slp-vectorize' if not
  6437. explicitly specified.
  6438. '-ftree-loop-vectorize'
  6439. Perform loop vectorization on trees. This flag is enabled by
  6440. default at '-O3' and when '-ftree-vectorize' is enabled.
  6441. '-ftree-slp-vectorize'
  6442. Perform basic block vectorization on trees. This flag is enabled
  6443. by default at '-O3' and when '-ftree-vectorize' is enabled.
  6444. '-fvect-cost-model=MODEL'
  6445. Alter the cost model used for vectorization. The MODEL argument
  6446. should be one of 'unlimited', 'dynamic' or 'cheap'. With the
  6447. 'unlimited' model the vectorized code-path is assumed to be
  6448. profitable while with the 'dynamic' model a runtime check guards
  6449. the vectorized code-path to enable it only for iteration counts
  6450. that will likely execute faster than when executing the original
  6451. scalar loop. The 'cheap' model disables vectorization of loops
  6452. where doing so would be cost prohibitive for example due to
  6453. required runtime checks for data dependence or alignment but
  6454. otherwise is equal to the 'dynamic' model. The default cost model
  6455. depends on other optimization flags and is either 'dynamic' or
  6456. 'cheap'.
  6457. '-fsimd-cost-model=MODEL'
  6458. Alter the cost model used for vectorization of loops marked with
  6459. the OpenMP or Cilk Plus simd directive. The MODEL argument should
  6460. be one of 'unlimited', 'dynamic', 'cheap'. All values of MODEL
  6461. have the same meaning as described in '-fvect-cost-model' and by
  6462. default a cost model defined with '-fvect-cost-model' is used.
  6463. '-ftree-vrp'
  6464. Perform Value Range Propagation on trees. This is similar to the
  6465. constant propagation pass, but instead of values, ranges of values
  6466. are propagated. This allows the optimizers to remove unnecessary
  6467. range checks like array bound checks and null pointer checks. This
  6468. is enabled by default at '-O2' and higher. Null pointer check
  6469. elimination is only done if '-fdelete-null-pointer-checks' is
  6470. enabled.
  6471. '-fsplit-paths'
  6472. Split paths leading to loop backedges. This can improve dead code
  6473. elimination and common subexpression elimination. This is enabled
  6474. by default at '-O2' and above.
  6475. '-fsplit-ivs-in-unroller'
  6476. Enables expression of values of induction variables in later
  6477. iterations of the unrolled loop using the value in the first
  6478. iteration. This breaks long dependency chains, thus improving
  6479. efficiency of the scheduling passes.
  6480. A combination of '-fweb' and CSE is often sufficient to obtain the
  6481. same effect. However, that is not reliable in cases where the loop
  6482. body is more complicated than a single basic block. It also does
  6483. not work at all on some architectures due to restrictions in the
  6484. CSE pass.
  6485. This optimization is enabled by default.
  6486. '-fvariable-expansion-in-unroller'
  6487. With this option, the compiler creates multiple copies of some
  6488. local variables when unrolling a loop, which can result in superior
  6489. code.
  6490. '-fpartial-inlining'
  6491. Inline parts of functions. This option has any effect only when
  6492. inlining itself is turned on by the '-finline-functions' or
  6493. '-finline-small-functions' options.
  6494. Enabled at level '-O2'.
  6495. '-fpredictive-commoning'
  6496. Perform predictive commoning optimization, i.e., reusing
  6497. computations (especially memory loads and stores) performed in
  6498. previous iterations of loops.
  6499. This option is enabled at level '-O3'.
  6500. '-fprefetch-loop-arrays'
  6501. If supported by the target machine, generate instructions to
  6502. prefetch memory to improve the performance of loops that access
  6503. large arrays.
  6504. This option may generate better or worse code; results are highly
  6505. dependent on the structure of loops within the source code.
  6506. Disabled at level '-Os'.
  6507. '-fno-printf-return-value'
  6508. Do not substitute constants for known return value of formatted
  6509. output functions such as 'sprintf', 'snprintf', 'vsprintf', and
  6510. 'vsnprintf' (but not 'printf' of 'fprintf'). This transformation
  6511. allows GCC to optimize or even eliminate branches based on the
  6512. known return value of these functions called with arguments that
  6513. are either constant, or whose values are known to be in a range
  6514. that makes determining the exact return value possible. For
  6515. example, when '-fprintf-return-value' is in effect, both the branch
  6516. and the body of the 'if' statement (but not the call to 'snprint')
  6517. can be optimized away when 'i' is a 32-bit or smaller integer
  6518. because the return value is guaranteed to be at most 8.
  6519. char buf[9];
  6520. if (snprintf (buf, "%08x", i) >= sizeof buf)
  6521. ...
  6522. The '-fprintf-return-value' option relies on other optimizations
  6523. and yields best results with '-O2'. It works in tandem with the
  6524. '-Wformat-overflow' and '-Wformat-truncation' options. The
  6525. '-fprintf-return-value' option is enabled by default.
  6526. '-fno-peephole'
  6527. '-fno-peephole2'
  6528. Disable any machine-specific peephole optimizations. The
  6529. difference between '-fno-peephole' and '-fno-peephole2' is in how
  6530. they are implemented in the compiler; some targets use one, some
  6531. use the other, a few use both.
  6532. '-fpeephole' is enabled by default. '-fpeephole2' enabled at
  6533. levels '-O2', '-O3', '-Os'.
  6534. '-fno-guess-branch-probability'
  6535. Do not guess branch probabilities using heuristics.
  6536. GCC uses heuristics to guess branch probabilities if they are not
  6537. provided by profiling feedback ('-fprofile-arcs'). These
  6538. heuristics are based on the control flow graph. If some branch
  6539. probabilities are specified by '__builtin_expect', then the
  6540. heuristics are used to guess branch probabilities for the rest of
  6541. the control flow graph, taking the '__builtin_expect' info into
  6542. account. The interactions between the heuristics and
  6543. '__builtin_expect' can be complex, and in some cases, it may be
  6544. useful to disable the heuristics so that the effects of
  6545. '__builtin_expect' are easier to understand.
  6546. The default is '-fguess-branch-probability' at levels '-O', '-O2',
  6547. '-O3', '-Os'.
  6548. '-freorder-blocks'
  6549. Reorder basic blocks in the compiled function in order to reduce
  6550. number of taken branches and improve code locality.
  6551. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  6552. '-freorder-blocks-algorithm=ALGORITHM'
  6553. Use the specified algorithm for basic block reordering. The
  6554. ALGORITHM argument can be 'simple', which does not increase code
  6555. size (except sometimes due to secondary effects like alignment), or
  6556. 'stc', the "software trace cache" algorithm, which tries to put all
  6557. often executed code together, minimizing the number of branches
  6558. executed by making extra copies of code.
  6559. The default is 'simple' at levels '-O', '-Os', and 'stc' at levels
  6560. '-O2', '-O3'.
  6561. '-freorder-blocks-and-partition'
  6562. In addition to reordering basic blocks in the compiled function, in
  6563. order to reduce number of taken branches, partitions hot and cold
  6564. basic blocks into separate sections of the assembly and '.o' files,
  6565. to improve paging and cache locality performance.
  6566. This optimization is automatically turned off in the presence of
  6567. exception handling, for linkonce sections, for functions with a
  6568. user-defined section attribute and on any architecture that does
  6569. not support named sections.
  6570. Enabled for x86 at levels '-O2', '-O3'.
  6571. '-freorder-functions'
  6572. Reorder functions in the object file in order to improve code
  6573. locality. This is implemented by using special subsections
  6574. '.text.hot' for most frequently executed functions and
  6575. '.text.unlikely' for unlikely executed functions. Reordering is
  6576. done by the linker so object file format must support named
  6577. sections and linker must place them in a reasonable way.
  6578. Also profile feedback must be available to make this option
  6579. effective. See '-fprofile-arcs' for details.
  6580. Enabled at levels '-O2', '-O3', '-Os'.
  6581. '-fstrict-aliasing'
  6582. Allow the compiler to assume the strictest aliasing rules
  6583. applicable to the language being compiled. For C (and C++), this
  6584. activates optimizations based on the type of expressions. In
  6585. particular, an object of one type is assumed never to reside at the
  6586. same address as an object of a different type, unless the types are
  6587. almost the same. For example, an 'unsigned int' can alias an
  6588. 'int', but not a 'void*' or a 'double'. A character type may alias
  6589. any other type.
  6590. Pay special attention to code like this:
  6591. union a_union {
  6592. int i;
  6593. double d;
  6594. };
  6595. int f() {
  6596. union a_union t;
  6597. t.d = 3.0;
  6598. return t.i;
  6599. }
  6600. The practice of reading from a different union member than the one
  6601. most recently written to (called "type-punning") is common. Even
  6602. with '-fstrict-aliasing', type-punning is allowed, provided the
  6603. memory is accessed through the union type. So, the code above
  6604. works as expected. *Note Structures unions enumerations and
  6605. bit-fields implementation::. However, this code might not:
  6606. int f() {
  6607. union a_union t;
  6608. int* ip;
  6609. t.d = 3.0;
  6610. ip = &t.i;
  6611. return *ip;
  6612. }
  6613. Similarly, access by taking the address, casting the resulting
  6614. pointer and dereferencing the result has undefined behavior, even
  6615. if the cast uses a union type, e.g.:
  6616. int f() {
  6617. double d = 3.0;
  6618. return ((union a_union *) &d)->i;
  6619. }
  6620. The '-fstrict-aliasing' option is enabled at levels '-O2', '-O3',
  6621. '-Os'.
  6622. '-fstrict-overflow'
  6623. Allow the compiler to assume strict signed overflow rules,
  6624. depending on the language being compiled. For C (and C++) this
  6625. means that overflow when doing arithmetic with signed numbers is
  6626. undefined, which means that the compiler may assume that it does
  6627. not happen. This permits various optimizations. For example, the
  6628. compiler assumes that an expression like 'i + 10 > i' is always
  6629. true for signed 'i'. This assumption is only valid if signed
  6630. overflow is undefined, as the expression is false if 'i + 10'
  6631. overflows when using twos complement arithmetic. When this option
  6632. is in effect any attempt to determine whether an operation on
  6633. signed numbers overflows must be written carefully to not actually
  6634. involve overflow.
  6635. This option also allows the compiler to assume strict pointer
  6636. semantics: given a pointer to an object, if adding an offset to
  6637. that pointer does not produce a pointer to the same object, the
  6638. addition is undefined. This permits the compiler to conclude that
  6639. 'p + u > p' is always true for a pointer 'p' and unsigned integer
  6640. 'u'. This assumption is only valid because pointer wraparound is
  6641. undefined, as the expression is false if 'p + u' overflows using
  6642. twos complement arithmetic.
  6643. See also the '-fwrapv' option. Using '-fwrapv' means that integer
  6644. signed overflow is fully defined: it wraps. When '-fwrapv' is
  6645. used, there is no difference between '-fstrict-overflow' and
  6646. '-fno-strict-overflow' for integers. With '-fwrapv' certain types
  6647. of overflow are permitted. For example, if the compiler gets an
  6648. overflow when doing arithmetic on constants, the overflowed value
  6649. can still be used with '-fwrapv', but not otherwise.
  6650. The '-fstrict-overflow' option is enabled at levels '-O2', '-O3',
  6651. '-Os'.
  6652. '-falign-functions'
  6653. '-falign-functions=N'
  6654. Align the start of functions to the next power-of-two greater than
  6655. N, skipping up to N bytes. For instance, '-falign-functions=32'
  6656. aligns functions to the next 32-byte boundary, but
  6657. '-falign-functions=24' aligns to the next 32-byte boundary only if
  6658. this can be done by skipping 23 bytes or less.
  6659. '-fno-align-functions' and '-falign-functions=1' are equivalent and
  6660. mean that functions are not aligned.
  6661. Some assemblers only support this flag when N is a power of two; in
  6662. that case, it is rounded up.
  6663. If N is not specified or is zero, use a machine-dependent default.
  6664. The maximum allowed N option value is 65536.
  6665. Enabled at levels '-O2', '-O3'.
  6666. '-flimit-function-alignment'
  6667. If this option is enabled, the compiler tries to avoid
  6668. unnecessarily overaligning functions. It attempts to instruct the
  6669. assembler to align by the amount specified by '-falign-functions',
  6670. but not to skip more bytes than the size of the function.
  6671. '-falign-labels'
  6672. '-falign-labels=N'
  6673. Align all branch targets to a power-of-two boundary, skipping up to
  6674. N bytes like '-falign-functions'. This option can easily make code
  6675. slower, because it must insert dummy operations for when the branch
  6676. target is reached in the usual flow of the code.
  6677. '-fno-align-labels' and '-falign-labels=1' are equivalent and mean
  6678. that labels are not aligned.
  6679. If '-falign-loops' or '-falign-jumps' are applicable and are
  6680. greater than this value, then their values are used instead.
  6681. If N is not specified or is zero, use a machine-dependent default
  6682. which is very likely to be '1', meaning no alignment. The maximum
  6683. allowed N option value is 65536.
  6684. Enabled at levels '-O2', '-O3'.
  6685. '-falign-loops'
  6686. '-falign-loops=N'
  6687. Align loops to a power-of-two boundary, skipping up to N bytes like
  6688. '-falign-functions'. If the loops are executed many times, this
  6689. makes up for any execution of the dummy operations.
  6690. '-fno-align-loops' and '-falign-loops=1' are equivalent and mean
  6691. that loops are not aligned. The maximum allowed N option value is
  6692. 65536.
  6693. If N is not specified or is zero, use a machine-dependent default.
  6694. Enabled at levels '-O2', '-O3'.
  6695. '-falign-jumps'
  6696. '-falign-jumps=N'
  6697. Align branch targets to a power-of-two boundary, for branch targets
  6698. where the targets can only be reached by jumping, skipping up to N
  6699. bytes like '-falign-functions'. In this case, no dummy operations
  6700. need be executed.
  6701. '-fno-align-jumps' and '-falign-jumps=1' are equivalent and mean
  6702. that loops are not aligned.
  6703. If N is not specified or is zero, use a machine-dependent default.
  6704. The maximum allowed N option value is 65536.
  6705. Enabled at levels '-O2', '-O3'.
  6706. '-funit-at-a-time'
  6707. This option is left for compatibility reasons. '-funit-at-a-time'
  6708. has no effect, while '-fno-unit-at-a-time' implies
  6709. '-fno-toplevel-reorder' and '-fno-section-anchors'.
  6710. Enabled by default.
  6711. '-fno-toplevel-reorder'
  6712. Do not reorder top-level functions, variables, and 'asm'
  6713. statements. Output them in the same order that they appear in the
  6714. input file. When this option is used, unreferenced static
  6715. variables are not removed. This option is intended to support
  6716. existing code that relies on a particular ordering. For new code,
  6717. it is better to use attributes when possible.
  6718. Enabled at level '-O0'. When disabled explicitly, it also implies
  6719. '-fno-section-anchors', which is otherwise enabled at '-O0' on some
  6720. targets.
  6721. '-fweb'
  6722. Constructs webs as commonly used for register allocation purposes
  6723. and assign each web individual pseudo register. This allows the
  6724. register allocation pass to operate on pseudos directly, but also
  6725. strengthens several other optimization passes, such as CSE, loop
  6726. optimizer and trivial dead code remover. It can, however, make
  6727. debugging impossible, since variables no longer stay in a "home
  6728. register".
  6729. Enabled by default with '-funroll-loops'.
  6730. '-fwhole-program'
  6731. Assume that the current compilation unit represents the whole
  6732. program being compiled. All public functions and variables with
  6733. the exception of 'main' and those merged by attribute
  6734. 'externally_visible' become static functions and in effect are
  6735. optimized more aggressively by interprocedural optimizers.
  6736. This option should not be used in combination with '-flto'.
  6737. Instead relying on a linker plugin should provide safer and more
  6738. precise information.
  6739. '-flto[=N]'
  6740. This option runs the standard link-time optimizer. When invoked
  6741. with source code, it generates GIMPLE (one of GCC's internal
  6742. representations) and writes it to special ELF sections in the
  6743. object file. When the object files are linked together, all the
  6744. function bodies are read from these ELF sections and instantiated
  6745. as if they had been part of the same translation unit.
  6746. To use the link-time optimizer, '-flto' and optimization options
  6747. should be specified at compile time and during the final link. It
  6748. is recommended that you compile all the files participating in the
  6749. same link with the same options and also specify those options at
  6750. link time. For example:
  6751. gcc -c -O2 -flto foo.c
  6752. gcc -c -O2 -flto bar.c
  6753. gcc -o myprog -flto -O2 foo.o bar.o
  6754. The first two invocations to GCC save a bytecode representation of
  6755. GIMPLE into special ELF sections inside 'foo.o' and 'bar.o'. The
  6756. final invocation reads the GIMPLE bytecode from 'foo.o' and
  6757. 'bar.o', merges the two files into a single internal image, and
  6758. compiles the result as usual. Since both 'foo.o' and 'bar.o' are
  6759. merged into a single image, this causes all the interprocedural
  6760. analyses and optimizations in GCC to work across the two files as
  6761. if they were a single one. This means, for example, that the
  6762. inliner is able to inline functions in 'bar.o' into functions in
  6763. 'foo.o' and vice-versa.
  6764. Another (simpler) way to enable link-time optimization is:
  6765. gcc -o myprog -flto -O2 foo.c bar.c
  6766. The above generates bytecode for 'foo.c' and 'bar.c', merges them
  6767. together into a single GIMPLE representation and optimizes them as
  6768. usual to produce 'myprog'.
  6769. The only important thing to keep in mind is that to enable
  6770. link-time optimizations you need to use the GCC driver to perform
  6771. the link step. GCC then automatically performs link-time
  6772. optimization if any of the objects involved were compiled with the
  6773. '-flto' command-line option. You generally should specify the
  6774. optimization options to be used for link-time optimization though
  6775. GCC tries to be clever at guessing an optimization level to use
  6776. from the options used at compile time if you fail to specify one at
  6777. link time. You can always override the automatic decision to do
  6778. link-time optimization by passing '-fno-lto' to the link command.
  6779. To make whole program optimization effective, it is necessary to
  6780. make certain whole program assumptions. The compiler needs to know
  6781. what functions and variables can be accessed by libraries and
  6782. runtime outside of the link-time optimized unit. When supported by
  6783. the linker, the linker plugin (see '-fuse-linker-plugin') passes
  6784. information to the compiler about used and externally visible
  6785. symbols. When the linker plugin is not available,
  6786. '-fwhole-program' should be used to allow the compiler to make
  6787. these assumptions, which leads to more aggressive optimization
  6788. decisions.
  6789. When '-fuse-linker-plugin' is not enabled, when a file is compiled
  6790. with '-flto', the generated object file is larger than a regular
  6791. object file because it contains GIMPLE bytecodes and the usual
  6792. final code (see '-ffat-lto-objects'. This means that object files
  6793. with LTO information can be linked as normal object files; if
  6794. '-fno-lto' is passed to the linker, no interprocedural
  6795. optimizations are applied. Note that when '-fno-fat-lto-objects'
  6796. is enabled the compile stage is faster but you cannot perform a
  6797. regular, non-LTO link on them.
  6798. Additionally, the optimization flags used to compile individual
  6799. files are not necessarily related to those used at link time. For
  6800. instance,
  6801. gcc -c -O0 -ffat-lto-objects -flto foo.c
  6802. gcc -c -O0 -ffat-lto-objects -flto bar.c
  6803. gcc -o myprog -O3 foo.o bar.o
  6804. This produces individual object files with unoptimized assembler
  6805. code, but the resulting binary 'myprog' is optimized at '-O3'. If,
  6806. instead, the final binary is generated with '-fno-lto', then
  6807. 'myprog' is not optimized.
  6808. When producing the final binary, GCC only applies link-time
  6809. optimizations to those files that contain bytecode. Therefore, you
  6810. can mix and match object files and libraries with GIMPLE bytecodes
  6811. and final object code. GCC automatically selects which files to
  6812. optimize in LTO mode and which files to link without further
  6813. processing.
  6814. There are some code generation flags preserved by GCC when
  6815. generating bytecodes, as they need to be used during the final link
  6816. stage. Generally options specified at link time override those
  6817. specified at compile time.
  6818. If you do not specify an optimization level option '-O' at link
  6819. time, then GCC uses the highest optimization level used when
  6820. compiling the object files.
  6821. Currently, the following options and their settings are taken from
  6822. the first object file that explicitly specifies them: '-fPIC',
  6823. '-fpic', '-fpie', '-fcommon', '-fexceptions',
  6824. '-fnon-call-exceptions', '-fgnu-tm' and all the '-m' target flags.
  6825. Certain ABI-changing flags are required to match in all compilation
  6826. units, and trying to override this at link time with a conflicting
  6827. value is ignored. This includes options such as
  6828. '-freg-struct-return' and '-fpcc-struct-return'.
  6829. Other options such as '-ffp-contract', '-fno-strict-overflow',
  6830. '-fwrapv', '-fno-trapv' or '-fno-strict-aliasing' are passed
  6831. through to the link stage and merged conservatively for conflicting
  6832. translation units. Specifically '-fno-strict-overflow', '-fwrapv'
  6833. and '-fno-trapv' take precedence; and for example
  6834. '-ffp-contract=off' takes precedence over '-ffp-contract=fast'.
  6835. You can override them at link time.
  6836. If LTO encounters objects with C linkage declared with incompatible
  6837. types in separate translation units to be linked together
  6838. (undefined behavior according to ISO C99 6.2.7), a non-fatal
  6839. diagnostic may be issued. The behavior is still undefined at run
  6840. time. Similar diagnostics may be raised for other languages.
  6841. Another feature of LTO is that it is possible to apply
  6842. interprocedural optimizations on files written in different
  6843. languages:
  6844. gcc -c -flto foo.c
  6845. g++ -c -flto bar.cc
  6846. gfortran -c -flto baz.f90
  6847. g++ -o myprog -flto -O3 foo.o bar.o baz.o -lgfortran
  6848. Notice that the final link is done with 'g++' to get the C++
  6849. runtime libraries and '-lgfortran' is added to get the Fortran
  6850. runtime libraries. In general, when mixing languages in LTO mode,
  6851. you should use the same link command options as when mixing
  6852. languages in a regular (non-LTO) compilation.
  6853. If object files containing GIMPLE bytecode are stored in a library
  6854. archive, say 'libfoo.a', it is possible to extract and use them in
  6855. an LTO link if you are using a linker with plugin support. To
  6856. create static libraries suitable for LTO, use 'gcc-ar' and
  6857. 'gcc-ranlib' instead of 'ar' and 'ranlib'; to show the symbols of
  6858. object files with GIMPLE bytecode, use 'gcc-nm'. Those commands
  6859. require that 'ar', 'ranlib' and 'nm' have been compiled with plugin
  6860. support. At link time, use the the flag '-fuse-linker-plugin' to
  6861. ensure that the library participates in the LTO optimization
  6862. process:
  6863. gcc -o myprog -O2 -flto -fuse-linker-plugin a.o b.o -lfoo
  6864. With the linker plugin enabled, the linker extracts the needed
  6865. GIMPLE files from 'libfoo.a' and passes them on to the running GCC
  6866. to make them part of the aggregated GIMPLE image to be optimized.
  6867. If you are not using a linker with plugin support and/or do not
  6868. enable the linker plugin, then the objects inside 'libfoo.a' are
  6869. extracted and linked as usual, but they do not participate in the
  6870. LTO optimization process. In order to make a static library
  6871. suitable for both LTO optimization and usual linkage, compile its
  6872. object files with '-flto' '-ffat-lto-objects'.
  6873. Link-time optimizations do not require the presence of the whole
  6874. program to operate. If the program does not require any symbols to
  6875. be exported, it is possible to combine '-flto' and
  6876. '-fwhole-program' to allow the interprocedural optimizers to use
  6877. more aggressive assumptions which may lead to improved optimization
  6878. opportunities. Use of '-fwhole-program' is not needed when linker
  6879. plugin is active (see '-fuse-linker-plugin').
  6880. The current implementation of LTO makes no attempt to generate
  6881. bytecode that is portable between different types of hosts. The
  6882. bytecode files are versioned and there is a strict version check,
  6883. so bytecode files generated in one version of GCC do not work with
  6884. an older or newer version of GCC.
  6885. Link-time optimization does not work well with generation of
  6886. debugging information. Combining '-flto' with '-g' is currently
  6887. experimental and expected to produce unexpected results.
  6888. If you specify the optional N, the optimization and code generation
  6889. done at link time is executed in parallel using N parallel jobs by
  6890. utilizing an installed 'make' program. The environment variable
  6891. 'MAKE' may be used to override the program used. The default value
  6892. for N is 1.
  6893. You can also specify '-flto=jobserver' to use GNU make's job server
  6894. mode to determine the number of parallel jobs. This is useful when
  6895. the Makefile calling GCC is already executing in parallel. You
  6896. must prepend a '+' to the command recipe in the parent Makefile for
  6897. this to work. This option likely only works if 'MAKE' is GNU make.
  6898. '-flto-partition=ALG'
  6899. Specify the partitioning algorithm used by the link-time optimizer.
  6900. The value is either '1to1' to specify a partitioning mirroring the
  6901. original source files or 'balanced' to specify partitioning into
  6902. equally sized chunks (whenever possible) or 'max' to create new
  6903. partition for every symbol where possible. Specifying 'none' as an
  6904. algorithm disables partitioning and streaming completely. The
  6905. default value is 'balanced'. While '1to1' can be used as an
  6906. workaround for various code ordering issues, the 'max' partitioning
  6907. is intended for internal testing only. The value 'one' specifies
  6908. that exactly one partition should be used while the value 'none'
  6909. bypasses partitioning and executes the link-time optimization step
  6910. directly from the WPA phase.
  6911. '-flto-odr-type-merging'
  6912. Enable streaming of mangled types names of C++ types and their
  6913. unification at link time. This increases size of LTO object files,
  6914. but enables diagnostics about One Definition Rule violations.
  6915. '-flto-compression-level=N'
  6916. This option specifies the level of compression used for
  6917. intermediate language written to LTO object files, and is only
  6918. meaningful in conjunction with LTO mode ('-flto'). Valid values
  6919. are 0 (no compression) to 9 (maximum compression). Values outside
  6920. this range are clamped to either 0 or 9. If the option is not
  6921. given, a default balanced compression setting is used.
  6922. '-fuse-linker-plugin'
  6923. Enables the use of a linker plugin during link-time optimization.
  6924. This option relies on plugin support in the linker, which is
  6925. available in gold or in GNU ld 2.21 or newer.
  6926. This option enables the extraction of object files with GIMPLE
  6927. bytecode out of library archives. This improves the quality of
  6928. optimization by exposing more code to the link-time optimizer.
  6929. This information specifies what symbols can be accessed externally
  6930. (by non-LTO object or during dynamic linking). Resulting code
  6931. quality improvements on binaries (and shared libraries that use
  6932. hidden visibility) are similar to '-fwhole-program'. See '-flto'
  6933. for a description of the effect of this flag and how to use it.
  6934. This option is enabled by default when LTO support in GCC is
  6935. enabled and GCC was configured for use with a linker supporting
  6936. plugins (GNU ld 2.21 or newer or gold).
  6937. '-ffat-lto-objects'
  6938. Fat LTO objects are object files that contain both the intermediate
  6939. language and the object code. This makes them usable for both LTO
  6940. linking and normal linking. This option is effective only when
  6941. compiling with '-flto' and is ignored at link time.
  6942. '-fno-fat-lto-objects' improves compilation time over plain LTO,
  6943. but requires the complete toolchain to be aware of LTO. It requires
  6944. a linker with linker plugin support for basic functionality.
  6945. Additionally, 'nm', 'ar' and 'ranlib' need to support linker
  6946. plugins to allow a full-featured build environment (capable of
  6947. building static libraries etc). GCC provides the 'gcc-ar',
  6948. 'gcc-nm', 'gcc-ranlib' wrappers to pass the right options to these
  6949. tools. With non fat LTO makefiles need to be modified to use them.
  6950. The default is '-fno-fat-lto-objects' on targets with linker plugin
  6951. support.
  6952. '-fcompare-elim'
  6953. After register allocation and post-register allocation instruction
  6954. splitting, identify arithmetic instructions that compute processor
  6955. flags similar to a comparison operation based on that arithmetic.
  6956. If possible, eliminate the explicit comparison operation.
  6957. This pass only applies to certain targets that cannot explicitly
  6958. represent the comparison operation before register allocation is
  6959. complete.
  6960. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  6961. '-fcprop-registers'
  6962. After register allocation and post-register allocation instruction
  6963. splitting, perform a copy-propagation pass to try to reduce
  6964. scheduling dependencies and occasionally eliminate the copy.
  6965. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  6966. '-fprofile-correction'
  6967. Profiles collected using an instrumented binary for multi-threaded
  6968. programs may be inconsistent due to missed counter updates. When
  6969. this option is specified, GCC uses heuristics to correct or smooth
  6970. out such inconsistencies. By default, GCC emits an error message
  6971. when an inconsistent profile is detected.
  6972. '-fprofile-use'
  6973. '-fprofile-use=PATH'
  6974. Enable profile feedback-directed optimizations, and the following
  6975. optimizations which are generally profitable only with profile
  6976. feedback available: '-fbranch-probabilities', '-fvpt',
  6977. '-funroll-loops', '-fpeel-loops', '-ftracer', '-ftree-vectorize',
  6978. and 'ftree-loop-distribute-patterns'.
  6979. Before you can use this option, you must first generate profiling
  6980. information. *Note Instrumentation Options::, for information
  6981. about the '-fprofile-generate' option.
  6982. By default, GCC emits an error message if the feedback profiles do
  6983. not match the source code. This error can be turned into a warning
  6984. by using '-Wcoverage-mismatch'. Note this may result in poorly
  6985. optimized code.
  6986. If PATH is specified, GCC looks at the PATH to find the profile
  6987. feedback data files. See '-fprofile-dir'.
  6988. '-fauto-profile'
  6989. '-fauto-profile=PATH'
  6990. Enable sampling-based feedback-directed optimizations, and the
  6991. following optimizations which are generally profitable only with
  6992. profile feedback available: '-fbranch-probabilities', '-fvpt',
  6993. '-funroll-loops', '-fpeel-loops', '-ftracer', '-ftree-vectorize',
  6994. '-finline-functions', '-fipa-cp', '-fipa-cp-clone',
  6995. '-fpredictive-commoning', '-funswitch-loops',
  6996. '-fgcse-after-reload', and '-ftree-loop-distribute-patterns'.
  6997. PATH is the name of a file containing AutoFDO profile information.
  6998. If omitted, it defaults to 'fbdata.afdo' in the current directory.
  6999. Producing an AutoFDO profile data file requires running your
  7000. program with the 'perf' utility on a supported GNU/Linux target
  7001. system. For more information, see <https://perf.wiki.kernel.org/>.
  7002. E.g.
  7003. perf record -e br_inst_retired:near_taken -b -o perf.data \
  7004. -- your_program
  7005. Then use the 'create_gcov' tool to convert the raw profile data to
  7006. a format that can be used by GCC. You must also supply the
  7007. unstripped binary for your program to this tool. See
  7008. <https://github.com/google/autofdo>.
  7009. E.g.
  7010. create_gcov --binary=your_program.unstripped --profile=perf.data \
  7011. --gcov=profile.afdo
  7012. The following options control compiler behavior regarding
  7013. floating-point arithmetic. These options trade off between speed and
  7014. correctness. All must be specifically enabled.
  7015. '-ffloat-store'
  7016. Do not store floating-point variables in registers, and inhibit
  7017. other options that might change whether a floating-point value is
  7018. taken from a register or memory.
  7019. This option prevents undesirable excess precision on machines such
  7020. as the 68000 where the floating registers (of the 68881) keep more
  7021. precision than a 'double' is supposed to have. Similarly for the
  7022. x86 architecture. For most programs, the excess precision does
  7023. only good, but a few programs rely on the precise definition of
  7024. IEEE floating point. Use '-ffloat-store' for such programs, after
  7025. modifying them to store all pertinent intermediate computations
  7026. into variables.
  7027. '-fexcess-precision=STYLE'
  7028. This option allows further control over excess precision on
  7029. machines where floating-point operations occur in a format with
  7030. more precision or range than the IEEE standard and interchange
  7031. floating-point types. By default, '-fexcess-precision=fast' is in
  7032. effect; this means that operations may be carried out in a wider
  7033. precision than the types specified in the source if that would
  7034. result in faster code, and it is unpredictable when rounding to the
  7035. types specified in the source code takes place. When compiling C,
  7036. if '-fexcess-precision=standard' is specified then excess precision
  7037. follows the rules specified in ISO C99; in particular, both casts
  7038. and assignments cause values to be rounded to their semantic types
  7039. (whereas '-ffloat-store' only affects assignments). This option is
  7040. enabled by default for C if a strict conformance option such as
  7041. '-std=c99' is used. '-ffast-math' enables
  7042. '-fexcess-precision=fast' by default regardless of whether a strict
  7043. conformance option is used.
  7044. '-fexcess-precision=standard' is not implemented for languages
  7045. other than C. On the x86, it has no effect if '-mfpmath=sse' or
  7046. '-mfpmath=sse+387' is specified; in the former case, IEEE semantics
  7047. apply without excess precision, and in the latter, rounding is
  7048. unpredictable.
  7049. '-ffast-math'
  7050. Sets the options '-fno-math-errno', '-funsafe-math-optimizations',
  7051. '-ffinite-math-only', '-fno-rounding-math', '-fno-signaling-nans',
  7052. '-fcx-limited-range' and '-fexcess-precision=fast'.
  7053. This option causes the preprocessor macro '__FAST_MATH__' to be
  7054. defined.
  7055. This option is not turned on by any '-O' option besides '-Ofast'
  7056. since it can result in incorrect output for programs that depend on
  7057. an exact implementation of IEEE or ISO rules/specifications for
  7058. math functions. It may, however, yield faster code for programs
  7059. that do not require the guarantees of these specifications.
  7060. '-fno-math-errno'
  7061. Do not set 'errno' after calling math functions that are executed
  7062. with a single instruction, e.g., 'sqrt'. A program that relies on
  7063. IEEE exceptions for math error handling may want to use this flag
  7064. for speed while maintaining IEEE arithmetic compatibility.
  7065. This option is not turned on by any '-O' option since it can result
  7066. in incorrect output for programs that depend on an exact
  7067. implementation of IEEE or ISO rules/specifications for math
  7068. functions. It may, however, yield faster code for programs that do
  7069. not require the guarantees of these specifications.
  7070. The default is '-fmath-errno'.
  7071. On Darwin systems, the math library never sets 'errno'. There is
  7072. therefore no reason for the compiler to consider the possibility
  7073. that it might, and '-fno-math-errno' is the default.
  7074. '-funsafe-math-optimizations'
  7075. Allow optimizations for floating-point arithmetic that (a) assume
  7076. that arguments and results are valid and (b) may violate IEEE or
  7077. ANSI standards. When used at link time, it may include libraries
  7078. or startup files that change the default FPU control word or other
  7079. similar optimizations.
  7080. This option is not turned on by any '-O' option since it can result
  7081. in incorrect output for programs that depend on an exact
  7082. implementation of IEEE or ISO rules/specifications for math
  7083. functions. It may, however, yield faster code for programs that do
  7084. not require the guarantees of these specifications. Enables
  7085. '-fno-signed-zeros', '-fno-trapping-math', '-fassociative-math' and
  7086. '-freciprocal-math'.
  7087. The default is '-fno-unsafe-math-optimizations'.
  7088. '-fassociative-math'
  7089. Allow re-association of operands in series of floating-point
  7090. operations. This violates the ISO C and C++ language standard by
  7091. possibly changing computation result. NOTE: re-ordering may change
  7092. the sign of zero as well as ignore NaNs and inhibit or create
  7093. underflow or overflow (and thus cannot be used on code that relies
  7094. on rounding behavior like '(x + 2**52) - 2**52'. May also reorder
  7095. floating-point comparisons and thus may not be used when ordered
  7096. comparisons are required. This option requires that both
  7097. '-fno-signed-zeros' and '-fno-trapping-math' be in effect.
  7098. Moreover, it doesn't make much sense with '-frounding-math'. For
  7099. Fortran the option is automatically enabled when both
  7100. '-fno-signed-zeros' and '-fno-trapping-math' are in effect.
  7101. The default is '-fno-associative-math'.
  7102. '-freciprocal-math'
  7103. Allow the reciprocal of a value to be used instead of dividing by
  7104. the value if this enables optimizations. For example 'x / y' can
  7105. be replaced with 'x * (1/y)', which is useful if '(1/y)' is subject
  7106. to common subexpression elimination. Note that this loses
  7107. precision and increases the number of flops operating on the value.
  7108. The default is '-fno-reciprocal-math'.
  7109. '-ffinite-math-only'
  7110. Allow optimizations for floating-point arithmetic that assume that
  7111. arguments and results are not NaNs or +-Infs.
  7112. This option is not turned on by any '-O' option since it can result
  7113. in incorrect output for programs that depend on an exact
  7114. implementation of IEEE or ISO rules/specifications for math
  7115. functions. It may, however, yield faster code for programs that do
  7116. not require the guarantees of these specifications.
  7117. The default is '-fno-finite-math-only'.
  7118. '-fno-signed-zeros'
  7119. Allow optimizations for floating-point arithmetic that ignore the
  7120. signedness of zero. IEEE arithmetic specifies the behavior of
  7121. distinct +0.0 and -0.0 values, which then prohibits simplification
  7122. of expressions such as x+0.0 or 0.0*x (even with
  7123. '-ffinite-math-only'). This option implies that the sign of a zero
  7124. result isn't significant.
  7125. The default is '-fsigned-zeros'.
  7126. '-fno-trapping-math'
  7127. Compile code assuming that floating-point operations cannot
  7128. generate user-visible traps. These traps include division by zero,
  7129. overflow, underflow, inexact result and invalid operation. This
  7130. option requires that '-fno-signaling-nans' be in effect. Setting
  7131. this option may allow faster code if one relies on "non-stop" IEEE
  7132. arithmetic, for example.
  7133. This option should never be turned on by any '-O' option since it
  7134. can result in incorrect output for programs that depend on an exact
  7135. implementation of IEEE or ISO rules/specifications for math
  7136. functions.
  7137. The default is '-ftrapping-math'.
  7138. '-frounding-math'
  7139. Disable transformations and optimizations that assume default
  7140. floating-point rounding behavior. This is round-to-zero for all
  7141. floating point to integer conversions, and round-to-nearest for all
  7142. other arithmetic truncations. This option should be specified for
  7143. programs that change the FP rounding mode dynamically, or that may
  7144. be executed with a non-default rounding mode. This option disables
  7145. constant folding of floating-point expressions at compile time
  7146. (which may be affected by rounding mode) and arithmetic
  7147. transformations that are unsafe in the presence of sign-dependent
  7148. rounding modes.
  7149. The default is '-fno-rounding-math'.
  7150. This option is experimental and does not currently guarantee to
  7151. disable all GCC optimizations that are affected by rounding mode.
  7152. Future versions of GCC may provide finer control of this setting
  7153. using C99's 'FENV_ACCESS' pragma. This command-line option will be
  7154. used to specify the default state for 'FENV_ACCESS'.
  7155. '-fsignaling-nans'
  7156. Compile code assuming that IEEE signaling NaNs may generate
  7157. user-visible traps during floating-point operations. Setting this
  7158. option disables optimizations that may change the number of
  7159. exceptions visible with signaling NaNs. This option implies
  7160. '-ftrapping-math'.
  7161. This option causes the preprocessor macro '__SUPPORT_SNAN__' to be
  7162. defined.
  7163. The default is '-fno-signaling-nans'.
  7164. This option is experimental and does not currently guarantee to
  7165. disable all GCC optimizations that affect signaling NaN behavior.
  7166. '-fno-fp-int-builtin-inexact'
  7167. Do not allow the built-in functions 'ceil', 'floor', 'round' and
  7168. 'trunc', and their 'float' and 'long double' variants, to generate
  7169. code that raises the "inexact" floating-point exception for
  7170. noninteger arguments. ISO C99 and C11 allow these functions to
  7171. raise the "inexact" exception, but ISO/IEC TS 18661-1:2014, the C
  7172. bindings to IEEE 754-2008, does not allow these functions to do so.
  7173. The default is '-ffp-int-builtin-inexact', allowing the exception
  7174. to be raised. This option does nothing unless '-ftrapping-math' is
  7175. in effect.
  7176. Even if '-fno-fp-int-builtin-inexact' is used, if the functions
  7177. generate a call to a library function then the "inexact" exception
  7178. may be raised if the library implementation does not follow TS
  7179. 18661.
  7180. '-fsingle-precision-constant'
  7181. Treat floating-point constants as single precision instead of
  7182. implicitly converting them to double-precision constants.
  7183. '-fcx-limited-range'
  7184. When enabled, this option states that a range reduction step is not
  7185. needed when performing complex division. Also, there is no
  7186. checking whether the result of a complex multiplication or division
  7187. is 'NaN + I*NaN', with an attempt to rescue the situation in that
  7188. case. The default is '-fno-cx-limited-range', but is enabled by
  7189. '-ffast-math'.
  7190. This option controls the default setting of the ISO C99
  7191. 'CX_LIMITED_RANGE' pragma. Nevertheless, the option applies to all
  7192. languages.
  7193. '-fcx-fortran-rules'
  7194. Complex multiplication and division follow Fortran rules. Range
  7195. reduction is done as part of complex division, but there is no
  7196. checking whether the result of a complex multiplication or division
  7197. is 'NaN + I*NaN', with an attempt to rescue the situation in that
  7198. case.
  7199. The default is '-fno-cx-fortran-rules'.
  7200. The following options control optimizations that may improve
  7201. performance, but are not enabled by any '-O' options. This section
  7202. includes experimental options that may produce broken code.
  7203. '-fbranch-probabilities'
  7204. After running a program compiled with '-fprofile-arcs' (*note
  7205. Instrumentation Options::), you can compile it a second time using
  7206. '-fbranch-probabilities', to improve optimizations based on the
  7207. number of times each branch was taken. When a program compiled
  7208. with '-fprofile-arcs' exits, it saves arc execution counts to a
  7209. file called 'SOURCENAME.gcda' for each source file. The
  7210. information in this data file is very dependent on the structure of
  7211. the generated code, so you must use the same source code and the
  7212. same optimization options for both compilations.
  7213. With '-fbranch-probabilities', GCC puts a 'REG_BR_PROB' note on
  7214. each 'JUMP_INSN' and 'CALL_INSN'. These can be used to improve
  7215. optimization. Currently, they are only used in one place: in
  7216. 'reorg.c', instead of guessing which path a branch is most likely
  7217. to take, the 'REG_BR_PROB' values are used to exactly determine
  7218. which path is taken more often.
  7219. '-fprofile-values'
  7220. If combined with '-fprofile-arcs', it adds code so that some data
  7221. about values of expressions in the program is gathered.
  7222. With '-fbranch-probabilities', it reads back the data gathered from
  7223. profiling values of expressions for usage in optimizations.
  7224. Enabled with '-fprofile-generate' and '-fprofile-use'.
  7225. '-fprofile-reorder-functions'
  7226. Function reordering based on profile instrumentation collects first
  7227. time of execution of a function and orders these functions in
  7228. ascending order.
  7229. Enabled with '-fprofile-use'.
  7230. '-fvpt'
  7231. If combined with '-fprofile-arcs', this option instructs the
  7232. compiler to add code to gather information about values of
  7233. expressions.
  7234. With '-fbranch-probabilities', it reads back the data gathered and
  7235. actually performs the optimizations based on them. Currently the
  7236. optimizations include specialization of division operations using
  7237. the knowledge about the value of the denominator.
  7238. '-frename-registers'
  7239. Attempt to avoid false dependencies in scheduled code by making use
  7240. of registers left over after register allocation. This
  7241. optimization most benefits processors with lots of registers.
  7242. Depending on the debug information format adopted by the target,
  7243. however, it can make debugging impossible, since variables no
  7244. longer stay in a "home register".
  7245. Enabled by default with '-funroll-loops'.
  7246. '-fschedule-fusion'
  7247. Performs a target dependent pass over the instruction stream to
  7248. schedule instructions of same type together because target machine
  7249. can execute them more efficiently if they are adjacent to each
  7250. other in the instruction flow.
  7251. Enabled at levels '-O2', '-O3', '-Os'.
  7252. '-ftracer'
  7253. Perform tail duplication to enlarge superblock size. This
  7254. transformation simplifies the control flow of the function allowing
  7255. other optimizations to do a better job.
  7256. Enabled with '-fprofile-use'.
  7257. '-funroll-loops'
  7258. Unroll loops whose number of iterations can be determined at
  7259. compile time or upon entry to the loop. '-funroll-loops' implies
  7260. '-frerun-cse-after-loop', '-fweb' and '-frename-registers'. It
  7261. also turns on complete loop peeling (i.e. complete removal of loops
  7262. with a small constant number of iterations). This option makes
  7263. code larger, and may or may not make it run faster.
  7264. Enabled with '-fprofile-use'.
  7265. '-funroll-all-loops'
  7266. Unroll all loops, even if their number of iterations is uncertain
  7267. when the loop is entered. This usually makes programs run more
  7268. slowly. '-funroll-all-loops' implies the same options as
  7269. '-funroll-loops'.
  7270. '-fpeel-loops'
  7271. Peels loops for which there is enough information that they do not
  7272. roll much (from profile feedback or static analysis). It also
  7273. turns on complete loop peeling (i.e. complete removal of loops with
  7274. small constant number of iterations).
  7275. Enabled with '-O3' and/or '-fprofile-use'.
  7276. '-fmove-loop-invariants'
  7277. Enables the loop invariant motion pass in the RTL loop optimizer.
  7278. Enabled at level '-O1'
  7279. '-fsplit-loops'
  7280. Split a loop into two if it contains a condition that's always true
  7281. for one side of the iteration space and false for the other.
  7282. '-funswitch-loops'
  7283. Move branches with loop invariant conditions out of the loop, with
  7284. duplicates of the loop on both branches (modified according to
  7285. result of the condition).
  7286. '-ffunction-sections'
  7287. '-fdata-sections'
  7288. Place each function or data item into its own section in the output
  7289. file if the target supports arbitrary sections. The name of the
  7290. function or the name of the data item determines the section's name
  7291. in the output file.
  7292. Use these options on systems where the linker can perform
  7293. optimizations to improve locality of reference in the instruction
  7294. space. Most systems using the ELF object format and SPARC
  7295. processors running Solaris 2 have linkers with such optimizations.
  7296. AIX may have these optimizations in the future.
  7297. Only use these options when there are significant benefits from
  7298. doing so. When you specify these options, the assembler and linker
  7299. create larger object and executable files and are also slower. You
  7300. cannot use 'gprof' on all systems if you specify this option, and
  7301. you may have problems with debugging if you specify both this
  7302. option and '-g'.
  7303. '-fbranch-target-load-optimize'
  7304. Perform branch target register load optimization before prologue /
  7305. epilogue threading. The use of target registers can typically be
  7306. exposed only during reload, thus hoisting loads out of loops and
  7307. doing inter-block scheduling needs a separate optimization pass.
  7308. '-fbranch-target-load-optimize2'
  7309. Perform branch target register load optimization after prologue /
  7310. epilogue threading.
  7311. '-fbtr-bb-exclusive'
  7312. When performing branch target register load optimization, don't
  7313. reuse branch target registers within any basic block.
  7314. '-fstdarg-opt'
  7315. Optimize the prologue of variadic argument functions with respect
  7316. to usage of those arguments.
  7317. '-fsection-anchors'
  7318. Try to reduce the number of symbolic address calculations by using
  7319. shared "anchor" symbols to address nearby objects. This
  7320. transformation can help to reduce the number of GOT entries and GOT
  7321. accesses on some targets.
  7322. For example, the implementation of the following function 'foo':
  7323. static int a, b, c;
  7324. int foo (void) { return a + b + c; }
  7325. usually calculates the addresses of all three variables, but if you
  7326. compile it with '-fsection-anchors', it accesses the variables from
  7327. a common anchor point instead. The effect is similar to the
  7328. following pseudocode (which isn't valid C):
  7329. int foo (void)
  7330. {
  7331. register int *xr = &x;
  7332. return xr[&a - &x] + xr[&b - &x] + xr[&c - &x];
  7333. }
  7334. Not all targets support this option.
  7335. '--param NAME=VALUE'
  7336. In some places, GCC uses various constants to control the amount of
  7337. optimization that is done. For example, GCC does not inline
  7338. functions that contain more than a certain number of instructions.
  7339. You can control some of these constants on the command line using
  7340. the '--param' option.
  7341. The names of specific parameters, and the meaning of the values,
  7342. are tied to the internals of the compiler, and are subject to
  7343. change without notice in future releases.
  7344. In each case, the VALUE is an integer. The allowable choices for
  7345. NAME are:
  7346. 'predictable-branch-outcome'
  7347. When branch is predicted to be taken with probability lower
  7348. than this threshold (in percent), then it is considered well
  7349. predictable. The default is 10.
  7350. 'max-rtl-if-conversion-insns'
  7351. RTL if-conversion tries to remove conditional branches around
  7352. a block and replace them with conditionally executed
  7353. instructions. This parameter gives the maximum number of
  7354. instructions in a block which should be considered for
  7355. if-conversion. The default is 10, though the compiler will
  7356. also use other heuristics to decide whether if-conversion is
  7357. likely to be profitable.
  7358. 'max-rtl-if-conversion-predictable-cost'
  7359. 'max-rtl-if-conversion-unpredictable-cost'
  7360. RTL if-conversion will try to remove conditional branches
  7361. around a block and replace them with conditionally executed
  7362. instructions. These parameters give the maximum permissible
  7363. cost for the sequence that would be generated by if-conversion
  7364. depending on whether the branch is statically determined to be
  7365. predictable or not. The units for this parameter are the same
  7366. as those for the GCC internal seq_cost metric. The compiler
  7367. will try to provide a reasonable default for this parameter
  7368. using the BRANCH_COST target macro.
  7369. 'max-crossjump-edges'
  7370. The maximum number of incoming edges to consider for
  7371. cross-jumping. The algorithm used by '-fcrossjumping' is
  7372. O(N^2) in the number of edges incoming to each block.
  7373. Increasing values mean more aggressive optimization, making
  7374. the compilation time increase with probably small improvement
  7375. in executable size.
  7376. 'min-crossjump-insns'
  7377. The minimum number of instructions that must be matched at the
  7378. end of two blocks before cross-jumping is performed on them.
  7379. This value is ignored in the case where all instructions in
  7380. the block being cross-jumped from are matched. The default
  7381. value is 5.
  7382. 'max-grow-copy-bb-insns'
  7383. The maximum code size expansion factor when copying basic
  7384. blocks instead of jumping. The expansion is relative to a
  7385. jump instruction. The default value is 8.
  7386. 'max-goto-duplication-insns'
  7387. The maximum number of instructions to duplicate to a block
  7388. that jumps to a computed goto. To avoid O(N^2) behavior in a
  7389. number of passes, GCC factors computed gotos early in the
  7390. compilation process, and unfactors them as late as possible.
  7391. Only computed jumps at the end of a basic blocks with no more
  7392. than max-goto-duplication-insns are unfactored. The default
  7393. value is 8.
  7394. 'max-delay-slot-insn-search'
  7395. The maximum number of instructions to consider when looking
  7396. for an instruction to fill a delay slot. If more than this
  7397. arbitrary number of instructions are searched, the time
  7398. savings from filling the delay slot are minimal, so stop
  7399. searching. Increasing values mean more aggressive
  7400. optimization, making the compilation time increase with
  7401. probably small improvement in execution time.
  7402. 'max-delay-slot-live-search'
  7403. When trying to fill delay slots, the maximum number of
  7404. instructions to consider when searching for a block with valid
  7405. live register information. Increasing this arbitrarily chosen
  7406. value means more aggressive optimization, increasing the
  7407. compilation time. This parameter should be removed when the
  7408. delay slot code is rewritten to maintain the control-flow
  7409. graph.
  7410. 'max-gcse-memory'
  7411. The approximate maximum amount of memory that can be allocated
  7412. in order to perform the global common subexpression
  7413. elimination optimization. If more memory than specified is
  7414. required, the optimization is not done.
  7415. 'max-gcse-insertion-ratio'
  7416. If the ratio of expression insertions to deletions is larger
  7417. than this value for any expression, then RTL PRE inserts or
  7418. removes the expression and thus leaves partially redundant
  7419. computations in the instruction stream. The default value is
  7420. 20.
  7421. 'max-pending-list-length'
  7422. The maximum number of pending dependencies scheduling allows
  7423. before flushing the current state and starting over. Large
  7424. functions with few branches or calls can create excessively
  7425. large lists which needlessly consume memory and resources.
  7426. 'max-modulo-backtrack-attempts'
  7427. The maximum number of backtrack attempts the scheduler should
  7428. make when modulo scheduling a loop. Larger values can
  7429. exponentially increase compilation time.
  7430. 'max-inline-insns-single'
  7431. Several parameters control the tree inliner used in GCC. This
  7432. number sets the maximum number of instructions (counted in
  7433. GCC's internal representation) in a single function that the
  7434. tree inliner considers for inlining. This only affects
  7435. functions declared inline and methods implemented in a class
  7436. declaration (C++). The default value is 400.
  7437. 'max-inline-insns-auto'
  7438. When you use '-finline-functions' (included in '-O3'), a lot
  7439. of functions that would otherwise not be considered for
  7440. inlining by the compiler are investigated. To those
  7441. functions, a different (more restrictive) limit compared to
  7442. functions declared inline can be applied. The default value
  7443. is 40.
  7444. 'inline-min-speedup'
  7445. When estimated performance improvement of caller + callee
  7446. runtime exceeds this threshold (in percent), the function can
  7447. be inlined regardless of the limit on '--param
  7448. max-inline-insns-single' and '--param max-inline-insns-auto'.
  7449. 'large-function-insns'
  7450. The limit specifying really large functions. For functions
  7451. larger than this limit after inlining, inlining is constrained
  7452. by '--param large-function-growth'. This parameter is useful
  7453. primarily to avoid extreme compilation time caused by
  7454. non-linear algorithms used by the back end. The default value
  7455. is 2700.
  7456. 'large-function-growth'
  7457. Specifies maximal growth of large function caused by inlining
  7458. in percents. The default value is 100 which limits large
  7459. function growth to 2.0 times the original size.
  7460. 'large-unit-insns'
  7461. The limit specifying large translation unit. Growth caused by
  7462. inlining of units larger than this limit is limited by
  7463. '--param inline-unit-growth'. For small units this might be
  7464. too tight. For example, consider a unit consisting of
  7465. function A that is inline and B that just calls A three times.
  7466. If B is small relative to A, the growth of unit is 300\% and
  7467. yet such inlining is very sane. For very large units
  7468. consisting of small inlineable functions, however, the overall
  7469. unit growth limit is needed to avoid exponential explosion of
  7470. code size. Thus for smaller units, the size is increased to
  7471. '--param large-unit-insns' before applying '--param
  7472. inline-unit-growth'. The default is 10000.
  7473. 'inline-unit-growth'
  7474. Specifies maximal overall growth of the compilation unit
  7475. caused by inlining. The default value is 20 which limits unit
  7476. growth to 1.2 times the original size. Cold functions (either
  7477. marked cold via an attribute or by profile feedback) are not
  7478. accounted into the unit size.
  7479. 'ipcp-unit-growth'
  7480. Specifies maximal overall growth of the compilation unit
  7481. caused by interprocedural constant propagation. The default
  7482. value is 10 which limits unit growth to 1.1 times the original
  7483. size.
  7484. 'large-stack-frame'
  7485. The limit specifying large stack frames. While inlining the
  7486. algorithm is trying to not grow past this limit too much. The
  7487. default value is 256 bytes.
  7488. 'large-stack-frame-growth'
  7489. Specifies maximal growth of large stack frames caused by
  7490. inlining in percents. The default value is 1000 which limits
  7491. large stack frame growth to 11 times the original size.
  7492. 'max-inline-insns-recursive'
  7493. 'max-inline-insns-recursive-auto'
  7494. Specifies the maximum number of instructions an out-of-line
  7495. copy of a self-recursive inline function can grow into by
  7496. performing recursive inlining.
  7497. '--param max-inline-insns-recursive' applies to functions
  7498. declared inline. For functions not declared inline, recursive
  7499. inlining happens only when '-finline-functions' (included in
  7500. '-O3') is enabled; '--param max-inline-insns-recursive-auto'
  7501. applies instead. The default value is 450.
  7502. 'max-inline-recursive-depth'
  7503. 'max-inline-recursive-depth-auto'
  7504. Specifies the maximum recursion depth used for recursive
  7505. inlining.
  7506. '--param max-inline-recursive-depth' applies to functions
  7507. declared inline. For functions not declared inline, recursive
  7508. inlining happens only when '-finline-functions' (included in
  7509. '-O3') is enabled; '--param max-inline-recursive-depth-auto'
  7510. applies instead. The default value is 8.
  7511. 'min-inline-recursive-probability'
  7512. Recursive inlining is profitable only for function having deep
  7513. recursion in average and can hurt for function having little
  7514. recursion depth by increasing the prologue size or complexity
  7515. of function body to other optimizers.
  7516. When profile feedback is available (see '-fprofile-generate')
  7517. the actual recursion depth can be guessed from the probability
  7518. that function recurses via a given call expression. This
  7519. parameter limits inlining only to call expressions whose
  7520. probability exceeds the given threshold (in percents). The
  7521. default value is 10.
  7522. 'early-inlining-insns'
  7523. Specify growth that the early inliner can make. In effect it
  7524. increases the amount of inlining for code having a large
  7525. abstraction penalty. The default value is 14.
  7526. 'max-early-inliner-iterations'
  7527. Limit of iterations of the early inliner. This basically
  7528. bounds the number of nested indirect calls the early inliner
  7529. can resolve. Deeper chains are still handled by late
  7530. inlining.
  7531. 'comdat-sharing-probability'
  7532. Probability (in percent) that C++ inline function with comdat
  7533. visibility are shared across multiple compilation units. The
  7534. default value is 20.
  7535. 'profile-func-internal-id'
  7536. A parameter to control whether to use function internal id in
  7537. profile database lookup. If the value is 0, the compiler uses
  7538. an id that is based on function assembler name and filename,
  7539. which makes old profile data more tolerant to source changes
  7540. such as function reordering etc. The default value is 0.
  7541. 'min-vect-loop-bound'
  7542. The minimum number of iterations under which loops are not
  7543. vectorized when '-ftree-vectorize' is used. The number of
  7544. iterations after vectorization needs to be greater than the
  7545. value specified by this option to allow vectorization. The
  7546. default value is 0.
  7547. 'gcse-cost-distance-ratio'
  7548. Scaling factor in calculation of maximum distance an
  7549. expression can be moved by GCSE optimizations. This is
  7550. currently supported only in the code hoisting pass. The
  7551. bigger the ratio, the more aggressive code hoisting is with
  7552. simple expressions, i.e., the expressions that have cost less
  7553. than 'gcse-unrestricted-cost'. Specifying 0 disables hoisting
  7554. of simple expressions. The default value is 10.
  7555. 'gcse-unrestricted-cost'
  7556. Cost, roughly measured as the cost of a single typical machine
  7557. instruction, at which GCSE optimizations do not constrain the
  7558. distance an expression can travel. This is currently
  7559. supported only in the code hoisting pass. The lesser the
  7560. cost, the more aggressive code hoisting is. Specifying 0
  7561. allows all expressions to travel unrestricted distances. The
  7562. default value is 3.
  7563. 'max-hoist-depth'
  7564. The depth of search in the dominator tree for expressions to
  7565. hoist. This is used to avoid quadratic behavior in hoisting
  7566. algorithm. The value of 0 does not limit on the search, but
  7567. may slow down compilation of huge functions. The default
  7568. value is 30.
  7569. 'max-tail-merge-comparisons'
  7570. The maximum amount of similar bbs to compare a bb with. This
  7571. is used to avoid quadratic behavior in tree tail merging. The
  7572. default value is 10.
  7573. 'max-tail-merge-iterations'
  7574. The maximum amount of iterations of the pass over the
  7575. function. This is used to limit compilation time in tree tail
  7576. merging. The default value is 2.
  7577. 'store-merging-allow-unaligned'
  7578. Allow the store merging pass to introduce unaligned stores if
  7579. it is legal to do so. The default value is 1.
  7580. 'max-stores-to-merge'
  7581. The maximum number of stores to attempt to merge into wider
  7582. stores in the store merging pass. The minimum value is 2 and
  7583. the default is 64.
  7584. 'max-unrolled-insns'
  7585. The maximum number of instructions that a loop may have to be
  7586. unrolled. If a loop is unrolled, this parameter also
  7587. determines how many times the loop code is unrolled.
  7588. 'max-average-unrolled-insns'
  7589. The maximum number of instructions biased by probabilities of
  7590. their execution that a loop may have to be unrolled. If a
  7591. loop is unrolled, this parameter also determines how many
  7592. times the loop code is unrolled.
  7593. 'max-unroll-times'
  7594. The maximum number of unrollings of a single loop.
  7595. 'max-peeled-insns'
  7596. The maximum number of instructions that a loop may have to be
  7597. peeled. If a loop is peeled, this parameter also determines
  7598. how many times the loop code is peeled.
  7599. 'max-peel-times'
  7600. The maximum number of peelings of a single loop.
  7601. 'max-peel-branches'
  7602. The maximum number of branches on the hot path through the
  7603. peeled sequence.
  7604. 'max-completely-peeled-insns'
  7605. The maximum number of insns of a completely peeled loop.
  7606. 'max-completely-peel-times'
  7607. The maximum number of iterations of a loop to be suitable for
  7608. complete peeling.
  7609. 'max-completely-peel-loop-nest-depth'
  7610. The maximum depth of a loop nest suitable for complete
  7611. peeling.
  7612. 'max-unswitch-insns'
  7613. The maximum number of insns of an unswitched loop.
  7614. 'max-unswitch-level'
  7615. The maximum number of branches unswitched in a single loop.
  7616. 'max-loop-headers-insns'
  7617. The maximum number of insns in loop header duplicated by the
  7618. copy loop headers pass.
  7619. 'lim-expensive'
  7620. The minimum cost of an expensive expression in the loop
  7621. invariant motion.
  7622. 'iv-consider-all-candidates-bound'
  7623. Bound on number of candidates for induction variables, below
  7624. which all candidates are considered for each use in induction
  7625. variable optimizations. If there are more candidates than
  7626. this, only the most relevant ones are considered to avoid
  7627. quadratic time complexity.
  7628. 'iv-max-considered-uses'
  7629. The induction variable optimizations give up on loops that
  7630. contain more induction variable uses.
  7631. 'iv-always-prune-cand-set-bound'
  7632. If the number of candidates in the set is smaller than this
  7633. value, always try to remove unnecessary ivs from the set when
  7634. adding a new one.
  7635. 'avg-loop-niter'
  7636. Average number of iterations of a loop.
  7637. 'dse-max-object-size'
  7638. Maximum size (in bytes) of objects tracked bytewise by dead
  7639. store elimination. Larger values may result in larger
  7640. compilation times.
  7641. 'scev-max-expr-size'
  7642. Bound on size of expressions used in the scalar evolutions
  7643. analyzer. Large expressions slow the analyzer.
  7644. 'scev-max-expr-complexity'
  7645. Bound on the complexity of the expressions in the scalar
  7646. evolutions analyzer. Complex expressions slow the analyzer.
  7647. 'max-tree-if-conversion-phi-args'
  7648. Maximum number of arguments in a PHI supported by TREE if
  7649. conversion unless the loop is marked with simd pragma.
  7650. 'vect-max-version-for-alignment-checks'
  7651. The maximum number of run-time checks that can be performed
  7652. when doing loop versioning for alignment in the vectorizer.
  7653. 'vect-max-version-for-alias-checks'
  7654. The maximum number of run-time checks that can be performed
  7655. when doing loop versioning for alias in the vectorizer.
  7656. 'vect-max-peeling-for-alignment'
  7657. The maximum number of loop peels to enhance access alignment
  7658. for vectorizer. Value -1 means no limit.
  7659. 'max-iterations-to-track'
  7660. The maximum number of iterations of a loop the brute-force
  7661. algorithm for analysis of the number of iterations of the loop
  7662. tries to evaluate.
  7663. 'hot-bb-count-ws-permille'
  7664. A basic block profile count is considered hot if it
  7665. contributes to the given permillage (i.e. 0...1000) of the
  7666. entire profiled execution.
  7667. 'hot-bb-frequency-fraction'
  7668. Select fraction of the entry block frequency of executions of
  7669. basic block in function given basic block needs to have to be
  7670. considered hot.
  7671. 'max-predicted-iterations'
  7672. The maximum number of loop iterations we predict statically.
  7673. This is useful in cases where a function contains a single
  7674. loop with known bound and another loop with unknown bound.
  7675. The known number of iterations is predicted correctly, while
  7676. the unknown number of iterations average to roughly 10. This
  7677. means that the loop without bounds appears artificially cold
  7678. relative to the other one.
  7679. 'builtin-expect-probability'
  7680. Control the probability of the expression having the specified
  7681. value. This parameter takes a percentage (i.e. 0 ... 100)
  7682. as input. The default probability of 90 is obtained
  7683. empirically.
  7684. 'align-threshold'
  7685. Select fraction of the maximal frequency of executions of a
  7686. basic block in a function to align the basic block.
  7687. 'align-loop-iterations'
  7688. A loop expected to iterate at least the selected number of
  7689. iterations is aligned.
  7690. 'tracer-dynamic-coverage'
  7691. 'tracer-dynamic-coverage-feedback'
  7692. This value is used to limit superblock formation once the
  7693. given percentage of executed instructions is covered. This
  7694. limits unnecessary code size expansion.
  7695. The 'tracer-dynamic-coverage-feedback' parameter is used only
  7696. when profile feedback is available. The real profiles (as
  7697. opposed to statically estimated ones) are much less balanced
  7698. allowing the threshold to be larger value.
  7699. 'tracer-max-code-growth'
  7700. Stop tail duplication once code growth has reached given
  7701. percentage. This is a rather artificial limit, as most of the
  7702. duplicates are eliminated later in cross jumping, so it may be
  7703. set to much higher values than is the desired code growth.
  7704. 'tracer-min-branch-ratio'
  7705. Stop reverse growth when the reverse probability of best edge
  7706. is less than this threshold (in percent).
  7707. 'tracer-min-branch-probability'
  7708. 'tracer-min-branch-probability-feedback'
  7709. Stop forward growth if the best edge has probability lower
  7710. than this threshold.
  7711. Similarly to 'tracer-dynamic-coverage' two parameters are
  7712. provided. 'tracer-min-branch-probability-feedback' is used
  7713. for compilation with profile feedback and
  7714. 'tracer-min-branch-probability' compilation without. The
  7715. value for compilation with profile feedback needs to be more
  7716. conservative (higher) in order to make tracer effective.
  7717. 'max-cse-path-length'
  7718. The maximum number of basic blocks on path that CSE considers.
  7719. The default is 10.
  7720. 'max-cse-insns'
  7721. The maximum number of instructions CSE processes before
  7722. flushing. The default is 1000.
  7723. 'ggc-min-expand'
  7724. GCC uses a garbage collector to manage its own memory
  7725. allocation. This parameter specifies the minimum percentage
  7726. by which the garbage collector's heap should be allowed to
  7727. expand between collections. Tuning this may improve
  7728. compilation speed; it has no effect on code generation.
  7729. The default is 30% + 70% * (RAM/1GB) with an upper bound of
  7730. 100% when RAM >= 1GB. If 'getrlimit' is available, the notion
  7731. of "RAM" is the smallest of actual RAM and 'RLIMIT_DATA' or
  7732. 'RLIMIT_AS'. If GCC is not able to calculate RAM on a
  7733. particular platform, the lower bound of 30% is used. Setting
  7734. this parameter and 'ggc-min-heapsize' to zero causes a full
  7735. collection to occur at every opportunity. This is extremely
  7736. slow, but can be useful for debugging.
  7737. 'ggc-min-heapsize'
  7738. Minimum size of the garbage collector's heap before it begins
  7739. bothering to collect garbage. The first collection occurs
  7740. after the heap expands by 'ggc-min-expand'% beyond
  7741. 'ggc-min-heapsize'. Again, tuning this may improve
  7742. compilation speed, and has no effect on code generation.
  7743. The default is the smaller of RAM/8, RLIMIT_RSS, or a limit
  7744. that tries to ensure that RLIMIT_DATA or RLIMIT_AS are not
  7745. exceeded, but with a lower bound of 4096 (four megabytes) and
  7746. an upper bound of 131072 (128 megabytes). If GCC is not able
  7747. to calculate RAM on a particular platform, the lower bound is
  7748. used. Setting this parameter very large effectively disables
  7749. garbage collection. Setting this parameter and
  7750. 'ggc-min-expand' to zero causes a full collection to occur at
  7751. every opportunity.
  7752. 'max-reload-search-insns'
  7753. The maximum number of instruction reload should look backward
  7754. for equivalent register. Increasing values mean more
  7755. aggressive optimization, making the compilation time increase
  7756. with probably slightly better performance. The default value
  7757. is 100.
  7758. 'max-cselib-memory-locations'
  7759. The maximum number of memory locations cselib should take into
  7760. account. Increasing values mean more aggressive optimization,
  7761. making the compilation time increase with probably slightly
  7762. better performance. The default value is 500.
  7763. 'max-sched-ready-insns'
  7764. The maximum number of instructions ready to be issued the
  7765. scheduler should consider at any given time during the first
  7766. scheduling pass. Increasing values mean more thorough
  7767. searches, making the compilation time increase with probably
  7768. little benefit. The default value is 100.
  7769. 'max-sched-region-blocks'
  7770. The maximum number of blocks in a region to be considered for
  7771. interblock scheduling. The default value is 10.
  7772. 'max-pipeline-region-blocks'
  7773. The maximum number of blocks in a region to be considered for
  7774. pipelining in the selective scheduler. The default value is
  7775. 15.
  7776. 'max-sched-region-insns'
  7777. The maximum number of insns in a region to be considered for
  7778. interblock scheduling. The default value is 100.
  7779. 'max-pipeline-region-insns'
  7780. The maximum number of insns in a region to be considered for
  7781. pipelining in the selective scheduler. The default value is
  7782. 200.
  7783. 'min-spec-prob'
  7784. The minimum probability (in percents) of reaching a source
  7785. block for interblock speculative scheduling. The default
  7786. value is 40.
  7787. 'max-sched-extend-regions-iters'
  7788. The maximum number of iterations through CFG to extend
  7789. regions. A value of 0 (the default) disables region
  7790. extensions.
  7791. 'max-sched-insn-conflict-delay'
  7792. The maximum conflict delay for an insn to be considered for
  7793. speculative motion. The default value is 3.
  7794. 'sched-spec-prob-cutoff'
  7795. The minimal probability of speculation success (in percents),
  7796. so that speculative insns are scheduled. The default value is
  7797. 40.
  7798. 'sched-state-edge-prob-cutoff'
  7799. The minimum probability an edge must have for the scheduler to
  7800. save its state across it. The default value is 10.
  7801. 'sched-mem-true-dep-cost'
  7802. Minimal distance (in CPU cycles) between store and load
  7803. targeting same memory locations. The default value is 1.
  7804. 'selsched-max-lookahead'
  7805. The maximum size of the lookahead window of selective
  7806. scheduling. It is a depth of search for available
  7807. instructions. The default value is 50.
  7808. 'selsched-max-sched-times'
  7809. The maximum number of times that an instruction is scheduled
  7810. during selective scheduling. This is the limit on the number
  7811. of iterations through which the instruction may be pipelined.
  7812. The default value is 2.
  7813. 'selsched-insns-to-rename'
  7814. The maximum number of best instructions in the ready list that
  7815. are considered for renaming in the selective scheduler. The
  7816. default value is 2.
  7817. 'sms-min-sc'
  7818. The minimum value of stage count that swing modulo scheduler
  7819. generates. The default value is 2.
  7820. 'max-last-value-rtl'
  7821. The maximum size measured as number of RTLs that can be
  7822. recorded in an expression in combiner for a pseudo register as
  7823. last known value of that register. The default is 10000.
  7824. 'max-combine-insns'
  7825. The maximum number of instructions the RTL combiner tries to
  7826. combine. The default value is 2 at '-Og' and 4 otherwise.
  7827. 'integer-share-limit'
  7828. Small integer constants can use a shared data structure,
  7829. reducing the compiler's memory usage and increasing its speed.
  7830. This sets the maximum value of a shared integer constant. The
  7831. default value is 256.
  7832. 'ssp-buffer-size'
  7833. The minimum size of buffers (i.e. arrays) that receive stack
  7834. smashing protection when '-fstack-protection' is used.
  7835. 'min-size-for-stack-sharing'
  7836. The minimum size of variables taking part in stack slot
  7837. sharing when not optimizing. The default value is 32.
  7838. 'max-jump-thread-duplication-stmts'
  7839. Maximum number of statements allowed in a block that needs to
  7840. be duplicated when threading jumps.
  7841. 'max-fields-for-field-sensitive'
  7842. Maximum number of fields in a structure treated in a field
  7843. sensitive manner during pointer analysis. The default is zero
  7844. for '-O0' and '-O1', and 100 for '-Os', '-O2', and '-O3'.
  7845. 'prefetch-latency'
  7846. Estimate on average number of instructions that are executed
  7847. before prefetch finishes. The distance prefetched ahead is
  7848. proportional to this constant. Increasing this number may
  7849. also lead to less streams being prefetched (see
  7850. 'simultaneous-prefetches').
  7851. 'simultaneous-prefetches'
  7852. Maximum number of prefetches that can run at the same time.
  7853. 'l1-cache-line-size'
  7854. The size of cache line in L1 cache, in bytes.
  7855. 'l1-cache-size'
  7856. The size of L1 cache, in kilobytes.
  7857. 'l2-cache-size'
  7858. The size of L2 cache, in kilobytes.
  7859. 'min-insn-to-prefetch-ratio'
  7860. The minimum ratio between the number of instructions and the
  7861. number of prefetches to enable prefetching in a loop.
  7862. 'prefetch-min-insn-to-mem-ratio'
  7863. The minimum ratio between the number of instructions and the
  7864. number of memory references to enable prefetching in a loop.
  7865. 'use-canonical-types'
  7866. Whether the compiler should use the "canonical" type system.
  7867. By default, this should always be 1, which uses a more
  7868. efficient internal mechanism for comparing types in C++ and
  7869. Objective-C++. However, if bugs in the canonical type system
  7870. are causing compilation failures, set this value to 0 to
  7871. disable canonical types.
  7872. 'switch-conversion-max-branch-ratio'
  7873. Switch initialization conversion refuses to create arrays that
  7874. are bigger than 'switch-conversion-max-branch-ratio' times the
  7875. number of branches in the switch.
  7876. 'max-partial-antic-length'
  7877. Maximum length of the partial antic set computed during the
  7878. tree partial redundancy elimination optimization
  7879. ('-ftree-pre') when optimizing at '-O3' and above. For some
  7880. sorts of source code the enhanced partial redundancy
  7881. elimination optimization can run away, consuming all of the
  7882. memory available on the host machine. This parameter sets a
  7883. limit on the length of the sets that are computed, which
  7884. prevents the runaway behavior. Setting a value of 0 for this
  7885. parameter allows an unlimited set length.
  7886. 'sccvn-max-scc-size'
  7887. Maximum size of a strongly connected component (SCC) during
  7888. SCCVN processing. If this limit is hit, SCCVN processing for
  7889. the whole function is not done and optimizations depending on
  7890. it are disabled. The default maximum SCC size is 10000.
  7891. 'sccvn-max-alias-queries-per-access'
  7892. Maximum number of alias-oracle queries we perform when looking
  7893. for redundancies for loads and stores. If this limit is hit
  7894. the search is aborted and the load or store is not considered
  7895. redundant. The number of queries is algorithmically limited
  7896. to the number of stores on all paths from the load to the
  7897. function entry. The default maximum number of queries is
  7898. 1000.
  7899. 'ira-max-loops-num'
  7900. IRA uses regional register allocation by default. If a
  7901. function contains more loops than the number given by this
  7902. parameter, only at most the given number of the most
  7903. frequently-executed loops form regions for regional register
  7904. allocation. The default value of the parameter is 100.
  7905. 'ira-max-conflict-table-size'
  7906. Although IRA uses a sophisticated algorithm to compress the
  7907. conflict table, the table can still require excessive amounts
  7908. of memory for huge functions. If the conflict table for a
  7909. function could be more than the size in MB given by this
  7910. parameter, the register allocator instead uses a faster,
  7911. simpler, and lower-quality algorithm that does not require
  7912. building a pseudo-register conflict table. The default value
  7913. of the parameter is 2000.
  7914. 'ira-loop-reserved-regs'
  7915. IRA can be used to evaluate more accurate register pressure in
  7916. loops for decisions to move loop invariants (see '-O3'). The
  7917. number of available registers reserved for some other purposes
  7918. is given by this parameter. The default value of the
  7919. parameter is 2, which is the minimal number of registers
  7920. needed by typical instructions. This value is the best found
  7921. from numerous experiments.
  7922. 'lra-inheritance-ebb-probability-cutoff'
  7923. LRA tries to reuse values reloaded in registers in subsequent
  7924. insns. This optimization is called inheritance. EBB is used
  7925. as a region to do this optimization. The parameter defines a
  7926. minimal fall-through edge probability in percentage used to
  7927. add BB to inheritance EBB in LRA. The default value of the
  7928. parameter is 40. The value was chosen from numerous runs of
  7929. SPEC2000 on x86-64.
  7930. 'loop-invariant-max-bbs-in-loop'
  7931. Loop invariant motion can be very expensive, both in
  7932. compilation time and in amount of needed compile-time memory,
  7933. with very large loops. Loops with more basic blocks than this
  7934. parameter won't have loop invariant motion optimization
  7935. performed on them. The default value of the parameter is 1000
  7936. for '-O1' and 10000 for '-O2' and above.
  7937. 'loop-max-datarefs-for-datadeps'
  7938. Building data dependencies is expensive for very large loops.
  7939. This parameter limits the number of data references in loops
  7940. that are considered for data dependence analysis. These large
  7941. loops are no handled by the optimizations using loop data
  7942. dependencies. The default value is 1000.
  7943. 'max-vartrack-size'
  7944. Sets a maximum number of hash table slots to use during
  7945. variable tracking dataflow analysis of any function. If this
  7946. limit is exceeded with variable tracking at assignments
  7947. enabled, analysis for that function is retried without it,
  7948. after removing all debug insns from the function. If the
  7949. limit is exceeded even without debug insns, var tracking
  7950. analysis is completely disabled for the function. Setting the
  7951. parameter to zero makes it unlimited.
  7952. 'max-vartrack-expr-depth'
  7953. Sets a maximum number of recursion levels when attempting to
  7954. map variable names or debug temporaries to value expressions.
  7955. This trades compilation time for more complete debug
  7956. information. If this is set too low, value expressions that
  7957. are available and could be represented in debug information
  7958. may end up not being used; setting this higher may enable the
  7959. compiler to find more complex debug expressions, but compile
  7960. time and memory use may grow. The default is 12.
  7961. 'min-nondebug-insn-uid'
  7962. Use uids starting at this parameter for nondebug insns. The
  7963. range below the parameter is reserved exclusively for debug
  7964. insns created by '-fvar-tracking-assignments', but debug insns
  7965. may get (non-overlapping) uids above it if the reserved range
  7966. is exhausted.
  7967. 'ipa-sra-ptr-growth-factor'
  7968. IPA-SRA replaces a pointer to an aggregate with one or more
  7969. new parameters only when their cumulative size is less or
  7970. equal to 'ipa-sra-ptr-growth-factor' times the size of the
  7971. original pointer parameter.
  7972. 'sra-max-scalarization-size-Ospeed'
  7973. 'sra-max-scalarization-size-Osize'
  7974. The two Scalar Reduction of Aggregates passes (SRA and
  7975. IPA-SRA) aim to replace scalar parts of aggregates with uses
  7976. of independent scalar variables. These parameters control the
  7977. maximum size, in storage units, of aggregate which is
  7978. considered for replacement when compiling for speed
  7979. ('sra-max-scalarization-size-Ospeed') or size
  7980. ('sra-max-scalarization-size-Osize') respectively.
  7981. 'tm-max-aggregate-size'
  7982. When making copies of thread-local variables in a transaction,
  7983. this parameter specifies the size in bytes after which
  7984. variables are saved with the logging functions as opposed to
  7985. save/restore code sequence pairs. This option only applies
  7986. when using '-fgnu-tm'.
  7987. 'graphite-max-nb-scop-params'
  7988. To avoid exponential effects in the Graphite loop transforms,
  7989. the number of parameters in a Static Control Part (SCoP) is
  7990. bounded. The default value is 10 parameters. A variable
  7991. whose value is unknown at compilation time and defined outside
  7992. a SCoP is a parameter of the SCoP.
  7993. 'graphite-max-bbs-per-function'
  7994. To avoid exponential effects in the detection of SCoPs, the
  7995. size of the functions analyzed by Graphite is bounded. The
  7996. default value is 100 basic blocks.
  7997. 'loop-block-tile-size'
  7998. Loop blocking or strip mining transforms, enabled with
  7999. '-floop-block' or '-floop-strip-mine', strip mine each loop in
  8000. the loop nest by a given number of iterations. The strip
  8001. length can be changed using the 'loop-block-tile-size'
  8002. parameter. The default value is 51 iterations.
  8003. 'loop-unroll-jam-size'
  8004. Specify the unroll factor for the '-floop-unroll-and-jam'
  8005. option. The default value is 4.
  8006. 'loop-unroll-jam-depth'
  8007. Specify the dimension to be unrolled (counting from the most
  8008. inner loop) for the '-floop-unroll-and-jam'. The default
  8009. value is 2.
  8010. 'ipa-cp-value-list-size'
  8011. IPA-CP attempts to track all possible values and types passed
  8012. to a function's parameter in order to propagate them and
  8013. perform devirtualization. 'ipa-cp-value-list-size' is the
  8014. maximum number of values and types it stores per one formal
  8015. parameter of a function.
  8016. 'ipa-cp-eval-threshold'
  8017. IPA-CP calculates its own score of cloning profitability
  8018. heuristics and performs those cloning opportunities with
  8019. scores that exceed 'ipa-cp-eval-threshold'.
  8020. 'ipa-cp-recursion-penalty'
  8021. Percentage penalty the recursive functions will receive when
  8022. they are evaluated for cloning.
  8023. 'ipa-cp-single-call-penalty'
  8024. Percentage penalty functions containing a single call to
  8025. another function will receive when they are evaluated for
  8026. cloning.
  8027. 'ipa-max-agg-items'
  8028. IPA-CP is also capable to propagate a number of scalar values
  8029. passed in an aggregate. 'ipa-max-agg-items' controls the
  8030. maximum number of such values per one parameter.
  8031. 'ipa-cp-loop-hint-bonus'
  8032. When IPA-CP determines that a cloning candidate would make the
  8033. number of iterations of a loop known, it adds a bonus of
  8034. 'ipa-cp-loop-hint-bonus' to the profitability score of the
  8035. candidate.
  8036. 'ipa-cp-array-index-hint-bonus'
  8037. When IPA-CP determines that a cloning candidate would make the
  8038. index of an array access known, it adds a bonus of
  8039. 'ipa-cp-array-index-hint-bonus' to the profitability score of
  8040. the candidate.
  8041. 'ipa-max-aa-steps'
  8042. During its analysis of function bodies, IPA-CP employs alias
  8043. analysis in order to track values pointed to by function
  8044. parameters. In order not spend too much time analyzing huge
  8045. functions, it gives up and consider all memory clobbered after
  8046. examining 'ipa-max-aa-steps' statements modifying memory.
  8047. 'lto-partitions'
  8048. Specify desired number of partitions produced during WHOPR
  8049. compilation. The number of partitions should exceed the
  8050. number of CPUs used for compilation. The default value is 32.
  8051. 'lto-min-partition'
  8052. Size of minimal partition for WHOPR (in estimated
  8053. instructions). This prevents expenses of splitting very small
  8054. programs into too many partitions.
  8055. 'lto-max-partition'
  8056. Size of max partition for WHOPR (in estimated instructions).
  8057. to provide an upper bound for individual size of partition.
  8058. Meant to be used only with balanced partitioning.
  8059. 'cxx-max-namespaces-for-diagnostic-help'
  8060. The maximum number of namespaces to consult for suggestions
  8061. when C++ name lookup fails for an identifier. The default is
  8062. 1000.
  8063. 'sink-frequency-threshold'
  8064. The maximum relative execution frequency (in percents) of the
  8065. target block relative to a statement's original block to allow
  8066. statement sinking of a statement. Larger numbers result in
  8067. more aggressive statement sinking. The default value is 75.
  8068. A small positive adjustment is applied for statements with
  8069. memory operands as those are even more profitable so sink.
  8070. 'max-stores-to-sink'
  8071. The maximum number of conditional store pairs that can be
  8072. sunk. Set to 0 if either vectorization ('-ftree-vectorize')
  8073. or if-conversion ('-ftree-loop-if-convert') is disabled. The
  8074. default is 2.
  8075. 'allow-store-data-races'
  8076. Allow optimizers to introduce new data races on stores. Set
  8077. to 1 to allow, otherwise to 0. This option is enabled by
  8078. default at optimization level '-Ofast'.
  8079. 'case-values-threshold'
  8080. The smallest number of different values for which it is best
  8081. to use a jump-table instead of a tree of conditional branches.
  8082. If the value is 0, use the default for the machine. The
  8083. default is 0.
  8084. 'tree-reassoc-width'
  8085. Set the maximum number of instructions executed in parallel in
  8086. reassociated tree. This parameter overrides target dependent
  8087. heuristics used by default if has non zero value.
  8088. 'sched-pressure-algorithm'
  8089. Choose between the two available implementations of
  8090. '-fsched-pressure'. Algorithm 1 is the original
  8091. implementation and is the more likely to prevent instructions
  8092. from being reordered. Algorithm 2 was designed to be a
  8093. compromise between the relatively conservative approach taken
  8094. by algorithm 1 and the rather aggressive approach taken by the
  8095. default scheduler. It relies more heavily on having a regular
  8096. register file and accurate register pressure classes. See
  8097. 'haifa-sched.c' in the GCC sources for more details.
  8098. The default choice depends on the target.
  8099. 'max-slsr-cand-scan'
  8100. Set the maximum number of existing candidates that are
  8101. considered when seeking a basis for a new straight-line
  8102. strength reduction candidate.
  8103. 'asan-globals'
  8104. Enable buffer overflow detection for global objects. This
  8105. kind of protection is enabled by default if you are using
  8106. '-fsanitize=address' option. To disable global objects
  8107. protection use '--param asan-globals=0'.
  8108. 'asan-stack'
  8109. Enable buffer overflow detection for stack objects. This kind
  8110. of protection is enabled by default when using
  8111. '-fsanitize=address'. To disable stack protection use
  8112. '--param asan-stack=0' option.
  8113. 'asan-instrument-reads'
  8114. Enable buffer overflow detection for memory reads. This kind
  8115. of protection is enabled by default when using
  8116. '-fsanitize=address'. To disable memory reads protection use
  8117. '--param asan-instrument-reads=0'.
  8118. 'asan-instrument-writes'
  8119. Enable buffer overflow detection for memory writes. This kind
  8120. of protection is enabled by default when using
  8121. '-fsanitize=address'. To disable memory writes protection use
  8122. '--param asan-instrument-writes=0' option.
  8123. 'asan-memintrin'
  8124. Enable detection for built-in functions. This kind of
  8125. protection is enabled by default when using
  8126. '-fsanitize=address'. To disable built-in functions
  8127. protection use '--param asan-memintrin=0'.
  8128. 'asan-use-after-return'
  8129. Enable detection of use-after-return. This kind of protection
  8130. is enabled by default when using the '-fsanitize=address'
  8131. option. To disable it use '--param asan-use-after-return=0'.
  8132. Note: By default the check is disabled at run time. To enable
  8133. it, add 'detect_stack_use_after_return=1' to the environment
  8134. variable 'ASAN_OPTIONS'.
  8135. 'asan-instrumentation-with-call-threshold'
  8136. If number of memory accesses in function being instrumented is
  8137. greater or equal to this number, use callbacks instead of
  8138. inline checks. E.g. to disable inline code use '--param
  8139. asan-instrumentation-with-call-threshold=0'.
  8140. 'use-after-scope-direct-emission-threshold'
  8141. If the size of a local variable in bytes is smaller or equal
  8142. to this number, directly poison (or unpoison) shadow memory
  8143. instead of using run-time callbacks. The default value is
  8144. 256.
  8145. 'chkp-max-ctor-size'
  8146. Static constructors generated by Pointer Bounds Checker may
  8147. become very large and significantly increase compile time at
  8148. optimization level '-O1' and higher. This parameter is a
  8149. maximum number of statements in a single generated
  8150. constructor. Default value is 5000.
  8151. 'max-fsm-thread-path-insns'
  8152. Maximum number of instructions to copy when duplicating blocks
  8153. on a finite state automaton jump thread path. The default is
  8154. 100.
  8155. 'max-fsm-thread-length'
  8156. Maximum number of basic blocks on a finite state automaton
  8157. jump thread path. The default is 10.
  8158. 'max-fsm-thread-paths'
  8159. Maximum number of new jump thread paths to create for a finite
  8160. state automaton. The default is 50.
  8161. 'parloops-chunk-size'
  8162. Chunk size of omp schedule for loops parallelized by parloops.
  8163. The default is 0.
  8164. 'parloops-schedule'
  8165. Schedule type of omp schedule for loops parallelized by
  8166. parloops (static, dynamic, guided, auto, runtime). The
  8167. default is static.
  8168. 'max-ssa-name-query-depth'
  8169. Maximum depth of recursion when querying properties of SSA
  8170. names in things like fold routines. One level of recursion
  8171. corresponds to following a use-def chain.
  8172. 'hsa-gen-debug-stores'
  8173. Enable emission of special debug stores within HSA kernels
  8174. which are then read and reported by libgomp plugin.
  8175. Generation of these stores is disabled by default, use
  8176. '--param hsa-gen-debug-stores=1' to enable it.
  8177. 'max-speculative-devirt-maydefs'
  8178. The maximum number of may-defs we analyze when looking for a
  8179. must-def specifying the dynamic type of an object that invokes
  8180. a virtual call we may be able to devirtualize speculatively.
  8181. 'max-vrp-switch-assertions'
  8182. The maximum number of assertions to add along the default edge
  8183. of a switch statement during VRP. The default is 10.
  8184. 
  8185. File: gcc.info, Node: Instrumentation Options, Next: Preprocessor Options, Prev: Optimize Options, Up: Invoking GCC
  8186. 3.11 Program Instrumentation Options
  8187. ====================================
  8188. GCC supports a number of command-line options that control adding
  8189. run-time instrumentation to the code it normally generates. For
  8190. example, one purpose of instrumentation is collect profiling statistics
  8191. for use in finding program hot spots, code coverage analysis, or
  8192. profile-guided optimizations. Another class of program instrumentation
  8193. is adding run-time checking to detect programming errors like invalid
  8194. pointer dereferences or out-of-bounds array accesses, as well as
  8195. deliberately hostile attacks such as stack smashing or C++ vtable
  8196. hijacking. There is also a general hook which can be used to implement
  8197. other forms of tracing or function-level instrumentation for debug or
  8198. program analysis purposes.
  8199. '-p'
  8200. Generate extra code to write profile information suitable for the
  8201. analysis program 'prof'. You must use this option when compiling
  8202. the source files you want data about, and you must also use it when
  8203. linking.
  8204. '-pg'
  8205. Generate extra code to write profile information suitable for the
  8206. analysis program 'gprof'. You must use this option when compiling
  8207. the source files you want data about, and you must also use it when
  8208. linking.
  8209. '-fprofile-arcs'
  8210. Add code so that program flow "arcs" are instrumented. During
  8211. execution the program records how many times each branch and call
  8212. is executed and how many times it is taken or returns. On targets
  8213. that support constructors with priority support, profiling properly
  8214. handles constructors, destructors and C++ constructors (and
  8215. destructors) of classes which are used as a type of a global
  8216. variable.
  8217. When the compiled program exits it saves this data to a file called
  8218. 'AUXNAME.gcda' for each source file. The data may be used for
  8219. profile-directed optimizations ('-fbranch-probabilities'), or for
  8220. test coverage analysis ('-ftest-coverage'). Each object file's
  8221. AUXNAME is generated from the name of the output file, if
  8222. explicitly specified and it is not the final executable, otherwise
  8223. it is the basename of the source file. In both cases any suffix is
  8224. removed (e.g. 'foo.gcda' for input file 'dir/foo.c', or
  8225. 'dir/foo.gcda' for output file specified as '-o dir/foo.o'). *Note
  8226. Cross-profiling::.
  8227. '--coverage'
  8228. This option is used to compile and link code instrumented for
  8229. coverage analysis. The option is a synonym for '-fprofile-arcs'
  8230. '-ftest-coverage' (when compiling) and '-lgcov' (when linking).
  8231. See the documentation for those options for more details.
  8232. * Compile the source files with '-fprofile-arcs' plus
  8233. optimization and code generation options. For test coverage
  8234. analysis, use the additional '-ftest-coverage' option. You do
  8235. not need to profile every source file in a program.
  8236. * Link your object files with '-lgcov' or '-fprofile-arcs' (the
  8237. latter implies the former).
  8238. * Run the program on a representative workload to generate the
  8239. arc profile information. This may be repeated any number of
  8240. times. You can run concurrent instances of your program, and
  8241. provided that the file system supports locking, the data files
  8242. will be correctly updated. Unless a strict ISO C dialect
  8243. option is in effect, 'fork' calls are detected and correctly
  8244. handled without double counting.
  8245. * For profile-directed optimizations, compile the source files
  8246. again with the same optimization and code generation options
  8247. plus '-fbranch-probabilities' (*note Options that Control
  8248. Optimization: Optimize Options.).
  8249. * For test coverage analysis, use 'gcov' to produce human
  8250. readable information from the '.gcno' and '.gcda' files.
  8251. Refer to the 'gcov' documentation for further information.
  8252. With '-fprofile-arcs', for each function of your program GCC
  8253. creates a program flow graph, then finds a spanning tree for the
  8254. graph. Only arcs that are not on the spanning tree have to be
  8255. instrumented: the compiler adds code to count the number of times
  8256. that these arcs are executed. When an arc is the only exit or only
  8257. entrance to a block, the instrumentation code can be added to the
  8258. block; otherwise, a new basic block must be created to hold the
  8259. instrumentation code.
  8260. '-ftest-coverage'
  8261. Produce a notes file that the 'gcov' code-coverage utility (*note
  8262. 'gcov'--a Test Coverage Program: Gcov.) can use to show program
  8263. coverage. Each source file's note file is called 'AUXNAME.gcno'.
  8264. Refer to the '-fprofile-arcs' option above for a description of
  8265. AUXNAME and instructions on how to generate test coverage data.
  8266. Coverage data matches the source files more closely if you do not
  8267. optimize.
  8268. '-fprofile-dir=PATH'
  8269. Set the directory to search for the profile data files in to PATH.
  8270. This option affects only the profile data generated by
  8271. '-fprofile-generate', '-ftest-coverage', '-fprofile-arcs' and used
  8272. by '-fprofile-use' and '-fbranch-probabilities' and its related
  8273. options. Both absolute and relative paths can be used. By
  8274. default, GCC uses the current directory as PATH, thus the profile
  8275. data file appears in the same directory as the object file.
  8276. '-fprofile-generate'
  8277. '-fprofile-generate=PATH'
  8278. Enable options usually used for instrumenting application to
  8279. produce profile useful for later recompilation with profile
  8280. feedback based optimization. You must use '-fprofile-generate'
  8281. both when compiling and when linking your program.
  8282. The following options are enabled: '-fprofile-arcs',
  8283. '-fprofile-values', '-fvpt'.
  8284. If PATH is specified, GCC looks at the PATH to find the profile
  8285. feedback data files. See '-fprofile-dir'.
  8286. To optimize the program based on the collected profile information,
  8287. use '-fprofile-use'. *Note Optimize Options::, for more
  8288. information.
  8289. '-fprofile-update=METHOD'
  8290. Alter the update method for an application instrumented for profile
  8291. feedback based optimization. The METHOD argument should be one of
  8292. 'single', 'atomic' or 'prefer-atomic'. The first one is useful for
  8293. single-threaded applications, while the second one prevents profile
  8294. corruption by emitting thread-safe code.
  8295. *Warning:* When an application does not properly join all threads
  8296. (or creates an detached thread), a profile file can be still
  8297. corrupted.
  8298. Using 'prefer-atomic' would be transformed either to 'atomic', when
  8299. supported by a target, or to 'single' otherwise. The GCC driver
  8300. automatically selects 'prefer-atomic' when '-pthread' is present in
  8301. the command line.
  8302. '-fsanitize=address'
  8303. Enable AddressSanitizer, a fast memory error detector. Memory
  8304. access instructions are instrumented to detect out-of-bounds and
  8305. use-after-free bugs. The option enables
  8306. '-fsanitize-address-use-after-scope'. See
  8307. <https://github.com/google/sanitizers/wiki/AddressSanitizer> for
  8308. more details. The run-time behavior can be influenced using the
  8309. 'ASAN_OPTIONS' environment variable. When set to 'help=1', the
  8310. available options are shown at startup of the instrumented program.
  8311. See
  8312. <https://github.com/google/sanitizers/wiki/AddressSanitizerFlags#run-time-flags>
  8313. for a list of supported options. The option cannot be combined
  8314. with '-fsanitize=thread' and/or '-fcheck-pointer-bounds'.
  8315. '-fsanitize=kernel-address'
  8316. Enable AddressSanitizer for Linux kernel. See
  8317. <https://github.com/google/kasan/wiki> for more details. The
  8318. option cannot be combined with '-fcheck-pointer-bounds'.
  8319. '-fsanitize=thread'
  8320. Enable ThreadSanitizer, a fast data race detector. Memory access
  8321. instructions are instrumented to detect data race bugs. See
  8322. <https://github.com/google/sanitizers/wiki#threadsanitizer> for
  8323. more details. The run-time behavior can be influenced using the
  8324. 'TSAN_OPTIONS' environment variable; see
  8325. <https://github.com/google/sanitizers/wiki/ThreadSanitizerFlags>
  8326. for a list of supported options. The option cannot be combined
  8327. with '-fsanitize=address', '-fsanitize=leak' and/or
  8328. '-fcheck-pointer-bounds'.
  8329. Note that sanitized atomic builtins cannot throw exceptions when
  8330. operating on invalid memory addresses with non-call exceptions
  8331. ('-fnon-call-exceptions').
  8332. '-fsanitize=leak'
  8333. Enable LeakSanitizer, a memory leak detector. This option only
  8334. matters for linking of executables and the executable is linked
  8335. against a library that overrides 'malloc' and other allocator
  8336. functions. See
  8337. <https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer>
  8338. for more details. The run-time behavior can be influenced using
  8339. the 'LSAN_OPTIONS' environment variable. The option cannot be
  8340. combined with '-fsanitize=thread'.
  8341. '-fsanitize=undefined'
  8342. Enable UndefinedBehaviorSanitizer, a fast undefined behavior
  8343. detector. Various computations are instrumented to detect
  8344. undefined behavior at runtime. Current suboptions are:
  8345. '-fsanitize=shift'
  8346. This option enables checking that the result of a shift
  8347. operation is not undefined. Note that what exactly is
  8348. considered undefined differs slightly between C and C++, as
  8349. well as between ISO C90 and C99, etc. This option has two
  8350. suboptions, '-fsanitize=shift-base' and
  8351. '-fsanitize=shift-exponent'.
  8352. '-fsanitize=shift-exponent'
  8353. This option enables checking that the second argument of a
  8354. shift operation is not negative and is smaller than the
  8355. precision of the promoted first argument.
  8356. '-fsanitize=shift-base'
  8357. If the second argument of a shift operation is within range,
  8358. check that the result of a shift operation is not undefined.
  8359. Note that what exactly is considered undefined differs
  8360. slightly between C and C++, as well as between ISO C90 and
  8361. C99, etc.
  8362. '-fsanitize=integer-divide-by-zero'
  8363. Detect integer division by zero as well as 'INT_MIN / -1'
  8364. division.
  8365. '-fsanitize=unreachable'
  8366. With this option, the compiler turns the
  8367. '__builtin_unreachable' call into a diagnostics message call
  8368. instead. When reaching the '__builtin_unreachable' call, the
  8369. behavior is undefined.
  8370. '-fsanitize=vla-bound'
  8371. This option instructs the compiler to check that the size of a
  8372. variable length array is positive.
  8373. '-fsanitize=null'
  8374. This option enables pointer checking. Particularly, the
  8375. application built with this option turned on will issue an
  8376. error message when it tries to dereference a NULL pointer, or
  8377. if a reference (possibly an rvalue reference) is bound to a
  8378. NULL pointer, or if a method is invoked on an object pointed
  8379. by a NULL pointer.
  8380. '-fsanitize=return'
  8381. This option enables return statement checking. Programs built
  8382. with this option turned on will issue an error message when
  8383. the end of a non-void function is reached without actually
  8384. returning a value. This option works in C++ only.
  8385. '-fsanitize=signed-integer-overflow'
  8386. This option enables signed integer overflow checking. We
  8387. check that the result of '+', '*', and both unary and binary
  8388. '-' does not overflow in the signed arithmetics. Note,
  8389. integer promotion rules must be taken into account. That is,
  8390. the following is not an overflow:
  8391. signed char a = SCHAR_MAX;
  8392. a++;
  8393. '-fsanitize=bounds'
  8394. This option enables instrumentation of array bounds. Various
  8395. out of bounds accesses are detected. Flexible array members,
  8396. flexible array member-like arrays, and initializers of
  8397. variables with static storage are not instrumented. The
  8398. option cannot be combined with '-fcheck-pointer-bounds'.
  8399. '-fsanitize=bounds-strict'
  8400. This option enables strict instrumentation of array bounds.
  8401. Most out of bounds accesses are detected, including flexible
  8402. array members and flexible array member-like arrays.
  8403. Initializers of variables with static storage are not
  8404. instrumented. The option cannot be combined with
  8405. '-fcheck-pointer-bounds'.
  8406. '-fsanitize=alignment'
  8407. This option enables checking of alignment of pointers when
  8408. they are dereferenced, or when a reference is bound to
  8409. insufficiently aligned target, or when a method or constructor
  8410. is invoked on insufficiently aligned object.
  8411. '-fsanitize=object-size'
  8412. This option enables instrumentation of memory references using
  8413. the '__builtin_object_size' function. Various out of bounds
  8414. pointer accesses are detected.
  8415. '-fsanitize=float-divide-by-zero'
  8416. Detect floating-point division by zero. Unlike other similar
  8417. options, '-fsanitize=float-divide-by-zero' is not enabled by
  8418. '-fsanitize=undefined', since floating-point division by zero
  8419. can be a legitimate way of obtaining infinities and NaNs.
  8420. '-fsanitize=float-cast-overflow'
  8421. This option enables floating-point type to integer conversion
  8422. checking. We check that the result of the conversion does not
  8423. overflow. Unlike other similar options,
  8424. '-fsanitize=float-cast-overflow' is not enabled by
  8425. '-fsanitize=undefined'. This option does not work well with
  8426. 'FE_INVALID' exceptions enabled.
  8427. '-fsanitize=nonnull-attribute'
  8428. This option enables instrumentation of calls, checking whether
  8429. null values are not passed to arguments marked as requiring a
  8430. non-null value by the 'nonnull' function attribute.
  8431. '-fsanitize=returns-nonnull-attribute'
  8432. This option enables instrumentation of return statements in
  8433. functions marked with 'returns_nonnull' function attribute, to
  8434. detect returning of null values from such functions.
  8435. '-fsanitize=bool'
  8436. This option enables instrumentation of loads from bool. If a
  8437. value other than 0/1 is loaded, a run-time error is issued.
  8438. '-fsanitize=enum'
  8439. This option enables instrumentation of loads from an enum
  8440. type. If a value outside the range of values for the enum
  8441. type is loaded, a run-time error is issued.
  8442. '-fsanitize=vptr'
  8443. This option enables instrumentation of C++ member function
  8444. calls, member accesses and some conversions between pointers
  8445. to base and derived classes, to verify the referenced object
  8446. has the correct dynamic type.
  8447. While '-ftrapv' causes traps for signed overflows to be emitted,
  8448. '-fsanitize=undefined' gives a diagnostic message. This currently
  8449. works only for the C family of languages.
  8450. '-fno-sanitize=all'
  8451. This option disables all previously enabled sanitizers.
  8452. '-fsanitize=all' is not allowed, as some sanitizers cannot be used
  8453. together.
  8454. '-fasan-shadow-offset=NUMBER'
  8455. This option forces GCC to use custom shadow offset in
  8456. AddressSanitizer checks. It is useful for experimenting with
  8457. different shadow memory layouts in Kernel AddressSanitizer.
  8458. '-fsanitize-sections=S1,S2,...'
  8459. Sanitize global variables in selected user-defined sections. SI
  8460. may contain wildcards.
  8461. '-fsanitize-recover[=OPTS]'
  8462. '-fsanitize-recover=' controls error recovery mode for sanitizers
  8463. mentioned in comma-separated list of OPTS. Enabling this option
  8464. for a sanitizer component causes it to attempt to continue running
  8465. the program as if no error happened. This means multiple runtime
  8466. errors can be reported in a single program run, and the exit code
  8467. of the program may indicate success even when errors have been
  8468. reported. The '-fno-sanitize-recover=' option can be used to alter
  8469. this behavior: only the first detected error is reported and
  8470. program then exits with a non-zero exit code.
  8471. Currently this feature only works for '-fsanitize=undefined' (and
  8472. its suboptions except for '-fsanitize=unreachable' and
  8473. '-fsanitize=return'), '-fsanitize=float-cast-overflow',
  8474. '-fsanitize=float-divide-by-zero', '-fsanitize=bounds-strict',
  8475. '-fsanitize=kernel-address' and '-fsanitize=address'. For these
  8476. sanitizers error recovery is turned on by default, except
  8477. '-fsanitize=address', for which this feature is experimental.
  8478. '-fsanitize-recover=all' and '-fno-sanitize-recover=all' is also
  8479. accepted, the former enables recovery for all sanitizers that
  8480. support it, the latter disables recovery for all sanitizers that
  8481. support it.
  8482. Even if a recovery mode is turned on the compiler side, it needs to
  8483. be also enabled on the runtime library side, otherwise the failures
  8484. are still fatal. The runtime library defaults to 'halt_on_error=0'
  8485. for ThreadSanitizer and UndefinedBehaviorSanitizer, while default
  8486. value for AddressSanitizer is 'halt_on_error=1'. This can be
  8487. overridden through setting the 'halt_on_error' flag in the
  8488. corresponding environment variable.
  8489. Syntax without an explicit OPTS parameter is deprecated. It is
  8490. equivalent to specifying an OPTS list of:
  8491. undefined,float-cast-overflow,float-divide-by-zero,bounds-strict
  8492. '-fsanitize-address-use-after-scope'
  8493. Enable sanitization of local variables to detect use-after-scope
  8494. bugs. The option sets '-fstack-reuse' to 'none'.
  8495. '-fsanitize-undefined-trap-on-error'
  8496. The '-fsanitize-undefined-trap-on-error' option instructs the
  8497. compiler to report undefined behavior using '__builtin_trap' rather
  8498. than a 'libubsan' library routine. The advantage of this is that
  8499. the 'libubsan' library is not needed and is not linked in, so this
  8500. is usable even in freestanding environments.
  8501. '-fsanitize-coverage=trace-pc'
  8502. Enable coverage-guided fuzzing code instrumentation. Inserts a
  8503. call to '__sanitizer_cov_trace_pc' into every basic block.
  8504. '-fbounds-check'
  8505. For front ends that support it, generate additional code to check
  8506. that indices used to access arrays are within the declared range.
  8507. This is currently only supported by the Fortran front end, where
  8508. this option defaults to false.
  8509. '-fcheck-pointer-bounds'
  8510. Enable Pointer Bounds Checker instrumentation. Each memory
  8511. reference is instrumented with checks of the pointer used for
  8512. memory access against bounds associated with that pointer.
  8513. Currently there is only an implementation for Intel MPX available,
  8514. thus x86 GNU/Linux target and '-mmpx' are required to enable this
  8515. feature. MPX-based instrumentation requires a runtime library to
  8516. enable MPX in hardware and handle bounds violation signals. By
  8517. default when '-fcheck-pointer-bounds' and '-mmpx' options are used
  8518. to link a program, the GCC driver links against the 'libmpx' and
  8519. 'libmpxwrappers' libraries. Bounds checking on calls to dynamic
  8520. libraries requires a linker with '-z bndplt' support; if GCC was
  8521. configured with a linker without support for this option (including
  8522. the Gold linker and older versions of ld), a warning is given if
  8523. you link with '-mmpx' without also specifying '-static', since the
  8524. overall effectiveness of the bounds checking protection is reduced.
  8525. See also '-static-libmpxwrappers'.
  8526. MPX-based instrumentation may be used for debugging and also may be
  8527. included in production code to increase program security.
  8528. Depending on usage, you may have different requirements for the
  8529. runtime library. The current version of the MPX runtime library is
  8530. more oriented for use as a debugging tool. MPX runtime library
  8531. usage implies '-lpthread'. See also '-static-libmpx'. The runtime
  8532. library behavior can be influenced using various 'CHKP_RT_*'
  8533. environment variables. See
  8534. <https://gcc.gnu.org/wiki/Intel%20MPX%20support%20in%20the%20GCC%20compiler>
  8535. for more details.
  8536. Generated instrumentation may be controlled by various '-fchkp-*'
  8537. options and by the 'bnd_variable_size' structure field attribute
  8538. (*note Type Attributes::) and 'bnd_legacy', and 'bnd_instrument'
  8539. function attributes (*note Function Attributes::). GCC also
  8540. provides a number of built-in functions for controlling the Pointer
  8541. Bounds Checker. *Note Pointer Bounds Checker builtins::, for more
  8542. information.
  8543. '-fchkp-check-incomplete-type'
  8544. Generate pointer bounds checks for variables with incomplete type.
  8545. Enabled by default.
  8546. '-fchkp-narrow-bounds'
  8547. Controls bounds used by Pointer Bounds Checker for pointers to
  8548. object fields. If narrowing is enabled then field bounds are used.
  8549. Otherwise object bounds are used. See also
  8550. '-fchkp-narrow-to-innermost-array' and
  8551. '-fchkp-first-field-has-own-bounds'. Enabled by default.
  8552. '-fchkp-first-field-has-own-bounds'
  8553. Forces Pointer Bounds Checker to use narrowed bounds for the
  8554. address of the first field in the structure. By default a pointer
  8555. to the first field has the same bounds as a pointer to the whole
  8556. structure.
  8557. '-fchkp-flexible-struct-trailing-arrays'
  8558. Forces Pointer Bounds Checker to treat all trailing arrays in
  8559. structures as possibly flexible. By default only array fields with
  8560. zero length or that are marked with attribute bnd_variable_size are
  8561. treated as flexible.
  8562. '-fchkp-narrow-to-innermost-array'
  8563. Forces Pointer Bounds Checker to use bounds of the innermost arrays
  8564. in case of nested static array access. By default this option is
  8565. disabled and bounds of the outermost array are used.
  8566. '-fchkp-optimize'
  8567. Enables Pointer Bounds Checker optimizations. Enabled by default
  8568. at optimization levels '-O', '-O2', '-O3'.
  8569. '-fchkp-use-fast-string-functions'
  8570. Enables use of '*_nobnd' versions of string functions (not copying
  8571. bounds) by Pointer Bounds Checker. Disabled by default.
  8572. '-fchkp-use-nochk-string-functions'
  8573. Enables use of '*_nochk' versions of string functions (not checking
  8574. bounds) by Pointer Bounds Checker. Disabled by default.
  8575. '-fchkp-use-static-bounds'
  8576. Allow Pointer Bounds Checker to generate static bounds holding
  8577. bounds of static variables. Enabled by default.
  8578. '-fchkp-use-static-const-bounds'
  8579. Use statically-initialized bounds for constant bounds instead of
  8580. generating them each time they are required. By default enabled
  8581. when '-fchkp-use-static-bounds' is enabled.
  8582. '-fchkp-treat-zero-dynamic-size-as-infinite'
  8583. With this option, objects with incomplete type whose
  8584. dynamically-obtained size is zero are treated as having infinite
  8585. size instead by Pointer Bounds Checker. This option may be helpful
  8586. if a program is linked with a library missing size information for
  8587. some symbols. Disabled by default.
  8588. '-fchkp-check-read'
  8589. Instructs Pointer Bounds Checker to generate checks for all read
  8590. accesses to memory. Enabled by default.
  8591. '-fchkp-check-write'
  8592. Instructs Pointer Bounds Checker to generate checks for all write
  8593. accesses to memory. Enabled by default.
  8594. '-fchkp-store-bounds'
  8595. Instructs Pointer Bounds Checker to generate bounds stores for
  8596. pointer writes. Enabled by default.
  8597. '-fchkp-instrument-calls'
  8598. Instructs Pointer Bounds Checker to pass pointer bounds to calls.
  8599. Enabled by default.
  8600. '-fchkp-instrument-marked-only'
  8601. Instructs Pointer Bounds Checker to instrument only functions
  8602. marked with the 'bnd_instrument' attribute (*note Function
  8603. Attributes::). Disabled by default.
  8604. '-fchkp-use-wrappers'
  8605. Allows Pointer Bounds Checker to replace calls to built-in
  8606. functions with calls to wrapper functions. When
  8607. '-fchkp-use-wrappers' is used to link a program, the GCC driver
  8608. automatically links against 'libmpxwrappers'. See also
  8609. '-static-libmpxwrappers'. Enabled by default.
  8610. '-fstack-protector'
  8611. Emit extra code to check for buffer overflows, such as stack
  8612. smashing attacks. This is done by adding a guard variable to
  8613. functions with vulnerable objects. This includes functions that
  8614. call 'alloca', and functions with buffers larger than 8 bytes. The
  8615. guards are initialized when a function is entered and then checked
  8616. when the function exits. If a guard check fails, an error message
  8617. is printed and the program exits.
  8618. '-fstack-protector-all'
  8619. Like '-fstack-protector' except that all functions are protected.
  8620. '-fstack-protector-strong'
  8621. Like '-fstack-protector' but includes additional functions to be
  8622. protected -- those that have local array definitions, or have
  8623. references to local frame addresses.
  8624. '-fstack-protector-explicit'
  8625. Like '-fstack-protector' but only protects those functions which
  8626. have the 'stack_protect' attribute.
  8627. '-fstack-check'
  8628. Generate code to verify that you do not go beyond the boundary of
  8629. the stack. You should specify this flag if you are running in an
  8630. environment with multiple threads, but you only rarely need to
  8631. specify it in a single-threaded environment since stack overflow is
  8632. automatically detected on nearly all systems if there is only one
  8633. stack.
  8634. Note that this switch does not actually cause checking to be done;
  8635. the operating system or the language runtime must do that. The
  8636. switch causes generation of code to ensure that they see the stack
  8637. being extended.
  8638. You can additionally specify a string parameter: 'no' means no
  8639. checking, 'generic' means force the use of old-style checking,
  8640. 'specific' means use the best checking method and is equivalent to
  8641. bare '-fstack-check'.
  8642. Old-style checking is a generic mechanism that requires no specific
  8643. target support in the compiler but comes with the following
  8644. drawbacks:
  8645. 1. Modified allocation strategy for large objects: they are
  8646. always allocated dynamically if their size exceeds a fixed
  8647. threshold.
  8648. 2. Fixed limit on the size of the static frame of functions: when
  8649. it is topped by a particular function, stack checking is not
  8650. reliable and a warning is issued by the compiler.
  8651. 3. Inefficiency: because of both the modified allocation strategy
  8652. and the generic implementation, code performance is hampered.
  8653. Note that old-style stack checking is also the fallback method for
  8654. 'specific' if no target support has been added in the compiler.
  8655. '-fstack-limit-register=REG'
  8656. '-fstack-limit-symbol=SYM'
  8657. '-fno-stack-limit'
  8658. Generate code to ensure that the stack does not grow beyond a
  8659. certain value, either the value of a register or the address of a
  8660. symbol. If a larger stack is required, a signal is raised at run
  8661. time. For most targets, the signal is raised before the stack
  8662. overruns the boundary, so it is possible to catch the signal
  8663. without taking special precautions.
  8664. For instance, if the stack starts at absolute address '0x80000000'
  8665. and grows downwards, you can use the flags
  8666. '-fstack-limit-symbol=__stack_limit' and
  8667. '-Wl,--defsym,__stack_limit=0x7ffe0000' to enforce a stack limit of
  8668. 128KB. Note that this may only work with the GNU linker.
  8669. You can locally override stack limit checking by using the
  8670. 'no_stack_limit' function attribute (*note Function Attributes::).
  8671. '-fsplit-stack'
  8672. Generate code to automatically split the stack before it overflows.
  8673. The resulting program has a discontiguous stack which can only
  8674. overflow if the program is unable to allocate any more memory.
  8675. This is most useful when running threaded programs, as it is no
  8676. longer necessary to calculate a good stack size to use for each
  8677. thread. This is currently only implemented for the x86 targets
  8678. running GNU/Linux.
  8679. When code compiled with '-fsplit-stack' calls code compiled without
  8680. '-fsplit-stack', there may not be much stack space available for
  8681. the latter code to run. If compiling all code, including library
  8682. code, with '-fsplit-stack' is not an option, then the linker can
  8683. fix up these calls so that the code compiled without
  8684. '-fsplit-stack' always has a large stack. Support for this is
  8685. implemented in the gold linker in GNU binutils release 2.21 and
  8686. later.
  8687. '-fvtable-verify=[std|preinit|none]'
  8688. This option is only available when compiling C++ code. It turns on
  8689. (or off, if using '-fvtable-verify=none') the security feature that
  8690. verifies at run time, for every virtual call, that the vtable
  8691. pointer through which the call is made is valid for the type of the
  8692. object, and has not been corrupted or overwritten. If an invalid
  8693. vtable pointer is detected at run time, an error is reported and
  8694. execution of the program is immediately halted.
  8695. This option causes run-time data structures to be built at program
  8696. startup, which are used for verifying the vtable pointers. The
  8697. options 'std' and 'preinit' control the timing of when these data
  8698. structures are built. In both cases the data structures are built
  8699. before execution reaches 'main'. Using '-fvtable-verify=std'
  8700. causes the data structures to be built after shared libraries have
  8701. been loaded and initialized. '-fvtable-verify=preinit' causes them
  8702. to be built before shared libraries have been loaded and
  8703. initialized.
  8704. If this option appears multiple times in the command line with
  8705. different values specified, 'none' takes highest priority over both
  8706. 'std' and 'preinit'; 'preinit' takes priority over 'std'.
  8707. '-fvtv-debug'
  8708. When used in conjunction with '-fvtable-verify=std' or
  8709. '-fvtable-verify=preinit', causes debug versions of the runtime
  8710. functions for the vtable verification feature to be called. This
  8711. flag also causes the compiler to log information about which vtable
  8712. pointers it finds for each class. This information is written to a
  8713. file named 'vtv_set_ptr_data.log' in the directory named by the
  8714. environment variable 'VTV_LOGS_DIR' if that is defined or the
  8715. current working directory otherwise.
  8716. Note: This feature _appends_ data to the log file. If you want a
  8717. fresh log file, be sure to delete any existing one.
  8718. '-fvtv-counts'
  8719. This is a debugging flag. When used in conjunction with
  8720. '-fvtable-verify=std' or '-fvtable-verify=preinit', this causes the
  8721. compiler to keep track of the total number of virtual calls it
  8722. encounters and the number of verifications it inserts. It also
  8723. counts the number of calls to certain run-time library functions
  8724. that it inserts and logs this information for each compilation
  8725. unit. The compiler writes this information to a file named
  8726. 'vtv_count_data.log' in the directory named by the environment
  8727. variable 'VTV_LOGS_DIR' if that is defined or the current working
  8728. directory otherwise. It also counts the size of the vtable pointer
  8729. sets for each class, and writes this information to
  8730. 'vtv_class_set_sizes.log' in the same directory.
  8731. Note: This feature _appends_ data to the log files. To get fresh
  8732. log files, be sure to delete any existing ones.
  8733. '-finstrument-functions'
  8734. Generate instrumentation calls for entry and exit to functions.
  8735. Just after function entry and just before function exit, the
  8736. following profiling functions are called with the address of the
  8737. current function and its call site. (On some platforms,
  8738. '__builtin_return_address' does not work beyond the current
  8739. function, so the call site information may not be available to the
  8740. profiling functions otherwise.)
  8741. void __cyg_profile_func_enter (void *this_fn,
  8742. void *call_site);
  8743. void __cyg_profile_func_exit (void *this_fn,
  8744. void *call_site);
  8745. The first argument is the address of the start of the current
  8746. function, which may be looked up exactly in the symbol table.
  8747. This instrumentation is also done for functions expanded inline in
  8748. other functions. The profiling calls indicate where, conceptually,
  8749. the inline function is entered and exited. This means that
  8750. addressable versions of such functions must be available. If all
  8751. your uses of a function are expanded inline, this may mean an
  8752. additional expansion of code size. If you use 'extern inline' in
  8753. your C code, an addressable version of such functions must be
  8754. provided. (This is normally the case anyway, but if you get lucky
  8755. and the optimizer always expands the functions inline, you might
  8756. have gotten away without providing static copies.)
  8757. A function may be given the attribute 'no_instrument_function', in
  8758. which case this instrumentation is not done. This can be used, for
  8759. example, for the profiling functions listed above, high-priority
  8760. interrupt routines, and any functions from which the profiling
  8761. functions cannot safely be called (perhaps signal handlers, if the
  8762. profiling routines generate output or allocate memory).
  8763. '-finstrument-functions-exclude-file-list=FILE,FILE,...'
  8764. Set the list of functions that are excluded from instrumentation
  8765. (see the description of '-finstrument-functions'). If the file
  8766. that contains a function definition matches with one of FILE, then
  8767. that function is not instrumented. The match is done on
  8768. substrings: if the FILE parameter is a substring of the file name,
  8769. it is considered to be a match.
  8770. For example:
  8771. -finstrument-functions-exclude-file-list=/bits/stl,include/sys
  8772. excludes any inline function defined in files whose pathnames
  8773. contain '/bits/stl' or 'include/sys'.
  8774. If, for some reason, you want to include letter ',' in one of SYM,
  8775. write '\,'. For example,
  8776. '-finstrument-functions-exclude-file-list='\,\,tmp'' (note the
  8777. single quote surrounding the option).
  8778. '-finstrument-functions-exclude-function-list=SYM,SYM,...'
  8779. This is similar to '-finstrument-functions-exclude-file-list', but
  8780. this option sets the list of function names to be excluded from
  8781. instrumentation. The function name to be matched is its
  8782. user-visible name, such as 'vector<int> blah(const vector<int> &)',
  8783. not the internal mangled name (e.g., '_Z4blahRSt6vectorIiSaIiEE').
  8784. The match is done on substrings: if the SYM parameter is a
  8785. substring of the function name, it is considered to be a match.
  8786. For C99 and C++ extended identifiers, the function name must be
  8787. given in UTF-8, not using universal character names.
  8788. 
  8789. File: gcc.info, Node: Preprocessor Options, Next: Assembler Options, Prev: Instrumentation Options, Up: Invoking GCC
  8790. 3.12 Options Controlling the Preprocessor
  8791. =========================================
  8792. These options control the C preprocessor, which is run on each C source
  8793. file before actual compilation.
  8794. If you use the '-E' option, nothing is done except preprocessing. Some
  8795. of these options make sense only together with '-E' because they cause
  8796. the preprocessor output to be unsuitable for actual compilation.
  8797. In addition to the options listed here, there are a number of options
  8798. to control search paths for include files documented in *note Directory
  8799. Options::. Options to control preprocessor diagnostics are listed in
  8800. *note Warning Options::.
  8801. '-D NAME'
  8802. Predefine NAME as a macro, with definition '1'.
  8803. '-D NAME=DEFINITION'
  8804. The contents of DEFINITION are tokenized and processed as if they
  8805. appeared during translation phase three in a '#define' directive.
  8806. In particular, the definition is truncated by embedded newline
  8807. characters.
  8808. If you are invoking the preprocessor from a shell or shell-like
  8809. program you may need to use the shell's quoting syntax to protect
  8810. characters such as spaces that have a meaning in the shell syntax.
  8811. If you wish to define a function-like macro on the command line,
  8812. write its argument list with surrounding parentheses before the
  8813. equals sign (if any). Parentheses are meaningful to most shells,
  8814. so you should quote the option. With 'sh' and 'csh',
  8815. '-D'NAME(ARGS...)=DEFINITION'' works.
  8816. '-D' and '-U' options are processed in the order they are given on
  8817. the command line. All '-imacros FILE' and '-include FILE' options
  8818. are processed after all '-D' and '-U' options.
  8819. '-U NAME'
  8820. Cancel any previous definition of NAME, either built in or provided
  8821. with a '-D' option.
  8822. '-include FILE'
  8823. Process FILE as if '#include "file"' appeared as the first line of
  8824. the primary source file. However, the first directory searched for
  8825. FILE is the preprocessor's working directory _instead of_ the
  8826. directory containing the main source file. If not found there, it
  8827. is searched for in the remainder of the '#include "..."' search
  8828. chain as normal.
  8829. If multiple '-include' options are given, the files are included in
  8830. the order they appear on the command line.
  8831. '-imacros FILE'
  8832. Exactly like '-include', except that any output produced by
  8833. scanning FILE is thrown away. Macros it defines remain defined.
  8834. This allows you to acquire all the macros from a header without
  8835. also processing its declarations.
  8836. All files specified by '-imacros' are processed before all files
  8837. specified by '-include'.
  8838. '-undef'
  8839. Do not predefine any system-specific or GCC-specific macros. The
  8840. standard predefined macros remain defined.
  8841. '-pthread'
  8842. Define additional macros required for using the POSIX threads
  8843. library. You should use this option consistently for both
  8844. compilation and linking. This option is supported on GNU/Linux
  8845. targets, most other Unix derivatives, and also on x86 Cygwin and
  8846. MinGW targets.
  8847. '-M'
  8848. Instead of outputting the result of preprocessing, output a rule
  8849. suitable for 'make' describing the dependencies of the main source
  8850. file. The preprocessor outputs one 'make' rule containing the
  8851. object file name for that source file, a colon, and the names of
  8852. all the included files, including those coming from '-include' or
  8853. '-imacros' command-line options.
  8854. Unless specified explicitly (with '-MT' or '-MQ'), the object file
  8855. name consists of the name of the source file with any suffix
  8856. replaced with object file suffix and with any leading directory
  8857. parts removed. If there are many included files then the rule is
  8858. split into several lines using '\'-newline. The rule has no
  8859. commands.
  8860. This option does not suppress the preprocessor's debug output, such
  8861. as '-dM'. To avoid mixing such debug output with the dependency
  8862. rules you should explicitly specify the dependency output file with
  8863. '-MF', or use an environment variable like 'DEPENDENCIES_OUTPUT'
  8864. (*note Environment Variables::). Debug output is still sent to the
  8865. regular output stream as normal.
  8866. Passing '-M' to the driver implies '-E', and suppresses warnings
  8867. with an implicit '-w'.
  8868. '-MM'
  8869. Like '-M' but do not mention header files that are found in system
  8870. header directories, nor header files that are included, directly or
  8871. indirectly, from such a header.
  8872. This implies that the choice of angle brackets or double quotes in
  8873. an '#include' directive does not in itself determine whether that
  8874. header appears in '-MM' dependency output.
  8875. '-MF FILE'
  8876. When used with '-M' or '-MM', specifies a file to write the
  8877. dependencies to. If no '-MF' switch is given the preprocessor
  8878. sends the rules to the same place it would send preprocessed
  8879. output.
  8880. When used with the driver options '-MD' or '-MMD', '-MF' overrides
  8881. the default dependency output file.
  8882. '-MG'
  8883. In conjunction with an option such as '-M' requesting dependency
  8884. generation, '-MG' assumes missing header files are generated files
  8885. and adds them to the dependency list without raising an error. The
  8886. dependency filename is taken directly from the '#include' directive
  8887. without prepending any path. '-MG' also suppresses preprocessed
  8888. output, as a missing header file renders this useless.
  8889. This feature is used in automatic updating of makefiles.
  8890. '-MP'
  8891. This option instructs CPP to add a phony target for each dependency
  8892. other than the main file, causing each to depend on nothing. These
  8893. dummy rules work around errors 'make' gives if you remove header
  8894. files without updating the 'Makefile' to match.
  8895. This is typical output:
  8896. test.o: test.c test.h
  8897. test.h:
  8898. '-MT TARGET'
  8899. Change the target of the rule emitted by dependency generation. By
  8900. default CPP takes the name of the main input file, deletes any
  8901. directory components and any file suffix such as '.c', and appends
  8902. the platform's usual object suffix. The result is the target.
  8903. An '-MT' option sets the target to be exactly the string you
  8904. specify. If you want multiple targets, you can specify them as a
  8905. single argument to '-MT', or use multiple '-MT' options.
  8906. For example, '-MT '$(objpfx)foo.o'' might give
  8907. $(objpfx)foo.o: foo.c
  8908. '-MQ TARGET'
  8909. Same as '-MT', but it quotes any characters which are special to
  8910. Make. '-MQ '$(objpfx)foo.o'' gives
  8911. $$(objpfx)foo.o: foo.c
  8912. The default target is automatically quoted, as if it were given
  8913. with '-MQ'.
  8914. '-MD'
  8915. '-MD' is equivalent to '-M -MF FILE', except that '-E' is not
  8916. implied. The driver determines FILE based on whether an '-o'
  8917. option is given. If it is, the driver uses its argument but with a
  8918. suffix of '.d', otherwise it takes the name of the input file,
  8919. removes any directory components and suffix, and applies a '.d'
  8920. suffix.
  8921. If '-MD' is used in conjunction with '-E', any '-o' switch is
  8922. understood to specify the dependency output file (*note -MF:
  8923. dashMF.), but if used without '-E', each '-o' is understood to
  8924. specify a target object file.
  8925. Since '-E' is not implied, '-MD' can be used to generate a
  8926. dependency output file as a side-effect of the compilation process.
  8927. '-MMD'
  8928. Like '-MD' except mention only user header files, not system header
  8929. files.
  8930. '-fpreprocessed'
  8931. Indicate to the preprocessor that the input file has already been
  8932. preprocessed. This suppresses things like macro expansion,
  8933. trigraph conversion, escaped newline splicing, and processing of
  8934. most directives. The preprocessor still recognizes and removes
  8935. comments, so that you can pass a file preprocessed with '-C' to the
  8936. compiler without problems. In this mode the integrated
  8937. preprocessor is little more than a tokenizer for the front ends.
  8938. '-fpreprocessed' is implicit if the input file has one of the
  8939. extensions '.i', '.ii' or '.mi'. These are the extensions that GCC
  8940. uses for preprocessed files created by '-save-temps'.
  8941. '-fdirectives-only'
  8942. When preprocessing, handle directives, but do not expand macros.
  8943. The option's behavior depends on the '-E' and '-fpreprocessed'
  8944. options.
  8945. With '-E', preprocessing is limited to the handling of directives
  8946. such as '#define', '#ifdef', and '#error'. Other preprocessor
  8947. operations, such as macro expansion and trigraph conversion are not
  8948. performed. In addition, the '-dD' option is implicitly enabled.
  8949. With '-fpreprocessed', predefinition of command line and most
  8950. builtin macros is disabled. Macros such as '__LINE__', which are
  8951. contextually dependent, are handled normally. This enables
  8952. compilation of files previously preprocessed with '-E
  8953. -fdirectives-only'.
  8954. With both '-E' and '-fpreprocessed', the rules for '-fpreprocessed'
  8955. take precedence. This enables full preprocessing of files
  8956. previously preprocessed with '-E -fdirectives-only'.
  8957. '-fdollars-in-identifiers'
  8958. Accept '$' in identifiers.
  8959. '-fextended-identifiers'
  8960. Accept universal character names in identifiers. This option is
  8961. enabled by default for C99 (and later C standard versions) and C++.
  8962. '-fno-canonical-system-headers'
  8963. When preprocessing, do not shorten system header paths with
  8964. canonicalization.
  8965. '-ftabstop=WIDTH'
  8966. Set the distance between tab stops. This helps the preprocessor
  8967. report correct column numbers in warnings or errors, even if tabs
  8968. appear on the line. If the value is less than 1 or greater than
  8969. 100, the option is ignored. The default is 8.
  8970. '-ftrack-macro-expansion[=LEVEL]'
  8971. Track locations of tokens across macro expansions. This allows the
  8972. compiler to emit diagnostic about the current macro expansion stack
  8973. when a compilation error occurs in a macro expansion. Using this
  8974. option makes the preprocessor and the compiler consume more memory.
  8975. The LEVEL parameter can be used to choose the level of precision of
  8976. token location tracking thus decreasing the memory consumption if
  8977. necessary. Value '0' of LEVEL de-activates this option. Value '1'
  8978. tracks tokens locations in a degraded mode for the sake of minimal
  8979. memory overhead. In this mode all tokens resulting from the
  8980. expansion of an argument of a function-like macro have the same
  8981. location. Value '2' tracks tokens locations completely. This
  8982. value is the most memory hungry. When this option is given no
  8983. argument, the default parameter value is '2'.
  8984. Note that '-ftrack-macro-expansion=2' is activated by default.
  8985. '-fexec-charset=CHARSET'
  8986. Set the execution character set, used for string and character
  8987. constants. The default is UTF-8. CHARSET can be any encoding
  8988. supported by the system's 'iconv' library routine.
  8989. '-fwide-exec-charset=CHARSET'
  8990. Set the wide execution character set, used for wide string and
  8991. character constants. The default is UTF-32 or UTF-16, whichever
  8992. corresponds to the width of 'wchar_t'. As with '-fexec-charset',
  8993. CHARSET can be any encoding supported by the system's 'iconv'
  8994. library routine; however, you will have problems with encodings
  8995. that do not fit exactly in 'wchar_t'.
  8996. '-finput-charset=CHARSET'
  8997. Set the input character set, used for translation from the
  8998. character set of the input file to the source character set used by
  8999. GCC. If the locale does not specify, or GCC cannot get this
  9000. information from the locale, the default is UTF-8. This can be
  9001. overridden by either the locale or this command-line option.
  9002. Currently the command-line option takes precedence if there's a
  9003. conflict. CHARSET can be any encoding supported by the system's
  9004. 'iconv' library routine.
  9005. '-fpch-deps'
  9006. When using precompiled headers (*note Precompiled Headers::), this
  9007. flag causes the dependency-output flags to also list the files from
  9008. the precompiled header's dependencies. If not specified, only the
  9009. precompiled header are listed and not the files that were used to
  9010. create it, because those files are not consulted when a precompiled
  9011. header is used.
  9012. '-fpch-preprocess'
  9013. This option allows use of a precompiled header (*note Precompiled
  9014. Headers::) together with '-E'. It inserts a special '#pragma',
  9015. '#pragma GCC pch_preprocess "FILENAME"' in the output to mark the
  9016. place where the precompiled header was found, and its FILENAME.
  9017. When '-fpreprocessed' is in use, GCC recognizes this '#pragma' and
  9018. loads the PCH.
  9019. This option is off by default, because the resulting preprocessed
  9020. output is only really suitable as input to GCC. It is switched on
  9021. by '-save-temps'.
  9022. You should not write this '#pragma' in your own code, but it is
  9023. safe to edit the filename if the PCH file is available in a
  9024. different location. The filename may be absolute or it may be
  9025. relative to GCC's current directory.
  9026. '-fworking-directory'
  9027. Enable generation of linemarkers in the preprocessor output that
  9028. let the compiler know the current working directory at the time of
  9029. preprocessing. When this option is enabled, the preprocessor
  9030. emits, after the initial linemarker, a second linemarker with the
  9031. current working directory followed by two slashes. GCC uses this
  9032. directory, when it's present in the preprocessed input, as the
  9033. directory emitted as the current working directory in some
  9034. debugging information formats. This option is implicitly enabled
  9035. if debugging information is enabled, but this can be inhibited with
  9036. the negated form '-fno-working-directory'. If the '-P' flag is
  9037. present in the command line, this option has no effect, since no
  9038. '#line' directives are emitted whatsoever.
  9039. '-A PREDICATE=ANSWER'
  9040. Make an assertion with the predicate PREDICATE and answer ANSWER.
  9041. This form is preferred to the older form '-A PREDICATE(ANSWER)',
  9042. which is still supported, because it does not use shell special
  9043. characters.
  9044. '-A -PREDICATE=ANSWER'
  9045. Cancel an assertion with the predicate PREDICATE and answer ANSWER.
  9046. '-C'
  9047. Do not discard comments. All comments are passed through to the
  9048. output file, except for comments in processed directives, which are
  9049. deleted along with the directive.
  9050. You should be prepared for side effects when using '-C'; it causes
  9051. the preprocessor to treat comments as tokens in their own right.
  9052. For example, comments appearing at the start of what would be a
  9053. directive line have the effect of turning that line into an
  9054. ordinary source line, since the first token on the line is no
  9055. longer a '#'.
  9056. '-CC'
  9057. Do not discard comments, including during macro expansion. This is
  9058. like '-C', except that comments contained within macros are also
  9059. passed through to the output file where the macro is expanded.
  9060. In addition to the side-effects of the '-C' option, the '-CC'
  9061. option causes all C++-style comments inside a macro to be converted
  9062. to C-style comments. This is to prevent later use of that macro
  9063. from inadvertently commenting out the remainder of the source line.
  9064. The '-CC' option is generally used to support lint comments.
  9065. '-P'
  9066. Inhibit generation of linemarkers in the output from the
  9067. preprocessor. This might be useful when running the preprocessor
  9068. on something that is not C code, and will be sent to a program
  9069. which might be confused by the linemarkers.
  9070. '-traditional'
  9071. '-traditional-cpp'
  9072. Try to imitate the behavior of pre-standard C preprocessors, as
  9073. opposed to ISO C preprocessors. See the GNU CPP manual for
  9074. details.
  9075. Note that GCC does not otherwise attempt to emulate a pre-standard
  9076. C compiler, and these options are only supported with the '-E'
  9077. switch, or when invoking CPP explicitly.
  9078. '-trigraphs'
  9079. Support ISO C trigraphs. These are three-character sequences, all
  9080. starting with '??', that are defined by ISO C to stand for single
  9081. characters. For example, '??/' stands for '\', so ''??/n'' is a
  9082. character constant for a newline.
  9083. The nine trigraphs and their replacements are
  9084. Trigraph: ??( ??) ??< ??> ??= ??/ ??' ??! ??-
  9085. Replacement: [ ] { } # \ ^ | ~
  9086. By default, GCC ignores trigraphs, but in standard-conforming modes
  9087. it converts them. See the '-std' and '-ansi' options.
  9088. '-remap'
  9089. Enable special code to work around file systems which only permit
  9090. very short file names, such as MS-DOS.
  9091. '-H'
  9092. Print the name of each header file used, in addition to other
  9093. normal activities. Each name is indented to show how deep in the
  9094. '#include' stack it is. Precompiled header files are also printed,
  9095. even if they are found to be invalid; an invalid precompiled header
  9096. file is printed with '...x' and a valid one with '...!' .
  9097. '-dLETTERS'
  9098. Says to make debugging dumps during compilation as specified by
  9099. LETTERS. The flags documented here are those relevant to the
  9100. preprocessor. Other LETTERS are interpreted by the compiler
  9101. proper, or reserved for future versions of GCC, and so are silently
  9102. ignored. If you specify LETTERS whose behavior conflicts, the
  9103. result is undefined. *Note Developer Options::, for more
  9104. information.
  9105. '-dM'
  9106. Instead of the normal output, generate a list of '#define'
  9107. directives for all the macros defined during the execution of
  9108. the preprocessor, including predefined macros. This gives you
  9109. a way of finding out what is predefined in your version of the
  9110. preprocessor. Assuming you have no file 'foo.h', the command
  9111. touch foo.h; cpp -dM foo.h
  9112. shows all the predefined macros.
  9113. If you use '-dM' without the '-E' option, '-dM' is interpreted
  9114. as a synonym for '-fdump-rtl-mach'. *Note (gcc)Developer
  9115. Options::.
  9116. '-dD'
  9117. Like '-dM' except in two respects: it does _not_ include the
  9118. predefined macros, and it outputs _both_ the '#define'
  9119. directives and the result of preprocessing. Both kinds of
  9120. output go to the standard output file.
  9121. '-dN'
  9122. Like '-dD', but emit only the macro names, not their
  9123. expansions.
  9124. '-dI'
  9125. Output '#include' directives in addition to the result of
  9126. preprocessing.
  9127. '-dU'
  9128. Like '-dD' except that only macros that are expanded, or whose
  9129. definedness is tested in preprocessor directives, are output;
  9130. the output is delayed until the use or test of the macro; and
  9131. '#undef' directives are also output for macros tested but
  9132. undefined at the time.
  9133. '-fdebug-cpp'
  9134. This option is only useful for debugging GCC. When used from CPP or
  9135. with '-E', it dumps debugging information about location maps.
  9136. Every token in the output is preceded by the dump of the map its
  9137. location belongs to.
  9138. When used from GCC without '-E', this option has no effect.
  9139. '-Wp,OPTION'
  9140. You can use '-Wp,OPTION' to bypass the compiler driver and pass
  9141. OPTION directly through to the preprocessor. If OPTION contains
  9142. commas, it is split into multiple options at the commas. However,
  9143. many options are modified, translated or interpreted by the
  9144. compiler driver before being passed to the preprocessor, and '-Wp'
  9145. forcibly bypasses this phase. The preprocessor's direct interface
  9146. is undocumented and subject to change, so whenever possible you
  9147. should avoid using '-Wp' and let the driver handle the options
  9148. instead.
  9149. '-Xpreprocessor OPTION'
  9150. Pass OPTION as an option to the preprocessor. You can use this to
  9151. supply system-specific preprocessor options that GCC does not
  9152. recognize.
  9153. If you want to pass an option that takes an argument, you must use
  9154. '-Xpreprocessor' twice, once for the option and once for the
  9155. argument.
  9156. '-no-integrated-cpp'
  9157. Perform preprocessing as a separate pass before compilation. By
  9158. default, GCC performs preprocessing as an integrated part of input
  9159. tokenization and parsing. If this option is provided, the
  9160. appropriate language front end ('cc1', 'cc1plus', or 'cc1obj' for
  9161. C, C++, and Objective-C, respectively) is instead invoked twice,
  9162. once for preprocessing only and once for actual compilation of the
  9163. preprocessed input. This option may be useful in conjunction with
  9164. the '-B' or '-wrapper' options to specify an alternate preprocessor
  9165. or perform additional processing of the program source between
  9166. normal preprocessing and compilation.
  9167. 
  9168. File: gcc.info, Node: Assembler Options, Next: Link Options, Prev: Preprocessor Options, Up: Invoking GCC
  9169. 3.13 Passing Options to the Assembler
  9170. =====================================
  9171. You can pass options to the assembler.
  9172. '-Wa,OPTION'
  9173. Pass OPTION as an option to the assembler. If OPTION contains
  9174. commas, it is split into multiple options at the commas.
  9175. '-Xassembler OPTION'
  9176. Pass OPTION as an option to the assembler. You can use this to
  9177. supply system-specific assembler options that GCC does not
  9178. recognize.
  9179. If you want to pass an option that takes an argument, you must use
  9180. '-Xassembler' twice, once for the option and once for the argument.
  9181. 
  9182. File: gcc.info, Node: Link Options, Next: Directory Options, Prev: Assembler Options, Up: Invoking GCC
  9183. 3.14 Options for Linking
  9184. ========================
  9185. These options come into play when the compiler links object files into
  9186. an executable output file. They are meaningless if the compiler is not
  9187. doing a link step.
  9188. 'OBJECT-FILE-NAME'
  9189. A file name that does not end in a special recognized suffix is
  9190. considered to name an object file or library. (Object files are
  9191. distinguished from libraries by the linker according to the file
  9192. contents.) If linking is done, these object files are used as
  9193. input to the linker.
  9194. '-c'
  9195. '-S'
  9196. '-E'
  9197. If any of these options is used, then the linker is not run, and
  9198. object file names should not be used as arguments. *Note Overall
  9199. Options::.
  9200. '-fuse-ld=bfd'
  9201. Use the 'bfd' linker instead of the default linker.
  9202. '-fuse-ld=gold'
  9203. Use the 'gold' linker instead of the default linker.
  9204. '-lLIBRARY'
  9205. '-l LIBRARY'
  9206. Search the library named LIBRARY when linking. (The second
  9207. alternative with the library as a separate argument is only for
  9208. POSIX compliance and is not recommended.)
  9209. It makes a difference where in the command you write this option;
  9210. the linker searches and processes libraries and object files in the
  9211. order they are specified. Thus, 'foo.o -lz bar.o' searches library
  9212. 'z' after file 'foo.o' but before 'bar.o'. If 'bar.o' refers to
  9213. functions in 'z', those functions may not be loaded.
  9214. The linker searches a standard list of directories for the library,
  9215. which is actually a file named 'libLIBRARY.a'. The linker then
  9216. uses this file as if it had been specified precisely by name.
  9217. The directories searched include several standard system
  9218. directories plus any that you specify with '-L'.
  9219. Normally the files found this way are library files--archive files
  9220. whose members are object files. The linker handles an archive file
  9221. by scanning through it for members which define symbols that have
  9222. so far been referenced but not defined. But if the file that is
  9223. found is an ordinary object file, it is linked in the usual
  9224. fashion. The only difference between using an '-l' option and
  9225. specifying a file name is that '-l' surrounds LIBRARY with 'lib'
  9226. and '.a' and searches several directories.
  9227. '-lobjc'
  9228. You need this special case of the '-l' option in order to link an
  9229. Objective-C or Objective-C++ program.
  9230. '-nostartfiles'
  9231. Do not use the standard system startup files when linking. The
  9232. standard system libraries are used normally, unless '-nostdlib' or
  9233. '-nodefaultlibs' is used.
  9234. '-nodefaultlibs'
  9235. Do not use the standard system libraries when linking. Only the
  9236. libraries you specify are passed to the linker, and options
  9237. specifying linkage of the system libraries, such as
  9238. '-static-libgcc' or '-shared-libgcc', are ignored. The standard
  9239. startup files are used normally, unless '-nostartfiles' is used.
  9240. The compiler may generate calls to 'memcmp', 'memset', 'memcpy' and
  9241. 'memmove'. These entries are usually resolved by entries in libc.
  9242. These entry points should be supplied through some other mechanism
  9243. when this option is specified.
  9244. '-nostdlib'
  9245. Do not use the standard system startup files or libraries when
  9246. linking. No startup files and only the libraries you specify are
  9247. passed to the linker, and options specifying linkage of the system
  9248. libraries, such as '-static-libgcc' or '-shared-libgcc', are
  9249. ignored.
  9250. The compiler may generate calls to 'memcmp', 'memset', 'memcpy' and
  9251. 'memmove'. These entries are usually resolved by entries in libc.
  9252. These entry points should be supplied through some other mechanism
  9253. when this option is specified.
  9254. One of the standard libraries bypassed by '-nostdlib' and
  9255. '-nodefaultlibs' is 'libgcc.a', a library of internal subroutines
  9256. which GCC uses to overcome shortcomings of particular machines, or
  9257. special needs for some languages. (*Note Interfacing to GCC
  9258. Output: (gccint)Interface, for more discussion of 'libgcc.a'.) In
  9259. most cases, you need 'libgcc.a' even when you want to avoid other
  9260. standard libraries. In other words, when you specify '-nostdlib'
  9261. or '-nodefaultlibs' you should usually specify '-lgcc' as well.
  9262. This ensures that you have no unresolved references to internal GCC
  9263. library subroutines. (An example of such an internal subroutine is
  9264. '__main', used to ensure C++ constructors are called; *note
  9265. 'collect2': (gccint)Collect2.)
  9266. '-pie'
  9267. Produce a position independent executable on targets that support
  9268. it. For predictable results, you must also specify the same set of
  9269. options used for compilation ('-fpie', '-fPIE', or model
  9270. suboptions) when you specify this linker option.
  9271. '-no-pie'
  9272. Don't produce a position independent executable.
  9273. '-pthread'
  9274. Link with the POSIX threads library. This option is supported on
  9275. GNU/Linux targets, most other Unix derivatives, and also on x86
  9276. Cygwin and MinGW targets. On some targets this option also sets
  9277. flags for the preprocessor, so it should be used consistently for
  9278. both compilation and linking.
  9279. '-rdynamic'
  9280. Pass the flag '-export-dynamic' to the ELF linker, on targets that
  9281. support it. This instructs the linker to add all symbols, not only
  9282. used ones, to the dynamic symbol table. This option is needed for
  9283. some uses of 'dlopen' or to allow obtaining backtraces from within
  9284. a program.
  9285. '-s'
  9286. Remove all symbol table and relocation information from the
  9287. executable.
  9288. '-static'
  9289. On systems that support dynamic linking, this prevents linking with
  9290. the shared libraries. On other systems, this option has no effect.
  9291. '-shared'
  9292. Produce a shared object which can then be linked with other objects
  9293. to form an executable. Not all systems support this option. For
  9294. predictable results, you must also specify the same set of options
  9295. used for compilation ('-fpic', '-fPIC', or model suboptions) when
  9296. you specify this linker option.(1)
  9297. '-shared-libgcc'
  9298. '-static-libgcc'
  9299. On systems that provide 'libgcc' as a shared library, these options
  9300. force the use of either the shared or static version, respectively.
  9301. If no shared version of 'libgcc' was built when the compiler was
  9302. configured, these options have no effect.
  9303. There are several situations in which an application should use the
  9304. shared 'libgcc' instead of the static version. The most common of
  9305. these is when the application wishes to throw and catch exceptions
  9306. across different shared libraries. In that case, each of the
  9307. libraries as well as the application itself should use the shared
  9308. 'libgcc'.
  9309. Therefore, the G++ driver automatically adds '-shared-libgcc'
  9310. whenever you build a shared library or a main executable, because
  9311. C++ programs typically use exceptions, so this is the right thing
  9312. to do.
  9313. If, instead, you use the GCC driver to create shared libraries, you
  9314. may find that they are not always linked with the shared 'libgcc'.
  9315. If GCC finds, at its configuration time, that you have a non-GNU
  9316. linker or a GNU linker that does not support option
  9317. '--eh-frame-hdr', it links the shared version of 'libgcc' into
  9318. shared libraries by default. Otherwise, it takes advantage of the
  9319. linker and optimizes away the linking with the shared version of
  9320. 'libgcc', linking with the static version of libgcc by default.
  9321. This allows exceptions to propagate through such shared libraries,
  9322. without incurring relocation costs at library load time.
  9323. However, if a library or main executable is supposed to throw or
  9324. catch exceptions, you must link it using the G++ driver, or using
  9325. the option '-shared-libgcc', such that it is linked with the shared
  9326. 'libgcc'.
  9327. '-static-libasan'
  9328. When the '-fsanitize=address' option is used to link a program, the
  9329. GCC driver automatically links against 'libasan'. If 'libasan' is
  9330. available as a shared library, and the '-static' option is not
  9331. used, then this links against the shared version of 'libasan'. The
  9332. '-static-libasan' option directs the GCC driver to link 'libasan'
  9333. statically, without necessarily linking other libraries statically.
  9334. '-static-libtsan'
  9335. When the '-fsanitize=thread' option is used to link a program, the
  9336. GCC driver automatically links against 'libtsan'. If 'libtsan' is
  9337. available as a shared library, and the '-static' option is not
  9338. used, then this links against the shared version of 'libtsan'. The
  9339. '-static-libtsan' option directs the GCC driver to link 'libtsan'
  9340. statically, without necessarily linking other libraries statically.
  9341. '-static-liblsan'
  9342. When the '-fsanitize=leak' option is used to link a program, the
  9343. GCC driver automatically links against 'liblsan'. If 'liblsan' is
  9344. available as a shared library, and the '-static' option is not
  9345. used, then this links against the shared version of 'liblsan'. The
  9346. '-static-liblsan' option directs the GCC driver to link 'liblsan'
  9347. statically, without necessarily linking other libraries statically.
  9348. '-static-libubsan'
  9349. When the '-fsanitize=undefined' option is used to link a program,
  9350. the GCC driver automatically links against 'libubsan'. If
  9351. 'libubsan' is available as a shared library, and the '-static'
  9352. option is not used, then this links against the shared version of
  9353. 'libubsan'. The '-static-libubsan' option directs the GCC driver
  9354. to link 'libubsan' statically, without necessarily linking other
  9355. libraries statically.
  9356. '-static-libmpx'
  9357. When the '-fcheck-pointer bounds' and '-mmpx' options are used to
  9358. link a program, the GCC driver automatically links against
  9359. 'libmpx'. If 'libmpx' is available as a shared library, and the
  9360. '-static' option is not used, then this links against the shared
  9361. version of 'libmpx'. The '-static-libmpx' option directs the GCC
  9362. driver to link 'libmpx' statically, without necessarily linking
  9363. other libraries statically.
  9364. '-static-libmpxwrappers'
  9365. When the '-fcheck-pointer bounds' and '-mmpx' options are used to
  9366. link a program without also using '-fno-chkp-use-wrappers', the GCC
  9367. driver automatically links against 'libmpxwrappers'. If
  9368. 'libmpxwrappers' is available as a shared library, and the
  9369. '-static' option is not used, then this links against the shared
  9370. version of 'libmpxwrappers'. The '-static-libmpxwrappers' option
  9371. directs the GCC driver to link 'libmpxwrappers' statically, without
  9372. necessarily linking other libraries statically.
  9373. '-static-libstdc++'
  9374. When the 'g++' program is used to link a C++ program, it normally
  9375. automatically links against 'libstdc++'. If 'libstdc++' is
  9376. available as a shared library, and the '-static' option is not
  9377. used, then this links against the shared version of 'libstdc++'.
  9378. That is normally fine. However, it is sometimes useful to freeze
  9379. the version of 'libstdc++' used by the program without going all
  9380. the way to a fully static link. The '-static-libstdc++' option
  9381. directs the 'g++' driver to link 'libstdc++' statically, without
  9382. necessarily linking other libraries statically.
  9383. '-symbolic'
  9384. Bind references to global symbols when building a shared object.
  9385. Warn about any unresolved references (unless overridden by the link
  9386. editor option '-Xlinker -z -Xlinker defs'). Only a few systems
  9387. support this option.
  9388. '-T SCRIPT'
  9389. Use SCRIPT as the linker script. This option is supported by most
  9390. systems using the GNU linker. On some targets, such as bare-board
  9391. targets without an operating system, the '-T' option may be
  9392. required when linking to avoid references to undefined symbols.
  9393. '-Xlinker OPTION'
  9394. Pass OPTION as an option to the linker. You can use this to supply
  9395. system-specific linker options that GCC does not recognize.
  9396. If you want to pass an option that takes a separate argument, you
  9397. must use '-Xlinker' twice, once for the option and once for the
  9398. argument. For example, to pass '-assert definitions', you must
  9399. write '-Xlinker -assert -Xlinker definitions'. It does not work to
  9400. write '-Xlinker "-assert definitions"', because this passes the
  9401. entire string as a single argument, which is not what the linker
  9402. expects.
  9403. When using the GNU linker, it is usually more convenient to pass
  9404. arguments to linker options using the 'OPTION=VALUE' syntax than as
  9405. separate arguments. For example, you can specify '-Xlinker
  9406. -Map=output.map' rather than '-Xlinker -Map -Xlinker output.map'.
  9407. Other linkers may not support this syntax for command-line options.
  9408. '-Wl,OPTION'
  9409. Pass OPTION as an option to the linker. If OPTION contains commas,
  9410. it is split into multiple options at the commas. You can use this
  9411. syntax to pass an argument to the option. For example,
  9412. '-Wl,-Map,output.map' passes '-Map output.map' to the linker. When
  9413. using the GNU linker, you can also get the same effect with
  9414. '-Wl,-Map=output.map'.
  9415. '-u SYMBOL'
  9416. Pretend the symbol SYMBOL is undefined, to force linking of library
  9417. modules to define it. You can use '-u' multiple times with
  9418. different symbols to force loading of additional library modules.
  9419. '-z KEYWORD'
  9420. '-z' is passed directly on to the linker along with the keyword
  9421. KEYWORD. See the section in the documentation of your linker for
  9422. permitted values and their meanings.
  9423. ---------- Footnotes ----------
  9424. (1) On some systems, 'gcc -shared' needs to build supplementary stub
  9425. code for constructors to work. On multi-libbed systems, 'gcc -shared'
  9426. must select the correct support libraries to link against. Failing to
  9427. supply the correct flags may lead to subtle defects. Supplying them in
  9428. cases where they are not necessary is innocuous.
  9429. 
  9430. File: gcc.info, Node: Directory Options, Next: Code Gen Options, Prev: Link Options, Up: Invoking GCC
  9431. 3.15 Options for Directory Search
  9432. =================================
  9433. These options specify directories to search for header files, for
  9434. libraries and for parts of the compiler:
  9435. '-I DIR'
  9436. '-iquote DIR'
  9437. '-isystem DIR'
  9438. '-idirafter DIR'
  9439. Add the directory DIR to the list of directories to be searched for
  9440. header files during preprocessing. If DIR begins with '=', then
  9441. the '=' is replaced by the sysroot prefix; see '--sysroot' and
  9442. '-isysroot'.
  9443. Directories specified with '-iquote' apply only to the quote form
  9444. of the directive, '#include "FILE"'. Directories specified with
  9445. '-I', '-isystem', or '-idirafter' apply to lookup for both the
  9446. '#include "FILE"' and '#include <FILE>' directives.
  9447. You can specify any number or combination of these options on the
  9448. command line to search for header files in several directories.
  9449. The lookup order is as follows:
  9450. 1. For the quote form of the include directive, the directory of
  9451. the current file is searched first.
  9452. 2. For the quote form of the include directive, the directories
  9453. specified by '-iquote' options are searched in left-to-right
  9454. order, as they appear on the command line.
  9455. 3. Directories specified with '-I' options are scanned in
  9456. left-to-right order.
  9457. 4. Directories specified with '-isystem' options are scanned in
  9458. left-to-right order.
  9459. 5. Standard system directories are scanned.
  9460. 6. Directories specified with '-idirafter' options are scanned in
  9461. left-to-right order.
  9462. You can use '-I' to override a system header file, substituting
  9463. your own version, since these directories are searched before the
  9464. standard system header file directories. However, you should not
  9465. use this option to add directories that contain vendor-supplied
  9466. system header files; use '-isystem' for that.
  9467. The '-isystem' and '-idirafter' options also mark the directory as
  9468. a system directory, so that it gets the same special treatment that
  9469. is applied to the standard system directories.
  9470. If a standard system include directory, or a directory specified
  9471. with '-isystem', is also specified with '-I', the '-I' option is
  9472. ignored. The directory is still searched but as a system directory
  9473. at its normal position in the system include chain. This is to
  9474. ensure that GCC's procedure to fix buggy system headers and the
  9475. ordering for the '#include_next' directive are not inadvertently
  9476. changed. If you really need to change the search order for system
  9477. directories, use the '-nostdinc' and/or '-isystem' options.
  9478. '-I-'
  9479. Split the include path. This option has been deprecated. Please
  9480. use '-iquote' instead for '-I' directories before the '-I-' and
  9481. remove the '-I-' option.
  9482. Any directories specified with '-I' options before '-I-' are
  9483. searched only for headers requested with '#include "FILE"'; they
  9484. are not searched for '#include <FILE>'. If additional directories
  9485. are specified with '-I' options after the '-I-', those directories
  9486. are searched for all '#include' directives.
  9487. In addition, '-I-' inhibits the use of the directory of the current
  9488. file directory as the first search directory for '#include "FILE"'.
  9489. There is no way to override this effect of '-I-'.
  9490. '-iprefix PREFIX'
  9491. Specify PREFIX as the prefix for subsequent '-iwithprefix' options.
  9492. If the prefix represents a directory, you should include the final
  9493. '/'.
  9494. '-iwithprefix DIR'
  9495. '-iwithprefixbefore DIR'
  9496. Append DIR to the prefix specified previously with '-iprefix', and
  9497. add the resulting directory to the include search path.
  9498. '-iwithprefixbefore' puts it in the same place '-I' would;
  9499. '-iwithprefix' puts it where '-idirafter' would.
  9500. '-isysroot DIR'
  9501. This option is like the '--sysroot' option, but applies only to
  9502. header files (except for Darwin targets, where it applies to both
  9503. header files and libraries). See the '--sysroot' option for more
  9504. information.
  9505. '-imultilib DIR'
  9506. Use DIR as a subdirectory of the directory containing
  9507. target-specific C++ headers.
  9508. '-nostdinc'
  9509. Do not search the standard system directories for header files.
  9510. Only the directories explicitly specified with '-I', '-iquote',
  9511. '-isystem', and/or '-idirafter' options (and the directory of the
  9512. current file, if appropriate) are searched.
  9513. '-nostdinc++'
  9514. Do not search for header files in the C++-specific standard
  9515. directories, but do still search the other standard directories.
  9516. (This option is used when building the C++ library.)
  9517. '-iplugindir=DIR'
  9518. Set the directory to search for plugins that are passed by
  9519. '-fplugin=NAME' instead of '-fplugin=PATH/NAME.so'. This option is
  9520. not meant to be used by the user, but only passed by the driver.
  9521. '-LDIR'
  9522. Add directory DIR to the list of directories to be searched for
  9523. '-l'.
  9524. '-BPREFIX'
  9525. This option specifies where to find the executables, libraries,
  9526. include files, and data files of the compiler itself.
  9527. The compiler driver program runs one or more of the subprograms
  9528. 'cpp', 'cc1', 'as' and 'ld'. It tries PREFIX as a prefix for each
  9529. program it tries to run, both with and without 'MACHINE/VERSION/'
  9530. for the corresponding target machine and compiler version.
  9531. For each subprogram to be run, the compiler driver first tries the
  9532. '-B' prefix, if any. If that name is not found, or if '-B' is not
  9533. specified, the driver tries two standard prefixes, '/usr/lib/gcc/'
  9534. and '/usr/local/lib/gcc/'. If neither of those results in a file
  9535. name that is found, the unmodified program name is searched for
  9536. using the directories specified in your 'PATH' environment
  9537. variable.
  9538. The compiler checks to see if the path provided by '-B' refers to a
  9539. directory, and if necessary it adds a directory separator character
  9540. at the end of the path.
  9541. '-B' prefixes that effectively specify directory names also apply
  9542. to libraries in the linker, because the compiler translates these
  9543. options into '-L' options for the linker. They also apply to
  9544. include files in the preprocessor, because the compiler translates
  9545. these options into '-isystem' options for the preprocessor. In
  9546. this case, the compiler appends 'include' to the prefix.
  9547. The runtime support file 'libgcc.a' can also be searched for using
  9548. the '-B' prefix, if needed. If it is not found there, the two
  9549. standard prefixes above are tried, and that is all. The file is
  9550. left out of the link if it is not found by those means.
  9551. Another way to specify a prefix much like the '-B' prefix is to use
  9552. the environment variable 'GCC_EXEC_PREFIX'. *Note Environment
  9553. Variables::.
  9554. As a special kludge, if the path provided by '-B' is
  9555. '[dir/]stageN/', where N is a number in the range 0 to 9, then it
  9556. is replaced by '[dir/]include'. This is to help with
  9557. boot-strapping the compiler.
  9558. '-no-canonical-prefixes'
  9559. Do not expand any symbolic links, resolve references to '/../' or
  9560. '/./', or make the path absolute when generating a relative prefix.
  9561. '--sysroot=DIR'
  9562. Use DIR as the logical root directory for headers and libraries.
  9563. For example, if the compiler normally searches for headers in
  9564. '/usr/include' and libraries in '/usr/lib', it instead searches
  9565. 'DIR/usr/include' and 'DIR/usr/lib'.
  9566. If you use both this option and the '-isysroot' option, then the
  9567. '--sysroot' option applies to libraries, but the '-isysroot' option
  9568. applies to header files.
  9569. The GNU linker (beginning with version 2.16) has the necessary
  9570. support for this option. If your linker does not support this
  9571. option, the header file aspect of '--sysroot' still works, but the
  9572. library aspect does not.
  9573. '--no-sysroot-suffix'
  9574. For some targets, a suffix is added to the root directory specified
  9575. with '--sysroot', depending on the other options used, so that
  9576. headers may for example be found in 'DIR/SUFFIX/usr/include'
  9577. instead of 'DIR/usr/include'. This option disables the addition of
  9578. such a suffix.
  9579. 
  9580. File: gcc.info, Node: Code Gen Options, Next: Developer Options, Prev: Directory Options, Up: Invoking GCC
  9581. 3.16 Options for Code Generation Conventions
  9582. ============================================
  9583. These machine-independent options control the interface conventions used
  9584. in code generation.
  9585. Most of them have both positive and negative forms; the negative form
  9586. of '-ffoo' is '-fno-foo'. In the table below, only one of the forms is
  9587. listed--the one that is not the default. You can figure out the other
  9588. form by either removing 'no-' or adding it.
  9589. '-fstack-reuse=REUSE-LEVEL'
  9590. This option controls stack space reuse for user declared local/auto
  9591. variables and compiler generated temporaries. REUSE_LEVEL can be
  9592. 'all', 'named_vars', or 'none'. 'all' enables stack reuse for all
  9593. local variables and temporaries, 'named_vars' enables the reuse
  9594. only for user defined local variables with names, and 'none'
  9595. disables stack reuse completely. The default value is 'all'. The
  9596. option is needed when the program extends the lifetime of a scoped
  9597. local variable or a compiler generated temporary beyond the end
  9598. point defined by the language. When a lifetime of a variable ends,
  9599. and if the variable lives in memory, the optimizing compiler has
  9600. the freedom to reuse its stack space with other temporaries or
  9601. scoped local variables whose live range does not overlap with it.
  9602. Legacy code extending local lifetime is likely to break with the
  9603. stack reuse optimization.
  9604. For example,
  9605. int *p;
  9606. {
  9607. int local1;
  9608. p = &local1;
  9609. local1 = 10;
  9610. ....
  9611. }
  9612. {
  9613. int local2;
  9614. local2 = 20;
  9615. ...
  9616. }
  9617. if (*p == 10) // out of scope use of local1
  9618. {
  9619. }
  9620. Another example:
  9621. struct A
  9622. {
  9623. A(int k) : i(k), j(k) { }
  9624. int i;
  9625. int j;
  9626. };
  9627. A *ap;
  9628. void foo(const A& ar)
  9629. {
  9630. ap = &ar;
  9631. }
  9632. void bar()
  9633. {
  9634. foo(A(10)); // temp object's lifetime ends when foo returns
  9635. {
  9636. A a(20);
  9637. ....
  9638. }
  9639. ap->i+= 10; // ap references out of scope temp whose space
  9640. // is reused with a. What is the value of ap->i?
  9641. }
  9642. The lifetime of a compiler generated temporary is well defined by
  9643. the C++ standard. When a lifetime of a temporary ends, and if the
  9644. temporary lives in memory, the optimizing compiler has the freedom
  9645. to reuse its stack space with other temporaries or scoped local
  9646. variables whose live range does not overlap with it. However some
  9647. of the legacy code relies on the behavior of older compilers in
  9648. which temporaries' stack space is not reused, the aggressive stack
  9649. reuse can lead to runtime errors. This option is used to control
  9650. the temporary stack reuse optimization.
  9651. '-ftrapv'
  9652. This option generates traps for signed overflow on addition,
  9653. subtraction, multiplication operations. The options '-ftrapv' and
  9654. '-fwrapv' override each other, so using '-ftrapv' '-fwrapv' on the
  9655. command-line results in '-fwrapv' being effective. Note that only
  9656. active options override, so using '-ftrapv' '-fwrapv' '-fno-wrapv'
  9657. on the command-line results in '-ftrapv' being effective.
  9658. '-fwrapv'
  9659. This option instructs the compiler to assume that signed arithmetic
  9660. overflow of addition, subtraction and multiplication wraps around
  9661. using twos-complement representation. This flag enables some
  9662. optimizations and disables others. The options '-ftrapv' and
  9663. '-fwrapv' override each other, so using '-ftrapv' '-fwrapv' on the
  9664. command-line results in '-fwrapv' being effective. Note that only
  9665. active options override, so using '-ftrapv' '-fwrapv' '-fno-wrapv'
  9666. on the command-line results in '-ftrapv' being effective.
  9667. '-fexceptions'
  9668. Enable exception handling. Generates extra code needed to
  9669. propagate exceptions. For some targets, this implies GCC generates
  9670. frame unwind information for all functions, which can produce
  9671. significant data size overhead, although it does not affect
  9672. execution. If you do not specify this option, GCC enables it by
  9673. default for languages like C++ that normally require exception
  9674. handling, and disables it for languages like C that do not normally
  9675. require it. However, you may need to enable this option when
  9676. compiling C code that needs to interoperate properly with exception
  9677. handlers written in C++. You may also wish to disable this option
  9678. if you are compiling older C++ programs that don't use exception
  9679. handling.
  9680. '-fnon-call-exceptions'
  9681. Generate code that allows trapping instructions to throw
  9682. exceptions. Note that this requires platform-specific runtime
  9683. support that does not exist everywhere. Moreover, it only allows
  9684. _trapping_ instructions to throw exceptions, i.e. memory references
  9685. or floating-point instructions. It does not allow exceptions to be
  9686. thrown from arbitrary signal handlers such as 'SIGALRM'.
  9687. '-fdelete-dead-exceptions'
  9688. Consider that instructions that may throw exceptions but don't
  9689. otherwise contribute to the execution of the program can be
  9690. optimized away. This option is enabled by default for the Ada
  9691. front end, as permitted by the Ada language specification.
  9692. Optimization passes that cause dead exceptions to be removed are
  9693. enabled independently at different optimization levels.
  9694. '-funwind-tables'
  9695. Similar to '-fexceptions', except that it just generates any needed
  9696. static data, but does not affect the generated code in any other
  9697. way. You normally do not need to enable this option; instead, a
  9698. language processor that needs this handling enables it on your
  9699. behalf.
  9700. '-fasynchronous-unwind-tables'
  9701. Generate unwind table in DWARF format, if supported by target
  9702. machine. The table is exact at each instruction boundary, so it
  9703. can be used for stack unwinding from asynchronous events (such as
  9704. debugger or garbage collector).
  9705. '-fno-gnu-unique'
  9706. On systems with recent GNU assembler and C library, the C++
  9707. compiler uses the 'STB_GNU_UNIQUE' binding to make sure that
  9708. definitions of template static data members and static local
  9709. variables in inline functions are unique even in the presence of
  9710. 'RTLD_LOCAL'; this is necessary to avoid problems with a library
  9711. used by two different 'RTLD_LOCAL' plugins depending on a
  9712. definition in one of them and therefore disagreeing with the other
  9713. one about the binding of the symbol. But this causes 'dlclose' to
  9714. be ignored for affected DSOs; if your program relies on
  9715. reinitialization of a DSO via 'dlclose' and 'dlopen', you can use
  9716. '-fno-gnu-unique'.
  9717. '-fpcc-struct-return'
  9718. Return "short" 'struct' and 'union' values in memory like longer
  9719. ones, rather than in registers. This convention is less efficient,
  9720. but it has the advantage of allowing intercallability between
  9721. GCC-compiled files and files compiled with other compilers,
  9722. particularly the Portable C Compiler (pcc).
  9723. The precise convention for returning structures in memory depends
  9724. on the target configuration macros.
  9725. Short structures and unions are those whose size and alignment
  9726. match that of some integer type.
  9727. *Warning:* code compiled with the '-fpcc-struct-return' switch is
  9728. not binary compatible with code compiled with the
  9729. '-freg-struct-return' switch. Use it to conform to a non-default
  9730. application binary interface.
  9731. '-freg-struct-return'
  9732. Return 'struct' and 'union' values in registers when possible.
  9733. This is more efficient for small structures than
  9734. '-fpcc-struct-return'.
  9735. If you specify neither '-fpcc-struct-return' nor
  9736. '-freg-struct-return', GCC defaults to whichever convention is
  9737. standard for the target. If there is no standard convention, GCC
  9738. defaults to '-fpcc-struct-return', except on targets where GCC is
  9739. the principal compiler. In those cases, we can choose the
  9740. standard, and we chose the more efficient register return
  9741. alternative.
  9742. *Warning:* code compiled with the '-freg-struct-return' switch is
  9743. not binary compatible with code compiled with the
  9744. '-fpcc-struct-return' switch. Use it to conform to a non-default
  9745. application binary interface.
  9746. '-fshort-enums'
  9747. Allocate to an 'enum' type only as many bytes as it needs for the
  9748. declared range of possible values. Specifically, the 'enum' type
  9749. is equivalent to the smallest integer type that has enough room.
  9750. *Warning:* the '-fshort-enums' switch causes GCC to generate code
  9751. that is not binary compatible with code generated without that
  9752. switch. Use it to conform to a non-default application binary
  9753. interface.
  9754. '-fshort-wchar'
  9755. Override the underlying type for 'wchar_t' to be 'short unsigned
  9756. int' instead of the default for the target. This option is useful
  9757. for building programs to run under WINE.
  9758. *Warning:* the '-fshort-wchar' switch causes GCC to generate code
  9759. that is not binary compatible with code generated without that
  9760. switch. Use it to conform to a non-default application binary
  9761. interface.
  9762. '-fno-common'
  9763. In C code, this option controls the placement of global variables
  9764. defined without an initializer, known as "tentative definitions" in
  9765. the C standard. Tentative definitions are distinct from
  9766. declarations of a variable with the 'extern' keyword, which do not
  9767. allocate storage.
  9768. Unix C compilers have traditionally allocated storage for
  9769. uninitialized global variables in a common block. This allows the
  9770. linker to resolve all tentative definitions of the same variable in
  9771. different compilation units to the same object, or to a
  9772. non-tentative definition. This is the behavior specified by
  9773. '-fcommon', and is the default for GCC on most targets. On the
  9774. other hand, this behavior is not required by ISO C, and on some
  9775. targets may carry a speed or code size penalty on variable
  9776. references.
  9777. The '-fno-common' option specifies that the compiler should instead
  9778. place uninitialized global variables in the data section of the
  9779. object file. This inhibits the merging of tentative definitions by
  9780. the linker so you get a multiple-definition error if the same
  9781. variable is defined in more than one compilation unit. Compiling
  9782. with '-fno-common' is useful on targets for which it provides
  9783. better performance, or if you wish to verify that the program will
  9784. work on other systems that always treat uninitialized variable
  9785. definitions this way.
  9786. '-fno-ident'
  9787. Ignore the '#ident' directive.
  9788. '-finhibit-size-directive'
  9789. Don't output a '.size' assembler directive, or anything else that
  9790. would cause trouble if the function is split in the middle, and the
  9791. two halves are placed at locations far apart in memory. This
  9792. option is used when compiling 'crtstuff.c'; you should not need to
  9793. use it for anything else.
  9794. '-fverbose-asm'
  9795. Put extra commentary information in the generated assembly code to
  9796. make it more readable. This option is generally only of use to
  9797. those who actually need to read the generated assembly code
  9798. (perhaps while debugging the compiler itself).
  9799. '-fno-verbose-asm', the default, causes the extra information to be
  9800. omitted and is useful when comparing two assembler files.
  9801. The added comments include:
  9802. * information on the compiler version and command-line options,
  9803. * the source code lines associated with the assembly
  9804. instructions, in the form FILENAME:LINENUMBER:CONTENT OF LINE,
  9805. * hints on which high-level expressions correspond to the
  9806. various assembly instruction operands.
  9807. For example, given this C source file:
  9808. int test (int n)
  9809. {
  9810. int i;
  9811. int total = 0;
  9812. for (i = 0; i < n; i++)
  9813. total += i * i;
  9814. return total;
  9815. }
  9816. compiling to (x86_64) assembly via '-S' and emitting the result
  9817. direct to stdout via '-o' '-'
  9818. gcc -S test.c -fverbose-asm -Os -o -
  9819. gives output similar to this:
  9820. .file "test.c"
  9821. # GNU C11 (GCC) version 7.0.0 20160809 (experimental) (x86_64-pc-linux-gnu)
  9822. [...snip...]
  9823. # options passed:
  9824. [...snip...]
  9825. .text
  9826. .globl test
  9827. .type test, @function
  9828. test:
  9829. .LFB0:
  9830. .cfi_startproc
  9831. # test.c:4: int total = 0;
  9832. xorl %eax, %eax # <retval>
  9833. # test.c:6: for (i = 0; i < n; i++)
  9834. xorl %edx, %edx # i
  9835. .L2:
  9836. # test.c:6: for (i = 0; i < n; i++)
  9837. cmpl %edi, %edx # n, i
  9838. jge .L5 #,
  9839. # test.c:7: total += i * i;
  9840. movl %edx, %ecx # i, tmp92
  9841. imull %edx, %ecx # i, tmp92
  9842. # test.c:6: for (i = 0; i < n; i++)
  9843. incl %edx # i
  9844. # test.c:7: total += i * i;
  9845. addl %ecx, %eax # tmp92, <retval>
  9846. jmp .L2 #
  9847. .L5:
  9848. # test.c:10: }
  9849. ret
  9850. .cfi_endproc
  9851. .LFE0:
  9852. .size test, .-test
  9853. .ident "GCC: (GNU) 7.0.0 20160809 (experimental)"
  9854. .section .note.GNU-stack,"",@progbits
  9855. The comments are intended for humans rather than machines and hence
  9856. the precise format of the comments is subject to change.
  9857. '-frecord-gcc-switches'
  9858. This switch causes the command line used to invoke the compiler to
  9859. be recorded into the object file that is being created. This
  9860. switch is only implemented on some targets and the exact format of
  9861. the recording is target and binary file format dependent, but it
  9862. usually takes the form of a section containing ASCII text. This
  9863. switch is related to the '-fverbose-asm' switch, but that switch
  9864. only records information in the assembler output file as comments,
  9865. so it never reaches the object file. See also
  9866. '-grecord-gcc-switches' for another way of storing compiler options
  9867. into the object file.
  9868. '-fpic'
  9869. Generate position-independent code (PIC) suitable for use in a
  9870. shared library, if supported for the target machine. Such code
  9871. accesses all constant addresses through a global offset table
  9872. (GOT). The dynamic loader resolves the GOT entries when the
  9873. program starts (the dynamic loader is not part of GCC; it is part
  9874. of the operating system). If the GOT size for the linked
  9875. executable exceeds a machine-specific maximum size, you get an
  9876. error message from the linker indicating that '-fpic' does not
  9877. work; in that case, recompile with '-fPIC' instead. (These
  9878. maximums are 8k on the SPARC, 28k on AArch64 and 32k on the m68k
  9879. and RS/6000. The x86 has no such limit.)
  9880. Position-independent code requires special support, and therefore
  9881. works only on certain machines. For the x86, GCC supports PIC for
  9882. System V but not for the Sun 386i. Code generated for the IBM
  9883. RS/6000 is always position-independent.
  9884. When this flag is set, the macros '__pic__' and '__PIC__' are
  9885. defined to 1.
  9886. '-fPIC'
  9887. If supported for the target machine, emit position-independent
  9888. code, suitable for dynamic linking and avoiding any limit on the
  9889. size of the global offset table. This option makes a difference on
  9890. AArch64, m68k, PowerPC and SPARC.
  9891. Position-independent code requires special support, and therefore
  9892. works only on certain machines.
  9893. When this flag is set, the macros '__pic__' and '__PIC__' are
  9894. defined to 2.
  9895. '-fpie'
  9896. '-fPIE'
  9897. These options are similar to '-fpic' and '-fPIC', but generated
  9898. position independent code can be only linked into executables.
  9899. Usually these options are used when '-pie' GCC option is used
  9900. during linking.
  9901. '-fpie' and '-fPIE' both define the macros '__pie__' and '__PIE__'.
  9902. The macros have the value 1 for '-fpie' and 2 for '-fPIE'.
  9903. '-fno-plt'
  9904. Do not use the PLT for external function calls in
  9905. position-independent code. Instead, load the callee address at
  9906. call sites from the GOT and branch to it. This leads to more
  9907. efficient code by eliminating PLT stubs and exposing GOT loads to
  9908. optimizations. On architectures such as 32-bit x86 where PLT stubs
  9909. expect the GOT pointer in a specific register, this gives more
  9910. register allocation freedom to the compiler. Lazy binding requires
  9911. use of the PLT; with '-fno-plt' all external symbols are resolved
  9912. at load time.
  9913. Alternatively, the function attribute 'noplt' can be used to avoid
  9914. calls through the PLT for specific external functions.
  9915. In position-dependent code, a few targets also convert calls to
  9916. functions that are marked to not use the PLT to use the GOT
  9917. instead.
  9918. '-fno-jump-tables'
  9919. Do not use jump tables for switch statements even where it would be
  9920. more efficient than other code generation strategies. This option
  9921. is of use in conjunction with '-fpic' or '-fPIC' for building code
  9922. that forms part of a dynamic linker and cannot reference the
  9923. address of a jump table. On some targets, jump tables do not
  9924. require a GOT and this option is not needed.
  9925. '-ffixed-REG'
  9926. Treat the register named REG as a fixed register; generated code
  9927. should never refer to it (except perhaps as a stack pointer, frame
  9928. pointer or in some other fixed role).
  9929. REG must be the name of a register. The register names accepted
  9930. are machine-specific and are defined in the 'REGISTER_NAMES' macro
  9931. in the machine description macro file.
  9932. This flag does not have a negative form, because it specifies a
  9933. three-way choice.
  9934. '-fcall-used-REG'
  9935. Treat the register named REG as an allocable register that is
  9936. clobbered by function calls. It may be allocated for temporaries
  9937. or variables that do not live across a call. Functions compiled
  9938. this way do not save and restore the register REG.
  9939. It is an error to use this flag with the frame pointer or stack
  9940. pointer. Use of this flag for other registers that have fixed
  9941. pervasive roles in the machine's execution model produces
  9942. disastrous results.
  9943. This flag does not have a negative form, because it specifies a
  9944. three-way choice.
  9945. '-fcall-saved-REG'
  9946. Treat the register named REG as an allocable register saved by
  9947. functions. It may be allocated even for temporaries or variables
  9948. that live across a call. Functions compiled this way save and
  9949. restore the register REG if they use it.
  9950. It is an error to use this flag with the frame pointer or stack
  9951. pointer. Use of this flag for other registers that have fixed
  9952. pervasive roles in the machine's execution model produces
  9953. disastrous results.
  9954. A different sort of disaster results from the use of this flag for
  9955. a register in which function values may be returned.
  9956. This flag does not have a negative form, because it specifies a
  9957. three-way choice.
  9958. '-fpack-struct[=N]'
  9959. Without a value specified, pack all structure members together
  9960. without holes. When a value is specified (which must be a small
  9961. power of two), pack structure members according to this value,
  9962. representing the maximum alignment (that is, objects with default
  9963. alignment requirements larger than this are output potentially
  9964. unaligned at the next fitting location.
  9965. *Warning:* the '-fpack-struct' switch causes GCC to generate code
  9966. that is not binary compatible with code generated without that
  9967. switch. Additionally, it makes the code suboptimal. Use it to
  9968. conform to a non-default application binary interface.
  9969. '-fleading-underscore'
  9970. This option and its counterpart, '-fno-leading-underscore',
  9971. forcibly change the way C symbols are represented in the object
  9972. file. One use is to help link with legacy assembly code.
  9973. *Warning:* the '-fleading-underscore' switch causes GCC to generate
  9974. code that is not binary compatible with code generated without that
  9975. switch. Use it to conform to a non-default application binary
  9976. interface. Not all targets provide complete support for this
  9977. switch.
  9978. '-ftls-model=MODEL'
  9979. Alter the thread-local storage model to be used (*note
  9980. Thread-Local::). The MODEL argument should be one of
  9981. 'global-dynamic', 'local-dynamic', 'initial-exec' or 'local-exec'.
  9982. Note that the choice is subject to optimization: the compiler may
  9983. use a more efficient model for symbols not visible outside of the
  9984. translation unit, or if '-fpic' is not given on the command line.
  9985. The default without '-fpic' is 'initial-exec'; with '-fpic' the
  9986. default is 'global-dynamic'.
  9987. '-ftrampolines'
  9988. For targets that normally need trampolines for nested functions,
  9989. always generate them instead of using descriptors. Otherwise, for
  9990. targets that do not need them, like for example HP-PA or IA-64, do
  9991. nothing.
  9992. A trampoline is a small piece of code that is created at run time
  9993. on the stack when the address of a nested function is taken, and is
  9994. used to call the nested function indirectly. Therefore, it
  9995. requires the stack to be made executable in order for the program
  9996. to work properly.
  9997. '-fno-trampolines' is enabled by default on a language by language
  9998. basis to let the compiler avoid generating them, if it computes
  9999. that this is safe, and replace them with descriptors. Descriptors
  10000. are made up of data only, but the generated code must be prepared
  10001. to deal with them. As of this writing, '-fno-trampolines' is
  10002. enabled by default only for Ada.
  10003. Moreover, code compiled with '-ftrampolines' and code compiled with
  10004. '-fno-trampolines' are not binary compatible if nested functions
  10005. are present. This option must therefore be used on a program-wide
  10006. basis and be manipulated with extreme care.
  10007. '-fvisibility=[default|internal|hidden|protected]'
  10008. Set the default ELF image symbol visibility to the specified
  10009. option--all symbols are marked with this unless overridden within
  10010. the code. Using this feature can very substantially improve
  10011. linking and load times of shared object libraries, produce more
  10012. optimized code, provide near-perfect API export and prevent symbol
  10013. clashes. It is *strongly* recommended that you use this in any
  10014. shared objects you distribute.
  10015. Despite the nomenclature, 'default' always means public; i.e.,
  10016. available to be linked against from outside the shared object.
  10017. 'protected' and 'internal' are pretty useless in real-world usage
  10018. so the only other commonly used option is 'hidden'. The default if
  10019. '-fvisibility' isn't specified is 'default', i.e., make every
  10020. symbol public.
  10021. A good explanation of the benefits offered by ensuring ELF symbols
  10022. have the correct visibility is given by "How To Write Shared
  10023. Libraries" by Ulrich Drepper (which can be found at
  10024. <https://www.akkadia.org/drepper/>)--however a superior solution
  10025. made possible by this option to marking things hidden when the
  10026. default is public is to make the default hidden and mark things
  10027. public. This is the norm with DLLs on Windows and with
  10028. '-fvisibility=hidden' and '__attribute__ ((visibility("default")))'
  10029. instead of '__declspec(dllexport)' you get almost identical
  10030. semantics with identical syntax. This is a great boon to those
  10031. working with cross-platform projects.
  10032. For those adding visibility support to existing code, you may find
  10033. '#pragma GCC visibility' of use. This works by you enclosing the
  10034. declarations you wish to set visibility for with (for example)
  10035. '#pragma GCC visibility push(hidden)' and '#pragma GCC visibility
  10036. pop'. Bear in mind that symbol visibility should be viewed *as
  10037. part of the API interface contract* and thus all new code should
  10038. always specify visibility when it is not the default; i.e.,
  10039. declarations only for use within the local DSO should *always* be
  10040. marked explicitly as hidden as so to avoid PLT indirection
  10041. overheads--making this abundantly clear also aids readability and
  10042. self-documentation of the code. Note that due to ISO C++
  10043. specification requirements, 'operator new' and 'operator delete'
  10044. must always be of default visibility.
  10045. Be aware that headers from outside your project, in particular
  10046. system headers and headers from any other library you use, may not
  10047. be expecting to be compiled with visibility other than the default.
  10048. You may need to explicitly say '#pragma GCC visibility
  10049. push(default)' before including any such headers.
  10050. 'extern' declarations are not affected by '-fvisibility', so a lot
  10051. of code can be recompiled with '-fvisibility=hidden' with no
  10052. modifications. However, this means that calls to 'extern'
  10053. functions with no explicit visibility use the PLT, so it is more
  10054. effective to use '__attribute ((visibility))' and/or '#pragma GCC
  10055. visibility' to tell the compiler which 'extern' declarations should
  10056. be treated as hidden.
  10057. Note that '-fvisibility' does affect C++ vague linkage entities.
  10058. This means that, for instance, an exception class that is be thrown
  10059. between DSOs must be explicitly marked with default visibility so
  10060. that the 'type_info' nodes are unified between the DSOs.
  10061. An overview of these techniques, their benefits and how to use them
  10062. is at <http://gcc.gnu.org/wiki/Visibility>.
  10063. '-fstrict-volatile-bitfields'
  10064. This option should be used if accesses to volatile bit-fields (or
  10065. other structure fields, although the compiler usually honors those
  10066. types anyway) should use a single access of the width of the
  10067. field's type, aligned to a natural alignment if possible. For
  10068. example, targets with memory-mapped peripheral registers might
  10069. require all such accesses to be 16 bits wide; with this flag you
  10070. can declare all peripheral bit-fields as 'unsigned short' (assuming
  10071. short is 16 bits on these targets) to force GCC to use 16-bit
  10072. accesses instead of, perhaps, a more efficient 32-bit access.
  10073. If this option is disabled, the compiler uses the most efficient
  10074. instruction. In the previous example, that might be a 32-bit load
  10075. instruction, even though that accesses bytes that do not contain
  10076. any portion of the bit-field, or memory-mapped registers unrelated
  10077. to the one being updated.
  10078. In some cases, such as when the 'packed' attribute is applied to a
  10079. structure field, it may not be possible to access the field with a
  10080. single read or write that is correctly aligned for the target
  10081. machine. In this case GCC falls back to generating multiple
  10082. accesses rather than code that will fault or truncate the result at
  10083. run time.
  10084. Note: Due to restrictions of the C/C++11 memory model, write
  10085. accesses are not allowed to touch non bit-field members. It is
  10086. therefore recommended to define all bits of the field's type as
  10087. bit-field members.
  10088. The default value of this option is determined by the application
  10089. binary interface for the target processor.
  10090. '-fsync-libcalls'
  10091. This option controls whether any out-of-line instance of the
  10092. '__sync' family of functions may be used to implement the C++11
  10093. '__atomic' family of functions.
  10094. The default value of this option is enabled, thus the only useful
  10095. form of the option is '-fno-sync-libcalls'. This option is used in
  10096. the implementation of the 'libatomic' runtime library.
  10097. 
  10098. File: gcc.info, Node: Developer Options, Next: Submodel Options, Prev: Code Gen Options, Up: Invoking GCC
  10099. 3.17 GCC Developer Options
  10100. ==========================
  10101. This section describes command-line options that are primarily of
  10102. interest to GCC developers, including options to support compiler
  10103. testing and investigation of compiler bugs and compile-time performance
  10104. problems. This includes options that produce debug dumps at various
  10105. points in the compilation; that print statistics such as memory use and
  10106. execution time; and that print information about GCC's configuration,
  10107. such as where it searches for libraries. You should rarely need to use
  10108. any of these options for ordinary compilation and linking tasks.
  10109. '-dLETTERS'
  10110. '-fdump-rtl-PASS'
  10111. '-fdump-rtl-PASS=FILENAME'
  10112. Says to make debugging dumps during compilation at times specified
  10113. by LETTERS. This is used for debugging the RTL-based passes of the
  10114. compiler. The file names for most of the dumps are made by
  10115. appending a pass number and a word to the DUMPNAME, and the files
  10116. are created in the directory of the output file. In case of
  10117. '=FILENAME' option, the dump is output on the given file instead of
  10118. the pass numbered dump files. Note that the pass number is
  10119. assigned as passes are registered into the pass manager. Most
  10120. passes are registered in the order that they will execute and for
  10121. these passes the number corresponds to the pass execution order.
  10122. However, passes registered by plugins, passes specific to
  10123. compilation targets, or passes that are otherwise registered after
  10124. all the other passes are numbered higher than a pass named "final",
  10125. even if they are executed earlier. DUMPNAME is generated from the
  10126. name of the output file if explicitly specified and not an
  10127. executable, otherwise it is the basename of the source file.
  10128. Some '-dLETTERS' switches have different meaning when '-E' is used
  10129. for preprocessing. *Note Preprocessor Options::, for information
  10130. about preprocessor-specific dump options.
  10131. Debug dumps can be enabled with a '-fdump-rtl' switch or some '-d'
  10132. option LETTERS. Here are the possible letters for use in PASS and
  10133. LETTERS, and their meanings:
  10134. '-fdump-rtl-alignments'
  10135. Dump after branch alignments have been computed.
  10136. '-fdump-rtl-asmcons'
  10137. Dump after fixing rtl statements that have unsatisfied in/out
  10138. constraints.
  10139. '-fdump-rtl-auto_inc_dec'
  10140. Dump after auto-inc-dec discovery. This pass is only run on
  10141. architectures that have auto inc or auto dec instructions.
  10142. '-fdump-rtl-barriers'
  10143. Dump after cleaning up the barrier instructions.
  10144. '-fdump-rtl-bbpart'
  10145. Dump after partitioning hot and cold basic blocks.
  10146. '-fdump-rtl-bbro'
  10147. Dump after block reordering.
  10148. '-fdump-rtl-btl1'
  10149. '-fdump-rtl-btl2'
  10150. '-fdump-rtl-btl1' and '-fdump-rtl-btl2' enable dumping after
  10151. the two branch target load optimization passes.
  10152. '-fdump-rtl-bypass'
  10153. Dump after jump bypassing and control flow optimizations.
  10154. '-fdump-rtl-combine'
  10155. Dump after the RTL instruction combination pass.
  10156. '-fdump-rtl-compgotos'
  10157. Dump after duplicating the computed gotos.
  10158. '-fdump-rtl-ce1'
  10159. '-fdump-rtl-ce2'
  10160. '-fdump-rtl-ce3'
  10161. '-fdump-rtl-ce1', '-fdump-rtl-ce2', and '-fdump-rtl-ce3'
  10162. enable dumping after the three if conversion passes.
  10163. '-fdump-rtl-cprop_hardreg'
  10164. Dump after hard register copy propagation.
  10165. '-fdump-rtl-csa'
  10166. Dump after combining stack adjustments.
  10167. '-fdump-rtl-cse1'
  10168. '-fdump-rtl-cse2'
  10169. '-fdump-rtl-cse1' and '-fdump-rtl-cse2' enable dumping after
  10170. the two common subexpression elimination passes.
  10171. '-fdump-rtl-dce'
  10172. Dump after the standalone dead code elimination passes.
  10173. '-fdump-rtl-dbr'
  10174. Dump after delayed branch scheduling.
  10175. '-fdump-rtl-dce1'
  10176. '-fdump-rtl-dce2'
  10177. '-fdump-rtl-dce1' and '-fdump-rtl-dce2' enable dumping after
  10178. the two dead store elimination passes.
  10179. '-fdump-rtl-eh'
  10180. Dump after finalization of EH handling code.
  10181. '-fdump-rtl-eh_ranges'
  10182. Dump after conversion of EH handling range regions.
  10183. '-fdump-rtl-expand'
  10184. Dump after RTL generation.
  10185. '-fdump-rtl-fwprop1'
  10186. '-fdump-rtl-fwprop2'
  10187. '-fdump-rtl-fwprop1' and '-fdump-rtl-fwprop2' enable dumping
  10188. after the two forward propagation passes.
  10189. '-fdump-rtl-gcse1'
  10190. '-fdump-rtl-gcse2'
  10191. '-fdump-rtl-gcse1' and '-fdump-rtl-gcse2' enable dumping after
  10192. global common subexpression elimination.
  10193. '-fdump-rtl-init-regs'
  10194. Dump after the initialization of the registers.
  10195. '-fdump-rtl-initvals'
  10196. Dump after the computation of the initial value sets.
  10197. '-fdump-rtl-into_cfglayout'
  10198. Dump after converting to cfglayout mode.
  10199. '-fdump-rtl-ira'
  10200. Dump after iterated register allocation.
  10201. '-fdump-rtl-jump'
  10202. Dump after the second jump optimization.
  10203. '-fdump-rtl-loop2'
  10204. '-fdump-rtl-loop2' enables dumping after the rtl loop
  10205. optimization passes.
  10206. '-fdump-rtl-mach'
  10207. Dump after performing the machine dependent reorganization
  10208. pass, if that pass exists.
  10209. '-fdump-rtl-mode_sw'
  10210. Dump after removing redundant mode switches.
  10211. '-fdump-rtl-rnreg'
  10212. Dump after register renumbering.
  10213. '-fdump-rtl-outof_cfglayout'
  10214. Dump after converting from cfglayout mode.
  10215. '-fdump-rtl-peephole2'
  10216. Dump after the peephole pass.
  10217. '-fdump-rtl-postreload'
  10218. Dump after post-reload optimizations.
  10219. '-fdump-rtl-pro_and_epilogue'
  10220. Dump after generating the function prologues and epilogues.
  10221. '-fdump-rtl-sched1'
  10222. '-fdump-rtl-sched2'
  10223. '-fdump-rtl-sched1' and '-fdump-rtl-sched2' enable dumping
  10224. after the basic block scheduling passes.
  10225. '-fdump-rtl-ree'
  10226. Dump after sign/zero extension elimination.
  10227. '-fdump-rtl-seqabstr'
  10228. Dump after common sequence discovery.
  10229. '-fdump-rtl-shorten'
  10230. Dump after shortening branches.
  10231. '-fdump-rtl-sibling'
  10232. Dump after sibling call optimizations.
  10233. '-fdump-rtl-split1'
  10234. '-fdump-rtl-split2'
  10235. '-fdump-rtl-split3'
  10236. '-fdump-rtl-split4'
  10237. '-fdump-rtl-split5'
  10238. These options enable dumping after five rounds of instruction
  10239. splitting.
  10240. '-fdump-rtl-sms'
  10241. Dump after modulo scheduling. This pass is only run on some
  10242. architectures.
  10243. '-fdump-rtl-stack'
  10244. Dump after conversion from GCC's "flat register file"
  10245. registers to the x87's stack-like registers. This pass is
  10246. only run on x86 variants.
  10247. '-fdump-rtl-subreg1'
  10248. '-fdump-rtl-subreg2'
  10249. '-fdump-rtl-subreg1' and '-fdump-rtl-subreg2' enable dumping
  10250. after the two subreg expansion passes.
  10251. '-fdump-rtl-unshare'
  10252. Dump after all rtl has been unshared.
  10253. '-fdump-rtl-vartrack'
  10254. Dump after variable tracking.
  10255. '-fdump-rtl-vregs'
  10256. Dump after converting virtual registers to hard registers.
  10257. '-fdump-rtl-web'
  10258. Dump after live range splitting.
  10259. '-fdump-rtl-regclass'
  10260. '-fdump-rtl-subregs_of_mode_init'
  10261. '-fdump-rtl-subregs_of_mode_finish'
  10262. '-fdump-rtl-dfinit'
  10263. '-fdump-rtl-dfinish'
  10264. These dumps are defined but always produce empty files.
  10265. '-da'
  10266. '-fdump-rtl-all'
  10267. Produce all the dumps listed above.
  10268. '-dA'
  10269. Annotate the assembler output with miscellaneous debugging
  10270. information.
  10271. '-dD'
  10272. Dump all macro definitions, at the end of preprocessing, in
  10273. addition to normal output.
  10274. '-dH'
  10275. Produce a core dump whenever an error occurs.
  10276. '-dp'
  10277. Annotate the assembler output with a comment indicating which
  10278. pattern and alternative is used. The length of each
  10279. instruction is also printed.
  10280. '-dP'
  10281. Dump the RTL in the assembler output as a comment before each
  10282. instruction. Also turns on '-dp' annotation.
  10283. '-dx'
  10284. Just generate RTL for a function instead of compiling it.
  10285. Usually used with '-fdump-rtl-expand'.
  10286. '-fdump-noaddr'
  10287. When doing debugging dumps, suppress address output. This makes it
  10288. more feasible to use diff on debugging dumps for compiler
  10289. invocations with different compiler binaries and/or different text
  10290. / bss / data / heap / stack / dso start locations.
  10291. '-freport-bug'
  10292. Collect and dump debug information into a temporary file if an
  10293. internal compiler error (ICE) occurs.
  10294. '-fdump-unnumbered'
  10295. When doing debugging dumps, suppress instruction numbers and
  10296. address output. This makes it more feasible to use diff on
  10297. debugging dumps for compiler invocations with different options, in
  10298. particular with and without '-g'.
  10299. '-fdump-unnumbered-links'
  10300. When doing debugging dumps (see '-d' option above), suppress
  10301. instruction numbers for the links to the previous and next
  10302. instructions in a sequence.
  10303. '-fdump-translation-unit (C++ only)'
  10304. '-fdump-translation-unit-OPTIONS (C++ only)'
  10305. Dump a representation of the tree structure for the entire
  10306. translation unit to a file. The file name is made by appending
  10307. '.tu' to the source file name, and the file is created in the same
  10308. directory as the output file. If the '-OPTIONS' form is used,
  10309. OPTIONS controls the details of the dump as described for the
  10310. '-fdump-tree' options.
  10311. '-fdump-class-hierarchy (C++ only)'
  10312. '-fdump-class-hierarchy-OPTIONS (C++ only)'
  10313. Dump a representation of each class's hierarchy and virtual
  10314. function table layout to a file. The file name is made by
  10315. appending '.class' to the source file name, and the file is created
  10316. in the same directory as the output file. If the '-OPTIONS' form
  10317. is used, OPTIONS controls the details of the dump as described for
  10318. the '-fdump-tree' options.
  10319. '-fdump-ipa-SWITCH'
  10320. Control the dumping at various stages of inter-procedural analysis
  10321. language tree to a file. The file name is generated by appending a
  10322. switch specific suffix to the source file name, and the file is
  10323. created in the same directory as the output file. The following
  10324. dumps are possible:
  10325. 'all'
  10326. Enables all inter-procedural analysis dumps.
  10327. 'cgraph'
  10328. Dumps information about call-graph optimization, unused
  10329. function removal, and inlining decisions.
  10330. 'inline'
  10331. Dump after function inlining.
  10332. '-fdump-passes'
  10333. Print on 'stderr' the list of optimization passes that are turned
  10334. on and off by the current command-line options.
  10335. '-fdump-statistics-OPTION'
  10336. Enable and control dumping of pass statistics in a separate file.
  10337. The file name is generated by appending a suffix ending in
  10338. '.statistics' to the source file name, and the file is created in
  10339. the same directory as the output file. If the '-OPTION' form is
  10340. used, '-stats' causes counters to be summed over the whole
  10341. compilation unit while '-details' dumps every event as the passes
  10342. generate them. The default with no option is to sum counters for
  10343. each function compiled.
  10344. '-fdump-tree-all'
  10345. '-fdump-tree-SWITCH'
  10346. '-fdump-tree-SWITCH-OPTIONS'
  10347. '-fdump-tree-SWITCH-OPTIONS=FILENAME'
  10348. Control the dumping at various stages of processing the
  10349. intermediate language tree to a file. The file name is generated
  10350. by appending a switch-specific suffix to the source file name, and
  10351. the file is created in the same directory as the output file. In
  10352. case of '=FILENAME' option, the dump is output on the given file
  10353. instead of the auto named dump files. If the '-OPTIONS' form is
  10354. used, OPTIONS is a list of '-' separated options which control the
  10355. details of the dump. Not all options are applicable to all dumps;
  10356. those that are not meaningful are ignored. The following options
  10357. are available
  10358. 'address'
  10359. Print the address of each node. Usually this is not
  10360. meaningful as it changes according to the environment and
  10361. source file. Its primary use is for tying up a dump file with
  10362. a debug environment.
  10363. 'asmname'
  10364. If 'DECL_ASSEMBLER_NAME' has been set for a given decl, use
  10365. that in the dump instead of 'DECL_NAME'. Its primary use is
  10366. ease of use working backward from mangled names in the
  10367. assembly file.
  10368. 'slim'
  10369. When dumping front-end intermediate representations, inhibit
  10370. dumping of members of a scope or body of a function merely
  10371. because that scope has been reached. Only dump such items
  10372. when they are directly reachable by some other path.
  10373. When dumping pretty-printed trees, this option inhibits
  10374. dumping the bodies of control structures.
  10375. When dumping RTL, print the RTL in slim (condensed) form
  10376. instead of the default LISP-like representation.
  10377. 'raw'
  10378. Print a raw representation of the tree. By default, trees are
  10379. pretty-printed into a C-like representation.
  10380. 'details'
  10381. Enable more detailed dumps (not honored by every dump option).
  10382. Also include information from the optimization passes.
  10383. 'stats'
  10384. Enable dumping various statistics about the pass (not honored
  10385. by every dump option).
  10386. 'blocks'
  10387. Enable showing basic block boundaries (disabled in raw dumps).
  10388. 'graph'
  10389. For each of the other indicated dump files
  10390. ('-fdump-rtl-PASS'), dump a representation of the control flow
  10391. graph suitable for viewing with GraphViz to
  10392. 'FILE.PASSID.PASS.dot'. Each function in the file is
  10393. pretty-printed as a subgraph, so that GraphViz can render them
  10394. all in a single plot.
  10395. This option currently only works for RTL dumps, and the RTL is
  10396. always dumped in slim form.
  10397. 'vops'
  10398. Enable showing virtual operands for every statement.
  10399. 'lineno'
  10400. Enable showing line numbers for statements.
  10401. 'uid'
  10402. Enable showing the unique ID ('DECL_UID') for each variable.
  10403. 'verbose'
  10404. Enable showing the tree dump for each statement.
  10405. 'eh'
  10406. Enable showing the EH region number holding each statement.
  10407. 'scev'
  10408. Enable showing scalar evolution analysis details.
  10409. 'optimized'
  10410. Enable showing optimization information (only available in
  10411. certain passes).
  10412. 'missed'
  10413. Enable showing missed optimization information (only available
  10414. in certain passes).
  10415. 'note'
  10416. Enable other detailed optimization information (only available
  10417. in certain passes).
  10418. '=FILENAME'
  10419. Instead of an auto named dump file, output into the given file
  10420. name. The file names 'stdout' and 'stderr' are treated
  10421. specially and are considered already open standard streams.
  10422. For example,
  10423. gcc -O2 -ftree-vectorize -fdump-tree-vect-blocks=foo.dump
  10424. -fdump-tree-pre=/dev/stderr file.c
  10425. outputs vectorizer dump into 'foo.dump', while the PRE dump is
  10426. output on to 'stderr'. If two conflicting dump filenames are
  10427. given for the same pass, then the latter option overrides the
  10428. earlier one.
  10429. 'all'
  10430. Turn on all options, except 'raw', 'slim', 'verbose' and
  10431. 'lineno'.
  10432. 'optall'
  10433. Turn on all optimization options, i.e., 'optimized', 'missed',
  10434. and 'note'.
  10435. To determine what tree dumps are available or find the dump for a
  10436. pass of interest follow the steps below.
  10437. 1. Invoke GCC with '-fdump-passes' and in the 'stderr' output
  10438. look for a code that corresponds to the pass you are
  10439. interested in. For example, the codes 'tree-evrp',
  10440. 'tree-vrp1', and 'tree-vrp2' correspond to the three Value
  10441. Range Propagation passes. The number at the end distinguishes
  10442. distinct invocations of the same pass.
  10443. 2. To enable the creation of the dump file, append the pass code
  10444. to the '-fdump-' option prefix and invoke GCC with it. For
  10445. example, to enable the dump from the Early Value Range
  10446. Propagation pass, invoke GCC with the '-fdump-tree-evrp'
  10447. option. Optionally, you may specify the name of the dump
  10448. file. If you don't specify one, GCC creates as described
  10449. below.
  10450. 3. Find the pass dump in a file whose name is composed of three
  10451. components separated by a period: the name of the source file
  10452. GCC was invoked to compile, a numeric suffix indicating the
  10453. pass number followed by the letter 't' for tree passes (and
  10454. the letter 'r' for RTL passes), and finally the pass code.
  10455. For example, the Early VRP pass dump might be in a file named
  10456. 'myfile.c.038t.evrp' in the current working directory. Note
  10457. that the numeric codes are not stable and may change from one
  10458. version of GCC to another.
  10459. '-fopt-info'
  10460. '-fopt-info-OPTIONS'
  10461. '-fopt-info-OPTIONS=FILENAME'
  10462. Controls optimization dumps from various optimization passes. If
  10463. the '-OPTIONS' form is used, OPTIONS is a list of '-' separated
  10464. option keywords to select the dump details and optimizations.
  10465. The OPTIONS can be divided into two groups: options describing the
  10466. verbosity of the dump, and options describing which optimizations
  10467. should be included. The options from both the groups can be freely
  10468. mixed as they are non-overlapping. However, in case of any
  10469. conflicts, the later options override the earlier options on the
  10470. command line.
  10471. The following options control the dump verbosity:
  10472. 'optimized'
  10473. Print information when an optimization is successfully
  10474. applied. It is up to a pass to decide which information is
  10475. relevant. For example, the vectorizer passes print the source
  10476. location of loops which are successfully vectorized.
  10477. 'missed'
  10478. Print information about missed optimizations. Individual
  10479. passes control which information to include in the output.
  10480. 'note'
  10481. Print verbose information about optimizations, such as certain
  10482. transformations, more detailed messages about decisions etc.
  10483. 'all'
  10484. Print detailed optimization information. This includes
  10485. 'optimized', 'missed', and 'note'.
  10486. One or more of the following option keywords can be used to
  10487. describe a group of optimizations:
  10488. 'ipa'
  10489. Enable dumps from all interprocedural optimizations.
  10490. 'loop'
  10491. Enable dumps from all loop optimizations.
  10492. 'inline'
  10493. Enable dumps from all inlining optimizations.
  10494. 'omp'
  10495. Enable dumps from all OMP (Offloading and Multi Processing)
  10496. optimizations.
  10497. 'vec'
  10498. Enable dumps from all vectorization optimizations.
  10499. 'optall'
  10500. Enable dumps from all optimizations. This is a superset of
  10501. the optimization groups listed above.
  10502. If OPTIONS is omitted, it defaults to 'optimized-optall', which
  10503. means to dump all info about successful optimizations from all the
  10504. passes.
  10505. If the FILENAME is provided, then the dumps from all the applicable
  10506. optimizations are concatenated into the FILENAME. Otherwise the
  10507. dump is output onto 'stderr'. Though multiple '-fopt-info' options
  10508. are accepted, only one of them can include a FILENAME. If other
  10509. filenames are provided then all but the first such option are
  10510. ignored.
  10511. Note that the output FILENAME is overwritten in case of multiple
  10512. translation units. If a combined output from multiple translation
  10513. units is desired, 'stderr' should be used instead.
  10514. In the following example, the optimization info is output to
  10515. 'stderr':
  10516. gcc -O3 -fopt-info
  10517. This example:
  10518. gcc -O3 -fopt-info-missed=missed.all
  10519. outputs missed optimization report from all the passes into
  10520. 'missed.all', and this one:
  10521. gcc -O2 -ftree-vectorize -fopt-info-vec-missed
  10522. prints information about missed optimization opportunities from
  10523. vectorization passes on 'stderr'. Note that
  10524. '-fopt-info-vec-missed' is equivalent to '-fopt-info-missed-vec'.
  10525. As another example,
  10526. gcc -O3 -fopt-info-inline-optimized-missed=inline.txt
  10527. outputs information about missed optimizations as well as optimized
  10528. locations from all the inlining passes into 'inline.txt'.
  10529. Finally, consider:
  10530. gcc -fopt-info-vec-missed=vec.miss -fopt-info-loop-optimized=loop.opt
  10531. Here the two output filenames 'vec.miss' and 'loop.opt' are in
  10532. conflict since only one output file is allowed. In this case, only
  10533. the first option takes effect and the subsequent options are
  10534. ignored. Thus only 'vec.miss' is produced which contains dumps
  10535. from the vectorizer about missed opportunities.
  10536. '-fsched-verbose=N'
  10537. On targets that use instruction scheduling, this option controls
  10538. the amount of debugging output the scheduler prints to the dump
  10539. files.
  10540. For N greater than zero, '-fsched-verbose' outputs the same
  10541. information as '-fdump-rtl-sched1' and '-fdump-rtl-sched2'. For N
  10542. greater than one, it also output basic block probabilities,
  10543. detailed ready list information and unit/insn info. For N greater
  10544. than two, it includes RTL at abort point, control-flow and regions
  10545. info. And for N over four, '-fsched-verbose' also includes
  10546. dependence info.
  10547. '-fenable-KIND-PASS'
  10548. '-fdisable-KIND-PASS=RANGE-LIST'
  10549. This is a set of options that are used to explicitly disable/enable
  10550. optimization passes. These options are intended for use for
  10551. debugging GCC. Compiler users should use regular options for
  10552. enabling/disabling passes instead.
  10553. '-fdisable-ipa-PASS'
  10554. Disable IPA pass PASS. PASS is the pass name. If the same
  10555. pass is statically invoked in the compiler multiple times, the
  10556. pass name should be appended with a sequential number starting
  10557. from 1.
  10558. '-fdisable-rtl-PASS'
  10559. '-fdisable-rtl-PASS=RANGE-LIST'
  10560. Disable RTL pass PASS. PASS is the pass name. If the same
  10561. pass is statically invoked in the compiler multiple times, the
  10562. pass name should be appended with a sequential number starting
  10563. from 1. RANGE-LIST is a comma-separated list of function
  10564. ranges or assembler names. Each range is a number pair
  10565. separated by a colon. The range is inclusive in both ends.
  10566. If the range is trivial, the number pair can be simplified as
  10567. a single number. If the function's call graph node's UID
  10568. falls within one of the specified ranges, the PASS is disabled
  10569. for that function. The UID is shown in the function header of
  10570. a dump file, and the pass names can be dumped by using option
  10571. '-fdump-passes'.
  10572. '-fdisable-tree-PASS'
  10573. '-fdisable-tree-PASS=RANGE-LIST'
  10574. Disable tree pass PASS. See '-fdisable-rtl' for the
  10575. description of option arguments.
  10576. '-fenable-ipa-PASS'
  10577. Enable IPA pass PASS. PASS is the pass name. If the same
  10578. pass is statically invoked in the compiler multiple times, the
  10579. pass name should be appended with a sequential number starting
  10580. from 1.
  10581. '-fenable-rtl-PASS'
  10582. '-fenable-rtl-PASS=RANGE-LIST'
  10583. Enable RTL pass PASS. See '-fdisable-rtl' for option argument
  10584. description and examples.
  10585. '-fenable-tree-PASS'
  10586. '-fenable-tree-PASS=RANGE-LIST'
  10587. Enable tree pass PASS. See '-fdisable-rtl' for the
  10588. description of option arguments.
  10589. Here are some examples showing uses of these options.
  10590. # disable ccp1 for all functions
  10591. -fdisable-tree-ccp1
  10592. # disable complete unroll for function whose cgraph node uid is 1
  10593. -fenable-tree-cunroll=1
  10594. # disable gcse2 for functions at the following ranges [1,1],
  10595. # [300,400], and [400,1000]
  10596. # disable gcse2 for functions foo and foo2
  10597. -fdisable-rtl-gcse2=foo,foo2
  10598. # disable early inlining
  10599. -fdisable-tree-einline
  10600. # disable ipa inlining
  10601. -fdisable-ipa-inline
  10602. # enable tree full unroll
  10603. -fenable-tree-unroll
  10604. '-fchecking'
  10605. '-fchecking=N'
  10606. Enable internal consistency checking. The default depends on the
  10607. compiler configuration. '-fchecking=2' enables further internal
  10608. consistency checking that might affect code generation.
  10609. '-frandom-seed=STRING'
  10610. This option provides a seed that GCC uses in place of random
  10611. numbers in generating certain symbol names that have to be
  10612. different in every compiled file. It is also used to place unique
  10613. stamps in coverage data files and the object files that produce
  10614. them. You can use the '-frandom-seed' option to produce
  10615. reproducibly identical object files.
  10616. The STRING can either be a number (decimal, octal or hex) or an
  10617. arbitrary string (in which case it's converted to a number by
  10618. computing CRC32).
  10619. The STRING should be different for every file you compile.
  10620. '-save-temps'
  10621. '-save-temps=cwd'
  10622. Store the usual "temporary" intermediate files permanently; place
  10623. them in the current directory and name them based on the source
  10624. file. Thus, compiling 'foo.c' with '-c -save-temps' produces files
  10625. 'foo.i' and 'foo.s', as well as 'foo.o'. This creates a
  10626. preprocessed 'foo.i' output file even though the compiler now
  10627. normally uses an integrated preprocessor.
  10628. When used in combination with the '-x' command-line option,
  10629. '-save-temps' is sensible enough to avoid over writing an input
  10630. source file with the same extension as an intermediate file. The
  10631. corresponding intermediate file may be obtained by renaming the
  10632. source file before using '-save-temps'.
  10633. If you invoke GCC in parallel, compiling several different source
  10634. files that share a common base name in different subdirectories or
  10635. the same source file compiled for multiple output destinations, it
  10636. is likely that the different parallel compilers will interfere with
  10637. each other, and overwrite the temporary files. For instance:
  10638. gcc -save-temps -o outdir1/foo.o indir1/foo.c&
  10639. gcc -save-temps -o outdir2/foo.o indir2/foo.c&
  10640. may result in 'foo.i' and 'foo.o' being written to simultaneously
  10641. by both compilers.
  10642. '-save-temps=obj'
  10643. Store the usual "temporary" intermediate files permanently. If the
  10644. '-o' option is used, the temporary files are based on the object
  10645. file. If the '-o' option is not used, the '-save-temps=obj' switch
  10646. behaves like '-save-temps'.
  10647. For example:
  10648. gcc -save-temps=obj -c foo.c
  10649. gcc -save-temps=obj -c bar.c -o dir/xbar.o
  10650. gcc -save-temps=obj foobar.c -o dir2/yfoobar
  10651. creates 'foo.i', 'foo.s', 'dir/xbar.i', 'dir/xbar.s',
  10652. 'dir2/yfoobar.i', 'dir2/yfoobar.s', and 'dir2/yfoobar.o'.
  10653. '-time[=FILE]'
  10654. Report the CPU time taken by each subprocess in the compilation
  10655. sequence. For C source files, this is the compiler proper and
  10656. assembler (plus the linker if linking is done).
  10657. Without the specification of an output file, the output looks like
  10658. this:
  10659. # cc1 0.12 0.01
  10660. # as 0.00 0.01
  10661. The first number on each line is the "user time", that is time
  10662. spent executing the program itself. The second number is "system
  10663. time", time spent executing operating system routines on behalf of
  10664. the program. Both numbers are in seconds.
  10665. With the specification of an output file, the output is appended to
  10666. the named file, and it looks like this:
  10667. 0.12 0.01 cc1 OPTIONS
  10668. 0.00 0.01 as OPTIONS
  10669. The "user time" and the "system time" are moved before the program
  10670. name, and the options passed to the program are displayed, so that
  10671. one can later tell what file was being compiled, and with which
  10672. options.
  10673. '-fdump-final-insns[=FILE]'
  10674. Dump the final internal representation (RTL) to FILE. If the
  10675. optional argument is omitted (or if FILE is '.'), the name of the
  10676. dump file is determined by appending '.gkd' to the compilation
  10677. output file name.
  10678. '-fcompare-debug[=OPTS]'
  10679. If no error occurs during compilation, run the compiler a second
  10680. time, adding OPTS and '-fcompare-debug-second' to the arguments
  10681. passed to the second compilation. Dump the final internal
  10682. representation in both compilations, and print an error if they
  10683. differ.
  10684. If the equal sign is omitted, the default '-gtoggle' is used.
  10685. The environment variable 'GCC_COMPARE_DEBUG', if defined, non-empty
  10686. and nonzero, implicitly enables '-fcompare-debug'. If
  10687. 'GCC_COMPARE_DEBUG' is defined to a string starting with a dash,
  10688. then it is used for OPTS, otherwise the default '-gtoggle' is used.
  10689. '-fcompare-debug=', with the equal sign but without OPTS, is
  10690. equivalent to '-fno-compare-debug', which disables the dumping of
  10691. the final representation and the second compilation, preventing
  10692. even 'GCC_COMPARE_DEBUG' from taking effect.
  10693. To verify full coverage during '-fcompare-debug' testing, set
  10694. 'GCC_COMPARE_DEBUG' to say '-fcompare-debug-not-overridden', which
  10695. GCC rejects as an invalid option in any actual compilation (rather
  10696. than preprocessing, assembly or linking). To get just a warning,
  10697. setting 'GCC_COMPARE_DEBUG' to '-w%n-fcompare-debug not overridden'
  10698. will do.
  10699. '-fcompare-debug-second'
  10700. This option is implicitly passed to the compiler for the second
  10701. compilation requested by '-fcompare-debug', along with options to
  10702. silence warnings, and omitting other options that would cause
  10703. side-effect compiler outputs to files or to the standard output.
  10704. Dump files and preserved temporary files are renamed so as to
  10705. contain the '.gk' additional extension during the second
  10706. compilation, to avoid overwriting those generated by the first.
  10707. When this option is passed to the compiler driver, it causes the
  10708. _first_ compilation to be skipped, which makes it useful for little
  10709. other than debugging the compiler proper.
  10710. '-gtoggle'
  10711. Turn off generation of debug info, if leaving out this option
  10712. generates it, or turn it on at level 2 otherwise. The position of
  10713. this argument in the command line does not matter; it takes effect
  10714. after all other options are processed, and it does so only once, no
  10715. matter how many times it is given. This is mainly intended to be
  10716. used with '-fcompare-debug'.
  10717. '-fvar-tracking-assignments-toggle'
  10718. Toggle '-fvar-tracking-assignments', in the same way that
  10719. '-gtoggle' toggles '-g'.
  10720. '-Q'
  10721. Makes the compiler print out each function name as it is compiled,
  10722. and print some statistics about each pass when it finishes.
  10723. '-ftime-report'
  10724. Makes the compiler print some statistics about the time consumed by
  10725. each pass when it finishes.
  10726. '-ftime-report-details'
  10727. Record the time consumed by infrastructure parts separately for
  10728. each pass.
  10729. '-fira-verbose=N'
  10730. Control the verbosity of the dump file for the integrated register
  10731. allocator. The default value is 5. If the value N is greater or
  10732. equal to 10, the dump output is sent to stderr using the same
  10733. format as N minus 10.
  10734. '-flto-report'
  10735. Prints a report with internal details on the workings of the
  10736. link-time optimizer. The contents of this report vary from version
  10737. to version. It is meant to be useful to GCC developers when
  10738. processing object files in LTO mode (via '-flto').
  10739. Disabled by default.
  10740. '-flto-report-wpa'
  10741. Like '-flto-report', but only print for the WPA phase of Link Time
  10742. Optimization.
  10743. '-fmem-report'
  10744. Makes the compiler print some statistics about permanent memory
  10745. allocation when it finishes.
  10746. '-fmem-report-wpa'
  10747. Makes the compiler print some statistics about permanent memory
  10748. allocation for the WPA phase only.
  10749. '-fpre-ipa-mem-report'
  10750. '-fpost-ipa-mem-report'
  10751. Makes the compiler print some statistics about permanent memory
  10752. allocation before or after interprocedural optimization.
  10753. '-fprofile-report'
  10754. Makes the compiler print some statistics about consistency of the
  10755. (estimated) profile and effect of individual passes.
  10756. '-fstack-usage'
  10757. Makes the compiler output stack usage information for the program,
  10758. on a per-function basis. The filename for the dump is made by
  10759. appending '.su' to the AUXNAME. AUXNAME is generated from the name
  10760. of the output file, if explicitly specified and it is not an
  10761. executable, otherwise it is the basename of the source file. An
  10762. entry is made up of three fields:
  10763. * The name of the function.
  10764. * A number of bytes.
  10765. * One or more qualifiers: 'static', 'dynamic', 'bounded'.
  10766. The qualifier 'static' means that the function manipulates the
  10767. stack statically: a fixed number of bytes are allocated for the
  10768. frame on function entry and released on function exit; no stack
  10769. adjustments are otherwise made in the function. The second field
  10770. is this fixed number of bytes.
  10771. The qualifier 'dynamic' means that the function manipulates the
  10772. stack dynamically: in addition to the static allocation described
  10773. above, stack adjustments are made in the body of the function, for
  10774. example to push/pop arguments around function calls. If the
  10775. qualifier 'bounded' is also present, the amount of these
  10776. adjustments is bounded at compile time and the second field is an
  10777. upper bound of the total amount of stack used by the function. If
  10778. it is not present, the amount of these adjustments is not bounded
  10779. at compile time and the second field only represents the bounded
  10780. part.
  10781. '-fstats'
  10782. Emit statistics about front-end processing at the end of the
  10783. compilation. This option is supported only by the C++ front end,
  10784. and the information is generally only useful to the G++ development
  10785. team.
  10786. '-fdbg-cnt-list'
  10787. Print the name and the counter upper bound for all debug counters.
  10788. '-fdbg-cnt=COUNTER-VALUE-LIST'
  10789. Set the internal debug counter upper bound. COUNTER-VALUE-LIST is
  10790. a comma-separated list of NAME:VALUE pairs which sets the upper
  10791. bound of each debug counter NAME to VALUE. All debug counters have
  10792. the initial upper bound of 'UINT_MAX'; thus 'dbg_cnt' returns true
  10793. always unless the upper bound is set by this option. For example,
  10794. with '-fdbg-cnt=dce:10,tail_call:0', 'dbg_cnt(dce)' returns true
  10795. only for first 10 invocations.
  10796. '-print-file-name=LIBRARY'
  10797. Print the full absolute name of the library file LIBRARY that would
  10798. be used when linking--and don't do anything else. With this
  10799. option, GCC does not compile or link anything; it just prints the
  10800. file name.
  10801. '-print-multi-directory'
  10802. Print the directory name corresponding to the multilib selected by
  10803. any other switches present in the command line. This directory is
  10804. supposed to exist in 'GCC_EXEC_PREFIX'.
  10805. '-print-multi-lib'
  10806. Print the mapping from multilib directory names to compiler
  10807. switches that enable them. The directory name is separated from
  10808. the switches by ';', and each switch starts with an '@' instead of
  10809. the '-', without spaces between multiple switches. This is
  10810. supposed to ease shell processing.
  10811. '-print-multi-os-directory'
  10812. Print the path to OS libraries for the selected multilib, relative
  10813. to some 'lib' subdirectory. If OS libraries are present in the
  10814. 'lib' subdirectory and no multilibs are used, this is usually just
  10815. '.', if OS libraries are present in 'libSUFFIX' sibling directories
  10816. this prints e.g. '../lib64', '../lib' or '../lib32', or if OS
  10817. libraries are present in 'lib/SUBDIR' subdirectories it prints e.g.
  10818. 'amd64', 'sparcv9' or 'ev6'.
  10819. '-print-multiarch'
  10820. Print the path to OS libraries for the selected multiarch, relative
  10821. to some 'lib' subdirectory.
  10822. '-print-prog-name=PROGRAM'
  10823. Like '-print-file-name', but searches for a program such as 'cpp'.
  10824. '-print-libgcc-file-name'
  10825. Same as '-print-file-name=libgcc.a'.
  10826. This is useful when you use '-nostdlib' or '-nodefaultlibs' but you
  10827. do want to link with 'libgcc.a'. You can do:
  10828. gcc -nostdlib FILES... `gcc -print-libgcc-file-name`
  10829. '-print-search-dirs'
  10830. Print the name of the configured installation directory and a list
  10831. of program and library directories 'gcc' searches--and don't do
  10832. anything else.
  10833. This is useful when 'gcc' prints the error message 'installation
  10834. problem, cannot exec cpp0: No such file or directory'. To resolve
  10835. this you either need to put 'cpp0' and the other compiler
  10836. components where 'gcc' expects to find them, or you can set the
  10837. environment variable 'GCC_EXEC_PREFIX' to the directory where you
  10838. installed them. Don't forget the trailing '/'. *Note Environment
  10839. Variables::.
  10840. '-print-sysroot'
  10841. Print the target sysroot directory that is used during compilation.
  10842. This is the target sysroot specified either at configure time or
  10843. using the '--sysroot' option, possibly with an extra suffix that
  10844. depends on compilation options. If no target sysroot is specified,
  10845. the option prints nothing.
  10846. '-print-sysroot-headers-suffix'
  10847. Print the suffix added to the target sysroot when searching for
  10848. headers, or give an error if the compiler is not configured with
  10849. such a suffix--and don't do anything else.
  10850. '-dumpmachine'
  10851. Print the compiler's target machine (for example,
  10852. 'i686-pc-linux-gnu')--and don't do anything else.
  10853. '-dumpversion'
  10854. Print the compiler version (for example, '3.0', '6.3.0' or
  10855. '7')--and don't do anything else. This is the compiler version
  10856. used in filesystem paths, specs, can be depending on how the
  10857. compiler has been configured just a single number (major version),
  10858. two numbers separated by dot (major and minor version) or three
  10859. numbers separated by dots (major, minor and patchlevel version).
  10860. '-dumpfullversion'
  10861. Print the full compiler version, always 3 numbers separated by
  10862. dots, major, minor and patchlevel version.
  10863. '-dumpspecs'
  10864. Print the compiler's built-in specs--and don't do anything else.
  10865. (This is used when GCC itself is being built.) *Note Spec Files::.
  10866. 
  10867. File: gcc.info, Node: Submodel Options, Next: Spec Files, Prev: Developer Options, Up: Invoking GCC
  10868. 3.18 Machine-Dependent Options
  10869. ==============================
  10870. Each target machine supported by GCC can have its own options--for
  10871. example, to allow you to compile for a particular processor variant or
  10872. ABI, or to control optimizations specific to that machine. By
  10873. convention, the names of machine-specific options start with '-m'.
  10874. Some configurations of the compiler also support additional
  10875. target-specific options, usually for compatibility with other compilers
  10876. on the same platform.
  10877. * Menu:
  10878. * AArch64 Options::
  10879. * Adapteva Epiphany Options::
  10880. * ARC Options::
  10881. * ARM Options::
  10882. * AVR Options::
  10883. * Blackfin Options::
  10884. * C6X Options::
  10885. * CRIS Options::
  10886. * CR16 Options::
  10887. * Darwin Options::
  10888. * DEC Alpha Options::
  10889. * FR30 Options::
  10890. * FT32 Options::
  10891. * FRV Options::
  10892. * GNU/Linux Options::
  10893. * H8/300 Options::
  10894. * HPPA Options::
  10895. * IA-64 Options::
  10896. * LM32 Options::
  10897. * M32C Options::
  10898. * M32R/D Options::
  10899. * M680x0 Options::
  10900. * MCore Options::
  10901. * MeP Options::
  10902. * MicroBlaze Options::
  10903. * MIPS Options::
  10904. * MMIX Options::
  10905. * MN10300 Options::
  10906. * Moxie Options::
  10907. * MSP430 Options::
  10908. * NDS32 Options::
  10909. * Nios II Options::
  10910. * Nvidia PTX Options::
  10911. * PDP-11 Options::
  10912. * picoChip Options::
  10913. * PowerPC Options::
  10914. * RISC-V Options::
  10915. * RL78 Options::
  10916. * RS/6000 and PowerPC Options::
  10917. * RX Options::
  10918. * S/390 and zSeries Options::
  10919. * Score Options::
  10920. * SH Options::
  10921. * Solaris 2 Options::
  10922. * SPARC Options::
  10923. * SPU Options::
  10924. * System V Options::
  10925. * TILE-Gx Options::
  10926. * TILEPro Options::
  10927. * V850 Options::
  10928. * VAX Options::
  10929. * Visium Options::
  10930. * VMS Options::
  10931. * VxWorks Options::
  10932. * x86 Options::
  10933. * x86 Windows Options::
  10934. * Xstormy16 Options::
  10935. * Xtensa Options::
  10936. * zSeries Options::
  10937. 
  10938. File: gcc.info, Node: AArch64 Options, Next: Adapteva Epiphany Options, Up: Submodel Options
  10939. 3.18.1 AArch64 Options
  10940. ----------------------
  10941. These options are defined for AArch64 implementations:
  10942. '-mabi=NAME'
  10943. Generate code for the specified data model. Permissible values are
  10944. 'ilp32' for SysV-like data model where int, long int and pointers
  10945. are 32 bits, and 'lp64' for SysV-like data model where int is 32
  10946. bits, but long int and pointers are 64 bits.
  10947. The default depends on the specific target configuration. Note
  10948. that the LP64 and ILP32 ABIs are not link-compatible; you must
  10949. compile your entire program with the same ABI, and link with a
  10950. compatible set of libraries.
  10951. '-mbig-endian'
  10952. Generate big-endian code. This is the default when GCC is
  10953. configured for an 'aarch64_be-*-*' target.
  10954. '-mgeneral-regs-only'
  10955. Generate code which uses only the general-purpose registers. This
  10956. will prevent the compiler from using floating-point and Advanced
  10957. SIMD registers but will not impose any restrictions on the
  10958. assembler.
  10959. '-mlittle-endian'
  10960. Generate little-endian code. This is the default when GCC is
  10961. configured for an 'aarch64-*-*' but not an 'aarch64_be-*-*' target.
  10962. '-mcmodel=tiny'
  10963. Generate code for the tiny code model. The program and its
  10964. statically defined symbols must be within 1MB of each other.
  10965. Programs can be statically or dynamically linked.
  10966. '-mcmodel=small'
  10967. Generate code for the small code model. The program and its
  10968. statically defined symbols must be within 4GB of each other.
  10969. Programs can be statically or dynamically linked. This is the
  10970. default code model.
  10971. '-mcmodel=large'
  10972. Generate code for the large code model. This makes no assumptions
  10973. about addresses and sizes of sections. Programs can be statically
  10974. linked only.
  10975. '-mstrict-align'
  10976. Avoid generating memory accesses that may not be aligned on a
  10977. natural object boundary as described in the architecture
  10978. specification.
  10979. '-momit-leaf-frame-pointer'
  10980. '-mno-omit-leaf-frame-pointer'
  10981. Omit or keep the frame pointer in leaf functions. The former
  10982. behavior is the default.
  10983. '-mtls-dialect=desc'
  10984. Use TLS descriptors as the thread-local storage mechanism for
  10985. dynamic accesses of TLS variables. This is the default.
  10986. '-mtls-dialect=traditional'
  10987. Use traditional TLS as the thread-local storage mechanism for
  10988. dynamic accesses of TLS variables.
  10989. '-mtls-size=SIZE'
  10990. Specify bit size of immediate TLS offsets. Valid values are 12,
  10991. 24, 32, 48. This option requires binutils 2.26 or newer.
  10992. '-mfix-cortex-a53-835769'
  10993. '-mno-fix-cortex-a53-835769'
  10994. Enable or disable the workaround for the ARM Cortex-A53 erratum
  10995. number 835769. This involves inserting a NOP instruction between
  10996. memory instructions and 64-bit integer multiply-accumulate
  10997. instructions.
  10998. '-mfix-cortex-a53-843419'
  10999. '-mno-fix-cortex-a53-843419'
  11000. Enable or disable the workaround for the ARM Cortex-A53 erratum
  11001. number 843419. This erratum workaround is made at link time and
  11002. this will only pass the corresponding flag to the linker.
  11003. '-mlow-precision-recip-sqrt'
  11004. '-mno-low-precision-recip-sqrt'
  11005. Enable or disable the reciprocal square root approximation. This
  11006. option only has an effect if '-ffast-math' or
  11007. '-funsafe-math-optimizations' is used as well. Enabling this
  11008. reduces precision of reciprocal square root results to about 16
  11009. bits for single precision and to 32 bits for double precision.
  11010. '-mlow-precision-sqrt'
  11011. '-mno-low-precision-sqrt'
  11012. Enable or disable the square root approximation. This option only
  11013. has an effect if '-ffast-math' or '-funsafe-math-optimizations' is
  11014. used as well. Enabling this reduces precision of square root
  11015. results to about 16 bits for single precision and to 32 bits for
  11016. double precision. If enabled, it implies
  11017. '-mlow-precision-recip-sqrt'.
  11018. '-mlow-precision-div'
  11019. '-mno-low-precision-div'
  11020. Enable or disable the division approximation. This option only has
  11021. an effect if '-ffast-math' or '-funsafe-math-optimizations' is used
  11022. as well. Enabling this reduces precision of division results to
  11023. about 16 bits for single precision and to 32 bits for double
  11024. precision.
  11025. '-march=NAME'
  11026. Specify the name of the target architecture and, optionally, one or
  11027. more feature modifiers. This option has the form
  11028. '-march=ARCH{+[no]FEATURE}*'.
  11029. The permissible values for ARCH are 'armv8-a', 'armv8.1-a',
  11030. 'armv8.2-a', 'armv8.3-a' or NATIVE.
  11031. The value 'armv8.3-a' implies 'armv8.2-a' and enables compiler
  11032. support for the ARMv8.3-A architecture extensions.
  11033. The value 'armv8.2-a' implies 'armv8.1-a' and enables compiler
  11034. support for the ARMv8.2-A architecture extensions.
  11035. The value 'armv8.1-a' implies 'armv8-a' and enables compiler
  11036. support for the ARMv8.1-A architecture extension. In particular,
  11037. it enables the '+crc', '+lse', and '+rdma' features.
  11038. The value 'native' is available on native AArch64 GNU/Linux and
  11039. causes the compiler to pick the architecture of the host system.
  11040. This option has no effect if the compiler is unable to recognize
  11041. the architecture of the host system,
  11042. The permissible values for FEATURE are listed in the sub-section on
  11043. *note '-march' and '-mcpu' Feature Modifiers:
  11044. aarch64-feature-modifiers. Where conflicting feature modifiers are
  11045. specified, the right-most feature is used.
  11046. GCC uses NAME to determine what kind of instructions it can emit
  11047. when generating assembly code. If '-march' is specified without
  11048. either of '-mtune' or '-mcpu' also being specified, the code is
  11049. tuned to perform well across a range of target processors
  11050. implementing the target architecture.
  11051. '-mtune=NAME'
  11052. Specify the name of the target processor for which GCC should tune
  11053. the performance of the code. Permissible values for this option
  11054. are: 'generic', 'cortex-a35', 'cortex-a53', 'cortex-a57',
  11055. 'cortex-a72', 'cortex-a73', 'exynos-m1', 'falkor', 'qdf24xx',
  11056. 'xgene1', 'vulcan', 'thunderx', 'thunderxt88', 'thunderxt88p1',
  11057. 'thunderxt81', 'thunderxt83', 'thunderx2t99',
  11058. 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  11059. 'cortex-a73.cortex-a35', 'cortex-a73.cortex-a53', 'native'.
  11060. The values 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  11061. 'cortex-a73.cortex-a35', 'cortex-a73.cortex-a53' specify that GCC
  11062. should tune for a big.LITTLE system.
  11063. Additionally on native AArch64 GNU/Linux systems the value 'native'
  11064. tunes performance to the host system. This option has no effect if
  11065. the compiler is unable to recognize the processor of the host
  11066. system.
  11067. Where none of '-mtune=', '-mcpu=' or '-march=' are specified, the
  11068. code is tuned to perform well across a range of target processors.
  11069. This option cannot be suffixed by feature modifiers.
  11070. '-mcpu=NAME'
  11071. Specify the name of the target processor, optionally suffixed by
  11072. one or more feature modifiers. This option has the form
  11073. '-mcpu=CPU{+[no]FEATURE}*', where the permissible values for CPU
  11074. are the same as those available for '-mtune'. The permissible
  11075. values for FEATURE are documented in the sub-section on *note
  11076. '-march' and '-mcpu' Feature Modifiers: aarch64-feature-modifiers.
  11077. Where conflicting feature modifiers are specified, the right-most
  11078. feature is used.
  11079. GCC uses NAME to determine what kind of instructions it can emit
  11080. when generating assembly code (as if by '-march') and to determine
  11081. the target processor for which to tune for performance (as if by
  11082. '-mtune'). Where this option is used in conjunction with '-march'
  11083. or '-mtune', those options take precedence over the appropriate
  11084. part of this option.
  11085. '-moverride=STRING'
  11086. Override tuning decisions made by the back-end in response to a
  11087. '-mtune=' switch. The syntax, semantics, and accepted values for
  11088. STRING in this option are not guaranteed to be consistent across
  11089. releases.
  11090. This option is only intended to be useful when developing GCC.
  11091. '-mpc-relative-literal-loads'
  11092. '-mno-pc-relative-literal-loads'
  11093. Enable or disable PC-relative literal loads. With this option
  11094. literal pools are accessed using a single instruction and emitted
  11095. after each function. This limits the maximum size of functions to
  11096. 1MB. This is enabled by default for '-mcmodel=tiny'.
  11097. '-msign-return-address=SCOPE'
  11098. Select the function scope on which return address signing will be
  11099. applied. Permissible values are 'none', which disables return
  11100. address signing, 'non-leaf', which enables pointer signing for
  11101. functions which are not leaf functions, and 'all', which enables
  11102. pointer signing for all functions. The default value is 'none'.
  11103. 3.18.1.1 '-march' and '-mcpu' Feature Modifiers
  11104. ...............................................
  11105. Feature modifiers used with '-march' and '-mcpu' can be any of the
  11106. following and their inverses 'noFEATURE':
  11107. 'crc'
  11108. Enable CRC extension. This is on by default for
  11109. '-march=armv8.1-a'.
  11110. 'crypto'
  11111. Enable Crypto extension. This also enables Advanced SIMD and
  11112. floating-point instructions.
  11113. 'fp'
  11114. Enable floating-point instructions. This is on by default for all
  11115. possible values for options '-march' and '-mcpu'.
  11116. 'simd'
  11117. Enable Advanced SIMD instructions. This also enables
  11118. floating-point instructions. This is on by default for all
  11119. possible values for options '-march' and '-mcpu'.
  11120. 'lse'
  11121. Enable Large System Extension instructions. This is on by default
  11122. for '-march=armv8.1-a'.
  11123. 'rdma'
  11124. Enable Round Double Multiply Accumulate instructions. This is on
  11125. by default for '-march=armv8.1-a'.
  11126. 'fp16'
  11127. Enable FP16 extension. This also enables floating-point
  11128. instructions.
  11129. 'rcpc'
  11130. Enable the RcPc extension. This does not change code generation
  11131. from GCC, but is passed on to the assembler, enabling inline asm
  11132. statements to use instructions from the RcPc extension.
  11133. 'dotprod'
  11134. Enable the Dot Product extension. This also enables Advanced SIMD
  11135. instructions.
  11136. Feature 'crypto' implies 'simd', which implies 'fp'. Conversely,
  11137. 'nofp' implies 'nosimd', which implies 'nocrypto'.
  11138. 
  11139. File: gcc.info, Node: Adapteva Epiphany Options, Next: ARC Options, Prev: AArch64 Options, Up: Submodel Options
  11140. 3.18.2 Adapteva Epiphany Options
  11141. --------------------------------
  11142. These '-m' options are defined for Adapteva Epiphany:
  11143. '-mhalf-reg-file'
  11144. Don't allocate any register in the range 'r32'...'r63'. That
  11145. allows code to run on hardware variants that lack these registers.
  11146. '-mprefer-short-insn-regs'
  11147. Preferentially allocate registers that allow short instruction
  11148. generation. This can result in increased instruction count, so
  11149. this may either reduce or increase overall code size.
  11150. '-mbranch-cost=NUM'
  11151. Set the cost of branches to roughly NUM "simple" instructions.
  11152. This cost is only a heuristic and is not guaranteed to produce
  11153. consistent results across releases.
  11154. '-mcmove'
  11155. Enable the generation of conditional moves.
  11156. '-mnops=NUM'
  11157. Emit NUM NOPs before every other generated instruction.
  11158. '-mno-soft-cmpsf'
  11159. For single-precision floating-point comparisons, emit an 'fsub'
  11160. instruction and test the flags. This is faster than a software
  11161. comparison, but can get incorrect results in the presence of NaNs,
  11162. or when two different small numbers are compared such that their
  11163. difference is calculated as zero. The default is '-msoft-cmpsf',
  11164. which uses slower, but IEEE-compliant, software comparisons.
  11165. '-mstack-offset=NUM'
  11166. Set the offset between the top of the stack and the stack pointer.
  11167. E.g., a value of 8 means that the eight bytes in the range
  11168. 'sp+0...sp+7' can be used by leaf functions without stack
  11169. allocation. Values other than '8' or '16' are untested and
  11170. unlikely to work. Note also that this option changes the ABI;
  11171. compiling a program with a different stack offset than the
  11172. libraries have been compiled with generally does not work. This
  11173. option can be useful if you want to evaluate if a different stack
  11174. offset would give you better code, but to actually use a different
  11175. stack offset to build working programs, it is recommended to
  11176. configure the toolchain with the appropriate
  11177. '--with-stack-offset=NUM' option.
  11178. '-mno-round-nearest'
  11179. Make the scheduler assume that the rounding mode has been set to
  11180. truncating. The default is '-mround-nearest'.
  11181. '-mlong-calls'
  11182. If not otherwise specified by an attribute, assume all calls might
  11183. be beyond the offset range of the 'b' / 'bl' instructions, and
  11184. therefore load the function address into a register before
  11185. performing a (otherwise direct) call. This is the default.
  11186. '-mshort-calls'
  11187. If not otherwise specified by an attribute, assume all direct calls
  11188. are in the range of the 'b' / 'bl' instructions, so use these
  11189. instructions for direct calls. The default is '-mlong-calls'.
  11190. '-msmall16'
  11191. Assume addresses can be loaded as 16-bit unsigned values. This
  11192. does not apply to function addresses for which '-mlong-calls'
  11193. semantics are in effect.
  11194. '-mfp-mode=MODE'
  11195. Set the prevailing mode of the floating-point unit. This
  11196. determines the floating-point mode that is provided and expected at
  11197. function call and return time. Making this mode match the mode you
  11198. predominantly need at function start can make your programs smaller
  11199. and faster by avoiding unnecessary mode switches.
  11200. MODE can be set to one the following values:
  11201. 'caller'
  11202. Any mode at function entry is valid, and retained or restored
  11203. when the function returns, and when it calls other functions.
  11204. This mode is useful for compiling libraries or other
  11205. compilation units you might want to incorporate into different
  11206. programs with different prevailing FPU modes, and the
  11207. convenience of being able to use a single object file
  11208. outweighs the size and speed overhead for any extra mode
  11209. switching that might be needed, compared with what would be
  11210. needed with a more specific choice of prevailing FPU mode.
  11211. 'truncate'
  11212. This is the mode used for floating-point calculations with
  11213. truncating (i.e. round towards zero) rounding mode. That
  11214. includes conversion from floating point to integer.
  11215. 'round-nearest'
  11216. This is the mode used for floating-point calculations with
  11217. round-to-nearest-or-even rounding mode.
  11218. 'int'
  11219. This is the mode used to perform integer calculations in the
  11220. FPU, e.g. integer multiply, or integer
  11221. multiply-and-accumulate.
  11222. The default is '-mfp-mode=caller'
  11223. '-mnosplit-lohi'
  11224. '-mno-postinc'
  11225. '-mno-postmodify'
  11226. Code generation tweaks that disable, respectively, splitting of
  11227. 32-bit loads, generation of post-increment addresses, and
  11228. generation of post-modify addresses. The defaults are
  11229. 'msplit-lohi', '-mpost-inc', and '-mpost-modify'.
  11230. '-mnovect-double'
  11231. Change the preferred SIMD mode to SImode. The default is
  11232. '-mvect-double', which uses DImode as preferred SIMD mode.
  11233. '-max-vect-align=NUM'
  11234. The maximum alignment for SIMD vector mode types. NUM may be 4 or
  11235. 8. The default is 8. Note that this is an ABI change, even though
  11236. many library function interfaces are unaffected if they don't use
  11237. SIMD vector modes in places that affect size and/or alignment of
  11238. relevant types.
  11239. '-msplit-vecmove-early'
  11240. Split vector moves into single word moves before reload. In theory
  11241. this can give better register allocation, but so far the reverse
  11242. seems to be generally the case.
  11243. '-m1reg-REG'
  11244. Specify a register to hold the constant -1, which makes loading
  11245. small negative constants and certain bitmasks faster. Allowable
  11246. values for REG are 'r43' and 'r63', which specify use of that
  11247. register as a fixed register, and 'none', which means that no
  11248. register is used for this purpose. The default is '-m1reg-none'.
  11249. 
  11250. File: gcc.info, Node: ARC Options, Next: ARM Options, Prev: Adapteva Epiphany Options, Up: Submodel Options
  11251. 3.18.3 ARC Options
  11252. ------------------
  11253. The following options control the architecture variant for which code is
  11254. being compiled:
  11255. '-mbarrel-shifter'
  11256. Generate instructions supported by barrel shifter. This is the
  11257. default unless '-mcpu=ARC601' or '-mcpu=ARCEM' is in effect.
  11258. '-mcpu=CPU'
  11259. Set architecture type, register usage, and instruction scheduling
  11260. parameters for CPU. There are also shortcut alias options
  11261. available for backward compatibility and convenience. Supported
  11262. values for CPU are
  11263. 'arc600'
  11264. Compile for ARC600. Aliases: '-mA6', '-mARC600'.
  11265. 'arc601'
  11266. Compile for ARC601. Alias: '-mARC601'.
  11267. 'arc700'
  11268. Compile for ARC700. Aliases: '-mA7', '-mARC700'. This is the
  11269. default when configured with '--with-cpu=arc700'.
  11270. 'arcem'
  11271. Compile for ARC EM.
  11272. 'archs'
  11273. Compile for ARC HS.
  11274. 'em'
  11275. Compile for ARC EM CPU with no hardware extensions.
  11276. 'em4'
  11277. Compile for ARC EM4 CPU.
  11278. 'em4_dmips'
  11279. Compile for ARC EM4 DMIPS CPU.
  11280. 'em4_fpus'
  11281. Compile for ARC EM4 DMIPS CPU with the single-precision
  11282. floating-point extension.
  11283. 'em4_fpuda'
  11284. Compile for ARC EM4 DMIPS CPU with single-precision
  11285. floating-point and double assist instructions.
  11286. 'hs'
  11287. Compile for ARC HS CPU with no hardware extensions except the
  11288. atomic instructions.
  11289. 'hs34'
  11290. Compile for ARC HS34 CPU.
  11291. 'hs38'
  11292. Compile for ARC HS38 CPU.
  11293. 'hs38_linux'
  11294. Compile for ARC HS38 CPU with all hardware extensions on.
  11295. 'arc600_norm'
  11296. Compile for ARC 600 CPU with 'norm' instructions enabled.
  11297. 'arc600_mul32x16'
  11298. Compile for ARC 600 CPU with 'norm' and 32x16-bit multiply
  11299. instructions enabled.
  11300. 'arc600_mul64'
  11301. Compile for ARC 600 CPU with 'norm' and 'mul64'-family
  11302. instructions enabled.
  11303. 'arc601_norm'
  11304. Compile for ARC 601 CPU with 'norm' instructions enabled.
  11305. 'arc601_mul32x16'
  11306. Compile for ARC 601 CPU with 'norm' and 32x16-bit multiply
  11307. instructions enabled.
  11308. 'arc601_mul64'
  11309. Compile for ARC 601 CPU with 'norm' and 'mul64'-family
  11310. instructions enabled.
  11311. 'nps400'
  11312. Compile for ARC 700 on NPS400 chip.
  11313. '-mdpfp'
  11314. '-mdpfp-compact'
  11315. Generate double-precision FPX instructions, tuned for the compact
  11316. implementation.
  11317. '-mdpfp-fast'
  11318. Generate double-precision FPX instructions, tuned for the fast
  11319. implementation.
  11320. '-mno-dpfp-lrsr'
  11321. Disable 'lr' and 'sr' instructions from using FPX extension aux
  11322. registers.
  11323. '-mea'
  11324. Generate extended arithmetic instructions. Currently only 'divaw',
  11325. 'adds', 'subs', and 'sat16' are supported. This is always enabled
  11326. for '-mcpu=ARC700'.
  11327. '-mno-mpy'
  11328. Do not generate 'mpy'-family instructions for ARC700. This option
  11329. is deprecated.
  11330. '-mmul32x16'
  11331. Generate 32x16-bit multiply and multiply-accumulate instructions.
  11332. '-mmul64'
  11333. Generate 'mul64' and 'mulu64' instructions. Only valid for
  11334. '-mcpu=ARC600'.
  11335. '-mnorm'
  11336. Generate 'norm' instructions. This is the default if
  11337. '-mcpu=ARC700' is in effect.
  11338. '-mspfp'
  11339. '-mspfp-compact'
  11340. Generate single-precision FPX instructions, tuned for the compact
  11341. implementation.
  11342. '-mspfp-fast'
  11343. Generate single-precision FPX instructions, tuned for the fast
  11344. implementation.
  11345. '-msimd'
  11346. Enable generation of ARC SIMD instructions via target-specific
  11347. builtins. Only valid for '-mcpu=ARC700'.
  11348. '-msoft-float'
  11349. This option ignored; it is provided for compatibility purposes
  11350. only. Software floating-point code is emitted by default, and this
  11351. default can overridden by FPX options; '-mspfp', '-mspfp-compact',
  11352. or '-mspfp-fast' for single precision, and '-mdpfp',
  11353. '-mdpfp-compact', or '-mdpfp-fast' for double precision.
  11354. '-mswap'
  11355. Generate 'swap' instructions.
  11356. '-matomic'
  11357. This enables use of the locked load/store conditional extension to
  11358. implement atomic memory built-in functions. Not available for ARC
  11359. 6xx or ARC EM cores.
  11360. '-mdiv-rem'
  11361. Enable 'div' and 'rem' instructions for ARCv2 cores.
  11362. '-mcode-density'
  11363. Enable code density instructions for ARC EM. This option is on by
  11364. default for ARC HS.
  11365. '-mll64'
  11366. Enable double load/store operations for ARC HS cores.
  11367. '-mtp-regno=REGNO'
  11368. Specify thread pointer register number.
  11369. '-mmpy-option=MULTO'
  11370. Compile ARCv2 code with a multiplier design option. You can
  11371. specify the option using either a string or numeric value for
  11372. MULTO. 'wlh1' is the default value. The recognized values are:
  11373. '0'
  11374. 'none'
  11375. No multiplier available.
  11376. '1'
  11377. 'w'
  11378. 16x16 multiplier, fully pipelined. The following instructions
  11379. are enabled: 'mpyw' and 'mpyuw'.
  11380. '2'
  11381. 'wlh1'
  11382. 32x32 multiplier, fully pipelined (1 stage). The following
  11383. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  11384. 'mpymu', and 'mpy_s'.
  11385. '3'
  11386. 'wlh2'
  11387. 32x32 multiplier, fully pipelined (2 stages). The following
  11388. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  11389. 'mpymu', and 'mpy_s'.
  11390. '4'
  11391. 'wlh3'
  11392. Two 16x16 multipliers, blocking, sequential. The following
  11393. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  11394. 'mpymu', and 'mpy_s'.
  11395. '5'
  11396. 'wlh4'
  11397. One 16x16 multiplier, blocking, sequential. The following
  11398. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  11399. 'mpymu', and 'mpy_s'.
  11400. '6'
  11401. 'wlh5'
  11402. One 32x4 multiplier, blocking, sequential. The following
  11403. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  11404. 'mpymu', and 'mpy_s'.
  11405. '7'
  11406. 'plus_dmpy'
  11407. ARC HS SIMD support.
  11408. '8'
  11409. 'plus_macd'
  11410. ARC HS SIMD support.
  11411. '9'
  11412. 'plus_qmacw'
  11413. ARC HS SIMD support.
  11414. This option is only available for ARCv2 cores.
  11415. '-mfpu=FPU'
  11416. Enables support for specific floating-point hardware extensions for
  11417. ARCv2 cores. Supported values for FPU are:
  11418. 'fpus'
  11419. Enables support for single-precision floating-point hardware
  11420. extensions.
  11421. 'fpud'
  11422. Enables support for double-precision floating-point hardware
  11423. extensions. The single-precision floating-point extension is
  11424. also enabled. Not available for ARC EM.
  11425. 'fpuda'
  11426. Enables support for double-precision floating-point hardware
  11427. extensions using double-precision assist instructions. The
  11428. single-precision floating-point extension is also enabled.
  11429. This option is only available for ARC EM.
  11430. 'fpuda_div'
  11431. Enables support for double-precision floating-point hardware
  11432. extensions using double-precision assist instructions. The
  11433. single-precision floating-point, square-root, and divide
  11434. extensions are also enabled. This option is only available
  11435. for ARC EM.
  11436. 'fpuda_fma'
  11437. Enables support for double-precision floating-point hardware
  11438. extensions using double-precision assist instructions. The
  11439. single-precision floating-point and fused multiply and add
  11440. hardware extensions are also enabled. This option is only
  11441. available for ARC EM.
  11442. 'fpuda_all'
  11443. Enables support for double-precision floating-point hardware
  11444. extensions using double-precision assist instructions. All
  11445. single-precision floating-point hardware extensions are also
  11446. enabled. This option is only available for ARC EM.
  11447. 'fpus_div'
  11448. Enables support for single-precision floating-point,
  11449. square-root and divide hardware extensions.
  11450. 'fpud_div'
  11451. Enables support for double-precision floating-point,
  11452. square-root and divide hardware extensions. This option
  11453. includes option 'fpus_div'. Not available for ARC EM.
  11454. 'fpus_fma'
  11455. Enables support for single-precision floating-point and fused
  11456. multiply and add hardware extensions.
  11457. 'fpud_fma'
  11458. Enables support for double-precision floating-point and fused
  11459. multiply and add hardware extensions. This option includes
  11460. option 'fpus_fma'. Not available for ARC EM.
  11461. 'fpus_all'
  11462. Enables support for all single-precision floating-point
  11463. hardware extensions.
  11464. 'fpud_all'
  11465. Enables support for all single- and double-precision
  11466. floating-point hardware extensions. Not available for ARC EM.
  11467. The following options are passed through to the assembler, and also
  11468. define preprocessor macro symbols.
  11469. '-mdsp-packa'
  11470. Passed down to the assembler to enable the DSP Pack A extensions.
  11471. Also sets the preprocessor symbol '__Xdsp_packa'. This option is
  11472. deprecated.
  11473. '-mdvbf'
  11474. Passed down to the assembler to enable the dual Viterbi butterfly
  11475. extension. Also sets the preprocessor symbol '__Xdvbf'. This
  11476. option is deprecated.
  11477. '-mlock'
  11478. Passed down to the assembler to enable the locked load/store
  11479. conditional extension. Also sets the preprocessor symbol
  11480. '__Xlock'.
  11481. '-mmac-d16'
  11482. Passed down to the assembler. Also sets the preprocessor symbol
  11483. '__Xxmac_d16'. This option is deprecated.
  11484. '-mmac-24'
  11485. Passed down to the assembler. Also sets the preprocessor symbol
  11486. '__Xxmac_24'. This option is deprecated.
  11487. '-mrtsc'
  11488. Passed down to the assembler to enable the 64-bit time-stamp
  11489. counter extension instruction. Also sets the preprocessor symbol
  11490. '__Xrtsc'. This option is deprecated.
  11491. '-mswape'
  11492. Passed down to the assembler to enable the swap byte ordering
  11493. extension instruction. Also sets the preprocessor symbol
  11494. '__Xswape'.
  11495. '-mtelephony'
  11496. Passed down to the assembler to enable dual- and single-operand
  11497. instructions for telephony. Also sets the preprocessor symbol
  11498. '__Xtelephony'. This option is deprecated.
  11499. '-mxy'
  11500. Passed down to the assembler to enable the XY memory extension.
  11501. Also sets the preprocessor symbol '__Xxy'.
  11502. The following options control how the assembly code is annotated:
  11503. '-misize'
  11504. Annotate assembler instructions with estimated addresses.
  11505. '-mannotate-align'
  11506. Explain what alignment considerations lead to the decision to make
  11507. an instruction short or long.
  11508. The following options are passed through to the linker:
  11509. '-marclinux'
  11510. Passed through to the linker, to specify use of the 'arclinux'
  11511. emulation. This option is enabled by default in tool chains built
  11512. for 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets when
  11513. profiling is not requested.
  11514. '-marclinux_prof'
  11515. Passed through to the linker, to specify use of the 'arclinux_prof'
  11516. emulation. This option is enabled by default in tool chains built
  11517. for 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets when
  11518. profiling is requested.
  11519. The following options control the semantics of generated code:
  11520. '-mlong-calls'
  11521. Generate calls as register indirect calls, thus providing access to
  11522. the full 32-bit address range.
  11523. '-mmedium-calls'
  11524. Don't use less than 25-bit addressing range for calls, which is the
  11525. offset available for an unconditional branch-and-link instruction.
  11526. Conditional execution of function calls is suppressed, to allow use
  11527. of the 25-bit range, rather than the 21-bit range with conditional
  11528. branch-and-link. This is the default for tool chains built for 'arc-linux-uclibc'
  11529. and 'arceb-linux-uclibc' targets.
  11530. '-mno-sdata'
  11531. Do not generate sdata references. This is the default for tool
  11532. chains built for 'arc-linux-uclibc' and 'arceb-linux-uclibc'
  11533. targets.
  11534. '-mvolatile-cache'
  11535. Use ordinarily cached memory accesses for volatile references.
  11536. This is the default.
  11537. '-mno-volatile-cache'
  11538. Enable cache bypass for volatile references.
  11539. The following options fine tune code generation:
  11540. '-malign-call'
  11541. Do alignment optimizations for call instructions.
  11542. '-mauto-modify-reg'
  11543. Enable the use of pre/post modify with register displacement.
  11544. '-mbbit-peephole'
  11545. Enable bbit peephole2.
  11546. '-mno-brcc'
  11547. This option disables a target-specific pass in 'arc_reorg' to
  11548. generate compare-and-branch ('brCC') instructions. It has no
  11549. effect on generation of these instructions driven by the combiner
  11550. pass.
  11551. '-mcase-vector-pcrel'
  11552. Use PC-relative switch case tables to enable case table shortening.
  11553. This is the default for '-Os'.
  11554. '-mcompact-casesi'
  11555. Enable compact 'casesi' pattern. This is the default for '-Os',
  11556. and only available for ARCv1 cores.
  11557. '-mno-cond-exec'
  11558. Disable the ARCompact-specific pass to generate conditional
  11559. execution instructions.
  11560. Due to delay slot scheduling and interactions between operand
  11561. numbers, literal sizes, instruction lengths, and the support for
  11562. conditional execution, the target-independent pass to generate
  11563. conditional execution is often lacking, so the ARC port has kept a
  11564. special pass around that tries to find more conditional execution
  11565. generation opportunities after register allocation, branch
  11566. shortening, and delay slot scheduling have been done. This pass
  11567. generally, but not always, improves performance and code size, at
  11568. the cost of extra compilation time, which is why there is an option
  11569. to switch it off. If you have a problem with call instructions
  11570. exceeding their allowable offset range because they are
  11571. conditionalized, you should consider using '-mmedium-calls'
  11572. instead.
  11573. '-mearly-cbranchsi'
  11574. Enable pre-reload use of the 'cbranchsi' pattern.
  11575. '-mexpand-adddi'
  11576. Expand 'adddi3' and 'subdi3' at RTL generation time into 'add.f',
  11577. 'adc' etc.
  11578. '-mindexed-loads'
  11579. Enable the use of indexed loads. This can be problematic because
  11580. some optimizers then assume that indexed stores exist, which is not
  11581. the case.
  11582. Enable Local Register Allocation. This is still experimental for
  11583. ARC, so by default the compiler uses standard reload (i.e.
  11584. '-mno-lra').
  11585. '-mlra-priority-none'
  11586. Don't indicate any priority for target registers.
  11587. '-mlra-priority-compact'
  11588. Indicate target register priority for r0..r3 / r12..r15.
  11589. '-mlra-priority-noncompact'
  11590. Reduce target register priority for r0..r3 / r12..r15.
  11591. '-mno-millicode'
  11592. When optimizing for size (using '-Os'), prologues and epilogues
  11593. that have to save or restore a large number of registers are often
  11594. shortened by using call to a special function in libgcc; this is
  11595. referred to as a _millicode_ call. As these calls can pose
  11596. performance issues, and/or cause linking issues when linking in a
  11597. nonstandard way, this option is provided to turn off millicode call
  11598. generation.
  11599. '-mmixed-code'
  11600. Tweak register allocation to help 16-bit instruction generation.
  11601. This generally has the effect of decreasing the average instruction
  11602. size while increasing the instruction count.
  11603. '-mq-class'
  11604. Enable 'q' instruction alternatives. This is the default for
  11605. '-Os'.
  11606. '-mRcq'
  11607. Enable 'Rcq' constraint handling. Most short code generation
  11608. depends on this. This is the default.
  11609. '-mRcw'
  11610. Enable 'Rcw' constraint handling. Most ccfsm condexec mostly
  11611. depends on this. This is the default.
  11612. '-msize-level=LEVEL'
  11613. Fine-tune size optimization with regards to instruction lengths and
  11614. alignment. The recognized values for LEVEL are:
  11615. '0'
  11616. No size optimization. This level is deprecated and treated
  11617. like '1'.
  11618. '1'
  11619. Short instructions are used opportunistically.
  11620. '2'
  11621. In addition, alignment of loops and of code after barriers are
  11622. dropped.
  11623. '3'
  11624. In addition, optional data alignment is dropped, and the
  11625. option 'Os' is enabled.
  11626. This defaults to '3' when '-Os' is in effect. Otherwise, the
  11627. behavior when this is not set is equivalent to level '1'.
  11628. '-mtune=CPU'
  11629. Set instruction scheduling parameters for CPU, overriding any
  11630. implied by '-mcpu='.
  11631. Supported values for CPU are
  11632. 'ARC600'
  11633. Tune for ARC600 CPU.
  11634. 'ARC601'
  11635. Tune for ARC601 CPU.
  11636. 'ARC700'
  11637. Tune for ARC700 CPU with standard multiplier block.
  11638. 'ARC700-xmac'
  11639. Tune for ARC700 CPU with XMAC block.
  11640. 'ARC725D'
  11641. Tune for ARC725D CPU.
  11642. 'ARC750D'
  11643. Tune for ARC750D CPU.
  11644. '-mmultcost=NUM'
  11645. Cost to assume for a multiply instruction, with '4' being equal to
  11646. a normal instruction.
  11647. '-munalign-prob-threshold=PROBABILITY'
  11648. Set probability threshold for unaligning branches. When tuning for
  11649. 'ARC700' and optimizing for speed, branches without filled delay
  11650. slot are preferably emitted unaligned and long, unless profiling
  11651. indicates that the probability for the branch to be taken is below
  11652. PROBABILITY. *Note Cross-profiling::. The default is
  11653. (REG_BR_PROB_BASE/2), i.e. 5000.
  11654. The following options are maintained for backward compatibility, but
  11655. are now deprecated and will be removed in a future release:
  11656. '-margonaut'
  11657. Obsolete FPX.
  11658. '-mbig-endian'
  11659. '-EB'
  11660. Compile code for big-endian targets. Use of these options is now
  11661. deprecated. Big-endian code is supported by configuring GCC to
  11662. build 'arceb-elf32' and 'arceb-linux-uclibc' targets, for which big
  11663. endian is the default.
  11664. '-mlittle-endian'
  11665. '-EL'
  11666. Compile code for little-endian targets. Use of these options is
  11667. now deprecated. Little-endian code is supported by configuring GCC
  11668. to build 'arc-elf32' and 'arc-linux-uclibc' targets, for which
  11669. little endian is the default.
  11670. '-mbarrel_shifter'
  11671. Replaced by '-mbarrel-shifter'.
  11672. '-mdpfp_compact'
  11673. Replaced by '-mdpfp-compact'.
  11674. '-mdpfp_fast'
  11675. Replaced by '-mdpfp-fast'.
  11676. '-mdsp_packa'
  11677. Replaced by '-mdsp-packa'.
  11678. '-mEA'
  11679. Replaced by '-mea'.
  11680. '-mmac_24'
  11681. Replaced by '-mmac-24'.
  11682. '-mmac_d16'
  11683. Replaced by '-mmac-d16'.
  11684. '-mspfp_compact'
  11685. Replaced by '-mspfp-compact'.
  11686. '-mspfp_fast'
  11687. Replaced by '-mspfp-fast'.
  11688. '-mtune=CPU'
  11689. Values 'arc600', 'arc601', 'arc700' and 'arc700-xmac' for CPU are
  11690. replaced by 'ARC600', 'ARC601', 'ARC700' and 'ARC700-xmac'
  11691. respectively.
  11692. '-multcost=NUM'
  11693. Replaced by '-mmultcost'.
  11694. 
  11695. File: gcc.info, Node: ARM Options, Next: AVR Options, Prev: ARC Options, Up: Submodel Options
  11696. 3.18.4 ARM Options
  11697. ------------------
  11698. These '-m' options are defined for the ARM port:
  11699. '-mabi=NAME'
  11700. Generate code for the specified ABI. Permissible values are:
  11701. 'apcs-gnu', 'atpcs', 'aapcs', 'aapcs-linux' and 'iwmmxt'.
  11702. '-mapcs-frame'
  11703. Generate a stack frame that is compliant with the ARM Procedure
  11704. Call Standard for all functions, even if this is not strictly
  11705. necessary for correct execution of the code. Specifying
  11706. '-fomit-frame-pointer' with this option causes the stack frames not
  11707. to be generated for leaf functions. The default is
  11708. '-mno-apcs-frame'. This option is deprecated.
  11709. '-mapcs'
  11710. This is a synonym for '-mapcs-frame' and is deprecated.
  11711. '-mthumb-interwork'
  11712. Generate code that supports calling between the ARM and Thumb
  11713. instruction sets. Without this option, on pre-v5 architectures,
  11714. the two instruction sets cannot be reliably used inside one
  11715. program. The default is '-mno-thumb-interwork', since slightly
  11716. larger code is generated when '-mthumb-interwork' is specified. In
  11717. AAPCS configurations this option is meaningless.
  11718. '-mno-sched-prolog'
  11719. Prevent the reordering of instructions in the function prologue, or
  11720. the merging of those instruction with the instructions in the
  11721. function's body. This means that all functions start with a
  11722. recognizable set of instructions (or in fact one of a choice from a
  11723. small set of different function prologues), and this information
  11724. can be used to locate the start of functions inside an executable
  11725. piece of code. The default is '-msched-prolog'.
  11726. '-mfloat-abi=NAME'
  11727. Specifies which floating-point ABI to use. Permissible values are:
  11728. 'soft', 'softfp' and 'hard'.
  11729. Specifying 'soft' causes GCC to generate output containing library
  11730. calls for floating-point operations. 'softfp' allows the
  11731. generation of code using hardware floating-point instructions, but
  11732. still uses the soft-float calling conventions. 'hard' allows
  11733. generation of floating-point instructions and uses FPU-specific
  11734. calling conventions.
  11735. The default depends on the specific target configuration. Note
  11736. that the hard-float and soft-float ABIs are not link-compatible;
  11737. you must compile your entire program with the same ABI, and link
  11738. with a compatible set of libraries.
  11739. '-mlittle-endian'
  11740. Generate code for a processor running in little-endian mode. This
  11741. is the default for all standard configurations.
  11742. '-mbig-endian'
  11743. Generate code for a processor running in big-endian mode; the
  11744. default is to compile code for a little-endian processor.
  11745. '-march=NAME'
  11746. This specifies the name of the target ARM architecture. GCC uses
  11747. this name to determine what kind of instructions it can emit when
  11748. generating assembly code. This option can be used in conjunction
  11749. with or instead of the '-mcpu=' option. Permissible names are:
  11750. 'armv2', 'armv2a', 'armv3', 'armv3m', 'armv4', 'armv4t', 'armv5',
  11751. 'armv5e', 'armv5t', 'armv5te', 'armv6', 'armv6-m', 'armv6j',
  11752. 'armv6k', 'armv6kz', 'armv6s-m', 'armv6t2', 'armv6z', 'armv6zk',
  11753. 'armv7', 'armv7-a', 'armv7-m', 'armv7-r', 'armv7e-m', 'armv7ve',
  11754. 'armv8-a', 'armv8-a+crc', 'armv8.1-a', 'armv8.1-a+crc',
  11755. 'armv8-m.base', 'armv8-m.main', 'armv8-m.main+dsp', 'iwmmxt',
  11756. 'iwmmxt2'.
  11757. Architecture revisions older than 'armv4t' are deprecated.
  11758. '-march=armv6s-m' is the 'armv6-m' architecture with support for
  11759. the (now mandatory) SVC instruction.
  11760. '-march=armv6zk' is an alias for 'armv6kz', existing for backwards
  11761. compatibility.
  11762. '-march=armv7ve' is the 'armv7-a' architecture with virtualization
  11763. extensions.
  11764. '-march=armv8-a+crc' enables code generation for the ARMv8-A
  11765. architecture together with the optional CRC32 extensions.
  11766. '-march=armv8.1-a' enables compiler support for the ARMv8.1-A
  11767. architecture. This also enables the features provided by
  11768. '-march=armv8-a+crc'.
  11769. '-march=armv8.2-a' enables compiler support for the ARMv8.2-A
  11770. architecture. This also enables the features provided by
  11771. '-march=armv8.1-a'.
  11772. '-march=armv8.2-a+fp16' enables compiler support for the ARMv8.2-A
  11773. architecture with the optional FP16 instructions extension. This
  11774. also enables the features provided by '-march=armv8.1-a' and
  11775. implies '-mfp16-format=ieee'.
  11776. '-march=armv8.2-a+dotprod' enables compiler support for the
  11777. ARMv8.2-A architecture with the optional Dot Product instructions
  11778. extension. This also enables the features provided by
  11779. '-march=armv8.1-a'.
  11780. '-march=armv8.2-a+fp16+dotprod' enables compiler support for the
  11781. ARMv8.2-A architecture with the optional FP16 and Dot Product
  11782. instructions extension. This also enables the features provided by
  11783. '-march=armv8.1-a' and implies '-mfp16-format=ieee'.
  11784. '-march=native' causes the compiler to auto-detect the architecture
  11785. of the build computer. At present, this feature is only supported
  11786. on GNU/Linux, and not all architectures are recognized. If the
  11787. auto-detect is unsuccessful the option has no effect.
  11788. '-mtune=NAME'
  11789. This option specifies the name of the target ARM processor for
  11790. which GCC should tune the performance of the code. For some ARM
  11791. implementations better performance can be obtained by using this
  11792. option. Permissible names are: 'arm2', 'arm250', 'arm3', 'arm6',
  11793. 'arm60', 'arm600', 'arm610', 'arm620', 'arm7', 'arm7m', 'arm7d',
  11794. 'arm7dm', 'arm7di', 'arm7dmi', 'arm70', 'arm700', 'arm700i',
  11795. 'arm710', 'arm710c', 'arm7100', 'arm720', 'arm7500', 'arm7500fe',
  11796. 'arm7tdmi', 'arm7tdmi-s', 'arm710t', 'arm720t', 'arm740t',
  11797. 'strongarm', 'strongarm110', 'strongarm1100', 'strongarm1110',
  11798. 'arm8', 'arm810', 'arm9', 'arm9e', 'arm920', 'arm920t', 'arm922t',
  11799. 'arm946e-s', 'arm966e-s', 'arm968e-s', 'arm926ej-s', 'arm940t',
  11800. 'arm9tdmi', 'arm10tdmi', 'arm1020t', 'arm1026ej-s', 'arm10e',
  11801. 'arm1020e', 'arm1022e', 'arm1136j-s', 'arm1136jf-s', 'mpcore',
  11802. 'mpcorenovfp', 'arm1156t2-s', 'arm1156t2f-s', 'arm1176jz-s',
  11803. 'arm1176jzf-s', 'generic-armv7-a', 'cortex-a5', 'cortex-a7',
  11804. 'cortex-a8', 'cortex-a9', 'cortex-a12', 'cortex-a15', 'cortex-a17',
  11805. 'cortex-a32', 'cortex-a35', 'cortex-a53', 'cortex-a57',
  11806. 'cortex-a72', 'cortex-a73', 'cortex-r4', 'cortex-r4f', 'cortex-r5',
  11807. 'cortex-r7', 'cortex-r8', 'cortex-m33', 'cortex-m23', 'cortex-m7',
  11808. 'cortex-m4', 'cortex-m3', 'cortex-m1', 'cortex-m0',
  11809. 'cortex-m0plus', 'cortex-m1.small-multiply',
  11810. 'cortex-m0.small-multiply', 'cortex-m0plus.small-multiply',
  11811. 'exynos-m1', 'marvell-pj4', 'xscale', 'iwmmxt', 'iwmmxt2',
  11812. 'ep9312', 'fa526', 'fa626', 'fa606te', 'fa626te', 'fmp626',
  11813. 'fa726te', 'xgene1'.
  11814. Additionally, this option can specify that GCC should tune the
  11815. performance of the code for a big.LITTLE system. Permissible names
  11816. are: 'cortex-a15.cortex-a7', 'cortex-a17.cortex-a7',
  11817. 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  11818. 'cortex-a72.cortex-a35', 'cortex-a73.cortex-a53'.
  11819. '-mtune=generic-ARCH' specifies that GCC should tune the
  11820. performance for a blend of processors within architecture ARCH.
  11821. The aim is to generate code that run well on the current most
  11822. popular processors, balancing between optimizations that benefit
  11823. some CPUs in the range, and avoiding performance pitfalls of other
  11824. CPUs. The effects of this option may change in future GCC versions
  11825. as CPU models come and go.
  11826. '-mtune=native' causes the compiler to auto-detect the CPU of the
  11827. build computer. At present, this feature is only supported on
  11828. GNU/Linux, and not all architectures are recognized. If the
  11829. auto-detect is unsuccessful the option has no effect.
  11830. '-mcpu=NAME'
  11831. This specifies the name of the target ARM processor. GCC uses this
  11832. name to derive the name of the target ARM architecture (as if
  11833. specified by '-march') and the ARM processor type for which to tune
  11834. for performance (as if specified by '-mtune'). Where this option
  11835. is used in conjunction with '-march' or '-mtune', those options
  11836. take precedence over the appropriate part of this option.
  11837. Permissible names for this option are the same as those for
  11838. '-mtune'.
  11839. '-mcpu=generic-ARCH' is also permissible, and is equivalent to
  11840. '-march=ARCH -mtune=generic-ARCH'. See '-mtune' for more
  11841. information.
  11842. '-mcpu=native' causes the compiler to auto-detect the CPU of the
  11843. build computer. At present, this feature is only supported on
  11844. GNU/Linux, and not all architectures are recognized. If the
  11845. auto-detect is unsuccessful the option has no effect.
  11846. '-mfpu=NAME'
  11847. This specifies what floating-point hardware (or hardware emulation)
  11848. is available on the target. Permissible names are: 'vfpv2',
  11849. 'vfpv3', 'vfpv3-fp16', 'vfpv3-d16', 'vfpv3-d16-fp16', 'vfpv3xd',
  11850. 'vfpv3xd-fp16', 'neon-vfpv3', 'neon-fp16', 'vfpv4', 'vfpv4-d16',
  11851. 'fpv4-sp-d16', 'neon-vfpv4', 'fpv5-d16', 'fpv5-sp-d16', 'fp-armv8',
  11852. 'neon-fp-armv8' and 'crypto-neon-fp-armv8'. Note that 'neon' is an
  11853. alias for 'neon-vfpv3' and 'vfp' is an alias for 'vfpv2'.
  11854. If '-msoft-float' is specified this specifies the format of
  11855. floating-point values.
  11856. If the selected floating-point hardware includes the NEON extension
  11857. (e.g. '-mfpu'='neon'), note that floating-point operations are not
  11858. generated by GCC's auto-vectorization pass unless
  11859. '-funsafe-math-optimizations' is also specified. This is because
  11860. NEON hardware does not fully implement the IEEE 754 standard for
  11861. floating-point arithmetic (in particular denormal values are
  11862. treated as zero), so the use of NEON instructions may lead to a
  11863. loss of precision.
  11864. You can also set the fpu name at function level by using the
  11865. 'target("fpu=")' function attributes (*note ARM Function
  11866. Attributes::) or pragmas (*note Function Specific Option
  11867. Pragmas::).
  11868. '-mfp16-format=NAME'
  11869. Specify the format of the '__fp16' half-precision floating-point
  11870. type. Permissible names are 'none', 'ieee', and 'alternative'; the
  11871. default is 'none', in which case the '__fp16' type is not defined.
  11872. *Note Half-Precision::, for more information.
  11873. '-mstructure-size-boundary=N'
  11874. The sizes of all structures and unions are rounded up to a multiple
  11875. of the number of bits set by this option. Permissible values are
  11876. 8, 32 and 64. The default value varies for different toolchains.
  11877. For the COFF targeted toolchain the default value is 8. A value of
  11878. 64 is only allowed if the underlying ABI supports it.
  11879. Specifying a larger number can produce faster, more efficient code,
  11880. but can also increase the size of the program. Different values
  11881. are potentially incompatible. Code compiled with one value cannot
  11882. necessarily expect to work with code or libraries compiled with
  11883. another value, if they exchange information using structures or
  11884. unions.
  11885. '-mabort-on-noreturn'
  11886. Generate a call to the function 'abort' at the end of a 'noreturn'
  11887. function. It is executed if the function tries to return.
  11888. '-mlong-calls'
  11889. '-mno-long-calls'
  11890. Tells the compiler to perform function calls by first loading the
  11891. address of the function into a register and then performing a
  11892. subroutine call on this register. This switch is needed if the
  11893. target function lies outside of the 64-megabyte addressing range of
  11894. the offset-based version of subroutine call instruction.
  11895. Even if this switch is enabled, not all function calls are turned
  11896. into long calls. The heuristic is that static functions, functions
  11897. that have the 'short_call' attribute, functions that are inside the
  11898. scope of a '#pragma no_long_calls' directive, and functions whose
  11899. definitions have already been compiled within the current
  11900. compilation unit are not turned into long calls. The exceptions to
  11901. this rule are that weak function definitions, functions with the
  11902. 'long_call' attribute or the 'section' attribute, and functions
  11903. that are within the scope of a '#pragma long_calls' directive are
  11904. always turned into long calls.
  11905. This feature is not enabled by default. Specifying
  11906. '-mno-long-calls' restores the default behavior, as does placing
  11907. the function calls within the scope of a '#pragma long_calls_off'
  11908. directive. Note these switches have no effect on how the compiler
  11909. generates code to handle function calls via function pointers.
  11910. '-msingle-pic-base'
  11911. Treat the register used for PIC addressing as read-only, rather
  11912. than loading it in the prologue for each function. The runtime
  11913. system is responsible for initializing this register with an
  11914. appropriate value before execution begins.
  11915. '-mpic-register=REG'
  11916. Specify the register to be used for PIC addressing. For standard
  11917. PIC base case, the default is any suitable register determined by
  11918. compiler. For single PIC base case, the default is 'R9' if target
  11919. is EABI based or stack-checking is enabled, otherwise the default
  11920. is 'R10'.
  11921. '-mpic-data-is-text-relative'
  11922. Assume that the displacement between the text and data segments is
  11923. fixed at static link time. This permits using PC-relative
  11924. addressing operations to access data known to be in the data
  11925. segment. For non-VxWorks RTP targets, this option is enabled by
  11926. default. When disabled on such targets, it will enable
  11927. '-msingle-pic-base' by default.
  11928. '-mpoke-function-name'
  11929. Write the name of each function into the text section, directly
  11930. preceding the function prologue. The generated code is similar to
  11931. this:
  11932. t0
  11933. .ascii "arm_poke_function_name", 0
  11934. .align
  11935. t1
  11936. .word 0xff000000 + (t1 - t0)
  11937. arm_poke_function_name
  11938. mov ip, sp
  11939. stmfd sp!, {fp, ip, lr, pc}
  11940. sub fp, ip, #4
  11941. When performing a stack backtrace, code can inspect the value of
  11942. 'pc' stored at 'fp + 0'. If the trace function then looks at
  11943. location 'pc - 12' and the top 8 bits are set, then we know that
  11944. there is a function name embedded immediately preceding this
  11945. location and has length '((pc[-3]) & 0xff000000)'.
  11946. '-mthumb'
  11947. '-marm'
  11948. Select between generating code that executes in ARM and Thumb
  11949. states. The default for most configurations is to generate code
  11950. that executes in ARM state, but the default can be changed by
  11951. configuring GCC with the '--with-mode='STATE configure option.
  11952. You can also override the ARM and Thumb mode for each function by
  11953. using the 'target("thumb")' and 'target("arm")' function attributes
  11954. (*note ARM Function Attributes::) or pragmas (*note Function
  11955. Specific Option Pragmas::).
  11956. '-mtpcs-frame'
  11957. Generate a stack frame that is compliant with the Thumb Procedure
  11958. Call Standard for all non-leaf functions. (A leaf function is one
  11959. that does not call any other functions.) The default is
  11960. '-mno-tpcs-frame'.
  11961. '-mtpcs-leaf-frame'
  11962. Generate a stack frame that is compliant with the Thumb Procedure
  11963. Call Standard for all leaf functions. (A leaf function is one that
  11964. does not call any other functions.) The default is
  11965. '-mno-apcs-leaf-frame'.
  11966. '-mcallee-super-interworking'
  11967. Gives all externally visible functions in the file being compiled
  11968. an ARM instruction set header which switches to Thumb mode before
  11969. executing the rest of the function. This allows these functions to
  11970. be called from non-interworking code. This option is not valid in
  11971. AAPCS configurations because interworking is enabled by default.
  11972. '-mcaller-super-interworking'
  11973. Allows calls via function pointers (including virtual functions) to
  11974. execute correctly regardless of whether the target code has been
  11975. compiled for interworking or not. There is a small overhead in the
  11976. cost of executing a function pointer if this option is enabled.
  11977. This option is not valid in AAPCS configurations because
  11978. interworking is enabled by default.
  11979. '-mtp=NAME'
  11980. Specify the access model for the thread local storage pointer. The
  11981. valid models are 'soft', which generates calls to
  11982. '__aeabi_read_tp', 'cp15', which fetches the thread pointer from
  11983. 'cp15' directly (supported in the arm6k architecture), and 'auto',
  11984. which uses the best available method for the selected processor.
  11985. The default setting is 'auto'.
  11986. '-mtls-dialect=DIALECT'
  11987. Specify the dialect to use for accessing thread local storage. Two
  11988. DIALECTs are supported--'gnu' and 'gnu2'. The 'gnu' dialect
  11989. selects the original GNU scheme for supporting local and global
  11990. dynamic TLS models. The 'gnu2' dialect selects the GNU descriptor
  11991. scheme, which provides better performance for shared libraries.
  11992. The GNU descriptor scheme is compatible with the original scheme,
  11993. but does require new assembler, linker and library support.
  11994. Initial and local exec TLS models are unaffected by this option and
  11995. always use the original scheme.
  11996. '-mword-relocations'
  11997. Only generate absolute relocations on word-sized values (i.e.
  11998. R_ARM_ABS32). This is enabled by default on targets (uClinux,
  11999. SymbianOS) where the runtime loader imposes this restriction, and
  12000. when '-fpic' or '-fPIC' is specified.
  12001. '-mfix-cortex-m3-ldrd'
  12002. Some Cortex-M3 cores can cause data corruption when 'ldrd'
  12003. instructions with overlapping destination and base registers are
  12004. used. This option avoids generating these instructions. This
  12005. option is enabled by default when '-mcpu=cortex-m3' is specified.
  12006. '-munaligned-access'
  12007. '-mno-unaligned-access'
  12008. Enables (or disables) reading and writing of 16- and 32- bit values
  12009. from addresses that are not 16- or 32- bit aligned. By default
  12010. unaligned access is disabled for all pre-ARMv6, all ARMv6-M and for
  12011. ARMv8-M Baseline architectures, and enabled for all other
  12012. architectures. If unaligned access is not enabled then words in
  12013. packed data structures are accessed a byte at a time.
  12014. The ARM attribute 'Tag_CPU_unaligned_access' is set in the
  12015. generated object file to either true or false, depending upon the
  12016. setting of this option. If unaligned access is enabled then the
  12017. preprocessor symbol '__ARM_FEATURE_UNALIGNED' is also defined.
  12018. '-mneon-for-64bits'
  12019. Enables using Neon to handle scalar 64-bits operations. This is
  12020. disabled by default since the cost of moving data from core
  12021. registers to Neon is high.
  12022. '-mslow-flash-data'
  12023. Assume loading data from flash is slower than fetching instruction.
  12024. Therefore literal load is minimized for better performance. This
  12025. option is only supported when compiling for ARMv7 M-profile and off
  12026. by default.
  12027. '-masm-syntax-unified'
  12028. Assume inline assembler is using unified asm syntax. The default
  12029. is currently off which implies divided syntax. This option has no
  12030. impact on Thumb2. However, this may change in future releases of
  12031. GCC. Divided syntax should be considered deprecated.
  12032. '-mrestrict-it'
  12033. Restricts generation of IT blocks to conform to the rules of ARMv8.
  12034. IT blocks can only contain a single 16-bit instruction from a
  12035. select set of instructions. This option is on by default for ARMv8
  12036. Thumb mode.
  12037. '-mprint-tune-info'
  12038. Print CPU tuning information as comment in assembler file. This is
  12039. an option used only for regression testing of the compiler and not
  12040. intended for ordinary use in compiling code. This option is
  12041. disabled by default.
  12042. '-mpure-code'
  12043. Do not allow constant data to be placed in code sections.
  12044. Additionally, when compiling for ELF object format give all text
  12045. sections the ELF processor-specific section attribute
  12046. 'SHF_ARM_PURECODE'. This option is only available when generating
  12047. non-pic code for ARMv7-M targets.
  12048. '-mcmse'
  12049. Generate secure code as per the "ARMv8-M Security Extensions:
  12050. Requirements on Development Tools Engineering Specification", which
  12051. can be found on
  12052. <http://infocenter.arm.com/help/topic/com.arm.doc.ecm0359818/ECM0359818_armv8m_security_extensions_reqs_on_dev_tools_1_0.pdf>.
  12053. 
  12054. File: gcc.info, Node: AVR Options, Next: Blackfin Options, Prev: ARM Options, Up: Submodel Options
  12055. 3.18.5 AVR Options
  12056. ------------------
  12057. These options are defined for AVR implementations:
  12058. '-mmcu=MCU'
  12059. Specify Atmel AVR instruction set architectures (ISA) or MCU type.
  12060. The default for this option is 'avr2'.
  12061. GCC supports the following AVR devices and ISAs:
  12062. 'avr2'
  12063. "Classic" devices with up to 8 KiB of program memory.
  12064. MCU = 'attiny22', 'attiny26', 'at90c8534', 'at90s2313',
  12065. 'at90s2323', 'at90s2333', 'at90s2343', 'at90s4414',
  12066. 'at90s4433', 'at90s4434', 'at90s8515', 'at90s8535'.
  12067. 'avr25'
  12068. "Classic" devices with up to 8 KiB of program memory and with
  12069. the 'MOVW' instruction.
  12070. MCU = 'ata5272', 'ata6616c', 'attiny13', 'attiny13a',
  12071. 'attiny2313', 'attiny2313a', 'attiny24', 'attiny24a',
  12072. 'attiny25', 'attiny261', 'attiny261a', 'attiny43u',
  12073. 'attiny4313', 'attiny44', 'attiny44a', 'attiny441',
  12074. 'attiny45', 'attiny461', 'attiny461a', 'attiny48',
  12075. 'attiny828', 'attiny84', 'attiny84a', 'attiny841', 'attiny85',
  12076. 'attiny861', 'attiny861a', 'attiny87', 'attiny88',
  12077. 'at86rf401'.
  12078. 'avr3'
  12079. "Classic" devices with 16 KiB up to 64 KiB of program memory.
  12080. MCU = 'at43usb355', 'at76c711'.
  12081. 'avr31'
  12082. "Classic" devices with 128 KiB of program memory.
  12083. MCU = 'atmega103', 'at43usb320'.
  12084. 'avr35'
  12085. "Classic" devices with 16 KiB up to 64 KiB of program memory
  12086. and with the 'MOVW' instruction.
  12087. MCU = 'ata5505', 'ata6617c', 'ata664251', 'atmega16u2',
  12088. 'atmega32u2', 'atmega8u2', 'attiny1634', 'attiny167',
  12089. 'at90usb162', 'at90usb82'.
  12090. 'avr4'
  12091. "Enhanced" devices with up to 8 KiB of program memory.
  12092. MCU = 'ata6285', 'ata6286', 'ata6289', 'ata6612c', 'atmega48',
  12093. 'atmega48a', 'atmega48p', 'atmega48pa', 'atmega48pb',
  12094. 'atmega8', 'atmega8a', 'atmega8hva', 'atmega8515',
  12095. 'atmega8535', 'atmega88', 'atmega88a', 'atmega88p',
  12096. 'atmega88pa', 'atmega88pb', 'at90pwm1', 'at90pwm2',
  12097. 'at90pwm2b', 'at90pwm3', 'at90pwm3b', 'at90pwm81'.
  12098. 'avr5'
  12099. "Enhanced" devices with 16 KiB up to 64 KiB of program memory.
  12100. MCU = 'ata5702m322', 'ata5782', 'ata5790', 'ata5790n',
  12101. 'ata5791', 'ata5795', 'ata5831', 'ata6613c', 'ata6614q',
  12102. 'ata8210', 'ata8510', 'atmega16', 'atmega16a', 'atmega16hva',
  12103. 'atmega16hva2', 'atmega16hvb', 'atmega16hvbrevb',
  12104. 'atmega16m1', 'atmega16u4', 'atmega161', 'atmega162',
  12105. 'atmega163', 'atmega164a', 'atmega164p', 'atmega164pa',
  12106. 'atmega165', 'atmega165a', 'atmega165p', 'atmega165pa',
  12107. 'atmega168', 'atmega168a', 'atmega168p', 'atmega168pa',
  12108. 'atmega168pb', 'atmega169', 'atmega169a', 'atmega169p',
  12109. 'atmega169pa', 'atmega32', 'atmega32a', 'atmega32c1',
  12110. 'atmega32hvb', 'atmega32hvbrevb', 'atmega32m1', 'atmega32u4',
  12111. 'atmega32u6', 'atmega323', 'atmega324a', 'atmega324p',
  12112. 'atmega324pa', 'atmega325', 'atmega325a', 'atmega325p',
  12113. 'atmega325pa', 'atmega3250', 'atmega3250a', 'atmega3250p',
  12114. 'atmega3250pa', 'atmega328', 'atmega328p', 'atmega328pb',
  12115. 'atmega329', 'atmega329a', 'atmega329p', 'atmega329pa',
  12116. 'atmega3290', 'atmega3290a', 'atmega3290p', 'atmega3290pa',
  12117. 'atmega406', 'atmega64', 'atmega64a', 'atmega64c1',
  12118. 'atmega64hve', 'atmega64hve2', 'atmega64m1', 'atmega64rfr2',
  12119. 'atmega640', 'atmega644', 'atmega644a', 'atmega644p',
  12120. 'atmega644pa', 'atmega644rfr2', 'atmega645', 'atmega645a',
  12121. 'atmega645p', 'atmega6450', 'atmega6450a', 'atmega6450p',
  12122. 'atmega649', 'atmega649a', 'atmega649p', 'atmega6490',
  12123. 'atmega6490a', 'atmega6490p', 'at90can32', 'at90can64',
  12124. 'at90pwm161', 'at90pwm216', 'at90pwm316', 'at90scr100',
  12125. 'at90usb646', 'at90usb647', 'at94k', 'm3000'.
  12126. 'avr51'
  12127. "Enhanced" devices with 128 KiB of program memory.
  12128. MCU = 'atmega128', 'atmega128a', 'atmega128rfa1',
  12129. 'atmega128rfr2', 'atmega1280', 'atmega1281', 'atmega1284',
  12130. 'atmega1284p', 'atmega1284rfr2', 'at90can128', 'at90usb1286',
  12131. 'at90usb1287'.
  12132. 'avr6'
  12133. "Enhanced" devices with 3-byte PC, i.e. with more than 128 KiB
  12134. of program memory.
  12135. MCU = 'atmega256rfr2', 'atmega2560', 'atmega2561',
  12136. 'atmega2564rfr2'.
  12137. 'avrxmega2'
  12138. "XMEGA" devices with more than 8 KiB and up to 64 KiB of
  12139. program memory.
  12140. MCU = 'atxmega16a4', 'atxmega16a4u', 'atxmega16c4',
  12141. 'atxmega16d4', 'atxmega16e5', 'atxmega32a4', 'atxmega32a4u',
  12142. 'atxmega32c3', 'atxmega32c4', 'atxmega32d3', 'atxmega32d4',
  12143. 'atxmega32e5', 'atxmega8e5'.
  12144. 'avrxmega4'
  12145. "XMEGA" devices with more than 64 KiB and up to 128 KiB of
  12146. program memory.
  12147. MCU = 'atxmega64a3', 'atxmega64a3u', 'atxmega64a4u',
  12148. 'atxmega64b1', 'atxmega64b3', 'atxmega64c3', 'atxmega64d3',
  12149. 'atxmega64d4'.
  12150. 'avrxmega5'
  12151. "XMEGA" devices with more than 64 KiB and up to 128 KiB of
  12152. program memory and more than 64 KiB of RAM.
  12153. MCU = 'atxmega64a1', 'atxmega64a1u'.
  12154. 'avrxmega6'
  12155. "XMEGA" devices with more than 128 KiB of program memory.
  12156. MCU = 'atxmega128a3', 'atxmega128a3u', 'atxmega128b1',
  12157. 'atxmega128b3', 'atxmega128c3', 'atxmega128d3',
  12158. 'atxmega128d4', 'atxmega192a3', 'atxmega192a3u',
  12159. 'atxmega192c3', 'atxmega192d3', 'atxmega256a3',
  12160. 'atxmega256a3b', 'atxmega256a3bu', 'atxmega256a3u',
  12161. 'atxmega256c3', 'atxmega256d3', 'atxmega384c3',
  12162. 'atxmega384d3'.
  12163. 'avrxmega7'
  12164. "XMEGA" devices with more than 128 KiB of program memory and
  12165. more than 64 KiB of RAM.
  12166. MCU = 'atxmega128a1', 'atxmega128a1u', 'atxmega128a4u'.
  12167. 'avrtiny'
  12168. "TINY" Tiny core devices with 512 B up to 4 KiB of program
  12169. memory.
  12170. MCU = 'attiny10', 'attiny20', 'attiny4', 'attiny40',
  12171. 'attiny5', 'attiny9'.
  12172. 'avr1'
  12173. This ISA is implemented by the minimal AVR core and supported
  12174. for assembler only.
  12175. MCU = 'attiny11', 'attiny12', 'attiny15', 'attiny28',
  12176. 'at90s1200'.
  12177. '-mabsdata'
  12178. Assume that all data in static storage can be accessed by LDS / STS
  12179. instructions. This option has only an effect on reduced Tiny
  12180. devices like ATtiny40. See also the 'absdata' *note variable
  12181. attribute: AVR Variable Attributes.
  12182. '-maccumulate-args'
  12183. Accumulate outgoing function arguments and acquire/release the
  12184. needed stack space for outgoing function arguments once in function
  12185. prologue/epilogue. Without this option, outgoing arguments are
  12186. pushed before calling a function and popped afterwards.
  12187. Popping the arguments after the function call can be expensive on
  12188. AVR so that accumulating the stack space might lead to smaller
  12189. executables because arguments need not be removed from the stack
  12190. after such a function call.
  12191. This option can lead to reduced code size for functions that
  12192. perform several calls to functions that get their arguments on the
  12193. stack like calls to printf-like functions.
  12194. '-mbranch-cost=COST'
  12195. Set the branch costs for conditional branch instructions to COST.
  12196. Reasonable values for COST are small, non-negative integers. The
  12197. default branch cost is 0.
  12198. '-mcall-prologues'
  12199. Functions prologues/epilogues are expanded as calls to appropriate
  12200. subroutines. Code size is smaller.
  12201. '-mint8'
  12202. Assume 'int' to be 8-bit integer. This affects the sizes of all
  12203. types: a 'char' is 1 byte, an 'int' is 1 byte, a 'long' is 2 bytes,
  12204. and 'long long' is 4 bytes. Please note that this option does not
  12205. conform to the C standards, but it results in smaller code size.
  12206. '-mn-flash=NUM'
  12207. Assume that the flash memory has a size of NUM times 64 KiB.
  12208. '-mno-interrupts'
  12209. Generated code is not compatible with hardware interrupts. Code
  12210. size is smaller.
  12211. '-mrelax'
  12212. Try to replace 'CALL' resp. 'JMP' instruction by the shorter
  12213. 'RCALL' resp. 'RJMP' instruction if applicable. Setting '-mrelax'
  12214. just adds the '--mlink-relax' option to the assembler's command
  12215. line and the '--relax' option to the linker's command line.
  12216. Jump relaxing is performed by the linker because jump offsets are
  12217. not known before code is located. Therefore, the assembler code
  12218. generated by the compiler is the same, but the instructions in the
  12219. executable may differ from instructions in the assembler code.
  12220. Relaxing must be turned on if linker stubs are needed, see the
  12221. section on 'EIND' and linker stubs below.
  12222. '-mrmw'
  12223. Assume that the device supports the Read-Modify-Write instructions
  12224. 'XCH', 'LAC', 'LAS' and 'LAT'.
  12225. '-msp8'
  12226. Treat the stack pointer register as an 8-bit register, i.e. assume
  12227. the high byte of the stack pointer is zero. In general, you don't
  12228. need to set this option by hand.
  12229. This option is used internally by the compiler to select and build
  12230. multilibs for architectures 'avr2' and 'avr25'. These
  12231. architectures mix devices with and without 'SPH'. For any setting
  12232. other than '-mmcu=avr2' or '-mmcu=avr25' the compiler driver adds
  12233. or removes this option from the compiler proper's command line,
  12234. because the compiler then knows if the device or architecture has
  12235. an 8-bit stack pointer and thus no 'SPH' register or not.
  12236. '-mstrict-X'
  12237. Use address register 'X' in a way proposed by the hardware. This
  12238. means that 'X' is only used in indirect, post-increment or
  12239. pre-decrement addressing.
  12240. Without this option, the 'X' register may be used in the same way
  12241. as 'Y' or 'Z' which then is emulated by additional instructions.
  12242. For example, loading a value with 'X+const' addressing with a small
  12243. non-negative 'const < 64' to a register RN is performed as
  12244. adiw r26, const ; X += const
  12245. ld RN, X ; RN = *X
  12246. sbiw r26, const ; X -= const
  12247. '-mtiny-stack'
  12248. Only change the lower 8 bits of the stack pointer.
  12249. '-mfract-convert-truncate'
  12250. Allow to use truncation instead of rounding towards zero for
  12251. fractional fixed-point types.
  12252. '-nodevicelib'
  12253. Don't link against AVR-LibC's device specific library 'lib<mcu>.a'.
  12254. '-Waddr-space-convert'
  12255. Warn about conversions between address spaces in the case where the
  12256. resulting address space is not contained in the incoming address
  12257. space.
  12258. '-Wmisspelled-isr'
  12259. Warn if the ISR is misspelled, i.e. without __vector prefix.
  12260. Enabled by default.
  12261. 3.18.5.1 'EIND' and Devices with More Than 128 Ki Bytes of Flash
  12262. ................................................................
  12263. Pointers in the implementation are 16 bits wide. The address of a
  12264. function or label is represented as word address so that indirect jumps
  12265. and calls can target any code address in the range of 64 Ki words.
  12266. In order to facilitate indirect jump on devices with more than 128 Ki
  12267. bytes of program memory space, there is a special function register
  12268. called 'EIND' that serves as most significant part of the target address
  12269. when 'EICALL' or 'EIJMP' instructions are used.
  12270. Indirect jumps and calls on these devices are handled as follows by the
  12271. compiler and are subject to some limitations:
  12272. * The compiler never sets 'EIND'.
  12273. * The compiler uses 'EIND' implicitly in 'EICALL'/'EIJMP'
  12274. instructions or might read 'EIND' directly in order to emulate an
  12275. indirect call/jump by means of a 'RET' instruction.
  12276. * The compiler assumes that 'EIND' never changes during the startup
  12277. code or during the application. In particular, 'EIND' is not
  12278. saved/restored in function or interrupt service routine
  12279. prologue/epilogue.
  12280. * For indirect calls to functions and computed goto, the linker
  12281. generates _stubs_. Stubs are jump pads sometimes also called
  12282. _trampolines_. Thus, the indirect call/jump jumps to such a stub.
  12283. The stub contains a direct jump to the desired address.
  12284. * Linker relaxation must be turned on so that the linker generates
  12285. the stubs correctly in all situations. See the compiler option
  12286. '-mrelax' and the linker option '--relax'. There are corner cases
  12287. where the linker is supposed to generate stubs but aborts without
  12288. relaxation and without a helpful error message.
  12289. * The default linker script is arranged for code with 'EIND = 0'. If
  12290. code is supposed to work for a setup with 'EIND != 0', a custom
  12291. linker script has to be used in order to place the sections whose
  12292. name start with '.trampolines' into the segment where 'EIND' points
  12293. to.
  12294. * The startup code from libgcc never sets 'EIND'. Notice that
  12295. startup code is a blend of code from libgcc and AVR-LibC. For the
  12296. impact of AVR-LibC on 'EIND', see the
  12297. AVR-LibC user manual (http://nongnu.org/avr-libc/user-manual/).
  12298. * It is legitimate for user-specific startup code to set up 'EIND'
  12299. early, for example by means of initialization code located in
  12300. section '.init3'. Such code runs prior to general startup code
  12301. that initializes RAM and calls constructors, but after the bit of
  12302. startup code from AVR-LibC that sets 'EIND' to the segment where
  12303. the vector table is located.
  12304. #include <avr/io.h>
  12305. static void
  12306. __attribute__((section(".init3"),naked,used,no_instrument_function))
  12307. init3_set_eind (void)
  12308. {
  12309. __asm volatile ("ldi r24,pm_hh8(__trampolines_start)\n\t"
  12310. "out %i0,r24" :: "n" (&EIND) : "r24","memory");
  12311. }
  12312. The '__trampolines_start' symbol is defined in the linker script.
  12313. * Stubs are generated automatically by the linker if the following
  12314. two conditions are met:
  12315. - The address of a label is taken by means of the 'gs' modifier
  12316. (short for _generate stubs_) like so:
  12317. LDI r24, lo8(gs(FUNC))
  12318. LDI r25, hi8(gs(FUNC))
  12319. - The final location of that label is in a code segment
  12320. _outside_ the segment where the stubs are located.
  12321. * The compiler emits such 'gs' modifiers for code labels in the
  12322. following situations:
  12323. - Taking address of a function or code label.
  12324. - Computed goto.
  12325. - If prologue-save function is used, see '-mcall-prologues'
  12326. command-line option.
  12327. - Switch/case dispatch tables. If you do not want such dispatch
  12328. tables you can specify the '-fno-jump-tables' command-line
  12329. option.
  12330. - C and C++ constructors/destructors called during
  12331. startup/shutdown.
  12332. - If the tools hit a 'gs()' modifier explained above.
  12333. * Jumping to non-symbolic addresses like so is _not_ supported:
  12334. int main (void)
  12335. {
  12336. /* Call function at word address 0x2 */
  12337. return ((int(*)(void)) 0x2)();
  12338. }
  12339. Instead, a stub has to be set up, i.e. the function has to be
  12340. called through a symbol ('func_4' in the example):
  12341. int main (void)
  12342. {
  12343. extern int func_4 (void);
  12344. /* Call function at byte address 0x4 */
  12345. return func_4();
  12346. }
  12347. and the application be linked with '-Wl,--defsym,func_4=0x4'.
  12348. Alternatively, 'func_4' can be defined in the linker script.
  12349. 3.18.5.2 Handling of the 'RAMPD', 'RAMPX', 'RAMPY' and 'RAMPZ' Special Function Registers
  12350. .........................................................................................
  12351. Some AVR devices support memories larger than the 64 KiB range that can
  12352. be accessed with 16-bit pointers. To access memory locations outside
  12353. this 64 KiB range, the content of a 'RAMP' register is used as high part
  12354. of the address: The 'X', 'Y', 'Z' address register is concatenated with
  12355. the 'RAMPX', 'RAMPY', 'RAMPZ' special function register, respectively,
  12356. to get a wide address. Similarly, 'RAMPD' is used together with direct
  12357. addressing.
  12358. * The startup code initializes the 'RAMP' special function registers
  12359. with zero.
  12360. * If a *note named address space: AVR Named Address Spaces. other
  12361. than generic or '__flash' is used, then 'RAMPZ' is set as needed
  12362. before the operation.
  12363. * If the device supports RAM larger than 64 KiB and the compiler
  12364. needs to change 'RAMPZ' to accomplish an operation, 'RAMPZ' is
  12365. reset to zero after the operation.
  12366. * If the device comes with a specific 'RAMP' register, the ISR
  12367. prologue/epilogue saves/restores that SFR and initializes it with
  12368. zero in case the ISR code might (implicitly) use it.
  12369. * RAM larger than 64 KiB is not supported by GCC for AVR targets. If
  12370. you use inline assembler to read from locations outside the 16-bit
  12371. address range and change one of the 'RAMP' registers, you must
  12372. reset it to zero after the access.
  12373. 3.18.5.3 AVR Built-in Macros
  12374. ............................
  12375. GCC defines several built-in macros so that the user code can test for
  12376. the presence or absence of features. Almost any of the following
  12377. built-in macros are deduced from device capabilities and thus triggered
  12378. by the '-mmcu=' command-line option.
  12379. For even more AVR-specific built-in macros see *note AVR Named Address
  12380. Spaces:: and *note AVR Built-in Functions::.
  12381. '__AVR_ARCH__'
  12382. Build-in macro that resolves to a decimal number that identifies
  12383. the architecture and depends on the '-mmcu=MCU' option. Possible
  12384. values are:
  12385. '2', '25', '3', '31', '35', '4', '5', '51', '6'
  12386. for MCU='avr2', 'avr25', 'avr3', 'avr31', 'avr35', 'avr4', 'avr5',
  12387. 'avr51', 'avr6',
  12388. respectively and
  12389. '100', '102', '104', '105', '106', '107'
  12390. for MCU='avrtiny', 'avrxmega2', 'avrxmega4', 'avrxmega5',
  12391. 'avrxmega6', 'avrxmega7', respectively. If MCU specifies a device,
  12392. this built-in macro is set accordingly. For example, with
  12393. '-mmcu=atmega8' the macro is defined to '4'.
  12394. '__AVR_DEVICE__'
  12395. Setting '-mmcu=DEVICE' defines this built-in macro which reflects
  12396. the device's name. For example, '-mmcu=atmega8' defines the
  12397. built-in macro '__AVR_ATmega8__', '-mmcu=attiny261a' defines
  12398. '__AVR_ATtiny261A__', etc.
  12399. The built-in macros' names follow the scheme '__AVR_DEVICE__' where
  12400. DEVICE is the device name as from the AVR user manual. The
  12401. difference between DEVICE in the built-in macro and DEVICE in
  12402. '-mmcu=DEVICE' is that the latter is always lowercase.
  12403. If DEVICE is not a device but only a core architecture like
  12404. 'avr51', this macro is not defined.
  12405. '__AVR_DEVICE_NAME__'
  12406. Setting '-mmcu=DEVICE' defines this built-in macro to the device's
  12407. name. For example, with '-mmcu=atmega8' the macro is defined to
  12408. 'atmega8'.
  12409. If DEVICE is not a device but only a core architecture like
  12410. 'avr51', this macro is not defined.
  12411. '__AVR_XMEGA__'
  12412. The device / architecture belongs to the XMEGA family of devices.
  12413. '__AVR_HAVE_ELPM__'
  12414. The device has the 'ELPM' instruction.
  12415. '__AVR_HAVE_ELPMX__'
  12416. The device has the 'ELPM RN,Z' and 'ELPM RN,Z+' instructions.
  12417. '__AVR_HAVE_MOVW__'
  12418. The device has the 'MOVW' instruction to perform 16-bit
  12419. register-register moves.
  12420. '__AVR_HAVE_LPMX__'
  12421. The device has the 'LPM RN,Z' and 'LPM RN,Z+' instructions.
  12422. '__AVR_HAVE_MUL__'
  12423. The device has a hardware multiplier.
  12424. '__AVR_HAVE_JMP_CALL__'
  12425. The device has the 'JMP' and 'CALL' instructions. This is the case
  12426. for devices with at least 16 KiB of program memory.
  12427. '__AVR_HAVE_EIJMP_EICALL__'
  12428. '__AVR_3_BYTE_PC__'
  12429. The device has the 'EIJMP' and 'EICALL' instructions. This is the
  12430. case for devices with more than 128 KiB of program memory. This
  12431. also means that the program counter (PC) is 3 bytes wide.
  12432. '__AVR_2_BYTE_PC__'
  12433. The program counter (PC) is 2 bytes wide. This is the case for
  12434. devices with up to 128 KiB of program memory.
  12435. '__AVR_HAVE_8BIT_SP__'
  12436. '__AVR_HAVE_16BIT_SP__'
  12437. The stack pointer (SP) register is treated as 8-bit respectively
  12438. 16-bit register by the compiler. The definition of these macros is
  12439. affected by '-mtiny-stack'.
  12440. '__AVR_HAVE_SPH__'
  12441. '__AVR_SP8__'
  12442. The device has the SPH (high part of stack pointer) special
  12443. function register or has an 8-bit stack pointer, respectively. The
  12444. definition of these macros is affected by '-mmcu=' and in the cases
  12445. of '-mmcu=avr2' and '-mmcu=avr25' also by '-msp8'.
  12446. '__AVR_HAVE_RAMPD__'
  12447. '__AVR_HAVE_RAMPX__'
  12448. '__AVR_HAVE_RAMPY__'
  12449. '__AVR_HAVE_RAMPZ__'
  12450. The device has the 'RAMPD', 'RAMPX', 'RAMPY', 'RAMPZ' special
  12451. function register, respectively.
  12452. '__NO_INTERRUPTS__'
  12453. This macro reflects the '-mno-interrupts' command-line option.
  12454. '__AVR_ERRATA_SKIP__'
  12455. '__AVR_ERRATA_SKIP_JMP_CALL__'
  12456. Some AVR devices (AT90S8515, ATmega103) must not skip 32-bit
  12457. instructions because of a hardware erratum. Skip instructions are
  12458. 'SBRS', 'SBRC', 'SBIS', 'SBIC' and 'CPSE'. The second macro is
  12459. only defined if '__AVR_HAVE_JMP_CALL__' is also set.
  12460. '__AVR_ISA_RMW__'
  12461. The device has Read-Modify-Write instructions (XCH, LAC, LAS and
  12462. LAT).
  12463. '__AVR_SFR_OFFSET__=OFFSET'
  12464. Instructions that can address I/O special function registers
  12465. directly like 'IN', 'OUT', 'SBI', etc. may use a different address
  12466. as if addressed by an instruction to access RAM like 'LD' or 'STS'.
  12467. This offset depends on the device architecture and has to be
  12468. subtracted from the RAM address in order to get the respective
  12469. I/O address.
  12470. '__WITH_AVRLIBC__'
  12471. The compiler is configured to be used together with AVR-Libc. See
  12472. the '--with-avrlibc' configure option.
  12473. 
  12474. File: gcc.info, Node: Blackfin Options, Next: C6X Options, Prev: AVR Options, Up: Submodel Options
  12475. 3.18.6 Blackfin Options
  12476. -----------------------
  12477. '-mcpu=CPU[-SIREVISION]'
  12478. Specifies the name of the target Blackfin processor. Currently,
  12479. CPU can be one of 'bf512', 'bf514', 'bf516', 'bf518', 'bf522',
  12480. 'bf523', 'bf524', 'bf525', 'bf526', 'bf527', 'bf531', 'bf532',
  12481. 'bf533', 'bf534', 'bf536', 'bf537', 'bf538', 'bf539', 'bf542',
  12482. 'bf544', 'bf547', 'bf548', 'bf549', 'bf542m', 'bf544m', 'bf547m',
  12483. 'bf548m', 'bf549m', 'bf561', 'bf592'.
  12484. The optional SIREVISION specifies the silicon revision of the
  12485. target Blackfin processor. Any workarounds available for the
  12486. targeted silicon revision are enabled. If SIREVISION is 'none', no
  12487. workarounds are enabled. If SIREVISION is 'any', all workarounds
  12488. for the targeted processor are enabled. The '__SILICON_REVISION__'
  12489. macro is defined to two hexadecimal digits representing the major
  12490. and minor numbers in the silicon revision. If SIREVISION is
  12491. 'none', the '__SILICON_REVISION__' is not defined. If SIREVISION
  12492. is 'any', the '__SILICON_REVISION__' is defined to be '0xffff'. If
  12493. this optional SIREVISION is not used, GCC assumes the latest known
  12494. silicon revision of the targeted Blackfin processor.
  12495. GCC defines a preprocessor macro for the specified CPU. For the
  12496. 'bfin-elf' toolchain, this option causes the hardware BSP provided
  12497. by libgloss to be linked in if '-msim' is not given.
  12498. Without this option, 'bf532' is used as the processor by default.
  12499. Note that support for 'bf561' is incomplete. For 'bf561', only the
  12500. preprocessor macro is defined.
  12501. '-msim'
  12502. Specifies that the program will be run on the simulator. This
  12503. causes the simulator BSP provided by libgloss to be linked in.
  12504. This option has effect only for 'bfin-elf' toolchain. Certain
  12505. other options, such as '-mid-shared-library' and '-mfdpic', imply
  12506. '-msim'.
  12507. '-momit-leaf-frame-pointer'
  12508. Don't keep the frame pointer in a register for leaf functions.
  12509. This avoids the instructions to save, set up and restore frame
  12510. pointers and makes an extra register available in leaf functions.
  12511. The option '-fomit-frame-pointer' removes the frame pointer for all
  12512. functions, which might make debugging harder.
  12513. '-mspecld-anomaly'
  12514. When enabled, the compiler ensures that the generated code does not
  12515. contain speculative loads after jump instructions. If this option
  12516. is used, '__WORKAROUND_SPECULATIVE_LOADS' is defined.
  12517. '-mno-specld-anomaly'
  12518. Don't generate extra code to prevent speculative loads from
  12519. occurring.
  12520. '-mcsync-anomaly'
  12521. When enabled, the compiler ensures that the generated code does not
  12522. contain CSYNC or SSYNC instructions too soon after conditional
  12523. branches. If this option is used, '__WORKAROUND_SPECULATIVE_SYNCS'
  12524. is defined.
  12525. '-mno-csync-anomaly'
  12526. Don't generate extra code to prevent CSYNC or SSYNC instructions
  12527. from occurring too soon after a conditional branch.
  12528. '-mlow-64k'
  12529. When enabled, the compiler is free to take advantage of the
  12530. knowledge that the entire program fits into the low 64k of memory.
  12531. '-mno-low-64k'
  12532. Assume that the program is arbitrarily large. This is the default.
  12533. '-mstack-check-l1'
  12534. Do stack checking using information placed into L1 scratchpad
  12535. memory by the uClinux kernel.
  12536. '-mid-shared-library'
  12537. Generate code that supports shared libraries via the library ID
  12538. method. This allows for execute in place and shared libraries in
  12539. an environment without virtual memory management. This option
  12540. implies '-fPIC'. With a 'bfin-elf' target, this option implies
  12541. '-msim'.
  12542. '-mno-id-shared-library'
  12543. Generate code that doesn't assume ID-based shared libraries are
  12544. being used. This is the default.
  12545. '-mleaf-id-shared-library'
  12546. Generate code that supports shared libraries via the library ID
  12547. method, but assumes that this library or executable won't link
  12548. against any other ID shared libraries. That allows the compiler to
  12549. use faster code for jumps and calls.
  12550. '-mno-leaf-id-shared-library'
  12551. Do not assume that the code being compiled won't link against any
  12552. ID shared libraries. Slower code is generated for jump and call
  12553. insns.
  12554. '-mshared-library-id=n'
  12555. Specifies the identification number of the ID-based shared library
  12556. being compiled. Specifying a value of 0 generates more compact
  12557. code; specifying other values forces the allocation of that number
  12558. to the current library but is no more space- or time-efficient than
  12559. omitting this option.
  12560. '-msep-data'
  12561. Generate code that allows the data segment to be located in a
  12562. different area of memory from the text segment. This allows for
  12563. execute in place in an environment without virtual memory
  12564. management by eliminating relocations against the text section.
  12565. '-mno-sep-data'
  12566. Generate code that assumes that the data segment follows the text
  12567. segment. This is the default.
  12568. '-mlong-calls'
  12569. '-mno-long-calls'
  12570. Tells the compiler to perform function calls by first loading the
  12571. address of the function into a register and then performing a
  12572. subroutine call on this register. This switch is needed if the
  12573. target function lies outside of the 24-bit addressing range of the
  12574. offset-based version of subroutine call instruction.
  12575. This feature is not enabled by default. Specifying
  12576. '-mno-long-calls' restores the default behavior. Note these
  12577. switches have no effect on how the compiler generates code to
  12578. handle function calls via function pointers.
  12579. '-mfast-fp'
  12580. Link with the fast floating-point library. This library relaxes
  12581. some of the IEEE floating-point standard's rules for checking
  12582. inputs against Not-a-Number (NAN), in the interest of performance.
  12583. '-minline-plt'
  12584. Enable inlining of PLT entries in function calls to functions that
  12585. are not known to bind locally. It has no effect without '-mfdpic'.
  12586. '-mmulticore'
  12587. Build a standalone application for multicore Blackfin processors.
  12588. This option causes proper start files and link scripts supporting
  12589. multicore to be used, and defines the macro '__BFIN_MULTICORE'. It
  12590. can only be used with '-mcpu=bf561[-SIREVISION]'.
  12591. This option can be used with '-mcorea' or '-mcoreb', which selects
  12592. the one-application-per-core programming model. Without '-mcorea'
  12593. or '-mcoreb', the single-application/dual-core programming model is
  12594. used. In this model, the main function of Core B should be named
  12595. as 'coreb_main'.
  12596. If this option is not used, the single-core application programming
  12597. model is used.
  12598. '-mcorea'
  12599. Build a standalone application for Core A of BF561 when using the
  12600. one-application-per-core programming model. Proper start files and
  12601. link scripts are used to support Core A, and the macro
  12602. '__BFIN_COREA' is defined. This option can only be used in
  12603. conjunction with '-mmulticore'.
  12604. '-mcoreb'
  12605. Build a standalone application for Core B of BF561 when using the
  12606. one-application-per-core programming model. Proper start files and
  12607. link scripts are used to support Core B, and the macro
  12608. '__BFIN_COREB' is defined. When this option is used, 'coreb_main'
  12609. should be used instead of 'main'. This option can only be used in
  12610. conjunction with '-mmulticore'.
  12611. '-msdram'
  12612. Build a standalone application for SDRAM. Proper start files and
  12613. link scripts are used to put the application into SDRAM, and the
  12614. macro '__BFIN_SDRAM' is defined. The loader should initialize
  12615. SDRAM before loading the application.
  12616. '-micplb'
  12617. Assume that ICPLBs are enabled at run time. This has an effect on
  12618. certain anomaly workarounds. For Linux targets, the default is to
  12619. assume ICPLBs are enabled; for standalone applications the default
  12620. is off.
  12621. 
  12622. File: gcc.info, Node: C6X Options, Next: CRIS Options, Prev: Blackfin Options, Up: Submodel Options
  12623. 3.18.7 C6X Options
  12624. ------------------
  12625. '-march=NAME'
  12626. This specifies the name of the target architecture. GCC uses this
  12627. name to determine what kind of instructions it can emit when
  12628. generating assembly code. Permissible names are: 'c62x', 'c64x',
  12629. 'c64x+', 'c67x', 'c67x+', 'c674x'.
  12630. '-mbig-endian'
  12631. Generate code for a big-endian target.
  12632. '-mlittle-endian'
  12633. Generate code for a little-endian target. This is the default.
  12634. '-msim'
  12635. Choose startup files and linker script suitable for the simulator.
  12636. '-msdata=default'
  12637. Put small global and static data in the '.neardata' section, which
  12638. is pointed to by register 'B14'. Put small uninitialized global
  12639. and static data in the '.bss' section, which is adjacent to the
  12640. '.neardata' section. Put small read-only data into the '.rodata'
  12641. section. The corresponding sections used for large pieces of data
  12642. are '.fardata', '.far' and '.const'.
  12643. '-msdata=all'
  12644. Put all data, not just small objects, into the sections reserved
  12645. for small data, and use addressing relative to the 'B14' register
  12646. to access them.
  12647. '-msdata=none'
  12648. Make no use of the sections reserved for small data, and use
  12649. absolute addresses to access all data. Put all initialized global
  12650. and static data in the '.fardata' section, and all uninitialized
  12651. data in the '.far' section. Put all constant data into the
  12652. '.const' section.
  12653. 
  12654. File: gcc.info, Node: CRIS Options, Next: CR16 Options, Prev: C6X Options, Up: Submodel Options
  12655. 3.18.8 CRIS Options
  12656. -------------------
  12657. These options are defined specifically for the CRIS ports.
  12658. '-march=ARCHITECTURE-TYPE'
  12659. '-mcpu=ARCHITECTURE-TYPE'
  12660. Generate code for the specified architecture. The choices for
  12661. ARCHITECTURE-TYPE are 'v3', 'v8' and 'v10' for respectively
  12662. ETRAX 4, ETRAX 100, and ETRAX 100 LX. Default is 'v0' except for
  12663. cris-axis-linux-gnu, where the default is 'v10'.
  12664. '-mtune=ARCHITECTURE-TYPE'
  12665. Tune to ARCHITECTURE-TYPE everything applicable about the generated
  12666. code, except for the ABI and the set of available instructions.
  12667. The choices for ARCHITECTURE-TYPE are the same as for
  12668. '-march=ARCHITECTURE-TYPE'.
  12669. '-mmax-stack-frame=N'
  12670. Warn when the stack frame of a function exceeds N bytes.
  12671. '-metrax4'
  12672. '-metrax100'
  12673. The options '-metrax4' and '-metrax100' are synonyms for
  12674. '-march=v3' and '-march=v8' respectively.
  12675. '-mmul-bug-workaround'
  12676. '-mno-mul-bug-workaround'
  12677. Work around a bug in the 'muls' and 'mulu' instructions for CPU
  12678. models where it applies. This option is active by default.
  12679. '-mpdebug'
  12680. Enable CRIS-specific verbose debug-related information in the
  12681. assembly code. This option also has the effect of turning off the
  12682. '#NO_APP' formatted-code indicator to the assembler at the
  12683. beginning of the assembly file.
  12684. '-mcc-init'
  12685. Do not use condition-code results from previous instruction; always
  12686. emit compare and test instructions before use of condition codes.
  12687. '-mno-side-effects'
  12688. Do not emit instructions with side effects in addressing modes
  12689. other than post-increment.
  12690. '-mstack-align'
  12691. '-mno-stack-align'
  12692. '-mdata-align'
  12693. '-mno-data-align'
  12694. '-mconst-align'
  12695. '-mno-const-align'
  12696. These options ('no-' options) arrange (eliminate arrangements) for
  12697. the stack frame, individual data and constants to be aligned for
  12698. the maximum single data access size for the chosen CPU model. The
  12699. default is to arrange for 32-bit alignment. ABI details such as
  12700. structure layout are not affected by these options.
  12701. '-m32-bit'
  12702. '-m16-bit'
  12703. '-m8-bit'
  12704. Similar to the stack- data- and const-align options above, these
  12705. options arrange for stack frame, writable data and constants to all
  12706. be 32-bit, 16-bit or 8-bit aligned. The default is 32-bit
  12707. alignment.
  12708. '-mno-prologue-epilogue'
  12709. '-mprologue-epilogue'
  12710. With '-mno-prologue-epilogue', the normal function prologue and
  12711. epilogue which set up the stack frame are omitted and no return
  12712. instructions or return sequences are generated in the code. Use
  12713. this option only together with visual inspection of the compiled
  12714. code: no warnings or errors are generated when call-saved registers
  12715. must be saved, or storage for local variables needs to be
  12716. allocated.
  12717. '-mno-gotplt'
  12718. '-mgotplt'
  12719. With '-fpic' and '-fPIC', don't generate (do generate) instruction
  12720. sequences that load addresses for functions from the PLT part of
  12721. the GOT rather than (traditional on other architectures) calls to
  12722. the PLT. The default is '-mgotplt'.
  12723. '-melf'
  12724. Legacy no-op option only recognized with the cris-axis-elf and
  12725. cris-axis-linux-gnu targets.
  12726. '-mlinux'
  12727. Legacy no-op option only recognized with the cris-axis-linux-gnu
  12728. target.
  12729. '-sim'
  12730. This option, recognized for the cris-axis-elf, arranges to link
  12731. with input-output functions from a simulator library. Code,
  12732. initialized data and zero-initialized data are allocated
  12733. consecutively.
  12734. '-sim2'
  12735. Like '-sim', but pass linker options to locate initialized data at
  12736. 0x40000000 and zero-initialized data at 0x80000000.
  12737. 
  12738. File: gcc.info, Node: CR16 Options, Next: Darwin Options, Prev: CRIS Options, Up: Submodel Options
  12739. 3.18.9 CR16 Options
  12740. -------------------
  12741. These options are defined specifically for the CR16 ports.
  12742. '-mmac'
  12743. Enable the use of multiply-accumulate instructions. Disabled by
  12744. default.
  12745. '-mcr16cplus'
  12746. '-mcr16c'
  12747. Generate code for CR16C or CR16C+ architecture. CR16C+
  12748. architecture is default.
  12749. '-msim'
  12750. Links the library libsim.a which is in compatible with simulator.
  12751. Applicable to ELF compiler only.
  12752. '-mint32'
  12753. Choose integer type as 32-bit wide.
  12754. '-mbit-ops'
  12755. Generates 'sbit'/'cbit' instructions for bit manipulations.
  12756. '-mdata-model=MODEL'
  12757. Choose a data model. The choices for MODEL are 'near', 'far' or
  12758. 'medium'. 'medium' is default. However, 'far' is not valid with
  12759. '-mcr16c', as the CR16C architecture does not support the far data
  12760. model.
  12761. 
  12762. File: gcc.info, Node: Darwin Options, Next: DEC Alpha Options, Prev: CR16 Options, Up: Submodel Options
  12763. 3.18.10 Darwin Options
  12764. ----------------------
  12765. These options are defined for all architectures running the Darwin
  12766. operating system.
  12767. FSF GCC on Darwin does not create "fat" object files; it creates an
  12768. object file for the single architecture that GCC was built to target.
  12769. Apple's GCC on Darwin does create "fat" files if multiple '-arch'
  12770. options are used; it does so by running the compiler or linker multiple
  12771. times and joining the results together with 'lipo'.
  12772. The subtype of the file created (like 'ppc7400' or 'ppc970' or 'i686')
  12773. is determined by the flags that specify the ISA that GCC is targeting,
  12774. like '-mcpu' or '-march'. The '-force_cpusubtype_ALL' option can be
  12775. used to override this.
  12776. The Darwin tools vary in their behavior when presented with an ISA
  12777. mismatch. The assembler, 'as', only permits instructions to be used
  12778. that are valid for the subtype of the file it is generating, so you
  12779. cannot put 64-bit instructions in a 'ppc750' object file. The linker
  12780. for shared libraries, '/usr/bin/libtool', fails and prints an error if
  12781. asked to create a shared library with a less restrictive subtype than
  12782. its input files (for instance, trying to put a 'ppc970' object file in a
  12783. 'ppc7400' library). The linker for executables, 'ld', quietly gives the
  12784. executable the most restrictive subtype of any of its input files.
  12785. '-FDIR'
  12786. Add the framework directory DIR to the head of the list of
  12787. directories to be searched for header files. These directories are
  12788. interleaved with those specified by '-I' options and are scanned in
  12789. a left-to-right order.
  12790. A framework directory is a directory with frameworks in it. A
  12791. framework is a directory with a 'Headers' and/or 'PrivateHeaders'
  12792. directory contained directly in it that ends in '.framework'. The
  12793. name of a framework is the name of this directory excluding the
  12794. '.framework'. Headers associated with the framework are found in
  12795. one of those two directories, with 'Headers' being searched first.
  12796. A subframework is a framework directory that is in a framework's
  12797. 'Frameworks' directory. Includes of subframework headers can only
  12798. appear in a header of a framework that contains the subframework,
  12799. or in a sibling subframework header. Two subframeworks are
  12800. siblings if they occur in the same framework. A subframework
  12801. should not have the same name as a framework; a warning is issued
  12802. if this is violated. Currently a subframework cannot have
  12803. subframeworks; in the future, the mechanism may be extended to
  12804. support this. The standard frameworks can be found in
  12805. '/System/Library/Frameworks' and '/Library/Frameworks'. An example
  12806. include looks like '#include <Framework/header.h>', where
  12807. 'Framework' denotes the name of the framework and 'header.h' is
  12808. found in the 'PrivateHeaders' or 'Headers' directory.
  12809. '-iframeworkDIR'
  12810. Like '-F' except the directory is a treated as a system directory.
  12811. The main difference between this '-iframework' and '-F' is that
  12812. with '-iframework' the compiler does not warn about constructs
  12813. contained within header files found via DIR. This option is valid
  12814. only for the C family of languages.
  12815. '-gused'
  12816. Emit debugging information for symbols that are used. For stabs
  12817. debugging format, this enables '-feliminate-unused-debug-symbols'.
  12818. This is by default ON.
  12819. '-gfull'
  12820. Emit debugging information for all symbols and types.
  12821. '-mmacosx-version-min=VERSION'
  12822. The earliest version of MacOS X that this executable will run on is
  12823. VERSION. Typical values of VERSION include '10.1', '10.2', and
  12824. '10.3.9'.
  12825. If the compiler was built to use the system's headers by default,
  12826. then the default for this option is the system version on which the
  12827. compiler is running, otherwise the default is to make choices that
  12828. are compatible with as many systems and code bases as possible.
  12829. '-mkernel'
  12830. Enable kernel development mode. The '-mkernel' option sets
  12831. '-static', '-fno-common', '-fno-use-cxa-atexit', '-fno-exceptions',
  12832. '-fno-non-call-exceptions', '-fapple-kext', '-fno-weak' and
  12833. '-fno-rtti' where applicable. This mode also sets '-mno-altivec',
  12834. '-msoft-float', '-fno-builtin' and '-mlong-branch' for PowerPC
  12835. targets.
  12836. '-mone-byte-bool'
  12837. Override the defaults for 'bool' so that 'sizeof(bool)==1'. By
  12838. default 'sizeof(bool)' is '4' when compiling for Darwin/PowerPC and
  12839. '1' when compiling for Darwin/x86, so this option has no effect on
  12840. x86.
  12841. *Warning:* The '-mone-byte-bool' switch causes GCC to generate code
  12842. that is not binary compatible with code generated without that
  12843. switch. Using this switch may require recompiling all other
  12844. modules in a program, including system libraries. Use this switch
  12845. to conform to a non-default data model.
  12846. '-mfix-and-continue'
  12847. '-ffix-and-continue'
  12848. '-findirect-data'
  12849. Generate code suitable for fast turnaround development, such as to
  12850. allow GDB to dynamically load '.o' files into already-running
  12851. programs. '-findirect-data' and '-ffix-and-continue' are provided
  12852. for backwards compatibility.
  12853. '-all_load'
  12854. Loads all members of static archive libraries. See man ld(1) for
  12855. more information.
  12856. '-arch_errors_fatal'
  12857. Cause the errors having to do with files that have the wrong
  12858. architecture to be fatal.
  12859. '-bind_at_load'
  12860. Causes the output file to be marked such that the dynamic linker
  12861. will bind all undefined references when the file is loaded or
  12862. launched.
  12863. '-bundle'
  12864. Produce a Mach-o bundle format file. See man ld(1) for more
  12865. information.
  12866. '-bundle_loader EXECUTABLE'
  12867. This option specifies the EXECUTABLE that will load the build
  12868. output file being linked. See man ld(1) for more information.
  12869. '-dynamiclib'
  12870. When passed this option, GCC produces a dynamic library instead of
  12871. an executable when linking, using the Darwin 'libtool' command.
  12872. '-force_cpusubtype_ALL'
  12873. This causes GCC's output file to have the 'ALL' subtype, instead of
  12874. one controlled by the '-mcpu' or '-march' option.
  12875. '-allowable_client CLIENT_NAME'
  12876. '-client_name'
  12877. '-compatibility_version'
  12878. '-current_version'
  12879. '-dead_strip'
  12880. '-dependency-file'
  12881. '-dylib_file'
  12882. '-dylinker_install_name'
  12883. '-dynamic'
  12884. '-exported_symbols_list'
  12885. '-filelist'
  12886. '-flat_namespace'
  12887. '-force_flat_namespace'
  12888. '-headerpad_max_install_names'
  12889. '-image_base'
  12890. '-init'
  12891. '-install_name'
  12892. '-keep_private_externs'
  12893. '-multi_module'
  12894. '-multiply_defined'
  12895. '-multiply_defined_unused'
  12896. '-noall_load'
  12897. '-no_dead_strip_inits_and_terms'
  12898. '-nofixprebinding'
  12899. '-nomultidefs'
  12900. '-noprebind'
  12901. '-noseglinkedit'
  12902. '-pagezero_size'
  12903. '-prebind'
  12904. '-prebind_all_twolevel_modules'
  12905. '-private_bundle'
  12906. '-read_only_relocs'
  12907. '-sectalign'
  12908. '-sectobjectsymbols'
  12909. '-whyload'
  12910. '-seg1addr'
  12911. '-sectcreate'
  12912. '-sectobjectsymbols'
  12913. '-sectorder'
  12914. '-segaddr'
  12915. '-segs_read_only_addr'
  12916. '-segs_read_write_addr'
  12917. '-seg_addr_table'
  12918. '-seg_addr_table_filename'
  12919. '-seglinkedit'
  12920. '-segprot'
  12921. '-segs_read_only_addr'
  12922. '-segs_read_write_addr'
  12923. '-single_module'
  12924. '-static'
  12925. '-sub_library'
  12926. '-sub_umbrella'
  12927. '-twolevel_namespace'
  12928. '-umbrella'
  12929. '-undefined'
  12930. '-unexported_symbols_list'
  12931. '-weak_reference_mismatches'
  12932. '-whatsloaded'
  12933. These options are passed to the Darwin linker. The Darwin linker
  12934. man page describes them in detail.
  12935. 
  12936. File: gcc.info, Node: DEC Alpha Options, Next: FR30 Options, Prev: Darwin Options, Up: Submodel Options
  12937. 3.18.11 DEC Alpha Options
  12938. -------------------------
  12939. These '-m' options are defined for the DEC Alpha implementations:
  12940. '-mno-soft-float'
  12941. '-msoft-float'
  12942. Use (do not use) the hardware floating-point instructions for
  12943. floating-point operations. When '-msoft-float' is specified,
  12944. functions in 'libgcc.a' are used to perform floating-point
  12945. operations. Unless they are replaced by routines that emulate the
  12946. floating-point operations, or compiled in such a way as to call
  12947. such emulations routines, these routines issue floating-point
  12948. operations. If you are compiling for an Alpha without
  12949. floating-point operations, you must ensure that the library is
  12950. built so as not to call them.
  12951. Note that Alpha implementations without floating-point operations
  12952. are required to have floating-point registers.
  12953. '-mfp-reg'
  12954. '-mno-fp-regs'
  12955. Generate code that uses (does not use) the floating-point register
  12956. set. '-mno-fp-regs' implies '-msoft-float'. If the floating-point
  12957. register set is not used, floating-point operands are passed in
  12958. integer registers as if they were integers and floating-point
  12959. results are passed in '$0' instead of '$f0'. This is a
  12960. non-standard calling sequence, so any function with a
  12961. floating-point argument or return value called by code compiled
  12962. with '-mno-fp-regs' must also be compiled with that option.
  12963. A typical use of this option is building a kernel that does not
  12964. use, and hence need not save and restore, any floating-point
  12965. registers.
  12966. '-mieee'
  12967. The Alpha architecture implements floating-point hardware optimized
  12968. for maximum performance. It is mostly compliant with the IEEE
  12969. floating-point standard. However, for full compliance, software
  12970. assistance is required. This option generates code fully
  12971. IEEE-compliant code _except_ that the INEXACT-FLAG is not
  12972. maintained (see below). If this option is turned on, the
  12973. preprocessor macro '_IEEE_FP' is defined during compilation. The
  12974. resulting code is less efficient but is able to correctly support
  12975. denormalized numbers and exceptional IEEE values such as
  12976. not-a-number and plus/minus infinity. Other Alpha compilers call
  12977. this option '-ieee_with_no_inexact'.
  12978. '-mieee-with-inexact'
  12979. This is like '-mieee' except the generated code also maintains the
  12980. IEEE INEXACT-FLAG. Turning on this option causes the generated
  12981. code to implement fully-compliant IEEE math. In addition to
  12982. '_IEEE_FP', '_IEEE_FP_EXACT' is defined as a preprocessor macro.
  12983. On some Alpha implementations the resulting code may execute
  12984. significantly slower than the code generated by default. Since
  12985. there is very little code that depends on the INEXACT-FLAG, you
  12986. should normally not specify this option. Other Alpha compilers
  12987. call this option '-ieee_with_inexact'.
  12988. '-mfp-trap-mode=TRAP-MODE'
  12989. This option controls what floating-point related traps are enabled.
  12990. Other Alpha compilers call this option '-fptm TRAP-MODE'. The trap
  12991. mode can be set to one of four values:
  12992. 'n'
  12993. This is the default (normal) setting. The only traps that are
  12994. enabled are the ones that cannot be disabled in software
  12995. (e.g., division by zero trap).
  12996. 'u'
  12997. In addition to the traps enabled by 'n', underflow traps are
  12998. enabled as well.
  12999. 'su'
  13000. Like 'u', but the instructions are marked to be safe for
  13001. software completion (see Alpha architecture manual for
  13002. details).
  13003. 'sui'
  13004. Like 'su', but inexact traps are enabled as well.
  13005. '-mfp-rounding-mode=ROUNDING-MODE'
  13006. Selects the IEEE rounding mode. Other Alpha compilers call this
  13007. option '-fprm ROUNDING-MODE'. The ROUNDING-MODE can be one of:
  13008. 'n'
  13009. Normal IEEE rounding mode. Floating-point numbers are rounded
  13010. towards the nearest machine number or towards the even machine
  13011. number in case of a tie.
  13012. 'm'
  13013. Round towards minus infinity.
  13014. 'c'
  13015. Chopped rounding mode. Floating-point numbers are rounded
  13016. towards zero.
  13017. 'd'
  13018. Dynamic rounding mode. A field in the floating-point control
  13019. register (FPCR, see Alpha architecture reference manual)
  13020. controls the rounding mode in effect. The C library
  13021. initializes this register for rounding towards plus infinity.
  13022. Thus, unless your program modifies the FPCR, 'd' corresponds
  13023. to round towards plus infinity.
  13024. '-mtrap-precision=TRAP-PRECISION'
  13025. In the Alpha architecture, floating-point traps are imprecise.
  13026. This means without software assistance it is impossible to recover
  13027. from a floating trap and program execution normally needs to be
  13028. terminated. GCC can generate code that can assist operating system
  13029. trap handlers in determining the exact location that caused a
  13030. floating-point trap. Depending on the requirements of an
  13031. application, different levels of precisions can be selected:
  13032. 'p'
  13033. Program precision. This option is the default and means a
  13034. trap handler can only identify which program caused a
  13035. floating-point exception.
  13036. 'f'
  13037. Function precision. The trap handler can determine the
  13038. function that caused a floating-point exception.
  13039. 'i'
  13040. Instruction precision. The trap handler can determine the
  13041. exact instruction that caused a floating-point exception.
  13042. Other Alpha compilers provide the equivalent options called
  13043. '-scope_safe' and '-resumption_safe'.
  13044. '-mieee-conformant'
  13045. This option marks the generated code as IEEE conformant. You must
  13046. not use this option unless you also specify '-mtrap-precision=i'
  13047. and either '-mfp-trap-mode=su' or '-mfp-trap-mode=sui'. Its only
  13048. effect is to emit the line '.eflag 48' in the function prologue of
  13049. the generated assembly file.
  13050. '-mbuild-constants'
  13051. Normally GCC examines a 32- or 64-bit integer constant to see if it
  13052. can construct it from smaller constants in two or three
  13053. instructions. If it cannot, it outputs the constant as a literal
  13054. and generates code to load it from the data segment at run time.
  13055. Use this option to require GCC to construct _all_ integer constants
  13056. using code, even if it takes more instructions (the maximum is
  13057. six).
  13058. You typically use this option to build a shared library dynamic
  13059. loader. Itself a shared library, it must relocate itself in memory
  13060. before it can find the variables and constants in its own data
  13061. segment.
  13062. '-mbwx'
  13063. '-mno-bwx'
  13064. '-mcix'
  13065. '-mno-cix'
  13066. '-mfix'
  13067. '-mno-fix'
  13068. '-mmax'
  13069. '-mno-max'
  13070. Indicate whether GCC should generate code to use the optional BWX,
  13071. CIX, FIX and MAX instruction sets. The default is to use the
  13072. instruction sets supported by the CPU type specified via '-mcpu='
  13073. option or that of the CPU on which GCC was built if none is
  13074. specified.
  13075. '-mfloat-vax'
  13076. '-mfloat-ieee'
  13077. Generate code that uses (does not use) VAX F and G floating-point
  13078. arithmetic instead of IEEE single and double precision.
  13079. '-mexplicit-relocs'
  13080. '-mno-explicit-relocs'
  13081. Older Alpha assemblers provided no way to generate symbol
  13082. relocations except via assembler macros. Use of these macros does
  13083. not allow optimal instruction scheduling. GNU binutils as of
  13084. version 2.12 supports a new syntax that allows the compiler to
  13085. explicitly mark which relocations should apply to which
  13086. instructions. This option is mostly useful for debugging, as GCC
  13087. detects the capabilities of the assembler when it is built and sets
  13088. the default accordingly.
  13089. '-msmall-data'
  13090. '-mlarge-data'
  13091. When '-mexplicit-relocs' is in effect, static data is accessed via
  13092. "gp-relative" relocations. When '-msmall-data' is used, objects 8
  13093. bytes long or smaller are placed in a "small data area" (the
  13094. '.sdata' and '.sbss' sections) and are accessed via 16-bit
  13095. relocations off of the '$gp' register. This limits the size of the
  13096. small data area to 64KB, but allows the variables to be directly
  13097. accessed via a single instruction.
  13098. The default is '-mlarge-data'. With this option the data area is
  13099. limited to just below 2GB. Programs that require more than 2GB of
  13100. data must use 'malloc' or 'mmap' to allocate the data in the heap
  13101. instead of in the program's data segment.
  13102. When generating code for shared libraries, '-fpic' implies
  13103. '-msmall-data' and '-fPIC' implies '-mlarge-data'.
  13104. '-msmall-text'
  13105. '-mlarge-text'
  13106. When '-msmall-text' is used, the compiler assumes that the code of
  13107. the entire program (or shared library) fits in 4MB, and is thus
  13108. reachable with a branch instruction. When '-msmall-data' is used,
  13109. the compiler can assume that all local symbols share the same '$gp'
  13110. value, and thus reduce the number of instructions required for a
  13111. function call from 4 to 1.
  13112. The default is '-mlarge-text'.
  13113. '-mcpu=CPU_TYPE'
  13114. Set the instruction set and instruction scheduling parameters for
  13115. machine type CPU_TYPE. You can specify either the 'EV' style name
  13116. or the corresponding chip number. GCC supports scheduling
  13117. parameters for the EV4, EV5 and EV6 family of processors and
  13118. chooses the default values for the instruction set from the
  13119. processor you specify. If you do not specify a processor type, GCC
  13120. defaults to the processor on which the compiler was built.
  13121. Supported values for CPU_TYPE are
  13122. 'ev4'
  13123. 'ev45'
  13124. '21064'
  13125. Schedules as an EV4 and has no instruction set extensions.
  13126. 'ev5'
  13127. '21164'
  13128. Schedules as an EV5 and has no instruction set extensions.
  13129. 'ev56'
  13130. '21164a'
  13131. Schedules as an EV5 and supports the BWX extension.
  13132. 'pca56'
  13133. '21164pc'
  13134. '21164PC'
  13135. Schedules as an EV5 and supports the BWX and MAX extensions.
  13136. 'ev6'
  13137. '21264'
  13138. Schedules as an EV6 and supports the BWX, FIX, and MAX
  13139. extensions.
  13140. 'ev67'
  13141. '21264a'
  13142. Schedules as an EV6 and supports the BWX, CIX, FIX, and MAX
  13143. extensions.
  13144. Native toolchains also support the value 'native', which selects
  13145. the best architecture option for the host processor.
  13146. '-mcpu=native' has no effect if GCC does not recognize the
  13147. processor.
  13148. '-mtune=CPU_TYPE'
  13149. Set only the instruction scheduling parameters for machine type
  13150. CPU_TYPE. The instruction set is not changed.
  13151. Native toolchains also support the value 'native', which selects
  13152. the best architecture option for the host processor.
  13153. '-mtune=native' has no effect if GCC does not recognize the
  13154. processor.
  13155. '-mmemory-latency=TIME'
  13156. Sets the latency the scheduler should assume for typical memory
  13157. references as seen by the application. This number is highly
  13158. dependent on the memory access patterns used by the application and
  13159. the size of the external cache on the machine.
  13160. Valid options for TIME are
  13161. 'NUMBER'
  13162. A decimal number representing clock cycles.
  13163. 'L1'
  13164. 'L2'
  13165. 'L3'
  13166. 'main'
  13167. The compiler contains estimates of the number of clock cycles
  13168. for "typical" EV4 & EV5 hardware for the Level 1, 2 & 3 caches
  13169. (also called Dcache, Scache, and Bcache), as well as to main
  13170. memory. Note that L3 is only valid for EV5.
  13171. 
  13172. File: gcc.info, Node: FR30 Options, Next: FT32 Options, Prev: DEC Alpha Options, Up: Submodel Options
  13173. 3.18.12 FR30 Options
  13174. --------------------
  13175. These options are defined specifically for the FR30 port.
  13176. '-msmall-model'
  13177. Use the small address space model. This can produce smaller code,
  13178. but it does assume that all symbolic values and addresses fit into
  13179. a 20-bit range.
  13180. '-mno-lsim'
  13181. Assume that runtime support has been provided and so there is no
  13182. need to include the simulator library ('libsim.a') on the linker
  13183. command line.
  13184. 
  13185. File: gcc.info, Node: FT32 Options, Next: FRV Options, Prev: FR30 Options, Up: Submodel Options
  13186. 3.18.13 FT32 Options
  13187. --------------------
  13188. These options are defined specifically for the FT32 port.
  13189. '-msim'
  13190. Specifies that the program will be run on the simulator. This
  13191. causes an alternate runtime startup and library to be linked. You
  13192. must not use this option when generating programs that will run on
  13193. real hardware; you must provide your own runtime library for
  13194. whatever I/O functions are needed.
  13195. '-mlra'
  13196. Enable Local Register Allocation. This is still experimental for
  13197. FT32, so by default the compiler uses standard reload.
  13198. '-mnodiv'
  13199. Do not use div and mod instructions.
  13200. 
  13201. File: gcc.info, Node: FRV Options, Next: GNU/Linux Options, Prev: FT32 Options, Up: Submodel Options
  13202. 3.18.14 FRV Options
  13203. -------------------
  13204. '-mgpr-32'
  13205. Only use the first 32 general-purpose registers.
  13206. '-mgpr-64'
  13207. Use all 64 general-purpose registers.
  13208. '-mfpr-32'
  13209. Use only the first 32 floating-point registers.
  13210. '-mfpr-64'
  13211. Use all 64 floating-point registers.
  13212. '-mhard-float'
  13213. Use hardware instructions for floating-point operations.
  13214. '-msoft-float'
  13215. Use library routines for floating-point operations.
  13216. '-malloc-cc'
  13217. Dynamically allocate condition code registers.
  13218. '-mfixed-cc'
  13219. Do not try to dynamically allocate condition code registers, only
  13220. use 'icc0' and 'fcc0'.
  13221. '-mdword'
  13222. Change ABI to use double word insns.
  13223. '-mno-dword'
  13224. Do not use double word instructions.
  13225. '-mdouble'
  13226. Use floating-point double instructions.
  13227. '-mno-double'
  13228. Do not use floating-point double instructions.
  13229. '-mmedia'
  13230. Use media instructions.
  13231. '-mno-media'
  13232. Do not use media instructions.
  13233. '-mmuladd'
  13234. Use multiply and add/subtract instructions.
  13235. '-mno-muladd'
  13236. Do not use multiply and add/subtract instructions.
  13237. '-mfdpic'
  13238. Select the FDPIC ABI, which uses function descriptors to represent
  13239. pointers to functions. Without any PIC/PIE-related options, it
  13240. implies '-fPIE'. With '-fpic' or '-fpie', it assumes GOT entries
  13241. and small data are within a 12-bit range from the GOT base address;
  13242. with '-fPIC' or '-fPIE', GOT offsets are computed with 32 bits.
  13243. With a 'bfin-elf' target, this option implies '-msim'.
  13244. '-minline-plt'
  13245. Enable inlining of PLT entries in function calls to functions that
  13246. are not known to bind locally. It has no effect without '-mfdpic'.
  13247. It's enabled by default if optimizing for speed and compiling for
  13248. shared libraries (i.e., '-fPIC' or '-fpic'), or when an
  13249. optimization option such as '-O3' or above is present in the
  13250. command line.
  13251. '-mTLS'
  13252. Assume a large TLS segment when generating thread-local code.
  13253. '-mtls'
  13254. Do not assume a large TLS segment when generating thread-local
  13255. code.
  13256. '-mgprel-ro'
  13257. Enable the use of 'GPREL' relocations in the FDPIC ABI for data
  13258. that is known to be in read-only sections. It's enabled by
  13259. default, except for '-fpic' or '-fpie': even though it may help
  13260. make the global offset table smaller, it trades 1 instruction for
  13261. 4. With '-fPIC' or '-fPIE', it trades 3 instructions for 4, one of
  13262. which may be shared by multiple symbols, and it avoids the need for
  13263. a GOT entry for the referenced symbol, so it's more likely to be a
  13264. win. If it is not, '-mno-gprel-ro' can be used to disable it.
  13265. '-multilib-library-pic'
  13266. Link with the (library, not FD) pic libraries. It's implied by
  13267. '-mlibrary-pic', as well as by '-fPIC' and '-fpic' without
  13268. '-mfdpic'. You should never have to use it explicitly.
  13269. '-mlinked-fp'
  13270. Follow the EABI requirement of always creating a frame pointer
  13271. whenever a stack frame is allocated. This option is enabled by
  13272. default and can be disabled with '-mno-linked-fp'.
  13273. '-mlong-calls'
  13274. Use indirect addressing to call functions outside the current
  13275. compilation unit. This allows the functions to be placed anywhere
  13276. within the 32-bit address space.
  13277. '-malign-labels'
  13278. Try to align labels to an 8-byte boundary by inserting NOPs into
  13279. the previous packet. This option only has an effect when VLIW
  13280. packing is enabled. It doesn't create new packets; it merely adds
  13281. NOPs to existing ones.
  13282. '-mlibrary-pic'
  13283. Generate position-independent EABI code.
  13284. '-macc-4'
  13285. Use only the first four media accumulator registers.
  13286. '-macc-8'
  13287. Use all eight media accumulator registers.
  13288. '-mpack'
  13289. Pack VLIW instructions.
  13290. '-mno-pack'
  13291. Do not pack VLIW instructions.
  13292. '-mno-eflags'
  13293. Do not mark ABI switches in e_flags.
  13294. '-mcond-move'
  13295. Enable the use of conditional-move instructions (default).
  13296. This switch is mainly for debugging the compiler and will likely be
  13297. removed in a future version.
  13298. '-mno-cond-move'
  13299. Disable the use of conditional-move instructions.
  13300. This switch is mainly for debugging the compiler and will likely be
  13301. removed in a future version.
  13302. '-mscc'
  13303. Enable the use of conditional set instructions (default).
  13304. This switch is mainly for debugging the compiler and will likely be
  13305. removed in a future version.
  13306. '-mno-scc'
  13307. Disable the use of conditional set instructions.
  13308. This switch is mainly for debugging the compiler and will likely be
  13309. removed in a future version.
  13310. '-mcond-exec'
  13311. Enable the use of conditional execution (default).
  13312. This switch is mainly for debugging the compiler and will likely be
  13313. removed in a future version.
  13314. '-mno-cond-exec'
  13315. Disable the use of conditional execution.
  13316. This switch is mainly for debugging the compiler and will likely be
  13317. removed in a future version.
  13318. '-mvliw-branch'
  13319. Run a pass to pack branches into VLIW instructions (default).
  13320. This switch is mainly for debugging the compiler and will likely be
  13321. removed in a future version.
  13322. '-mno-vliw-branch'
  13323. Do not run a pass to pack branches into VLIW instructions.
  13324. This switch is mainly for debugging the compiler and will likely be
  13325. removed in a future version.
  13326. '-mmulti-cond-exec'
  13327. Enable optimization of '&&' and '||' in conditional execution
  13328. (default).
  13329. This switch is mainly for debugging the compiler and will likely be
  13330. removed in a future version.
  13331. '-mno-multi-cond-exec'
  13332. Disable optimization of '&&' and '||' in conditional execution.
  13333. This switch is mainly for debugging the compiler and will likely be
  13334. removed in a future version.
  13335. '-mnested-cond-exec'
  13336. Enable nested conditional execution optimizations (default).
  13337. This switch is mainly for debugging the compiler and will likely be
  13338. removed in a future version.
  13339. '-mno-nested-cond-exec'
  13340. Disable nested conditional execution optimizations.
  13341. This switch is mainly for debugging the compiler and will likely be
  13342. removed in a future version.
  13343. '-moptimize-membar'
  13344. This switch removes redundant 'membar' instructions from the
  13345. compiler-generated code. It is enabled by default.
  13346. '-mno-optimize-membar'
  13347. This switch disables the automatic removal of redundant 'membar'
  13348. instructions from the generated code.
  13349. '-mtomcat-stats'
  13350. Cause gas to print out tomcat statistics.
  13351. '-mcpu=CPU'
  13352. Select the processor type for which to generate code. Possible
  13353. values are 'frv', 'fr550', 'tomcat', 'fr500', 'fr450', 'fr405',
  13354. 'fr400', 'fr300' and 'simple'.
  13355. 
  13356. File: gcc.info, Node: GNU/Linux Options, Next: H8/300 Options, Prev: FRV Options, Up: Submodel Options
  13357. 3.18.15 GNU/Linux Options
  13358. -------------------------
  13359. These '-m' options are defined for GNU/Linux targets:
  13360. '-mglibc'
  13361. Use the GNU C library. This is the default except on
  13362. '*-*-linux-*uclibc*', '*-*-linux-*musl*' and '*-*-linux-*android*'
  13363. targets.
  13364. '-muclibc'
  13365. Use uClibc C library. This is the default on '*-*-linux-*uclibc*'
  13366. targets.
  13367. '-mmusl'
  13368. Use the musl C library. This is the default on '*-*-linux-*musl*'
  13369. targets.
  13370. '-mbionic'
  13371. Use Bionic C library. This is the default on '*-*-linux-*android*'
  13372. targets.
  13373. '-mandroid'
  13374. Compile code compatible with Android platform. This is the default
  13375. on '*-*-linux-*android*' targets.
  13376. When compiling, this option enables '-mbionic', '-fPIC',
  13377. '-fno-exceptions' and '-fno-rtti' by default. When linking, this
  13378. option makes the GCC driver pass Android-specific options to the
  13379. linker. Finally, this option causes the preprocessor macro
  13380. '__ANDROID__' to be defined.
  13381. '-tno-android-cc'
  13382. Disable compilation effects of '-mandroid', i.e., do not enable
  13383. '-mbionic', '-fPIC', '-fno-exceptions' and '-fno-rtti' by default.
  13384. '-tno-android-ld'
  13385. Disable linking effects of '-mandroid', i.e., pass standard Linux
  13386. linking options to the linker.
  13387. 
  13388. File: gcc.info, Node: H8/300 Options, Next: HPPA Options, Prev: GNU/Linux Options, Up: Submodel Options
  13389. 3.18.16 H8/300 Options
  13390. ----------------------
  13391. These '-m' options are defined for the H8/300 implementations:
  13392. '-mrelax'
  13393. Shorten some address references at link time, when possible; uses
  13394. the linker option '-relax'. *Note 'ld' and the H8/300: (ld)H8/300,
  13395. for a fuller description.
  13396. '-mh'
  13397. Generate code for the H8/300H.
  13398. '-ms'
  13399. Generate code for the H8S.
  13400. '-mn'
  13401. Generate code for the H8S and H8/300H in the normal mode. This
  13402. switch must be used either with '-mh' or '-ms'.
  13403. '-ms2600'
  13404. Generate code for the H8S/2600. This switch must be used with
  13405. '-ms'.
  13406. '-mexr'
  13407. Extended registers are stored on stack before execution of function
  13408. with monitor attribute. Default option is '-mexr'. This option is
  13409. valid only for H8S targets.
  13410. '-mno-exr'
  13411. Extended registers are not stored on stack before execution of
  13412. function with monitor attribute. Default option is '-mno-exr'.
  13413. This option is valid only for H8S targets.
  13414. '-mint32'
  13415. Make 'int' data 32 bits by default.
  13416. '-malign-300'
  13417. On the H8/300H and H8S, use the same alignment rules as for the
  13418. H8/300. The default for the H8/300H and H8S is to align longs and
  13419. floats on 4-byte boundaries. '-malign-300' causes them to be
  13420. aligned on 2-byte boundaries. This option has no effect on the
  13421. H8/300.
  13422. 
  13423. File: gcc.info, Node: HPPA Options, Next: IA-64 Options, Prev: H8/300 Options, Up: Submodel Options
  13424. 3.18.17 HPPA Options
  13425. --------------------
  13426. These '-m' options are defined for the HPPA family of computers:
  13427. '-march=ARCHITECTURE-TYPE'
  13428. Generate code for the specified architecture. The choices for
  13429. ARCHITECTURE-TYPE are '1.0' for PA 1.0, '1.1' for PA 1.1, and '2.0'
  13430. for PA 2.0 processors. Refer to '/usr/lib/sched.models' on an
  13431. HP-UX system to determine the proper architecture option for your
  13432. machine. Code compiled for lower numbered architectures runs on
  13433. higher numbered architectures, but not the other way around.
  13434. '-mpa-risc-1-0'
  13435. '-mpa-risc-1-1'
  13436. '-mpa-risc-2-0'
  13437. Synonyms for '-march=1.0', '-march=1.1', and '-march=2.0'
  13438. respectively.
  13439. '-mcaller-copies'
  13440. The caller copies function arguments passed by hidden reference.
  13441. This option should be used with care as it is not compatible with
  13442. the default 32-bit runtime. However, only aggregates larger than
  13443. eight bytes are passed by hidden reference and the option provides
  13444. better compatibility with OpenMP.
  13445. '-mjump-in-delay'
  13446. This option is ignored and provided for compatibility purposes
  13447. only.
  13448. '-mdisable-fpregs'
  13449. Prevent floating-point registers from being used in any manner.
  13450. This is necessary for compiling kernels that perform lazy context
  13451. switching of floating-point registers. If you use this option and
  13452. attempt to perform floating-point operations, the compiler aborts.
  13453. '-mdisable-indexing'
  13454. Prevent the compiler from using indexing address modes. This
  13455. avoids some rather obscure problems when compiling MIG generated
  13456. code under MACH.
  13457. '-mno-space-regs'
  13458. Generate code that assumes the target has no space registers. This
  13459. allows GCC to generate faster indirect calls and use unscaled index
  13460. address modes.
  13461. Such code is suitable for level 0 PA systems and kernels.
  13462. '-mfast-indirect-calls'
  13463. Generate code that assumes calls never cross space boundaries.
  13464. This allows GCC to emit code that performs faster indirect calls.
  13465. This option does not work in the presence of shared libraries or
  13466. nested functions.
  13467. '-mfixed-range=REGISTER-RANGE'
  13468. Generate code treating the given register range as fixed registers.
  13469. A fixed register is one that the register allocator cannot use.
  13470. This is useful when compiling kernel code. A register range is
  13471. specified as two registers separated by a dash. Multiple register
  13472. ranges can be specified separated by a comma.
  13473. '-mlong-load-store'
  13474. Generate 3-instruction load and store sequences as sometimes
  13475. required by the HP-UX 10 linker. This is equivalent to the '+k'
  13476. option to the HP compilers.
  13477. '-mportable-runtime'
  13478. Use the portable calling conventions proposed by HP for ELF
  13479. systems.
  13480. '-mgas'
  13481. Enable the use of assembler directives only GAS understands.
  13482. '-mschedule=CPU-TYPE'
  13483. Schedule code according to the constraints for the machine type
  13484. CPU-TYPE. The choices for CPU-TYPE are '700' '7100', '7100LC',
  13485. '7200', '7300' and '8000'. Refer to '/usr/lib/sched.models' on an
  13486. HP-UX system to determine the proper scheduling option for your
  13487. machine. The default scheduling is '8000'.
  13488. '-mlinker-opt'
  13489. Enable the optimization pass in the HP-UX linker. Note this makes
  13490. symbolic debugging impossible. It also triggers a bug in the HP-UX
  13491. 8 and HP-UX 9 linkers in which they give bogus error messages when
  13492. linking some programs.
  13493. '-msoft-float'
  13494. Generate output containing library calls for floating point.
  13495. *Warning:* the requisite libraries are not available for all HPPA
  13496. targets. Normally the facilities of the machine's usual C compiler
  13497. are used, but this cannot be done directly in cross-compilation.
  13498. You must make your own arrangements to provide suitable library
  13499. functions for cross-compilation.
  13500. '-msoft-float' changes the calling convention in the output file;
  13501. therefore, it is only useful if you compile _all_ of a program with
  13502. this option. In particular, you need to compile 'libgcc.a', the
  13503. library that comes with GCC, with '-msoft-float' in order for this
  13504. to work.
  13505. '-msio'
  13506. Generate the predefine, '_SIO', for server IO. The default is
  13507. '-mwsio'. This generates the predefines, '__hp9000s700',
  13508. '__hp9000s700__' and '_WSIO', for workstation IO. These options
  13509. are available under HP-UX and HI-UX.
  13510. '-mgnu-ld'
  13511. Use options specific to GNU 'ld'. This passes '-shared' to 'ld'
  13512. when building a shared library. It is the default when GCC is
  13513. configured, explicitly or implicitly, with the GNU linker. This
  13514. option does not affect which 'ld' is called; it only changes what
  13515. parameters are passed to that 'ld'. The 'ld' that is called is
  13516. determined by the '--with-ld' configure option, GCC's program
  13517. search path, and finally by the user's 'PATH'. The linker used by
  13518. GCC can be printed using 'which `gcc -print-prog-name=ld`'. This
  13519. option is only available on the 64-bit HP-UX GCC, i.e. configured
  13520. with 'hppa*64*-*-hpux*'.
  13521. '-mhp-ld'
  13522. Use options specific to HP 'ld'. This passes '-b' to 'ld' when
  13523. building a shared library and passes '+Accept TypeMismatch' to 'ld'
  13524. on all links. It is the default when GCC is configured, explicitly
  13525. or implicitly, with the HP linker. This option does not affect
  13526. which 'ld' is called; it only changes what parameters are passed to
  13527. that 'ld'. The 'ld' that is called is determined by the
  13528. '--with-ld' configure option, GCC's program search path, and
  13529. finally by the user's 'PATH'. The linker used by GCC can be
  13530. printed using 'which `gcc -print-prog-name=ld`'. This option is
  13531. only available on the 64-bit HP-UX GCC, i.e. configured with
  13532. 'hppa*64*-*-hpux*'.
  13533. '-mlong-calls'
  13534. Generate code that uses long call sequences. This ensures that a
  13535. call is always able to reach linker generated stubs. The default
  13536. is to generate long calls only when the distance from the call site
  13537. to the beginning of the function or translation unit, as the case
  13538. may be, exceeds a predefined limit set by the branch type being
  13539. used. The limits for normal calls are 7,600,000 and 240,000 bytes,
  13540. respectively for the PA 2.0 and PA 1.X architectures. Sibcalls are
  13541. always limited at 240,000 bytes.
  13542. Distances are measured from the beginning of functions when using
  13543. the '-ffunction-sections' option, or when using the '-mgas' and
  13544. '-mno-portable-runtime' options together under HP-UX with the SOM
  13545. linker.
  13546. It is normally not desirable to use this option as it degrades
  13547. performance. However, it may be useful in large applications,
  13548. particularly when partial linking is used to build the application.
  13549. The types of long calls used depends on the capabilities of the
  13550. assembler and linker, and the type of code being generated. The
  13551. impact on systems that support long absolute calls, and long pic
  13552. symbol-difference or pc-relative calls should be relatively small.
  13553. However, an indirect call is used on 32-bit ELF systems in pic code
  13554. and it is quite long.
  13555. '-munix=UNIX-STD'
  13556. Generate compiler predefines and select a startfile for the
  13557. specified UNIX standard. The choices for UNIX-STD are '93', '95'
  13558. and '98'. '93' is supported on all HP-UX versions. '95' is
  13559. available on HP-UX 10.10 and later. '98' is available on HP-UX
  13560. 11.11 and later. The default values are '93' for HP-UX 10.00, '95'
  13561. for HP-UX 10.10 though to 11.00, and '98' for HP-UX 11.11 and
  13562. later.
  13563. '-munix=93' provides the same predefines as GCC 3.3 and 3.4.
  13564. '-munix=95' provides additional predefines for 'XOPEN_UNIX' and
  13565. '_XOPEN_SOURCE_EXTENDED', and the startfile 'unix95.o'.
  13566. '-munix=98' provides additional predefines for '_XOPEN_UNIX',
  13567. '_XOPEN_SOURCE_EXTENDED', '_INCLUDE__STDC_A1_SOURCE' and
  13568. '_INCLUDE_XOPEN_SOURCE_500', and the startfile 'unix98.o'.
  13569. It is _important_ to note that this option changes the interfaces
  13570. for various library routines. It also affects the operational
  13571. behavior of the C library. Thus, _extreme_ care is needed in using
  13572. this option.
  13573. Library code that is intended to operate with more than one UNIX
  13574. standard must test, set and restore the variable
  13575. '__xpg4_extended_mask' as appropriate. Most GNU software doesn't
  13576. provide this capability.
  13577. '-nolibdld'
  13578. Suppress the generation of link options to search libdld.sl when
  13579. the '-static' option is specified on HP-UX 10 and later.
  13580. '-static'
  13581. The HP-UX implementation of setlocale in libc has a dependency on
  13582. libdld.sl. There isn't an archive version of libdld.sl. Thus,
  13583. when the '-static' option is specified, special link options are
  13584. needed to resolve this dependency.
  13585. On HP-UX 10 and later, the GCC driver adds the necessary options to
  13586. link with libdld.sl when the '-static' option is specified. This
  13587. causes the resulting binary to be dynamic. On the 64-bit port, the
  13588. linkers generate dynamic binaries by default in any case. The
  13589. '-nolibdld' option can be used to prevent the GCC driver from
  13590. adding these link options.
  13591. '-threads'
  13592. Add support for multithreading with the "dce thread" library under
  13593. HP-UX. This option sets flags for both the preprocessor and
  13594. linker.
  13595. 
  13596. File: gcc.info, Node: IA-64 Options, Next: LM32 Options, Prev: HPPA Options, Up: Submodel Options
  13597. 3.18.18 IA-64 Options
  13598. ---------------------
  13599. These are the '-m' options defined for the Intel IA-64 architecture.
  13600. '-mbig-endian'
  13601. Generate code for a big-endian target. This is the default for
  13602. HP-UX.
  13603. '-mlittle-endian'
  13604. Generate code for a little-endian target. This is the default for
  13605. AIX5 and GNU/Linux.
  13606. '-mgnu-as'
  13607. '-mno-gnu-as'
  13608. Generate (or don't) code for the GNU assembler. This is the
  13609. default.
  13610. '-mgnu-ld'
  13611. '-mno-gnu-ld'
  13612. Generate (or don't) code for the GNU linker. This is the default.
  13613. '-mno-pic'
  13614. Generate code that does not use a global pointer register. The
  13615. result is not position independent code, and violates the IA-64
  13616. ABI.
  13617. '-mvolatile-asm-stop'
  13618. '-mno-volatile-asm-stop'
  13619. Generate (or don't) a stop bit immediately before and after
  13620. volatile asm statements.
  13621. '-mregister-names'
  13622. '-mno-register-names'
  13623. Generate (or don't) 'in', 'loc', and 'out' register names for the
  13624. stacked registers. This may make assembler output more readable.
  13625. '-mno-sdata'
  13626. '-msdata'
  13627. Disable (or enable) optimizations that use the small data section.
  13628. This may be useful for working around optimizer bugs.
  13629. '-mconstant-gp'
  13630. Generate code that uses a single constant global pointer value.
  13631. This is useful when compiling kernel code.
  13632. '-mauto-pic'
  13633. Generate code that is self-relocatable. This implies
  13634. '-mconstant-gp'. This is useful when compiling firmware code.
  13635. '-minline-float-divide-min-latency'
  13636. Generate code for inline divides of floating-point values using the
  13637. minimum latency algorithm.
  13638. '-minline-float-divide-max-throughput'
  13639. Generate code for inline divides of floating-point values using the
  13640. maximum throughput algorithm.
  13641. '-mno-inline-float-divide'
  13642. Do not generate inline code for divides of floating-point values.
  13643. '-minline-int-divide-min-latency'
  13644. Generate code for inline divides of integer values using the
  13645. minimum latency algorithm.
  13646. '-minline-int-divide-max-throughput'
  13647. Generate code for inline divides of integer values using the
  13648. maximum throughput algorithm.
  13649. '-mno-inline-int-divide'
  13650. Do not generate inline code for divides of integer values.
  13651. '-minline-sqrt-min-latency'
  13652. Generate code for inline square roots using the minimum latency
  13653. algorithm.
  13654. '-minline-sqrt-max-throughput'
  13655. Generate code for inline square roots using the maximum throughput
  13656. algorithm.
  13657. '-mno-inline-sqrt'
  13658. Do not generate inline code for 'sqrt'.
  13659. '-mfused-madd'
  13660. '-mno-fused-madd'
  13661. Do (don't) generate code that uses the fused multiply/add or
  13662. multiply/subtract instructions. The default is to use these
  13663. instructions.
  13664. '-mno-dwarf2-asm'
  13665. '-mdwarf2-asm'
  13666. Don't (or do) generate assembler code for the DWARF line number
  13667. debugging info. This may be useful when not using the GNU
  13668. assembler.
  13669. '-mearly-stop-bits'
  13670. '-mno-early-stop-bits'
  13671. Allow stop bits to be placed earlier than immediately preceding the
  13672. instruction that triggered the stop bit. This can improve
  13673. instruction scheduling, but does not always do so.
  13674. '-mfixed-range=REGISTER-RANGE'
  13675. Generate code treating the given register range as fixed registers.
  13676. A fixed register is one that the register allocator cannot use.
  13677. This is useful when compiling kernel code. A register range is
  13678. specified as two registers separated by a dash. Multiple register
  13679. ranges can be specified separated by a comma.
  13680. '-mtls-size=TLS-SIZE'
  13681. Specify bit size of immediate TLS offsets. Valid values are 14,
  13682. 22, and 64.
  13683. '-mtune=CPU-TYPE'
  13684. Tune the instruction scheduling for a particular CPU, Valid values
  13685. are 'itanium', 'itanium1', 'merced', 'itanium2', and 'mckinley'.
  13686. '-milp32'
  13687. '-mlp64'
  13688. Generate code for a 32-bit or 64-bit environment. The 32-bit
  13689. environment sets int, long and pointer to 32 bits. The 64-bit
  13690. environment sets int to 32 bits and long and pointer to 64 bits.
  13691. These are HP-UX specific flags.
  13692. '-mno-sched-br-data-spec'
  13693. '-msched-br-data-spec'
  13694. (Dis/En)able data speculative scheduling before reload. This
  13695. results in generation of 'ld.a' instructions and the corresponding
  13696. check instructions ('ld.c' / 'chk.a'). The default setting is
  13697. disabled.
  13698. '-msched-ar-data-spec'
  13699. '-mno-sched-ar-data-spec'
  13700. (En/Dis)able data speculative scheduling after reload. This
  13701. results in generation of 'ld.a' instructions and the corresponding
  13702. check instructions ('ld.c' / 'chk.a'). The default setting is
  13703. enabled.
  13704. '-mno-sched-control-spec'
  13705. '-msched-control-spec'
  13706. (Dis/En)able control speculative scheduling. This feature is
  13707. available only during region scheduling (i.e. before reload). This
  13708. results in generation of the 'ld.s' instructions and the
  13709. corresponding check instructions 'chk.s'. The default setting is
  13710. disabled.
  13711. '-msched-br-in-data-spec'
  13712. '-mno-sched-br-in-data-spec'
  13713. (En/Dis)able speculative scheduling of the instructions that are
  13714. dependent on the data speculative loads before reload. This is
  13715. effective only with '-msched-br-data-spec' enabled. The default
  13716. setting is enabled.
  13717. '-msched-ar-in-data-spec'
  13718. '-mno-sched-ar-in-data-spec'
  13719. (En/Dis)able speculative scheduling of the instructions that are
  13720. dependent on the data speculative loads after reload. This is
  13721. effective only with '-msched-ar-data-spec' enabled. The default
  13722. setting is enabled.
  13723. '-msched-in-control-spec'
  13724. '-mno-sched-in-control-spec'
  13725. (En/Dis)able speculative scheduling of the instructions that are
  13726. dependent on the control speculative loads. This is effective only
  13727. with '-msched-control-spec' enabled. The default setting is
  13728. enabled.
  13729. '-mno-sched-prefer-non-data-spec-insns'
  13730. '-msched-prefer-non-data-spec-insns'
  13731. If enabled, data-speculative instructions are chosen for schedule
  13732. only if there are no other choices at the moment. This makes the
  13733. use of the data speculation much more conservative. The default
  13734. setting is disabled.
  13735. '-mno-sched-prefer-non-control-spec-insns'
  13736. '-msched-prefer-non-control-spec-insns'
  13737. If enabled, control-speculative instructions are chosen for
  13738. schedule only if there are no other choices at the moment. This
  13739. makes the use of the control speculation much more conservative.
  13740. The default setting is disabled.
  13741. '-mno-sched-count-spec-in-critical-path'
  13742. '-msched-count-spec-in-critical-path'
  13743. If enabled, speculative dependencies are considered during
  13744. computation of the instructions priorities. This makes the use of
  13745. the speculation a bit more conservative. The default setting is
  13746. disabled.
  13747. '-msched-spec-ldc'
  13748. Use a simple data speculation check. This option is on by default.
  13749. '-msched-control-spec-ldc'
  13750. Use a simple check for control speculation. This option is on by
  13751. default.
  13752. '-msched-stop-bits-after-every-cycle'
  13753. Place a stop bit after every cycle when scheduling. This option is
  13754. on by default.
  13755. '-msched-fp-mem-deps-zero-cost'
  13756. Assume that floating-point stores and loads are not likely to cause
  13757. a conflict when placed into the same instruction group. This
  13758. option is disabled by default.
  13759. '-msel-sched-dont-check-control-spec'
  13760. Generate checks for control speculation in selective scheduling.
  13761. This flag is disabled by default.
  13762. '-msched-max-memory-insns=MAX-INSNS'
  13763. Limit on the number of memory insns per instruction group, giving
  13764. lower priority to subsequent memory insns attempting to schedule in
  13765. the same instruction group. Frequently useful to prevent cache
  13766. bank conflicts. The default value is 1.
  13767. '-msched-max-memory-insns-hard-limit'
  13768. Makes the limit specified by 'msched-max-memory-insns' a hard
  13769. limit, disallowing more than that number in an instruction group.
  13770. Otherwise, the limit is "soft", meaning that non-memory operations
  13771. are preferred when the limit is reached, but memory operations may
  13772. still be scheduled.
  13773. 
  13774. File: gcc.info, Node: LM32 Options, Next: M32C Options, Prev: IA-64 Options, Up: Submodel Options
  13775. 3.18.19 LM32 Options
  13776. --------------------
  13777. These '-m' options are defined for the LatticeMico32 architecture:
  13778. '-mbarrel-shift-enabled'
  13779. Enable barrel-shift instructions.
  13780. '-mdivide-enabled'
  13781. Enable divide and modulus instructions.
  13782. '-mmultiply-enabled'
  13783. Enable multiply instructions.
  13784. '-msign-extend-enabled'
  13785. Enable sign extend instructions.
  13786. '-muser-enabled'
  13787. Enable user-defined instructions.
  13788. 
  13789. File: gcc.info, Node: M32C Options, Next: M32R/D Options, Prev: LM32 Options, Up: Submodel Options
  13790. 3.18.20 M32C Options
  13791. --------------------
  13792. '-mcpu=NAME'
  13793. Select the CPU for which code is generated. NAME may be one of
  13794. 'r8c' for the R8C/Tiny series, 'm16c' for the M16C (up to /60)
  13795. series, 'm32cm' for the M16C/80 series, or 'm32c' for the M32C/80
  13796. series.
  13797. '-msim'
  13798. Specifies that the program will be run on the simulator. This
  13799. causes an alternate runtime library to be linked in which supports,
  13800. for example, file I/O. You must not use this option when
  13801. generating programs that will run on real hardware; you must
  13802. provide your own runtime library for whatever I/O functions are
  13803. needed.
  13804. '-memregs=NUMBER'
  13805. Specifies the number of memory-based pseudo-registers GCC uses
  13806. during code generation. These pseudo-registers are used like real
  13807. registers, so there is a tradeoff between GCC's ability to fit the
  13808. code into available registers, and the performance penalty of using
  13809. memory instead of registers. Note that all modules in a program
  13810. must be compiled with the same value for this option. Because of
  13811. that, you must not use this option with GCC's default runtime
  13812. libraries.
  13813. 
  13814. File: gcc.info, Node: M32R/D Options, Next: M680x0 Options, Prev: M32C Options, Up: Submodel Options
  13815. 3.18.21 M32R/D Options
  13816. ----------------------
  13817. These '-m' options are defined for Renesas M32R/D architectures:
  13818. '-m32r2'
  13819. Generate code for the M32R/2.
  13820. '-m32rx'
  13821. Generate code for the M32R/X.
  13822. '-m32r'
  13823. Generate code for the M32R. This is the default.
  13824. '-mmodel=small'
  13825. Assume all objects live in the lower 16MB of memory (so that their
  13826. addresses can be loaded with the 'ld24' instruction), and assume
  13827. all subroutines are reachable with the 'bl' instruction. This is
  13828. the default.
  13829. The addressability of a particular object can be set with the
  13830. 'model' attribute.
  13831. '-mmodel=medium'
  13832. Assume objects may be anywhere in the 32-bit address space (the
  13833. compiler generates 'seth/add3' instructions to load their
  13834. addresses), and assume all subroutines are reachable with the 'bl'
  13835. instruction.
  13836. '-mmodel=large'
  13837. Assume objects may be anywhere in the 32-bit address space (the
  13838. compiler generates 'seth/add3' instructions to load their
  13839. addresses), and assume subroutines may not be reachable with the
  13840. 'bl' instruction (the compiler generates the much slower
  13841. 'seth/add3/jl' instruction sequence).
  13842. '-msdata=none'
  13843. Disable use of the small data area. Variables are put into one of
  13844. '.data', '.bss', or '.rodata' (unless the 'section' attribute has
  13845. been specified). This is the default.
  13846. The small data area consists of sections '.sdata' and '.sbss'.
  13847. Objects may be explicitly put in the small data area with the
  13848. 'section' attribute using one of these sections.
  13849. '-msdata=sdata'
  13850. Put small global and static data in the small data area, but do not
  13851. generate special code to reference them.
  13852. '-msdata=use'
  13853. Put small global and static data in the small data area, and
  13854. generate special instructions to reference them.
  13855. '-G NUM'
  13856. Put global and static objects less than or equal to NUM bytes into
  13857. the small data or BSS sections instead of the normal data or BSS
  13858. sections. The default value of NUM is 8. The '-msdata' option
  13859. must be set to one of 'sdata' or 'use' for this option to have any
  13860. effect.
  13861. All modules should be compiled with the same '-G NUM' value.
  13862. Compiling with different values of NUM may or may not work; if it
  13863. doesn't the linker gives an error message--incorrect code is not
  13864. generated.
  13865. '-mdebug'
  13866. Makes the M32R-specific code in the compiler display some
  13867. statistics that might help in debugging programs.
  13868. '-malign-loops'
  13869. Align all loops to a 32-byte boundary.
  13870. '-mno-align-loops'
  13871. Do not enforce a 32-byte alignment for loops. This is the default.
  13872. '-missue-rate=NUMBER'
  13873. Issue NUMBER instructions per cycle. NUMBER can only be 1 or 2.
  13874. '-mbranch-cost=NUMBER'
  13875. NUMBER can only be 1 or 2. If it is 1 then branches are preferred
  13876. over conditional code, if it is 2, then the opposite applies.
  13877. '-mflush-trap=NUMBER'
  13878. Specifies the trap number to use to flush the cache. The default
  13879. is 12. Valid numbers are between 0 and 15 inclusive.
  13880. '-mno-flush-trap'
  13881. Specifies that the cache cannot be flushed by using a trap.
  13882. '-mflush-func=NAME'
  13883. Specifies the name of the operating system function to call to
  13884. flush the cache. The default is '_flush_cache', but a function
  13885. call is only used if a trap is not available.
  13886. '-mno-flush-func'
  13887. Indicates that there is no OS function for flushing the cache.
  13888. 
  13889. File: gcc.info, Node: M680x0 Options, Next: MCore Options, Prev: M32R/D Options, Up: Submodel Options
  13890. 3.18.22 M680x0 Options
  13891. ----------------------
  13892. These are the '-m' options defined for M680x0 and ColdFire processors.
  13893. The default settings depend on which architecture was selected when the
  13894. compiler was configured; the defaults for the most common choices are
  13895. given below.
  13896. '-march=ARCH'
  13897. Generate code for a specific M680x0 or ColdFire instruction set
  13898. architecture. Permissible values of ARCH for M680x0 architectures
  13899. are: '68000', '68010', '68020', '68030', '68040', '68060' and
  13900. 'cpu32'. ColdFire architectures are selected according to
  13901. Freescale's ISA classification and the permissible values are:
  13902. 'isaa', 'isaaplus', 'isab' and 'isac'.
  13903. GCC defines a macro '__mcfARCH__' whenever it is generating code
  13904. for a ColdFire target. The ARCH in this macro is one of the
  13905. '-march' arguments given above.
  13906. When used together, '-march' and '-mtune' select code that runs on
  13907. a family of similar processors but that is optimized for a
  13908. particular microarchitecture.
  13909. '-mcpu=CPU'
  13910. Generate code for a specific M680x0 or ColdFire processor. The
  13911. M680x0 CPUs are: '68000', '68010', '68020', '68030', '68040',
  13912. '68060', '68302', '68332' and 'cpu32'. The ColdFire CPUs are given
  13913. by the table below, which also classifies the CPUs into families:
  13914. *Family* *'-mcpu' arguments*
  13915. '51' '51' '51ac' '51ag' '51cn' '51em' '51je' '51jf' '51jg'
  13916. '51jm' '51mm' '51qe' '51qm'
  13917. '5206' '5202' '5204' '5206'
  13918. '5206e' '5206e'
  13919. '5208' '5207' '5208'
  13920. '5211a' '5210a' '5211a'
  13921. '5213' '5211' '5212' '5213'
  13922. '5216' '5214' '5216'
  13923. '52235' '52230' '52231' '52232' '52233' '52234' '52235'
  13924. '5225' '5224' '5225'
  13925. '52259' '52252' '52254' '52255' '52256' '52258' '52259'
  13926. '5235' '5232' '5233' '5234' '5235' '523x'
  13927. '5249' '5249'
  13928. '5250' '5250'
  13929. '5271' '5270' '5271'
  13930. '5272' '5272'
  13931. '5275' '5274' '5275'
  13932. '5282' '5280' '5281' '5282' '528x'
  13933. '53017' '53011' '53012' '53013' '53014' '53015' '53016' '53017'
  13934. '5307' '5307'
  13935. '5329' '5327' '5328' '5329' '532x'
  13936. '5373' '5372' '5373' '537x'
  13937. '5407' '5407'
  13938. '5475' '5470' '5471' '5472' '5473' '5474' '5475' '547x' '5480'
  13939. '5481' '5482' '5483' '5484' '5485'
  13940. '-mcpu=CPU' overrides '-march=ARCH' if ARCH is compatible with CPU.
  13941. Other combinations of '-mcpu' and '-march' are rejected.
  13942. GCC defines the macro '__mcf_cpu_CPU' when ColdFire target CPU is
  13943. selected. It also defines '__mcf_family_FAMILY', where the value
  13944. of FAMILY is given by the table above.
  13945. '-mtune=TUNE'
  13946. Tune the code for a particular microarchitecture within the
  13947. constraints set by '-march' and '-mcpu'. The M680x0
  13948. microarchitectures are: '68000', '68010', '68020', '68030',
  13949. '68040', '68060' and 'cpu32'. The ColdFire microarchitectures are:
  13950. 'cfv1', 'cfv2', 'cfv3', 'cfv4' and 'cfv4e'.
  13951. You can also use '-mtune=68020-40' for code that needs to run
  13952. relatively well on 68020, 68030 and 68040 targets.
  13953. '-mtune=68020-60' is similar but includes 68060 targets as well.
  13954. These two options select the same tuning decisions as '-m68020-40'
  13955. and '-m68020-60' respectively.
  13956. GCC defines the macros '__mcARCH' and '__mcARCH__' when tuning for
  13957. 680x0 architecture ARCH. It also defines 'mcARCH' unless either
  13958. '-ansi' or a non-GNU '-std' option is used. If GCC is tuning for a
  13959. range of architectures, as selected by '-mtune=68020-40' or
  13960. '-mtune=68020-60', it defines the macros for every architecture in
  13961. the range.
  13962. GCC also defines the macro '__mUARCH__' when tuning for ColdFire
  13963. microarchitecture UARCH, where UARCH is one of the arguments given
  13964. above.
  13965. '-m68000'
  13966. '-mc68000'
  13967. Generate output for a 68000. This is the default when the compiler
  13968. is configured for 68000-based systems. It is equivalent to
  13969. '-march=68000'.
  13970. Use this option for microcontrollers with a 68000 or EC000 core,
  13971. including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
  13972. '-m68010'
  13973. Generate output for a 68010. This is the default when the compiler
  13974. is configured for 68010-based systems. It is equivalent to
  13975. '-march=68010'.
  13976. '-m68020'
  13977. '-mc68020'
  13978. Generate output for a 68020. This is the default when the compiler
  13979. is configured for 68020-based systems. It is equivalent to
  13980. '-march=68020'.
  13981. '-m68030'
  13982. Generate output for a 68030. This is the default when the compiler
  13983. is configured for 68030-based systems. It is equivalent to
  13984. '-march=68030'.
  13985. '-m68040'
  13986. Generate output for a 68040. This is the default when the compiler
  13987. is configured for 68040-based systems. It is equivalent to
  13988. '-march=68040'.
  13989. This option inhibits the use of 68881/68882 instructions that have
  13990. to be emulated by software on the 68040. Use this option if your
  13991. 68040 does not have code to emulate those instructions.
  13992. '-m68060'
  13993. Generate output for a 68060. This is the default when the compiler
  13994. is configured for 68060-based systems. It is equivalent to
  13995. '-march=68060'.
  13996. This option inhibits the use of 68020 and 68881/68882 instructions
  13997. that have to be emulated by software on the 68060. Use this option
  13998. if your 68060 does not have code to emulate those instructions.
  13999. '-mcpu32'
  14000. Generate output for a CPU32. This is the default when the compiler
  14001. is configured for CPU32-based systems. It is equivalent to
  14002. '-march=cpu32'.
  14003. Use this option for microcontrollers with a CPU32 or CPU32+ core,
  14004. including the 68330, 68331, 68332, 68333, 68334, 68336, 68340,
  14005. 68341, 68349 and 68360.
  14006. '-m5200'
  14007. Generate output for a 520X ColdFire CPU. This is the default when
  14008. the compiler is configured for 520X-based systems. It is
  14009. equivalent to '-mcpu=5206', and is now deprecated in favor of that
  14010. option.
  14011. Use this option for microcontroller with a 5200 core, including the
  14012. MCF5202, MCF5203, MCF5204 and MCF5206.
  14013. '-m5206e'
  14014. Generate output for a 5206e ColdFire CPU. The option is now
  14015. deprecated in favor of the equivalent '-mcpu=5206e'.
  14016. '-m528x'
  14017. Generate output for a member of the ColdFire 528X family. The
  14018. option is now deprecated in favor of the equivalent '-mcpu=528x'.
  14019. '-m5307'
  14020. Generate output for a ColdFire 5307 CPU. The option is now
  14021. deprecated in favor of the equivalent '-mcpu=5307'.
  14022. '-m5407'
  14023. Generate output for a ColdFire 5407 CPU. The option is now
  14024. deprecated in favor of the equivalent '-mcpu=5407'.
  14025. '-mcfv4e'
  14026. Generate output for a ColdFire V4e family CPU (e.g. 547x/548x).
  14027. This includes use of hardware floating-point instructions. The
  14028. option is equivalent to '-mcpu=547x', and is now deprecated in
  14029. favor of that option.
  14030. '-m68020-40'
  14031. Generate output for a 68040, without using any of the new
  14032. instructions. This results in code that can run relatively
  14033. efficiently on either a 68020/68881 or a 68030 or a 68040. The
  14034. generated code does use the 68881 instructions that are emulated on
  14035. the 68040.
  14036. The option is equivalent to '-march=68020' '-mtune=68020-40'.
  14037. '-m68020-60'
  14038. Generate output for a 68060, without using any of the new
  14039. instructions. This results in code that can run relatively
  14040. efficiently on either a 68020/68881 or a 68030 or a 68040. The
  14041. generated code does use the 68881 instructions that are emulated on
  14042. the 68060.
  14043. The option is equivalent to '-march=68020' '-mtune=68020-60'.
  14044. '-mhard-float'
  14045. '-m68881'
  14046. Generate floating-point instructions. This is the default for
  14047. 68020 and above, and for ColdFire devices that have an FPU. It
  14048. defines the macro '__HAVE_68881__' on M680x0 targets and
  14049. '__mcffpu__' on ColdFire targets.
  14050. '-msoft-float'
  14051. Do not generate floating-point instructions; use library calls
  14052. instead. This is the default for 68000, 68010, and 68832 targets.
  14053. It is also the default for ColdFire devices that have no FPU.
  14054. '-mdiv'
  14055. '-mno-div'
  14056. Generate (do not generate) ColdFire hardware divide and remainder
  14057. instructions. If '-march' is used without '-mcpu', the default is
  14058. "on" for ColdFire architectures and "off" for M680x0 architectures.
  14059. Otherwise, the default is taken from the target CPU (either the
  14060. default CPU, or the one specified by '-mcpu'). For example, the
  14061. default is "off" for '-mcpu=5206' and "on" for '-mcpu=5206e'.
  14062. GCC defines the macro '__mcfhwdiv__' when this option is enabled.
  14063. '-mshort'
  14064. Consider type 'int' to be 16 bits wide, like 'short int'.
  14065. Additionally, parameters passed on the stack are also aligned to a
  14066. 16-bit boundary even on targets whose API mandates promotion to
  14067. 32-bit.
  14068. '-mno-short'
  14069. Do not consider type 'int' to be 16 bits wide. This is the
  14070. default.
  14071. '-mnobitfield'
  14072. '-mno-bitfield'
  14073. Do not use the bit-field instructions. The '-m68000', '-mcpu32'
  14074. and '-m5200' options imply '-mnobitfield'.
  14075. '-mbitfield'
  14076. Do use the bit-field instructions. The '-m68020' option implies
  14077. '-mbitfield'. This is the default if you use a configuration
  14078. designed for a 68020.
  14079. '-mrtd'
  14080. Use a different function-calling convention, in which functions
  14081. that take a fixed number of arguments return with the 'rtd'
  14082. instruction, which pops their arguments while returning. This
  14083. saves one instruction in the caller since there is no need to pop
  14084. the arguments there.
  14085. This calling convention is incompatible with the one normally used
  14086. on Unix, so you cannot use it if you need to call libraries
  14087. compiled with the Unix compiler.
  14088. Also, you must provide function prototypes for all functions that
  14089. take variable numbers of arguments (including 'printf'); otherwise
  14090. incorrect code is generated for calls to those functions.
  14091. In addition, seriously incorrect code results if you call a
  14092. function with too many arguments. (Normally, extra arguments are
  14093. harmlessly ignored.)
  14094. The 'rtd' instruction is supported by the 68010, 68020, 68030,
  14095. 68040, 68060 and CPU32 processors, but not by the 68000 or 5200.
  14096. '-mno-rtd'
  14097. Do not use the calling conventions selected by '-mrtd'. This is
  14098. the default.
  14099. '-malign-int'
  14100. '-mno-align-int'
  14101. Control whether GCC aligns 'int', 'long', 'long long', 'float',
  14102. 'double', and 'long double' variables on a 32-bit boundary
  14103. ('-malign-int') or a 16-bit boundary ('-mno-align-int'). Aligning
  14104. variables on 32-bit boundaries produces code that runs somewhat
  14105. faster on processors with 32-bit busses at the expense of more
  14106. memory.
  14107. *Warning:* if you use the '-malign-int' switch, GCC aligns
  14108. structures containing the above types differently than most
  14109. published application binary interface specifications for the m68k.
  14110. '-mpcrel'
  14111. Use the pc-relative addressing mode of the 68000 directly, instead
  14112. of using a global offset table. At present, this option implies
  14113. '-fpic', allowing at most a 16-bit offset for pc-relative
  14114. addressing. '-fPIC' is not presently supported with '-mpcrel',
  14115. though this could be supported for 68020 and higher processors.
  14116. '-mno-strict-align'
  14117. '-mstrict-align'
  14118. Do not (do) assume that unaligned memory references are handled by
  14119. the system.
  14120. '-msep-data'
  14121. Generate code that allows the data segment to be located in a
  14122. different area of memory from the text segment. This allows for
  14123. execute-in-place in an environment without virtual memory
  14124. management. This option implies '-fPIC'.
  14125. '-mno-sep-data'
  14126. Generate code that assumes that the data segment follows the text
  14127. segment. This is the default.
  14128. '-mid-shared-library'
  14129. Generate code that supports shared libraries via the library ID
  14130. method. This allows for execute-in-place and shared libraries in
  14131. an environment without virtual memory management. This option
  14132. implies '-fPIC'.
  14133. '-mno-id-shared-library'
  14134. Generate code that doesn't assume ID-based shared libraries are
  14135. being used. This is the default.
  14136. '-mshared-library-id=n'
  14137. Specifies the identification number of the ID-based shared library
  14138. being compiled. Specifying a value of 0 generates more compact
  14139. code; specifying other values forces the allocation of that number
  14140. to the current library, but is no more space- or time-efficient
  14141. than omitting this option.
  14142. '-mxgot'
  14143. '-mno-xgot'
  14144. When generating position-independent code for ColdFire, generate
  14145. code that works if the GOT has more than 8192 entries. This code
  14146. is larger and slower than code generated without this option. On
  14147. M680x0 processors, this option is not needed; '-fPIC' suffices.
  14148. GCC normally uses a single instruction to load values from the GOT.
  14149. While this is relatively efficient, it only works if the GOT is
  14150. smaller than about 64k. Anything larger causes the linker to
  14151. report an error such as:
  14152. relocation truncated to fit: R_68K_GOT16O foobar
  14153. If this happens, you should recompile your code with '-mxgot'. It
  14154. should then work with very large GOTs. However, code generated
  14155. with '-mxgot' is less efficient, since it takes 4 instructions to
  14156. fetch the value of a global symbol.
  14157. Note that some linkers, including newer versions of the GNU linker,
  14158. can create multiple GOTs and sort GOT entries. If you have such a
  14159. linker, you should only need to use '-mxgot' when compiling a
  14160. single object file that accesses more than 8192 GOT entries. Very
  14161. few do.
  14162. These options have no effect unless GCC is generating
  14163. position-independent code.
  14164. '-mlong-jump-table-offsets'
  14165. Use 32-bit offsets in 'switch' tables. The default is to use
  14166. 16-bit offsets.
  14167. 
  14168. File: gcc.info, Node: MCore Options, Next: MeP Options, Prev: M680x0 Options, Up: Submodel Options
  14169. 3.18.23 MCore Options
  14170. ---------------------
  14171. These are the '-m' options defined for the Motorola M*Core processors.
  14172. '-mhardlit'
  14173. '-mno-hardlit'
  14174. Inline constants into the code stream if it can be done in two
  14175. instructions or less.
  14176. '-mdiv'
  14177. '-mno-div'
  14178. Use the divide instruction. (Enabled by default).
  14179. '-mrelax-immediate'
  14180. '-mno-relax-immediate'
  14181. Allow arbitrary-sized immediates in bit operations.
  14182. '-mwide-bitfields'
  14183. '-mno-wide-bitfields'
  14184. Always treat bit-fields as 'int'-sized.
  14185. '-m4byte-functions'
  14186. '-mno-4byte-functions'
  14187. Force all functions to be aligned to a 4-byte boundary.
  14188. '-mcallgraph-data'
  14189. '-mno-callgraph-data'
  14190. Emit callgraph information.
  14191. '-mslow-bytes'
  14192. '-mno-slow-bytes'
  14193. Prefer word access when reading byte quantities.
  14194. '-mlittle-endian'
  14195. '-mbig-endian'
  14196. Generate code for a little-endian target.
  14197. '-m210'
  14198. '-m340'
  14199. Generate code for the 210 processor.
  14200. '-mno-lsim'
  14201. Assume that runtime support has been provided and so omit the
  14202. simulator library ('libsim.a)' from the linker command line.
  14203. '-mstack-increment=SIZE'
  14204. Set the maximum amount for a single stack increment operation.
  14205. Large values can increase the speed of programs that contain
  14206. functions that need a large amount of stack space, but they can
  14207. also trigger a segmentation fault if the stack is extended too
  14208. much. The default value is 0x1000.
  14209. 
  14210. File: gcc.info, Node: MeP Options, Next: MicroBlaze Options, Prev: MCore Options, Up: Submodel Options
  14211. 3.18.24 MeP Options
  14212. -------------------
  14213. '-mabsdiff'
  14214. Enables the 'abs' instruction, which is the absolute difference
  14215. between two registers.
  14216. '-mall-opts'
  14217. Enables all the optional instructions--average, multiply, divide,
  14218. bit operations, leading zero, absolute difference, min/max, clip,
  14219. and saturation.
  14220. '-maverage'
  14221. Enables the 'ave' instruction, which computes the average of two
  14222. registers.
  14223. '-mbased=N'
  14224. Variables of size N bytes or smaller are placed in the '.based'
  14225. section by default. Based variables use the '$tp' register as a
  14226. base register, and there is a 128-byte limit to the '.based'
  14227. section.
  14228. '-mbitops'
  14229. Enables the bit operation instructions--bit test ('btstm'), set
  14230. ('bsetm'), clear ('bclrm'), invert ('bnotm'), and test-and-set
  14231. ('tas').
  14232. '-mc=NAME'
  14233. Selects which section constant data is placed in. NAME may be
  14234. 'tiny', 'near', or 'far'.
  14235. '-mclip'
  14236. Enables the 'clip' instruction. Note that '-mclip' is not useful
  14237. unless you also provide '-mminmax'.
  14238. '-mconfig=NAME'
  14239. Selects one of the built-in core configurations. Each MeP chip has
  14240. one or more modules in it; each module has a core CPU and a variety
  14241. of coprocessors, optional instructions, and peripherals. The
  14242. 'MeP-Integrator' tool, not part of GCC, provides these
  14243. configurations through this option; using this option is the same
  14244. as using all the corresponding command-line options. The default
  14245. configuration is 'default'.
  14246. '-mcop'
  14247. Enables the coprocessor instructions. By default, this is a 32-bit
  14248. coprocessor. Note that the coprocessor is normally enabled via the
  14249. '-mconfig=' option.
  14250. '-mcop32'
  14251. Enables the 32-bit coprocessor's instructions.
  14252. '-mcop64'
  14253. Enables the 64-bit coprocessor's instructions.
  14254. '-mivc2'
  14255. Enables IVC2 scheduling. IVC2 is a 64-bit VLIW coprocessor.
  14256. '-mdc'
  14257. Causes constant variables to be placed in the '.near' section.
  14258. '-mdiv'
  14259. Enables the 'div' and 'divu' instructions.
  14260. '-meb'
  14261. Generate big-endian code.
  14262. '-mel'
  14263. Generate little-endian code.
  14264. '-mio-volatile'
  14265. Tells the compiler that any variable marked with the 'io' attribute
  14266. is to be considered volatile.
  14267. '-ml'
  14268. Causes variables to be assigned to the '.far' section by default.
  14269. '-mleadz'
  14270. Enables the 'leadz' (leading zero) instruction.
  14271. '-mm'
  14272. Causes variables to be assigned to the '.near' section by default.
  14273. '-mminmax'
  14274. Enables the 'min' and 'max' instructions.
  14275. '-mmult'
  14276. Enables the multiplication and multiply-accumulate instructions.
  14277. '-mno-opts'
  14278. Disables all the optional instructions enabled by '-mall-opts'.
  14279. '-mrepeat'
  14280. Enables the 'repeat' and 'erepeat' instructions, used for
  14281. low-overhead looping.
  14282. '-ms'
  14283. Causes all variables to default to the '.tiny' section. Note that
  14284. there is a 65536-byte limit to this section. Accesses to these
  14285. variables use the '%gp' base register.
  14286. '-msatur'
  14287. Enables the saturation instructions. Note that the compiler does
  14288. not currently generate these itself, but this option is included
  14289. for compatibility with other tools, like 'as'.
  14290. '-msdram'
  14291. Link the SDRAM-based runtime instead of the default ROM-based
  14292. runtime.
  14293. '-msim'
  14294. Link the simulator run-time libraries.
  14295. '-msimnovec'
  14296. Link the simulator runtime libraries, excluding built-in support
  14297. for reset and exception vectors and tables.
  14298. '-mtf'
  14299. Causes all functions to default to the '.far' section. Without
  14300. this option, functions default to the '.near' section.
  14301. '-mtiny=N'
  14302. Variables that are N bytes or smaller are allocated to the '.tiny'
  14303. section. These variables use the '$gp' base register. The default
  14304. for this option is 4, but note that there's a 65536-byte limit to
  14305. the '.tiny' section.
  14306. 
  14307. File: gcc.info, Node: MicroBlaze Options, Next: MIPS Options, Prev: MeP Options, Up: Submodel Options
  14308. 3.18.25 MicroBlaze Options
  14309. --------------------------
  14310. '-msoft-float'
  14311. Use software emulation for floating point (default).
  14312. '-mhard-float'
  14313. Use hardware floating-point instructions.
  14314. '-mmemcpy'
  14315. Do not optimize block moves, use 'memcpy'.
  14316. '-mno-clearbss'
  14317. This option is deprecated. Use '-fno-zero-initialized-in-bss'
  14318. instead.
  14319. '-mcpu=CPU-TYPE'
  14320. Use features of, and schedule code for, the given CPU. Supported
  14321. values are in the format 'vX.YY.Z', where X is a major version, YY
  14322. is the minor version, and Z is compatibility code. Example values
  14323. are 'v3.00.a', 'v4.00.b', 'v5.00.a', 'v5.00.b', 'v5.00.b',
  14324. 'v6.00.a'.
  14325. '-mxl-soft-mul'
  14326. Use software multiply emulation (default).
  14327. '-mxl-soft-div'
  14328. Use software emulation for divides (default).
  14329. '-mxl-barrel-shift'
  14330. Use the hardware barrel shifter.
  14331. '-mxl-pattern-compare'
  14332. Use pattern compare instructions.
  14333. '-msmall-divides'
  14334. Use table lookup optimization for small signed integer divisions.
  14335. '-mxl-stack-check'
  14336. This option is deprecated. Use '-fstack-check' instead.
  14337. '-mxl-gp-opt'
  14338. Use GP-relative '.sdata'/'.sbss' sections.
  14339. '-mxl-multiply-high'
  14340. Use multiply high instructions for high part of 32x32 multiply.
  14341. '-mxl-float-convert'
  14342. Use hardware floating-point conversion instructions.
  14343. '-mxl-float-sqrt'
  14344. Use hardware floating-point square root instruction.
  14345. '-mbig-endian'
  14346. Generate code for a big-endian target.
  14347. '-mlittle-endian'
  14348. Generate code for a little-endian target.
  14349. '-mxl-reorder'
  14350. Use reorder instructions (swap and byte reversed load/store).
  14351. '-mxl-mode-APP-MODEL'
  14352. Select application model APP-MODEL. Valid models are
  14353. 'executable'
  14354. normal executable (default), uses startup code 'crt0.o'.
  14355. 'xmdstub'
  14356. for use with Xilinx Microprocessor Debugger (XMD) based
  14357. software intrusive debug agent called xmdstub. This uses
  14358. startup file 'crt1.o' and sets the start address of the
  14359. program to 0x800.
  14360. 'bootstrap'
  14361. for applications that are loaded using a bootloader. This
  14362. model uses startup file 'crt2.o' which does not contain a
  14363. processor reset vector handler. This is suitable for
  14364. transferring control on a processor reset to the bootloader
  14365. rather than the application.
  14366. 'novectors'
  14367. for applications that do not require any of the MicroBlaze
  14368. vectors. This option may be useful for applications running
  14369. within a monitoring application. This model uses 'crt3.o' as
  14370. a startup file.
  14371. Option '-xl-mode-APP-MODEL' is a deprecated alias for
  14372. '-mxl-mode-APP-MODEL'.
  14373. 
  14374. File: gcc.info, Node: MIPS Options, Next: MMIX Options, Prev: MicroBlaze Options, Up: Submodel Options
  14375. 3.18.26 MIPS Options
  14376. --------------------
  14377. '-EB'
  14378. Generate big-endian code.
  14379. '-EL'
  14380. Generate little-endian code. This is the default for 'mips*el-*-*'
  14381. configurations.
  14382. '-march=ARCH'
  14383. Generate code that runs on ARCH, which can be the name of a generic
  14384. MIPS ISA, or the name of a particular processor. The ISA names
  14385. are: 'mips1', 'mips2', 'mips3', 'mips4', 'mips32', 'mips32r2',
  14386. 'mips32r3', 'mips32r5', 'mips32r6', 'mips64', 'mips64r2',
  14387. 'mips64r3', 'mips64r5' and 'mips64r6'. The processor names are:
  14388. '4kc', '4km', '4kp', '4ksc', '4kec', '4kem', '4kep', '4ksd', '5kc',
  14389. '5kf', '20kc', '24kc', '24kf2_1', '24kf1_1', '24kec', '24kef2_1',
  14390. '24kef1_1', '34kc', '34kf2_1', '34kf1_1', '34kn', '74kc',
  14391. '74kf2_1', '74kf1_1', '74kf3_2', '1004kc', '1004kf2_1',
  14392. '1004kf1_1', 'i6400', 'interaptiv', 'loongson2e', 'loongson2f',
  14393. 'loongson3a', 'm4k', 'm14k', 'm14kc', 'm14ke', 'm14kec', 'm5100',
  14394. 'm5101', 'octeon', 'octeon+', 'octeon2', 'octeon3', 'orion',
  14395. 'p5600', 'r2000', 'r3000', 'r3900', 'r4000', 'r4400', 'r4600',
  14396. 'r4650', 'r4700', 'r6000', 'r8000', 'rm7000', 'rm9000', 'r10000',
  14397. 'r12000', 'r14000', 'r16000', 'sb1', 'sr71000', 'vr4100', 'vr4111',
  14398. 'vr4120', 'vr4130', 'vr4300', 'vr5000', 'vr5400', 'vr5500', 'xlr'
  14399. and 'xlp'. The special value 'from-abi' selects the most
  14400. compatible architecture for the selected ABI (that is, 'mips1' for
  14401. 32-bit ABIs and 'mips3' for 64-bit ABIs).
  14402. The native Linux/GNU toolchain also supports the value 'native',
  14403. which selects the best architecture option for the host processor.
  14404. '-march=native' has no effect if GCC does not recognize the
  14405. processor.
  14406. In processor names, a final '000' can be abbreviated as 'k' (for
  14407. example, '-march=r2k'). Prefixes are optional, and 'vr' may be
  14408. written 'r'.
  14409. Names of the form 'Nf2_1' refer to processors with FPUs clocked at
  14410. half the rate of the core, names of the form 'Nf1_1' refer to
  14411. processors with FPUs clocked at the same rate as the core, and
  14412. names of the form 'Nf3_2' refer to processors with FPUs clocked a
  14413. ratio of 3:2 with respect to the core. For compatibility reasons,
  14414. 'Nf' is accepted as a synonym for 'Nf2_1' while 'Nx' and 'Bfx' are
  14415. accepted as synonyms for 'Nf1_1'.
  14416. GCC defines two macros based on the value of this option. The
  14417. first is '_MIPS_ARCH', which gives the name of target architecture,
  14418. as a string. The second has the form '_MIPS_ARCH_FOO', where FOO
  14419. is the capitalized value of '_MIPS_ARCH'. For example,
  14420. '-march=r2000' sets '_MIPS_ARCH' to '"r2000"' and defines the macro
  14421. '_MIPS_ARCH_R2000'.
  14422. Note that the '_MIPS_ARCH' macro uses the processor names given
  14423. above. In other words, it has the full prefix and does not
  14424. abbreviate '000' as 'k'. In the case of 'from-abi', the macro
  14425. names the resolved architecture (either '"mips1"' or '"mips3"').
  14426. It names the default architecture when no '-march' option is given.
  14427. '-mtune=ARCH'
  14428. Optimize for ARCH. Among other things, this option controls the
  14429. way instructions are scheduled, and the perceived cost of
  14430. arithmetic operations. The list of ARCH values is the same as for
  14431. '-march'.
  14432. When this option is not used, GCC optimizes for the processor
  14433. specified by '-march'. By using '-march' and '-mtune' together, it
  14434. is possible to generate code that runs on a family of processors,
  14435. but optimize the code for one particular member of that family.
  14436. '-mtune' defines the macros '_MIPS_TUNE' and '_MIPS_TUNE_FOO',
  14437. which work in the same way as the '-march' ones described above.
  14438. '-mips1'
  14439. Equivalent to '-march=mips1'.
  14440. '-mips2'
  14441. Equivalent to '-march=mips2'.
  14442. '-mips3'
  14443. Equivalent to '-march=mips3'.
  14444. '-mips4'
  14445. Equivalent to '-march=mips4'.
  14446. '-mips32'
  14447. Equivalent to '-march=mips32'.
  14448. '-mips32r3'
  14449. Equivalent to '-march=mips32r3'.
  14450. '-mips32r5'
  14451. Equivalent to '-march=mips32r5'.
  14452. '-mips32r6'
  14453. Equivalent to '-march=mips32r6'.
  14454. '-mips64'
  14455. Equivalent to '-march=mips64'.
  14456. '-mips64r2'
  14457. Equivalent to '-march=mips64r2'.
  14458. '-mips64r3'
  14459. Equivalent to '-march=mips64r3'.
  14460. '-mips64r5'
  14461. Equivalent to '-march=mips64r5'.
  14462. '-mips64r6'
  14463. Equivalent to '-march=mips64r6'.
  14464. '-mips16'
  14465. '-mno-mips16'
  14466. Generate (do not generate) MIPS16 code. If GCC is targeting a
  14467. MIPS32 or MIPS64 architecture, it makes use of the MIPS16e ASE.
  14468. MIPS16 code generation can also be controlled on a per-function
  14469. basis by means of 'mips16' and 'nomips16' attributes. *Note
  14470. Function Attributes::, for more information.
  14471. '-mflip-mips16'
  14472. Generate MIPS16 code on alternating functions. This option is
  14473. provided for regression testing of mixed MIPS16/non-MIPS16 code
  14474. generation, and is not intended for ordinary use in compiling user
  14475. code.
  14476. '-minterlink-compressed'
  14477. '-mno-interlink-compressed'
  14478. Require (do not require) that code using the standard
  14479. (uncompressed) MIPS ISA be link-compatible with MIPS16 and
  14480. microMIPS code, and vice versa.
  14481. For example, code using the standard ISA encoding cannot jump
  14482. directly to MIPS16 or microMIPS code; it must either use a call or
  14483. an indirect jump. '-minterlink-compressed' therefore disables
  14484. direct jumps unless GCC knows that the target of the jump is not
  14485. compressed.
  14486. '-minterlink-mips16'
  14487. '-mno-interlink-mips16'
  14488. Aliases of '-minterlink-compressed' and
  14489. '-mno-interlink-compressed'. These options predate the microMIPS
  14490. ASE and are retained for backwards compatibility.
  14491. '-mabi=32'
  14492. '-mabi=o64'
  14493. '-mabi=n32'
  14494. '-mabi=64'
  14495. '-mabi=eabi'
  14496. Generate code for the given ABI.
  14497. Note that the EABI has a 32-bit and a 64-bit variant. GCC normally
  14498. generates 64-bit code when you select a 64-bit architecture, but
  14499. you can use '-mgp32' to get 32-bit code instead.
  14500. For information about the O64 ABI, see
  14501. <http://gcc.gnu.org/projects/mipso64-abi.html>.
  14502. GCC supports a variant of the o32 ABI in which floating-point
  14503. registers are 64 rather than 32 bits wide. You can select this
  14504. combination with '-mabi=32' '-mfp64'. This ABI relies on the
  14505. 'mthc1' and 'mfhc1' instructions and is therefore only supported
  14506. for MIPS32R2, MIPS32R3 and MIPS32R5 processors.
  14507. The register assignments for arguments and return values remain the
  14508. same, but each scalar value is passed in a single 64-bit register
  14509. rather than a pair of 32-bit registers. For example, scalar
  14510. floating-point values are returned in '$f0' only, not a '$f0'/'$f1'
  14511. pair. The set of call-saved registers also remains the same in
  14512. that the even-numbered double-precision registers are saved.
  14513. Two additional variants of the o32 ABI are supported to enable a
  14514. transition from 32-bit to 64-bit registers. These are FPXX
  14515. ('-mfpxx') and FP64A ('-mfp64' '-mno-odd-spreg'). The FPXX
  14516. extension mandates that all code must execute correctly when run
  14517. using 32-bit or 64-bit registers. The code can be interlinked with
  14518. either FP32 or FP64, but not both. The FP64A extension is similar
  14519. to the FP64 extension but forbids the use of odd-numbered
  14520. single-precision registers. This can be used in conjunction with
  14521. the 'FRE' mode of FPUs in MIPS32R5 processors and allows both FP32
  14522. and FP64A code to interlink and run in the same process without
  14523. changing FPU modes.
  14524. '-mabicalls'
  14525. '-mno-abicalls'
  14526. Generate (do not generate) code that is suitable for SVR4-style
  14527. dynamic objects. '-mabicalls' is the default for SVR4-based
  14528. systems.
  14529. '-mshared'
  14530. '-mno-shared'
  14531. Generate (do not generate) code that is fully position-independent,
  14532. and that can therefore be linked into shared libraries. This
  14533. option only affects '-mabicalls'.
  14534. All '-mabicalls' code has traditionally been position-independent,
  14535. regardless of options like '-fPIC' and '-fpic'. However, as an
  14536. extension, the GNU toolchain allows executables to use absolute
  14537. accesses for locally-binding symbols. It can also use shorter GP
  14538. initialization sequences and generate direct calls to
  14539. locally-defined functions. This mode is selected by '-mno-shared'.
  14540. '-mno-shared' depends on binutils 2.16 or higher and generates
  14541. objects that can only be linked by the GNU linker. However, the
  14542. option does not affect the ABI of the final executable; it only
  14543. affects the ABI of relocatable objects. Using '-mno-shared'
  14544. generally makes executables both smaller and quicker.
  14545. '-mshared' is the default.
  14546. '-mplt'
  14547. '-mno-plt'
  14548. Assume (do not assume) that the static and dynamic linkers support
  14549. PLTs and copy relocations. This option only affects '-mno-shared
  14550. -mabicalls'. For the n64 ABI, this option has no effect without
  14551. '-msym32'.
  14552. You can make '-mplt' the default by configuring GCC with
  14553. '--with-mips-plt'. The default is '-mno-plt' otherwise.
  14554. '-mxgot'
  14555. '-mno-xgot'
  14556. Lift (do not lift) the usual restrictions on the size of the global
  14557. offset table.
  14558. GCC normally uses a single instruction to load values from the GOT.
  14559. While this is relatively efficient, it only works if the GOT is
  14560. smaller than about 64k. Anything larger causes the linker to
  14561. report an error such as:
  14562. relocation truncated to fit: R_MIPS_GOT16 foobar
  14563. If this happens, you should recompile your code with '-mxgot'.
  14564. This works with very large GOTs, although the code is also less
  14565. efficient, since it takes three instructions to fetch the value of
  14566. a global symbol.
  14567. Note that some linkers can create multiple GOTs. If you have such
  14568. a linker, you should only need to use '-mxgot' when a single object
  14569. file accesses more than 64k's worth of GOT entries. Very few do.
  14570. These options have no effect unless GCC is generating position
  14571. independent code.
  14572. '-mgp32'
  14573. Assume that general-purpose registers are 32 bits wide.
  14574. '-mgp64'
  14575. Assume that general-purpose registers are 64 bits wide.
  14576. '-mfp32'
  14577. Assume that floating-point registers are 32 bits wide.
  14578. '-mfp64'
  14579. Assume that floating-point registers are 64 bits wide.
  14580. '-mfpxx'
  14581. Do not assume the width of floating-point registers.
  14582. '-mhard-float'
  14583. Use floating-point coprocessor instructions.
  14584. '-msoft-float'
  14585. Do not use floating-point coprocessor instructions. Implement
  14586. floating-point calculations using library calls instead.
  14587. '-mno-float'
  14588. Equivalent to '-msoft-float', but additionally asserts that the
  14589. program being compiled does not perform any floating-point
  14590. operations. This option is presently supported only by some
  14591. bare-metal MIPS configurations, where it may select a special set
  14592. of libraries that lack all floating-point support (including, for
  14593. example, the floating-point 'printf' formats). If code compiled
  14594. with '-mno-float' accidentally contains floating-point operations,
  14595. it is likely to suffer a link-time or run-time failure.
  14596. '-msingle-float'
  14597. Assume that the floating-point coprocessor only supports
  14598. single-precision operations.
  14599. '-mdouble-float'
  14600. Assume that the floating-point coprocessor supports
  14601. double-precision operations. This is the default.
  14602. '-modd-spreg'
  14603. '-mno-odd-spreg'
  14604. Enable the use of odd-numbered single-precision floating-point
  14605. registers for the o32 ABI. This is the default for processors that
  14606. are known to support these registers. When using the o32 FPXX ABI,
  14607. '-mno-odd-spreg' is set by default.
  14608. '-mabs=2008'
  14609. '-mabs=legacy'
  14610. These options control the treatment of the special not-a-number
  14611. (NaN) IEEE 754 floating-point data with the 'abs.fmt' and 'neg.fmt'
  14612. machine instructions.
  14613. By default or when '-mabs=legacy' is used the legacy treatment is
  14614. selected. In this case these instructions are considered
  14615. arithmetic and avoided where correct operation is required and the
  14616. input operand might be a NaN. A longer sequence of instructions
  14617. that manipulate the sign bit of floating-point datum manually is
  14618. used instead unless the '-ffinite-math-only' option has also been
  14619. specified.
  14620. The '-mabs=2008' option selects the IEEE 754-2008 treatment. In
  14621. this case these instructions are considered non-arithmetic and
  14622. therefore operating correctly in all cases, including in particular
  14623. where the input operand is a NaN. These instructions are therefore
  14624. always used for the respective operations.
  14625. '-mnan=2008'
  14626. '-mnan=legacy'
  14627. These options control the encoding of the special not-a-number
  14628. (NaN) IEEE 754 floating-point data.
  14629. The '-mnan=legacy' option selects the legacy encoding. In this
  14630. case quiet NaNs (qNaNs) are denoted by the first bit of their
  14631. trailing significand field being 0, whereas signaling NaNs (sNaNs)
  14632. are denoted by the first bit of their trailing significand field
  14633. being 1.
  14634. The '-mnan=2008' option selects the IEEE 754-2008 encoding. In
  14635. this case qNaNs are denoted by the first bit of their trailing
  14636. significand field being 1, whereas sNaNs are denoted by the first
  14637. bit of their trailing significand field being 0.
  14638. The default is '-mnan=legacy' unless GCC has been configured with
  14639. '--with-nan=2008'.
  14640. '-mllsc'
  14641. '-mno-llsc'
  14642. Use (do not use) 'll', 'sc', and 'sync' instructions to implement
  14643. atomic memory built-in functions. When neither option is
  14644. specified, GCC uses the instructions if the target architecture
  14645. supports them.
  14646. '-mllsc' is useful if the runtime environment can emulate the
  14647. instructions and '-mno-llsc' can be useful when compiling for
  14648. nonstandard ISAs. You can make either option the default by
  14649. configuring GCC with '--with-llsc' and '--without-llsc'
  14650. respectively. '--with-llsc' is the default for some
  14651. configurations; see the installation documentation for details.
  14652. '-mdsp'
  14653. '-mno-dsp'
  14654. Use (do not use) revision 1 of the MIPS DSP ASE. *Note MIPS DSP
  14655. Built-in Functions::. This option defines the preprocessor macro
  14656. '__mips_dsp'. It also defines '__mips_dsp_rev' to 1.
  14657. '-mdspr2'
  14658. '-mno-dspr2'
  14659. Use (do not use) revision 2 of the MIPS DSP ASE. *Note MIPS DSP
  14660. Built-in Functions::. This option defines the preprocessor macros
  14661. '__mips_dsp' and '__mips_dspr2'. It also defines '__mips_dsp_rev'
  14662. to 2.
  14663. '-msmartmips'
  14664. '-mno-smartmips'
  14665. Use (do not use) the MIPS SmartMIPS ASE.
  14666. '-mpaired-single'
  14667. '-mno-paired-single'
  14668. Use (do not use) paired-single floating-point instructions. *Note
  14669. MIPS Paired-Single Support::. This option requires hardware
  14670. floating-point support to be enabled.
  14671. '-mdmx'
  14672. '-mno-mdmx'
  14673. Use (do not use) MIPS Digital Media Extension instructions. This
  14674. option can only be used when generating 64-bit code and requires
  14675. hardware floating-point support to be enabled.
  14676. '-mips3d'
  14677. '-mno-mips3d'
  14678. Use (do not use) the MIPS-3D ASE. *Note MIPS-3D Built-in
  14679. Functions::. The option '-mips3d' implies '-mpaired-single'.
  14680. '-mmicromips'
  14681. '-mno-micromips'
  14682. Generate (do not generate) microMIPS code.
  14683. MicroMIPS code generation can also be controlled on a per-function
  14684. basis by means of 'micromips' and 'nomicromips' attributes. *Note
  14685. Function Attributes::, for more information.
  14686. '-mmt'
  14687. '-mno-mt'
  14688. Use (do not use) MT Multithreading instructions.
  14689. '-mmcu'
  14690. '-mno-mcu'
  14691. Use (do not use) the MIPS MCU ASE instructions.
  14692. '-meva'
  14693. '-mno-eva'
  14694. Use (do not use) the MIPS Enhanced Virtual Addressing instructions.
  14695. '-mvirt'
  14696. '-mno-virt'
  14697. Use (do not use) the MIPS Virtualization (VZ) instructions.
  14698. '-mxpa'
  14699. '-mno-xpa'
  14700. Use (do not use) the MIPS eXtended Physical Address (XPA)
  14701. instructions.
  14702. '-mlong64'
  14703. Force 'long' types to be 64 bits wide. See '-mlong32' for an
  14704. explanation of the default and the way that the pointer size is
  14705. determined.
  14706. '-mlong32'
  14707. Force 'long', 'int', and pointer types to be 32 bits wide.
  14708. The default size of 'int's, 'long's and pointers depends on the
  14709. ABI. All the supported ABIs use 32-bit 'int's. The n64 ABI uses
  14710. 64-bit 'long's, as does the 64-bit EABI; the others use 32-bit
  14711. 'long's. Pointers are the same size as 'long's, or the same size
  14712. as integer registers, whichever is smaller.
  14713. '-msym32'
  14714. '-mno-sym32'
  14715. Assume (do not assume) that all symbols have 32-bit values,
  14716. regardless of the selected ABI. This option is useful in
  14717. combination with '-mabi=64' and '-mno-abicalls' because it allows
  14718. GCC to generate shorter and faster references to symbolic
  14719. addresses.
  14720. '-G NUM'
  14721. Put definitions of externally-visible data in a small data section
  14722. if that data is no bigger than NUM bytes. GCC can then generate
  14723. more efficient accesses to the data; see '-mgpopt' for details.
  14724. The default '-G' option depends on the configuration.
  14725. '-mlocal-sdata'
  14726. '-mno-local-sdata'
  14727. Extend (do not extend) the '-G' behavior to local data too, such as
  14728. to static variables in C. '-mlocal-sdata' is the default for all
  14729. configurations.
  14730. If the linker complains that an application is using too much small
  14731. data, you might want to try rebuilding the less
  14732. performance-critical parts with '-mno-local-sdata'. You might also
  14733. want to build large libraries with '-mno-local-sdata', so that the
  14734. libraries leave more room for the main program.
  14735. '-mextern-sdata'
  14736. '-mno-extern-sdata'
  14737. Assume (do not assume) that externally-defined data is in a small
  14738. data section if the size of that data is within the '-G' limit.
  14739. '-mextern-sdata' is the default for all configurations.
  14740. If you compile a module MOD with '-mextern-sdata' '-G NUM'
  14741. '-mgpopt', and MOD references a variable VAR that is no bigger than
  14742. NUM bytes, you must make sure that VAR is placed in a small data
  14743. section. If VAR is defined by another module, you must either
  14744. compile that module with a high-enough '-G' setting or attach a
  14745. 'section' attribute to VAR's definition. If VAR is common, you
  14746. must link the application with a high-enough '-G' setting.
  14747. The easiest way of satisfying these restrictions is to compile and
  14748. link every module with the same '-G' option. However, you may wish
  14749. to build a library that supports several different small data
  14750. limits. You can do this by compiling the library with the highest
  14751. supported '-G' setting and additionally using '-mno-extern-sdata'
  14752. to stop the library from making assumptions about
  14753. externally-defined data.
  14754. '-mgpopt'
  14755. '-mno-gpopt'
  14756. Use (do not use) GP-relative accesses for symbols that are known to
  14757. be in a small data section; see '-G', '-mlocal-sdata' and
  14758. '-mextern-sdata'. '-mgpopt' is the default for all configurations.
  14759. '-mno-gpopt' is useful for cases where the '$gp' register might not
  14760. hold the value of '_gp'. For example, if the code is part of a
  14761. library that might be used in a boot monitor, programs that call
  14762. boot monitor routines pass an unknown value in '$gp'. (In such
  14763. situations, the boot monitor itself is usually compiled with
  14764. '-G0'.)
  14765. '-mno-gpopt' implies '-mno-local-sdata' and '-mno-extern-sdata'.
  14766. '-membedded-data'
  14767. '-mno-embedded-data'
  14768. Allocate variables to the read-only data section first if possible,
  14769. then next in the small data section if possible, otherwise in data.
  14770. This gives slightly slower code than the default, but reduces the
  14771. amount of RAM required when executing, and thus may be preferred
  14772. for some embedded systems.
  14773. '-muninit-const-in-rodata'
  14774. '-mno-uninit-const-in-rodata'
  14775. Put uninitialized 'const' variables in the read-only data section.
  14776. This option is only meaningful in conjunction with
  14777. '-membedded-data'.
  14778. '-mcode-readable=SETTING'
  14779. Specify whether GCC may generate code that reads from executable
  14780. sections. There are three possible settings:
  14781. '-mcode-readable=yes'
  14782. Instructions may freely access executable sections. This is
  14783. the default setting.
  14784. '-mcode-readable=pcrel'
  14785. MIPS16 PC-relative load instructions can access executable
  14786. sections, but other instructions must not do so. This option
  14787. is useful on 4KSc and 4KSd processors when the code TLBs have
  14788. the Read Inhibit bit set. It is also useful on processors
  14789. that can be configured to have a dual instruction/data SRAM
  14790. interface and that, like the M4K, automatically redirect
  14791. PC-relative loads to the instruction RAM.
  14792. '-mcode-readable=no'
  14793. Instructions must not access executable sections. This option
  14794. can be useful on targets that are configured to have a dual
  14795. instruction/data SRAM interface but that (unlike the M4K) do
  14796. not automatically redirect PC-relative loads to the
  14797. instruction RAM.
  14798. '-msplit-addresses'
  14799. '-mno-split-addresses'
  14800. Enable (disable) use of the '%hi()' and '%lo()' assembler
  14801. relocation operators. This option has been superseded by
  14802. '-mexplicit-relocs' but is retained for backwards compatibility.
  14803. '-mexplicit-relocs'
  14804. '-mno-explicit-relocs'
  14805. Use (do not use) assembler relocation operators when dealing with
  14806. symbolic addresses. The alternative, selected by
  14807. '-mno-explicit-relocs', is to use assembler macros instead.
  14808. '-mexplicit-relocs' is the default if GCC was configured to use an
  14809. assembler that supports relocation operators.
  14810. '-mcheck-zero-division'
  14811. '-mno-check-zero-division'
  14812. Trap (do not trap) on integer division by zero.
  14813. The default is '-mcheck-zero-division'.
  14814. '-mdivide-traps'
  14815. '-mdivide-breaks'
  14816. MIPS systems check for division by zero by generating either a
  14817. conditional trap or a break instruction. Using traps results in
  14818. smaller code, but is only supported on MIPS II and later. Also,
  14819. some versions of the Linux kernel have a bug that prevents trap
  14820. from generating the proper signal ('SIGFPE'). Use '-mdivide-traps'
  14821. to allow conditional traps on architectures that support them and
  14822. '-mdivide-breaks' to force the use of breaks.
  14823. The default is usually '-mdivide-traps', but this can be overridden
  14824. at configure time using '--with-divide=breaks'. Divide-by-zero
  14825. checks can be completely disabled using '-mno-check-zero-division'.
  14826. '-mload-store-pairs'
  14827. '-mno-load-store-pairs'
  14828. Enable (disable) an optimization that pairs consecutive load or
  14829. store instructions to enable load/store bonding. This option is
  14830. enabled by default but only takes effect when the selected
  14831. architecture is known to support bonding.
  14832. '-mmemcpy'
  14833. '-mno-memcpy'
  14834. Force (do not force) the use of 'memcpy' for non-trivial block
  14835. moves. The default is '-mno-memcpy', which allows GCC to inline
  14836. most constant-sized copies.
  14837. '-mlong-calls'
  14838. '-mno-long-calls'
  14839. Disable (do not disable) use of the 'jal' instruction. Calling
  14840. functions using 'jal' is more efficient but requires the caller and
  14841. callee to be in the same 256 megabyte segment.
  14842. This option has no effect on abicalls code. The default is
  14843. '-mno-long-calls'.
  14844. '-mmad'
  14845. '-mno-mad'
  14846. Enable (disable) use of the 'mad', 'madu' and 'mul' instructions,
  14847. as provided by the R4650 ISA.
  14848. '-mimadd'
  14849. '-mno-imadd'
  14850. Enable (disable) use of the 'madd' and 'msub' integer instructions.
  14851. The default is '-mimadd' on architectures that support 'madd' and
  14852. 'msub' except for the 74k architecture where it was found to
  14853. generate slower code.
  14854. '-mfused-madd'
  14855. '-mno-fused-madd'
  14856. Enable (disable) use of the floating-point multiply-accumulate
  14857. instructions, when they are available. The default is
  14858. '-mfused-madd'.
  14859. On the R8000 CPU when multiply-accumulate instructions are used,
  14860. the intermediate product is calculated to infinite precision and is
  14861. not subject to the FCSR Flush to Zero bit. This may be undesirable
  14862. in some circumstances. On other processors the result is
  14863. numerically identical to the equivalent computation using separate
  14864. multiply, add, subtract and negate instructions.
  14865. '-nocpp'
  14866. Tell the MIPS assembler to not run its preprocessor over user
  14867. assembler files (with a '.s' suffix) when assembling them.
  14868. '-mfix-24k'
  14869. '-mno-fix-24k'
  14870. Work around the 24K E48 (lost data on stores during refill) errata.
  14871. The workarounds are implemented by the assembler rather than by
  14872. GCC.
  14873. '-mfix-r4000'
  14874. '-mno-fix-r4000'
  14875. Work around certain R4000 CPU errata:
  14876. - A double-word or a variable shift may give an incorrect result
  14877. if executed immediately after starting an integer division.
  14878. - A double-word or a variable shift may give an incorrect result
  14879. if executed while an integer multiplication is in progress.
  14880. - An integer division may give an incorrect result if started in
  14881. a delay slot of a taken branch or a jump.
  14882. '-mfix-r4400'
  14883. '-mno-fix-r4400'
  14884. Work around certain R4400 CPU errata:
  14885. - A double-word or a variable shift may give an incorrect result
  14886. if executed immediately after starting an integer division.
  14887. '-mfix-r10000'
  14888. '-mno-fix-r10000'
  14889. Work around certain R10000 errata:
  14890. - 'll'/'sc' sequences may not behave atomically on revisions
  14891. prior to 3.0. They may deadlock on revisions 2.6 and earlier.
  14892. This option can only be used if the target architecture supports
  14893. branch-likely instructions. '-mfix-r10000' is the default when
  14894. '-march=r10000' is used; '-mno-fix-r10000' is the default
  14895. otherwise.
  14896. '-mfix-rm7000'
  14897. '-mno-fix-rm7000'
  14898. Work around the RM7000 'dmult'/'dmultu' errata. The workarounds
  14899. are implemented by the assembler rather than by GCC.
  14900. '-mfix-vr4120'
  14901. '-mno-fix-vr4120'
  14902. Work around certain VR4120 errata:
  14903. - 'dmultu' does not always produce the correct result.
  14904. - 'div' and 'ddiv' do not always produce the correct result if
  14905. one of the operands is negative.
  14906. The workarounds for the division errata rely on special functions
  14907. in 'libgcc.a'. At present, these functions are only provided by
  14908. the 'mips64vr*-elf' configurations.
  14909. Other VR4120 errata require a NOP to be inserted between certain
  14910. pairs of instructions. These errata are handled by the assembler,
  14911. not by GCC itself.
  14912. '-mfix-vr4130'
  14913. Work around the VR4130 'mflo'/'mfhi' errata. The workarounds are
  14914. implemented by the assembler rather than by GCC, although GCC
  14915. avoids using 'mflo' and 'mfhi' if the VR4130 'macc', 'macchi',
  14916. 'dmacc' and 'dmacchi' instructions are available instead.
  14917. '-mfix-sb1'
  14918. '-mno-fix-sb1'
  14919. Work around certain SB-1 CPU core errata. (This flag currently
  14920. works around the SB-1 revision 2 "F1" and "F2" floating-point
  14921. errata.)
  14922. '-mr10k-cache-barrier=SETTING'
  14923. Specify whether GCC should insert cache barriers to avoid the
  14924. side-effects of speculation on R10K processors.
  14925. In common with many processors, the R10K tries to predict the
  14926. outcome of a conditional branch and speculatively executes
  14927. instructions from the "taken" branch. It later aborts these
  14928. instructions if the predicted outcome is wrong. However, on the
  14929. R10K, even aborted instructions can have side effects.
  14930. This problem only affects kernel stores and, depending on the
  14931. system, kernel loads. As an example, a speculatively-executed
  14932. store may load the target memory into cache and mark the cache line
  14933. as dirty, even if the store itself is later aborted. If a DMA
  14934. operation writes to the same area of memory before the "dirty" line
  14935. is flushed, the cached data overwrites the DMA-ed data. See the
  14936. R10K processor manual for a full description, including other
  14937. potential problems.
  14938. One workaround is to insert cache barrier instructions before every
  14939. memory access that might be speculatively executed and that might
  14940. have side effects even if aborted. '-mr10k-cache-barrier=SETTING'
  14941. controls GCC's implementation of this workaround. It assumes that
  14942. aborted accesses to any byte in the following regions does not have
  14943. side effects:
  14944. 1. the memory occupied by the current function's stack frame;
  14945. 2. the memory occupied by an incoming stack argument;
  14946. 3. the memory occupied by an object with a link-time-constant
  14947. address.
  14948. It is the kernel's responsibility to ensure that speculative
  14949. accesses to these regions are indeed safe.
  14950. If the input program contains a function declaration such as:
  14951. void foo (void);
  14952. then the implementation of 'foo' must allow 'j foo' and 'jal foo'
  14953. to be executed speculatively. GCC honors this restriction for
  14954. functions it compiles itself. It expects non-GCC functions (such
  14955. as hand-written assembly code) to do the same.
  14956. The option has three forms:
  14957. '-mr10k-cache-barrier=load-store'
  14958. Insert a cache barrier before a load or store that might be
  14959. speculatively executed and that might have side effects even
  14960. if aborted.
  14961. '-mr10k-cache-barrier=store'
  14962. Insert a cache barrier before a store that might be
  14963. speculatively executed and that might have side effects even
  14964. if aborted.
  14965. '-mr10k-cache-barrier=none'
  14966. Disable the insertion of cache barriers. This is the default
  14967. setting.
  14968. '-mflush-func=FUNC'
  14969. '-mno-flush-func'
  14970. Specifies the function to call to flush the I and D caches, or to
  14971. not call any such function. If called, the function must take the
  14972. same arguments as the common '_flush_func', that is, the address of
  14973. the memory range for which the cache is being flushed, the size of
  14974. the memory range, and the number 3 (to flush both caches). The
  14975. default depends on the target GCC was configured for, but commonly
  14976. is either '_flush_func' or '__cpu_flush'.
  14977. 'mbranch-cost=NUM'
  14978. Set the cost of branches to roughly NUM "simple" instructions.
  14979. This cost is only a heuristic and is not guaranteed to produce
  14980. consistent results across releases. A zero cost redundantly
  14981. selects the default, which is based on the '-mtune' setting.
  14982. '-mbranch-likely'
  14983. '-mno-branch-likely'
  14984. Enable or disable use of Branch Likely instructions, regardless of
  14985. the default for the selected architecture. By default, Branch
  14986. Likely instructions may be generated if they are supported by the
  14987. selected architecture. An exception is for the MIPS32 and MIPS64
  14988. architectures and processors that implement those architectures;
  14989. for those, Branch Likely instructions are not be generated by
  14990. default because the MIPS32 and MIPS64 architectures specifically
  14991. deprecate their use.
  14992. '-mcompact-branches=never'
  14993. '-mcompact-branches=optimal'
  14994. '-mcompact-branches=always'
  14995. These options control which form of branches will be generated.
  14996. The default is '-mcompact-branches=optimal'.
  14997. The '-mcompact-branches=never' option ensures that compact branch
  14998. instructions will never be generated.
  14999. The '-mcompact-branches=always' option ensures that a compact
  15000. branch instruction will be generated if available. If a compact
  15001. branch instruction is not available, a delay slot form of the
  15002. branch will be used instead.
  15003. This option is supported from MIPS Release 6 onwards.
  15004. The '-mcompact-branches=optimal' option will cause a delay slot
  15005. branch to be used if one is available in the current ISA and the
  15006. delay slot is successfully filled. If the delay slot is not
  15007. filled, a compact branch will be chosen if one is available.
  15008. '-mfp-exceptions'
  15009. '-mno-fp-exceptions'
  15010. Specifies whether FP exceptions are enabled. This affects how FP
  15011. instructions are scheduled for some processors. The default is
  15012. that FP exceptions are enabled.
  15013. For instance, on the SB-1, if FP exceptions are disabled, and we
  15014. are emitting 64-bit code, then we can use both FP pipes.
  15015. Otherwise, we can only use one FP pipe.
  15016. '-mvr4130-align'
  15017. '-mno-vr4130-align'
  15018. The VR4130 pipeline is two-way superscalar, but can only issue two
  15019. instructions together if the first one is 8-byte aligned. When
  15020. this option is enabled, GCC aligns pairs of instructions that it
  15021. thinks should execute in parallel.
  15022. This option only has an effect when optimizing for the VR4130. It
  15023. normally makes code faster, but at the expense of making it bigger.
  15024. It is enabled by default at optimization level '-O3'.
  15025. '-msynci'
  15026. '-mno-synci'
  15027. Enable (disable) generation of 'synci' instructions on
  15028. architectures that support it. The 'synci' instructions (if
  15029. enabled) are generated when '__builtin___clear_cache' is compiled.
  15030. This option defaults to '-mno-synci', but the default can be
  15031. overridden by configuring GCC with '--with-synci'.
  15032. When compiling code for single processor systems, it is generally
  15033. safe to use 'synci'. However, on many multi-core (SMP) systems, it
  15034. does not invalidate the instruction caches on all cores and may
  15035. lead to undefined behavior.
  15036. '-mrelax-pic-calls'
  15037. '-mno-relax-pic-calls'
  15038. Try to turn PIC calls that are normally dispatched via register
  15039. '$25' into direct calls. This is only possible if the linker can
  15040. resolve the destination at link time and if the destination is
  15041. within range for a direct call.
  15042. '-mrelax-pic-calls' is the default if GCC was configured to use an
  15043. assembler and a linker that support the '.reloc' assembly directive
  15044. and '-mexplicit-relocs' is in effect. With '-mno-explicit-relocs',
  15045. this optimization can be performed by the assembler and the linker
  15046. alone without help from the compiler.
  15047. '-mmcount-ra-address'
  15048. '-mno-mcount-ra-address'
  15049. Emit (do not emit) code that allows '_mcount' to modify the calling
  15050. function's return address. When enabled, this option extends the
  15051. usual '_mcount' interface with a new RA-ADDRESS parameter, which
  15052. has type 'intptr_t *' and is passed in register '$12'. '_mcount'
  15053. can then modify the return address by doing both of the following:
  15054. * Returning the new address in register '$31'.
  15055. * Storing the new address in '*RA-ADDRESS', if RA-ADDRESS is
  15056. nonnull.
  15057. The default is '-mno-mcount-ra-address'.
  15058. '-mframe-header-opt'
  15059. '-mno-frame-header-opt'
  15060. Enable (disable) frame header optimization in the o32 ABI. When
  15061. using the o32 ABI, calling functions will allocate 16 bytes on the
  15062. stack for the called function to write out register arguments.
  15063. When enabled, this optimization will suppress the allocation of the
  15064. frame header if it can be determined that it is unused.
  15065. This optimization is off by default at all optimization levels.
  15066. '-mlxc1-sxc1'
  15067. '-mno-lxc1-sxc1'
  15068. When applicable, enable (disable) the generation of 'lwxc1',
  15069. 'swxc1', 'ldxc1', 'sdxc1' instructions. Enabled by default.
  15070. '-mmadd4'
  15071. '-mno-madd4'
  15072. When applicable, enable (disable) the generation of 4-operand
  15073. 'madd.s', 'madd.d' and related instructions. Enabled by default.
  15074. 
  15075. File: gcc.info, Node: MMIX Options, Next: MN10300 Options, Prev: MIPS Options, Up: Submodel Options
  15076. 3.18.27 MMIX Options
  15077. --------------------
  15078. These options are defined for the MMIX:
  15079. '-mlibfuncs'
  15080. '-mno-libfuncs'
  15081. Specify that intrinsic library functions are being compiled,
  15082. passing all values in registers, no matter the size.
  15083. '-mepsilon'
  15084. '-mno-epsilon'
  15085. Generate floating-point comparison instructions that compare with
  15086. respect to the 'rE' epsilon register.
  15087. '-mabi=mmixware'
  15088. '-mabi=gnu'
  15089. Generate code that passes function parameters and return values
  15090. that (in the called function) are seen as registers '$0' and up, as
  15091. opposed to the GNU ABI which uses global registers '$231' and up.
  15092. '-mzero-extend'
  15093. '-mno-zero-extend'
  15094. When reading data from memory in sizes shorter than 64 bits, use
  15095. (do not use) zero-extending load instructions by default, rather
  15096. than sign-extending ones.
  15097. '-mknuthdiv'
  15098. '-mno-knuthdiv'
  15099. Make the result of a division yielding a remainder have the same
  15100. sign as the divisor. With the default, '-mno-knuthdiv', the sign
  15101. of the remainder follows the sign of the dividend. Both methods
  15102. are arithmetically valid, the latter being almost exclusively used.
  15103. '-mtoplevel-symbols'
  15104. '-mno-toplevel-symbols'
  15105. Prepend (do not prepend) a ':' to all global symbols, so the
  15106. assembly code can be used with the 'PREFIX' assembly directive.
  15107. '-melf'
  15108. Generate an executable in the ELF format, rather than the default
  15109. 'mmo' format used by the 'mmix' simulator.
  15110. '-mbranch-predict'
  15111. '-mno-branch-predict'
  15112. Use (do not use) the probable-branch instructions, when static
  15113. branch prediction indicates a probable branch.
  15114. '-mbase-addresses'
  15115. '-mno-base-addresses'
  15116. Generate (do not generate) code that uses _base addresses_. Using
  15117. a base address automatically generates a request (handled by the
  15118. assembler and the linker) for a constant to be set up in a global
  15119. register. The register is used for one or more base address
  15120. requests within the range 0 to 255 from the value held in the
  15121. register. The generally leads to short and fast code, but the
  15122. number of different data items that can be addressed is limited.
  15123. This means that a program that uses lots of static data may require
  15124. '-mno-base-addresses'.
  15125. '-msingle-exit'
  15126. '-mno-single-exit'
  15127. Force (do not force) generated code to have a single exit point in
  15128. each function.
  15129. 
  15130. File: gcc.info, Node: MN10300 Options, Next: Moxie Options, Prev: MMIX Options, Up: Submodel Options
  15131. 3.18.28 MN10300 Options
  15132. -----------------------
  15133. These '-m' options are defined for Matsushita MN10300 architectures:
  15134. '-mmult-bug'
  15135. Generate code to avoid bugs in the multiply instructions for the
  15136. MN10300 processors. This is the default.
  15137. '-mno-mult-bug'
  15138. Do not generate code to avoid bugs in the multiply instructions for
  15139. the MN10300 processors.
  15140. '-mam33'
  15141. Generate code using features specific to the AM33 processor.
  15142. '-mno-am33'
  15143. Do not generate code using features specific to the AM33 processor.
  15144. This is the default.
  15145. '-mam33-2'
  15146. Generate code using features specific to the AM33/2.0 processor.
  15147. '-mam34'
  15148. Generate code using features specific to the AM34 processor.
  15149. '-mtune=CPU-TYPE'
  15150. Use the timing characteristics of the indicated CPU type when
  15151. scheduling instructions. This does not change the targeted
  15152. processor type. The CPU type must be one of 'mn10300', 'am33',
  15153. 'am33-2' or 'am34'.
  15154. '-mreturn-pointer-on-d0'
  15155. When generating a function that returns a pointer, return the
  15156. pointer in both 'a0' and 'd0'. Otherwise, the pointer is returned
  15157. only in 'a0', and attempts to call such functions without a
  15158. prototype result in errors. Note that this option is on by
  15159. default; use '-mno-return-pointer-on-d0' to disable it.
  15160. '-mno-crt0'
  15161. Do not link in the C run-time initialization object file.
  15162. '-mrelax'
  15163. Indicate to the linker that it should perform a relaxation
  15164. optimization pass to shorten branches, calls and absolute memory
  15165. addresses. This option only has an effect when used on the command
  15166. line for the final link step.
  15167. This option makes symbolic debugging impossible.
  15168. '-mliw'
  15169. Allow the compiler to generate _Long Instruction Word_ instructions
  15170. if the target is the 'AM33' or later. This is the default. This
  15171. option defines the preprocessor macro '__LIW__'.
  15172. '-mnoliw'
  15173. Do not allow the compiler to generate _Long Instruction Word_
  15174. instructions. This option defines the preprocessor macro
  15175. '__NO_LIW__'.
  15176. '-msetlb'
  15177. Allow the compiler to generate the _SETLB_ and _Lcc_ instructions
  15178. if the target is the 'AM33' or later. This is the default. This
  15179. option defines the preprocessor macro '__SETLB__'.
  15180. '-mnosetlb'
  15181. Do not allow the compiler to generate _SETLB_ or _Lcc_
  15182. instructions. This option defines the preprocessor macro
  15183. '__NO_SETLB__'.
  15184. 
  15185. File: gcc.info, Node: Moxie Options, Next: MSP430 Options, Prev: MN10300 Options, Up: Submodel Options
  15186. 3.18.29 Moxie Options
  15187. ---------------------
  15188. '-meb'
  15189. Generate big-endian code. This is the default for 'moxie-*-*'
  15190. configurations.
  15191. '-mel'
  15192. Generate little-endian code.
  15193. '-mmul.x'
  15194. Generate mul.x and umul.x instructions. This is the default for
  15195. 'moxiebox-*-*' configurations.
  15196. '-mno-crt0'
  15197. Do not link in the C run-time initialization object file.
  15198. 
  15199. File: gcc.info, Node: MSP430 Options, Next: NDS32 Options, Prev: Moxie Options, Up: Submodel Options
  15200. 3.18.30 MSP430 Options
  15201. ----------------------
  15202. These options are defined for the MSP430:
  15203. '-masm-hex'
  15204. Force assembly output to always use hex constants. Normally such
  15205. constants are signed decimals, but this option is available for
  15206. testsuite and/or aesthetic purposes.
  15207. '-mmcu='
  15208. Select the MCU to target. This is used to create a C preprocessor
  15209. symbol based upon the MCU name, converted to upper case and pre-
  15210. and post-fixed with '__'. This in turn is used by the 'msp430.h'
  15211. header file to select an MCU-specific supplementary header file.
  15212. The option also sets the ISA to use. If the MCU name is one that
  15213. is known to only support the 430 ISA then that is selected,
  15214. otherwise the 430X ISA is selected. A generic MCU name of 'msp430'
  15215. can also be used to select the 430 ISA. Similarly the generic
  15216. 'msp430x' MCU name selects the 430X ISA.
  15217. In addition an MCU-specific linker script is added to the linker
  15218. command line. The script's name is the name of the MCU with '.ld'
  15219. appended. Thus specifying '-mmcu=xxx' on the 'gcc' command line
  15220. defines the C preprocessor symbol '__XXX__' and cause the linker to
  15221. search for a script called 'xxx.ld'.
  15222. This option is also passed on to the assembler.
  15223. '-mwarn-mcu'
  15224. '-mno-warn-mcu'
  15225. This option enables or disables warnings about conflicts between
  15226. the MCU name specified by the '-mmcu' option and the ISA set by the
  15227. '-mcpu' option and/or the hardware multiply support set by the
  15228. '-mhwmult' option. It also toggles warnings about unrecognized MCU
  15229. names. This option is on by default.
  15230. '-mcpu='
  15231. Specifies the ISA to use. Accepted values are 'msp430', 'msp430x'
  15232. and 'msp430xv2'. This option is deprecated. The '-mmcu=' option
  15233. should be used to select the ISA.
  15234. '-msim'
  15235. Link to the simulator runtime libraries and linker script.
  15236. Overrides any scripts that would be selected by the '-mmcu='
  15237. option.
  15238. '-mlarge'
  15239. Use large-model addressing (20-bit pointers, 32-bit 'size_t').
  15240. '-msmall'
  15241. Use small-model addressing (16-bit pointers, 16-bit 'size_t').
  15242. '-mrelax'
  15243. This option is passed to the assembler and linker, and allows the
  15244. linker to perform certain optimizations that cannot be done until
  15245. the final link.
  15246. 'mhwmult='
  15247. Describes the type of hardware multiply supported by the target.
  15248. Accepted values are 'none' for no hardware multiply, '16bit' for
  15249. the original 16-bit-only multiply supported by early MCUs. '32bit'
  15250. for the 16/32-bit multiply supported by later MCUs and 'f5series'
  15251. for the 16/32-bit multiply supported by F5-series MCUs. A value of
  15252. 'auto' can also be given. This tells GCC to deduce the hardware
  15253. multiply support based upon the MCU name provided by the '-mmcu'
  15254. option. If no '-mmcu' option is specified or if the MCU name is
  15255. not recognized then no hardware multiply support is assumed.
  15256. 'auto' is the default setting.
  15257. Hardware multiplies are normally performed by calling a library
  15258. routine. This saves space in the generated code. When compiling
  15259. at '-O3' or higher however the hardware multiplier is invoked
  15260. inline. This makes for bigger, but faster code.
  15261. The hardware multiply routines disable interrupts whilst running
  15262. and restore the previous interrupt state when they finish. This
  15263. makes them safe to use inside interrupt handlers as well as in
  15264. normal code.
  15265. '-minrt'
  15266. Enable the use of a minimum runtime environment - no static
  15267. initializers or constructors. This is intended for
  15268. memory-constrained devices. The compiler includes special symbols
  15269. in some objects that tell the linker and runtime which code
  15270. fragments are required.
  15271. '-mcode-region='
  15272. '-mdata-region='
  15273. These options tell the compiler where to place functions and data
  15274. that do not have one of the 'lower', 'upper', 'either' or 'section'
  15275. attributes. Possible values are 'lower', 'upper', 'either' or
  15276. 'any'. The first three behave like the corresponding attribute.
  15277. The fourth possible value - 'any' - is the default. It leaves
  15278. placement entirely up to the linker script and how it assigns the
  15279. standard sections ('.text', '.data', etc) to the memory regions.
  15280. '-msilicon-errata='
  15281. This option passes on a request to assembler to enable the fixes
  15282. for the named silicon errata.
  15283. '-msilicon-errata-warn='
  15284. This option passes on a request to the assembler to enable warning
  15285. messages when a silicon errata might need to be applied.
  15286. 
  15287. File: gcc.info, Node: NDS32 Options, Next: Nios II Options, Prev: MSP430 Options, Up: Submodel Options
  15288. 3.18.31 NDS32 Options
  15289. ---------------------
  15290. These options are defined for NDS32 implementations:
  15291. '-mbig-endian'
  15292. Generate code in big-endian mode.
  15293. '-mlittle-endian'
  15294. Generate code in little-endian mode.
  15295. '-mreduced-regs'
  15296. Use reduced-set registers for register allocation.
  15297. '-mfull-regs'
  15298. Use full-set registers for register allocation.
  15299. '-mcmov'
  15300. Generate conditional move instructions.
  15301. '-mno-cmov'
  15302. Do not generate conditional move instructions.
  15303. '-mperf-ext'
  15304. Generate performance extension instructions.
  15305. '-mno-perf-ext'
  15306. Do not generate performance extension instructions.
  15307. '-mv3push'
  15308. Generate v3 push25/pop25 instructions.
  15309. '-mno-v3push'
  15310. Do not generate v3 push25/pop25 instructions.
  15311. '-m16-bit'
  15312. Generate 16-bit instructions.
  15313. '-mno-16-bit'
  15314. Do not generate 16-bit instructions.
  15315. '-misr-vector-size=NUM'
  15316. Specify the size of each interrupt vector, which must be 4 or 16.
  15317. '-mcache-block-size=NUM'
  15318. Specify the size of each cache block, which must be a power of 2
  15319. between 4 and 512.
  15320. '-march=ARCH'
  15321. Specify the name of the target architecture.
  15322. '-mcmodel=CODE-MODEL'
  15323. Set the code model to one of
  15324. 'small'
  15325. All the data and read-only data segments must be within 512KB
  15326. addressing space. The text segment must be within 16MB
  15327. addressing space.
  15328. 'medium'
  15329. The data segment must be within 512KB while the read-only data
  15330. segment can be within 4GB addressing space. The text segment
  15331. should be still within 16MB addressing space.
  15332. 'large'
  15333. All the text and data segments can be within 4GB addressing
  15334. space.
  15335. '-mctor-dtor'
  15336. Enable constructor/destructor feature.
  15337. '-mrelax'
  15338. Guide linker to relax instructions.
  15339. 
  15340. File: gcc.info, Node: Nios II Options, Next: Nvidia PTX Options, Prev: NDS32 Options, Up: Submodel Options
  15341. 3.18.32 Nios II Options
  15342. -----------------------
  15343. These are the options defined for the Altera Nios II processor.
  15344. '-G NUM'
  15345. Put global and static objects less than or equal to NUM bytes into
  15346. the small data or BSS sections instead of the normal data or BSS
  15347. sections. The default value of NUM is 8.
  15348. '-mgpopt=OPTION'
  15349. '-mgpopt'
  15350. '-mno-gpopt'
  15351. Generate (do not generate) GP-relative accesses. The following
  15352. OPTION names are recognized:
  15353. 'none'
  15354. Do not generate GP-relative accesses.
  15355. 'local'
  15356. Generate GP-relative accesses for small data objects that are
  15357. not external, weak, or uninitialized common symbols. Also use
  15358. GP-relative addressing for objects that have been explicitly
  15359. placed in a small data section via a 'section' attribute.
  15360. 'global'
  15361. As for 'local', but also generate GP-relative accesses for
  15362. small data objects that are external, weak, or common. If you
  15363. use this option, you must ensure that all parts of your
  15364. program (including libraries) are compiled with the same '-G'
  15365. setting.
  15366. 'data'
  15367. Generate GP-relative accesses for all data objects in the
  15368. program. If you use this option, the entire data and BSS
  15369. segments of your program must fit in 64K of memory and you
  15370. must use an appropriate linker script to allocate them within
  15371. the addressable range of the global pointer.
  15372. 'all'
  15373. Generate GP-relative addresses for function pointers as well
  15374. as data pointers. If you use this option, the entire text,
  15375. data, and BSS segments of your program must fit in 64K of
  15376. memory and you must use an appropriate linker script to
  15377. allocate them within the addressable range of the global
  15378. pointer.
  15379. '-mgpopt' is equivalent to '-mgpopt=local', and '-mno-gpopt' is
  15380. equivalent to '-mgpopt=none'.
  15381. The default is '-mgpopt' except when '-fpic' or '-fPIC' is
  15382. specified to generate position-independent code. Note that the
  15383. Nios II ABI does not permit GP-relative accesses from shared
  15384. libraries.
  15385. You may need to specify '-mno-gpopt' explicitly when building
  15386. programs that include large amounts of small data, including large
  15387. GOT data sections. In this case, the 16-bit offset for GP-relative
  15388. addressing may not be large enough to allow access to the entire
  15389. small data section.
  15390. '-mel'
  15391. '-meb'
  15392. Generate little-endian (default) or big-endian (experimental) code,
  15393. respectively.
  15394. '-march=ARCH'
  15395. This specifies the name of the target Nios II architecture. GCC
  15396. uses this name to determine what kind of instructions it can emit
  15397. when generating assembly code. Permissible names are: 'r1', 'r2'.
  15398. The preprocessor macro '__nios2_arch__' is available to programs,
  15399. with value 1 or 2, indicating the targeted ISA level.
  15400. '-mbypass-cache'
  15401. '-mno-bypass-cache'
  15402. Force all load and store instructions to always bypass cache by
  15403. using I/O variants of the instructions. The default is not to
  15404. bypass the cache.
  15405. '-mno-cache-volatile'
  15406. '-mcache-volatile'
  15407. Volatile memory access bypass the cache using the I/O variants of
  15408. the load and store instructions. The default is not to bypass the
  15409. cache.
  15410. '-mno-fast-sw-div'
  15411. '-mfast-sw-div'
  15412. Do not use table-based fast divide for small numbers. The default
  15413. is to use the fast divide at '-O3' and above.
  15414. '-mno-hw-mul'
  15415. '-mhw-mul'
  15416. '-mno-hw-mulx'
  15417. '-mhw-mulx'
  15418. '-mno-hw-div'
  15419. '-mhw-div'
  15420. Enable or disable emitting 'mul', 'mulx' and 'div' family of
  15421. instructions by the compiler. The default is to emit 'mul' and not
  15422. emit 'div' and 'mulx'.
  15423. '-mbmx'
  15424. '-mno-bmx'
  15425. '-mcdx'
  15426. '-mno-cdx'
  15427. Enable or disable generation of Nios II R2 BMX (bit manipulation)
  15428. and CDX (code density) instructions. Enabling these instructions
  15429. also requires '-march=r2'. Since these instructions are optional
  15430. extensions to the R2 architecture, the default is not to emit them.
  15431. '-mcustom-INSN=N'
  15432. '-mno-custom-INSN'
  15433. Each '-mcustom-INSN=N' option enables use of a custom instruction
  15434. with encoding N when generating code that uses INSN. For example,
  15435. '-mcustom-fadds=253' generates custom instruction 253 for
  15436. single-precision floating-point add operations instead of the
  15437. default behavior of using a library call.
  15438. The following values of INSN are supported. Except as otherwise
  15439. noted, floating-point operations are expected to be implemented
  15440. with normal IEEE 754 semantics and correspond directly to the C
  15441. operators or the equivalent GCC built-in functions (*note Other
  15442. Builtins::).
  15443. Single-precision floating point:
  15444. 'fadds', 'fsubs', 'fdivs', 'fmuls'
  15445. Binary arithmetic operations.
  15446. 'fnegs'
  15447. Unary negation.
  15448. 'fabss'
  15449. Unary absolute value.
  15450. 'fcmpeqs', 'fcmpges', 'fcmpgts', 'fcmples', 'fcmplts', 'fcmpnes'
  15451. Comparison operations.
  15452. 'fmins', 'fmaxs'
  15453. Floating-point minimum and maximum. These instructions are
  15454. only generated if '-ffinite-math-only' is specified.
  15455. 'fsqrts'
  15456. Unary square root operation.
  15457. 'fcoss', 'fsins', 'ftans', 'fatans', 'fexps', 'flogs'
  15458. Floating-point trigonometric and exponential functions. These
  15459. instructions are only generated if
  15460. '-funsafe-math-optimizations' is also specified.
  15461. Double-precision floating point:
  15462. 'faddd', 'fsubd', 'fdivd', 'fmuld'
  15463. Binary arithmetic operations.
  15464. 'fnegd'
  15465. Unary negation.
  15466. 'fabsd'
  15467. Unary absolute value.
  15468. 'fcmpeqd', 'fcmpged', 'fcmpgtd', 'fcmpled', 'fcmpltd', 'fcmpned'
  15469. Comparison operations.
  15470. 'fmind', 'fmaxd'
  15471. Double-precision minimum and maximum. These instructions are
  15472. only generated if '-ffinite-math-only' is specified.
  15473. 'fsqrtd'
  15474. Unary square root operation.
  15475. 'fcosd', 'fsind', 'ftand', 'fatand', 'fexpd', 'flogd'
  15476. Double-precision trigonometric and exponential functions.
  15477. These instructions are only generated if
  15478. '-funsafe-math-optimizations' is also specified.
  15479. Conversions:
  15480. 'fextsd'
  15481. Conversion from single precision to double precision.
  15482. 'ftruncds'
  15483. Conversion from double precision to single precision.
  15484. 'fixsi', 'fixsu', 'fixdi', 'fixdu'
  15485. Conversion from floating point to signed or unsigned integer
  15486. types, with truncation towards zero.
  15487. 'round'
  15488. Conversion from single-precision floating point to signed
  15489. integer, rounding to the nearest integer and ties away from
  15490. zero. This corresponds to the '__builtin_lroundf' function
  15491. when '-fno-math-errno' is used.
  15492. 'floatis', 'floatus', 'floatid', 'floatud'
  15493. Conversion from signed or unsigned integer types to
  15494. floating-point types.
  15495. In addition, all of the following transfer instructions for
  15496. internal registers X and Y must be provided to use any of the
  15497. double-precision floating-point instructions. Custom instructions
  15498. taking two double-precision source operands expect the first
  15499. operand in the 64-bit register X. The other operand (or only
  15500. operand of a unary operation) is given to the custom arithmetic
  15501. instruction with the least significant half in source register SRC1
  15502. and the most significant half in SRC2. A custom instruction that
  15503. returns a double-precision result returns the most significant 32
  15504. bits in the destination register and the other half in 32-bit
  15505. register Y. GCC automatically generates the necessary code
  15506. sequences to write register X and/or read register Y when
  15507. double-precision floating-point instructions are used.
  15508. 'fwrx'
  15509. Write SRC1 into the least significant half of X and SRC2 into
  15510. the most significant half of X.
  15511. 'fwry'
  15512. Write SRC1 into Y.
  15513. 'frdxhi', 'frdxlo'
  15514. Read the most or least (respectively) significant half of X
  15515. and store it in DEST.
  15516. 'frdy'
  15517. Read the value of Y and store it into DEST.
  15518. Note that you can gain more local control over generation of Nios
  15519. II custom instructions by using the 'target("custom-INSN=N")' and
  15520. 'target("no-custom-INSN")' function attributes (*note Function
  15521. Attributes::) or pragmas (*note Function Specific Option
  15522. Pragmas::).
  15523. '-mcustom-fpu-cfg=NAME'
  15524. This option enables a predefined, named set of custom instruction
  15525. encodings (see '-mcustom-INSN' above). Currently, the following
  15526. sets are defined:
  15527. '-mcustom-fpu-cfg=60-1' is equivalent to:
  15528. -mcustom-fmuls=252
  15529. -mcustom-fadds=253
  15530. -mcustom-fsubs=254
  15531. -fsingle-precision-constant
  15532. '-mcustom-fpu-cfg=60-2' is equivalent to:
  15533. -mcustom-fmuls=252
  15534. -mcustom-fadds=253
  15535. -mcustom-fsubs=254
  15536. -mcustom-fdivs=255
  15537. -fsingle-precision-constant
  15538. '-mcustom-fpu-cfg=72-3' is equivalent to:
  15539. -mcustom-floatus=243
  15540. -mcustom-fixsi=244
  15541. -mcustom-floatis=245
  15542. -mcustom-fcmpgts=246
  15543. -mcustom-fcmples=249
  15544. -mcustom-fcmpeqs=250
  15545. -mcustom-fcmpnes=251
  15546. -mcustom-fmuls=252
  15547. -mcustom-fadds=253
  15548. -mcustom-fsubs=254
  15549. -mcustom-fdivs=255
  15550. -fsingle-precision-constant
  15551. Custom instruction assignments given by individual '-mcustom-INSN='
  15552. options override those given by '-mcustom-fpu-cfg=', regardless of
  15553. the order of the options on the command line.
  15554. Note that you can gain more local control over selection of a FPU
  15555. configuration by using the 'target("custom-fpu-cfg=NAME")' function
  15556. attribute (*note Function Attributes::) or pragma (*note Function
  15557. Specific Option Pragmas::).
  15558. These additional '-m' options are available for the Altera Nios II ELF
  15559. (bare-metal) target:
  15560. '-mhal'
  15561. Link with HAL BSP. This suppresses linking with the GCC-provided C
  15562. runtime startup and termination code, and is typically used in
  15563. conjunction with '-msys-crt0=' to specify the location of the
  15564. alternate startup code provided by the HAL BSP.
  15565. '-msmallc'
  15566. Link with a limited version of the C library, '-lsmallc', rather
  15567. than Newlib.
  15568. '-msys-crt0=STARTFILE'
  15569. STARTFILE is the file name of the startfile (crt0) to use when
  15570. linking. This option is only useful in conjunction with '-mhal'.
  15571. '-msys-lib=SYSTEMLIB'
  15572. SYSTEMLIB is the library name of the library that provides
  15573. low-level system calls required by the C library, e.g. 'read' and
  15574. 'write'. This option is typically used to link with a library
  15575. provided by a HAL BSP.
  15576. 
  15577. File: gcc.info, Node: Nvidia PTX Options, Next: PDP-11 Options, Prev: Nios II Options, Up: Submodel Options
  15578. 3.18.33 Nvidia PTX Options
  15579. --------------------------
  15580. These options are defined for Nvidia PTX:
  15581. '-m32'
  15582. '-m64'
  15583. Generate code for 32-bit or 64-bit ABI.
  15584. '-mmainkernel'
  15585. Link in code for a __main kernel. This is for stand-alone instead
  15586. of offloading execution.
  15587. '-moptimize'
  15588. Apply partitioned execution optimizations. This is the default
  15589. when any level of optimization is selected.
  15590. '-msoft-stack'
  15591. Generate code that does not use '.local' memory directly for stack
  15592. storage. Instead, a per-warp stack pointer is maintained
  15593. explicitly. This enables variable-length stack allocation (with
  15594. variable-length arrays or 'alloca'), and when global memory is used
  15595. for underlying storage, makes it possible to access automatic
  15596. variables from other threads, or with atomic instructions. This
  15597. code generation variant is used for OpenMP offloading, but the
  15598. option is exposed on its own for the purpose of testing the
  15599. compiler; to generate code suitable for linking into programs using
  15600. OpenMP offloading, use option '-mgomp'.
  15601. '-muniform-simt'
  15602. Switch to code generation variant that allows to execute all
  15603. threads in each warp, while maintaining memory state and side
  15604. effects as if only one thread in each warp was active outside of
  15605. OpenMP SIMD regions. All atomic operations and calls to runtime
  15606. (malloc, free, vprintf) are conditionally executed (iff current
  15607. lane index equals the master lane index), and the register being
  15608. assigned is copied via a shuffle instruction from the master lane.
  15609. Outside of SIMD regions lane 0 is the master; inside, each thread
  15610. sees itself as the master. Shared memory array 'int __nvptx_uni[]'
  15611. stores all-zeros or all-ones bitmasks for each warp, indicating
  15612. current mode (0 outside of SIMD regions). Each thread can
  15613. bitwise-and the bitmask at position 'tid.y' with current lane index
  15614. to compute the master lane index.
  15615. '-mgomp'
  15616. Generate code for use in OpenMP offloading: enables '-msoft-stack'
  15617. and '-muniform-simt' options, and selects corresponding multilib
  15618. variant.
  15619. 
  15620. File: gcc.info, Node: PDP-11 Options, Next: picoChip Options, Prev: Nvidia PTX Options, Up: Submodel Options
  15621. 3.18.34 PDP-11 Options
  15622. ----------------------
  15623. These options are defined for the PDP-11:
  15624. '-mfpu'
  15625. Use hardware FPP floating point. This is the default. (FIS
  15626. floating point on the PDP-11/40 is not supported.)
  15627. '-msoft-float'
  15628. Do not use hardware floating point.
  15629. '-mac0'
  15630. Return floating-point results in ac0 (fr0 in Unix assembler
  15631. syntax).
  15632. '-mno-ac0'
  15633. Return floating-point results in memory. This is the default.
  15634. '-m40'
  15635. Generate code for a PDP-11/40.
  15636. '-m45'
  15637. Generate code for a PDP-11/45. This is the default.
  15638. '-m10'
  15639. Generate code for a PDP-11/10.
  15640. '-mbcopy-builtin'
  15641. Use inline 'movmemhi' patterns for copying memory. This is the
  15642. default.
  15643. '-mbcopy'
  15644. Do not use inline 'movmemhi' patterns for copying memory.
  15645. '-mint16'
  15646. '-mno-int32'
  15647. Use 16-bit 'int'. This is the default.
  15648. '-mint32'
  15649. '-mno-int16'
  15650. Use 32-bit 'int'.
  15651. '-mfloat64'
  15652. '-mno-float32'
  15653. Use 64-bit 'float'. This is the default.
  15654. '-mfloat32'
  15655. '-mno-float64'
  15656. Use 32-bit 'float'.
  15657. '-mabshi'
  15658. Use 'abshi2' pattern. This is the default.
  15659. '-mno-abshi'
  15660. Do not use 'abshi2' pattern.
  15661. '-mbranch-expensive'
  15662. Pretend that branches are expensive. This is for experimenting
  15663. with code generation only.
  15664. '-mbranch-cheap'
  15665. Do not pretend that branches are expensive. This is the default.
  15666. '-munix-asm'
  15667. Use Unix assembler syntax. This is the default when configured for
  15668. 'pdp11-*-bsd'.
  15669. '-mdec-asm'
  15670. Use DEC assembler syntax. This is the default when configured for
  15671. any PDP-11 target other than 'pdp11-*-bsd'.
  15672. 
  15673. File: gcc.info, Node: picoChip Options, Next: PowerPC Options, Prev: PDP-11 Options, Up: Submodel Options
  15674. 3.18.35 picoChip Options
  15675. ------------------------
  15676. These '-m' options are defined for picoChip implementations:
  15677. '-mae=AE_TYPE'
  15678. Set the instruction set, register set, and instruction scheduling
  15679. parameters for array element type AE_TYPE. Supported values for
  15680. AE_TYPE are 'ANY', 'MUL', and 'MAC'.
  15681. '-mae=ANY' selects a completely generic AE type. Code generated
  15682. with this option runs on any of the other AE types. The code is
  15683. not as efficient as it would be if compiled for a specific AE type,
  15684. and some types of operation (e.g., multiplication) do not work
  15685. properly on all types of AE.
  15686. '-mae=MUL' selects a MUL AE type. This is the most useful AE type
  15687. for compiled code, and is the default.
  15688. '-mae=MAC' selects a DSP-style MAC AE. Code compiled with this
  15689. option may suffer from poor performance of byte (char)
  15690. manipulation, since the DSP AE does not provide hardware support
  15691. for byte load/stores.
  15692. '-msymbol-as-address'
  15693. Enable the compiler to directly use a symbol name as an address in
  15694. a load/store instruction, without first loading it into a register.
  15695. Typically, the use of this option generates larger programs, which
  15696. run faster than when the option isn't used. However, the results
  15697. vary from program to program, so it is left as a user option,
  15698. rather than being permanently enabled.
  15699. '-mno-inefficient-warnings'
  15700. Disables warnings about the generation of inefficient code. These
  15701. warnings can be generated, for example, when compiling code that
  15702. performs byte-level memory operations on the MAC AE type. The MAC
  15703. AE has no hardware support for byte-level memory operations, so all
  15704. byte load/stores must be synthesized from word load/store
  15705. operations. This is inefficient and a warning is generated to
  15706. indicate that you should rewrite the code to avoid byte operations,
  15707. or to target an AE type that has the necessary hardware support.
  15708. This option disables these warnings.
  15709. 
  15710. File: gcc.info, Node: PowerPC Options, Next: RISC-V Options, Prev: picoChip Options, Up: Submodel Options
  15711. 3.18.36 PowerPC Options
  15712. -----------------------
  15713. These are listed under *Note RS/6000 and PowerPC Options::.
  15714. 
  15715. File: gcc.info, Node: RISC-V Options, Next: RL78 Options, Prev: PowerPC Options, Up: Submodel Options
  15716. 3.18.37 RISC-V Options
  15717. ----------------------
  15718. These command-line options are defined for RISC-V targets:
  15719. '-mbranch-cost=N'
  15720. Set the cost of branches to roughly N instructions.
  15721. '-mplt'
  15722. '-mno-plt'
  15723. When generating PIC code, do or don't allow the use of PLTs.
  15724. Ignored for non-PIC. The default is '-mplt'.
  15725. '-mabi=ABI-STRING'
  15726. Specify integer and floating-point calling convention. ABI-STRING
  15727. contains two parts: the size of integer types and the registers
  15728. used for floating-point types. For example '-march=rv64ifd
  15729. -mabi=lp64d' means that 'long' and pointers are 64-bit (implicitly
  15730. defining 'int' to be 32-bit), and that floating-point values up to
  15731. 64 bits wide are passed in F registers. Contrast this with
  15732. '-march=rv64ifd -mabi=lp64f', which still allows the compiler to
  15733. generate code that uses the F and D extensions but only allows
  15734. floating-point values up to 32 bits long to be passed in registers;
  15735. or '-march=rv64ifd -mabi=lp64', in which no floating-point
  15736. arguments will be passed in registers.
  15737. The default for this argument is system dependent, users who want a
  15738. specific calling convention should specify one explicitly. The
  15739. valid calling conventions are: 'ilp32', 'ilp32f', 'ilp32d', 'lp64',
  15740. 'lp64f', and 'lp64d'. Some calling conventions are impossible to
  15741. implement on some ISAs: for example, '-march=rv32if -mabi=ilp32d'
  15742. is invalid because the ABI requires 64-bit values be passed in F
  15743. registers, but F registers are only 32 bits wide.
  15744. '-mfdiv'
  15745. '-mno-fdiv'
  15746. Do or don't use hardware floating-point divide and square root
  15747. instructions. This requires the F or D extensions for
  15748. floating-point registers. The default is to use them if the
  15749. specified architecture has these instructions.
  15750. '-mdiv'
  15751. '-mno-div'
  15752. Do or don't use hardware instructions for integer division. This
  15753. requires the M extension. The default is to use them if the
  15754. specified architecture has these instructions.
  15755. '-march=ISA-STRING'
  15756. Generate code for given RISC-V ISA (e.g. 'rv64im'). ISA strings
  15757. must be lower-case. Examples include 'rv64i', 'rv32g', and
  15758. 'rv32imaf'.
  15759. '-mtune=PROCESSOR-STRING'
  15760. Optimize the output for the given processor, specified by
  15761. microarchitecture name.
  15762. '-msmall-data-limit=N'
  15763. Put global and static data smaller than N bytes into a special
  15764. section (on some targets).
  15765. '-msave-restore'
  15766. '-mno-save-restore'
  15767. Do or don't use smaller but slower prologue and epilogue code that
  15768. uses library function calls. The default is to use fast inline
  15769. prologues and epilogues.
  15770. '-mstrict-align'
  15771. '-mno-strict-align'
  15772. Do not or do generate unaligned memory accesses. The default is
  15773. set depending on whether the processor we are optimizing for
  15774. supports fast unaligned access or not.
  15775. '-mcmodel=medlow'
  15776. Generate code for the medium-low code model. The program and its
  15777. statically defined symbols must lie within a single 2 GiB address
  15778. range and must lie between absolute addresses -2 GiB and +2 GiB.
  15779. Programs can be statically or dynamically linked. This is the
  15780. default code model.
  15781. '-mcmodel=medany'
  15782. Generate code for the medium-any code model. The program and its
  15783. statically defined symbols must be within any single 2 GiB address
  15784. range. Programs can be statically or dynamically linked.
  15785. '-mexplicit-relocs'
  15786. '-mno-exlicit-relocs'
  15787. Use or do not use assembler relocation operators when dealing with
  15788. symbolic addresses. The alternative is to use assembler macros
  15789. instead, which may limit optimization.
  15790. 
  15791. File: gcc.info, Node: RL78 Options, Next: RS/6000 and PowerPC Options, Prev: RISC-V Options, Up: Submodel Options
  15792. 3.18.38 RL78 Options
  15793. --------------------
  15794. '-msim'
  15795. Links in additional target libraries to support operation within a
  15796. simulator.
  15797. '-mmul=none'
  15798. '-mmul=g10'
  15799. '-mmul=g13'
  15800. '-mmul=g14'
  15801. '-mmul=rl78'
  15802. Specifies the type of hardware multiplication and division support
  15803. to be used. The simplest is 'none', which uses software for both
  15804. multiplication and division. This is the default. The 'g13' value
  15805. is for the hardware multiply/divide peripheral found on the
  15806. RL78/G13 (S2 core) targets. The 'g14' value selects the use of the
  15807. multiplication and division instructions supported by the RL78/G14
  15808. (S3 core) parts. The value 'rl78' is an alias for 'g14' and the
  15809. value 'mg10' is an alias for 'none'.
  15810. In addition a C preprocessor macro is defined, based upon the
  15811. setting of this option. Possible values are: '__RL78_MUL_NONE__',
  15812. '__RL78_MUL_G13__' or '__RL78_MUL_G14__'.
  15813. '-mcpu=g10'
  15814. '-mcpu=g13'
  15815. '-mcpu=g14'
  15816. '-mcpu=rl78'
  15817. Specifies the RL78 core to target. The default is the G14 core,
  15818. also known as an S3 core or just RL78. The G13 or S2 core does not
  15819. have multiply or divide instructions, instead it uses a hardware
  15820. peripheral for these operations. The G10 or S1 core does not have
  15821. register banks, so it uses a different calling convention.
  15822. If this option is set it also selects the type of hardware multiply
  15823. support to use, unless this is overridden by an explicit
  15824. '-mmul=none' option on the command line. Thus specifying
  15825. '-mcpu=g13' enables the use of the G13 hardware multiply peripheral
  15826. and specifying '-mcpu=g10' disables the use of hardware
  15827. multiplications altogether.
  15828. Note, although the RL78/G14 core is the default target, specifying
  15829. '-mcpu=g14' or '-mcpu=rl78' on the command line does change the
  15830. behavior of the toolchain since it also enables G14 hardware
  15831. multiply support. If these options are not specified on the
  15832. command line then software multiplication routines will be used
  15833. even though the code targets the RL78 core. This is for backwards
  15834. compatibility with older toolchains which did not have hardware
  15835. multiply and divide support.
  15836. In addition a C preprocessor macro is defined, based upon the
  15837. setting of this option. Possible values are: '__RL78_G10__',
  15838. '__RL78_G13__' or '__RL78_G14__'.
  15839. '-mg10'
  15840. '-mg13'
  15841. '-mg14'
  15842. '-mrl78'
  15843. These are aliases for the corresponding '-mcpu=' option. They are
  15844. provided for backwards compatibility.
  15845. '-mallregs'
  15846. Allow the compiler to use all of the available registers. By
  15847. default registers 'r24..r31' are reserved for use in interrupt
  15848. handlers. With this option enabled these registers can be used in
  15849. ordinary functions as well.
  15850. '-m64bit-doubles'
  15851. '-m32bit-doubles'
  15852. Make the 'double' data type be 64 bits ('-m64bit-doubles') or 32
  15853. bits ('-m32bit-doubles') in size. The default is
  15854. '-m32bit-doubles'.
  15855. '-msave-mduc-in-interrupts'
  15856. '-mno-save-mduc-in-interrupts'
  15857. Specifies that interrupt handler functions should preserve the MDUC
  15858. registers. This is only necessary if normal code might use the
  15859. MDUC registers, for example because it performs multiplication and
  15860. division operations. The default is to ignore the MDUC registers
  15861. as this makes the interrupt handlers faster. The target option
  15862. -mg13 needs to be passed for this to work as this feature is only
  15863. available on the G13 target (S2 core). The MDUC registers will
  15864. only be saved if the interrupt handler performs a multiplication or
  15865. division operation or it calls another function.
  15866. 
  15867. File: gcc.info, Node: RS/6000 and PowerPC Options, Next: RX Options, Prev: RL78 Options, Up: Submodel Options
  15868. 3.18.39 IBM RS/6000 and PowerPC Options
  15869. ---------------------------------------
  15870. These '-m' options are defined for the IBM RS/6000 and PowerPC:
  15871. '-mpowerpc-gpopt'
  15872. '-mno-powerpc-gpopt'
  15873. '-mpowerpc-gfxopt'
  15874. '-mno-powerpc-gfxopt'
  15875. '-mpowerpc64'
  15876. '-mno-powerpc64'
  15877. '-mmfcrf'
  15878. '-mno-mfcrf'
  15879. '-mpopcntb'
  15880. '-mno-popcntb'
  15881. '-mpopcntd'
  15882. '-mno-popcntd'
  15883. '-mfprnd'
  15884. '-mno-fprnd'
  15885. '-mcmpb'
  15886. '-mno-cmpb'
  15887. '-mmfpgpr'
  15888. '-mno-mfpgpr'
  15889. '-mhard-dfp'
  15890. '-mno-hard-dfp'
  15891. You use these options to specify which instructions are available
  15892. on the processor you are using. The default value of these options
  15893. is determined when configuring GCC. Specifying the
  15894. '-mcpu=CPU_TYPE' overrides the specification of these options. We
  15895. recommend you use the '-mcpu=CPU_TYPE' option rather than the
  15896. options listed above.
  15897. Specifying '-mpowerpc-gpopt' allows GCC to use the optional PowerPC
  15898. architecture instructions in the General Purpose group, including
  15899. floating-point square root. Specifying '-mpowerpc-gfxopt' allows
  15900. GCC to use the optional PowerPC architecture instructions in the
  15901. Graphics group, including floating-point select.
  15902. The '-mmfcrf' option allows GCC to generate the move from condition
  15903. register field instruction implemented on the POWER4 processor and
  15904. other processors that support the PowerPC V2.01 architecture. The
  15905. '-mpopcntb' option allows GCC to generate the popcount and
  15906. double-precision FP reciprocal estimate instruction implemented on
  15907. the POWER5 processor and other processors that support the PowerPC
  15908. V2.02 architecture. The '-mpopcntd' option allows GCC to generate
  15909. the popcount instruction implemented on the POWER7 processor and
  15910. other processors that support the PowerPC V2.06 architecture. The
  15911. '-mfprnd' option allows GCC to generate the FP round to integer
  15912. instructions implemented on the POWER5+ processor and other
  15913. processors that support the PowerPC V2.03 architecture. The
  15914. '-mcmpb' option allows GCC to generate the compare bytes
  15915. instruction implemented on the POWER6 processor and other
  15916. processors that support the PowerPC V2.05 architecture. The
  15917. '-mmfpgpr' option allows GCC to generate the FP move to/from
  15918. general-purpose register instructions implemented on the POWER6X
  15919. processor and other processors that support the extended PowerPC
  15920. V2.05 architecture. The '-mhard-dfp' option allows GCC to generate
  15921. the decimal floating-point instructions implemented on some POWER
  15922. processors.
  15923. The '-mpowerpc64' option allows GCC to generate the additional
  15924. 64-bit instructions that are found in the full PowerPC64
  15925. architecture and to treat GPRs as 64-bit, doubleword quantities.
  15926. GCC defaults to '-mno-powerpc64'.
  15927. '-mcpu=CPU_TYPE'
  15928. Set architecture type, register usage, and instruction scheduling
  15929. parameters for machine type CPU_TYPE. Supported values for
  15930. CPU_TYPE are '401', '403', '405', '405fp', '440', '440fp', '464',
  15931. '464fp', '476', '476fp', '505', '601', '602', '603', '603e', '604',
  15932. '604e', '620', '630', '740', '7400', '7450', '750', '801', '821',
  15933. '823', '860', '970', '8540', 'a2', 'e300c2', 'e300c3', 'e500mc',
  15934. 'e500mc64', 'e5500', 'e6500', 'ec603e', 'G3', 'G4', 'G5', 'titan',
  15935. 'power3', 'power4', 'power5', 'power5+', 'power6', 'power6x',
  15936. 'power7', 'power8', 'power9', 'powerpc', 'powerpc64',
  15937. 'powerpc64le', and 'rs64'.
  15938. '-mcpu=powerpc', '-mcpu=powerpc64', and '-mcpu=powerpc64le' specify
  15939. pure 32-bit PowerPC (either endian), 64-bit big endian PowerPC and
  15940. 64-bit little endian PowerPC architecture machine types, with an
  15941. appropriate, generic processor model assumed for scheduling
  15942. purposes.
  15943. The other options specify a specific processor. Code generated
  15944. under those options runs best on that processor, and may not run at
  15945. all on others.
  15946. The '-mcpu' options automatically enable or disable the following
  15947. options:
  15948. -maltivec -mfprnd -mhard-float -mmfcrf -mmultiple
  15949. -mpopcntb -mpopcntd -mpowerpc64
  15950. -mpowerpc-gpopt -mpowerpc-gfxopt -msingle-float -mdouble-float
  15951. -msimple-fpu -mstring -mmulhw -mdlmzb -mmfpgpr -mvsx
  15952. -mcrypto -mdirect-move -mhtm -mpower8-fusion -mpower8-vector
  15953. -mquad-memory -mquad-memory-atomic -mfloat128 -mfloat128-hardware
  15954. The particular options set for any particular CPU varies between
  15955. compiler versions, depending on what setting seems to produce
  15956. optimal code for that CPU; it doesn't necessarily reflect the
  15957. actual hardware's capabilities. If you wish to set an individual
  15958. option to a particular value, you may specify it after the '-mcpu'
  15959. option, like '-mcpu=970 -mno-altivec'.
  15960. On AIX, the '-maltivec' and '-mpowerpc64' options are not enabled
  15961. or disabled by the '-mcpu' option at present because AIX does not
  15962. have full support for these options. You may still enable or
  15963. disable them individually if you're sure it'll work in your
  15964. environment.
  15965. '-mtune=CPU_TYPE'
  15966. Set the instruction scheduling parameters for machine type
  15967. CPU_TYPE, but do not set the architecture type or register usage,
  15968. as '-mcpu=CPU_TYPE' does. The same values for CPU_TYPE are used
  15969. for '-mtune' as for '-mcpu'. If both are specified, the code
  15970. generated uses the architecture and registers set by '-mcpu', but
  15971. the scheduling parameters set by '-mtune'.
  15972. '-mcmodel=small'
  15973. Generate PowerPC64 code for the small model: The TOC is limited to
  15974. 64k.
  15975. '-mcmodel=medium'
  15976. Generate PowerPC64 code for the medium model: The TOC and other
  15977. static data may be up to a total of 4G in size. This is the
  15978. default for 64-bit Linux.
  15979. '-mcmodel=large'
  15980. Generate PowerPC64 code for the large model: The TOC may be up to
  15981. 4G in size. Other data and code is only limited by the 64-bit
  15982. address space.
  15983. '-maltivec'
  15984. '-mno-altivec'
  15985. Generate code that uses (does not use) AltiVec instructions, and
  15986. also enable the use of built-in functions that allow more direct
  15987. access to the AltiVec instruction set. You may also need to set
  15988. '-mabi=altivec' to adjust the current ABI with AltiVec ABI
  15989. enhancements.
  15990. When '-maltivec' is used, rather than '-maltivec=le' or
  15991. '-maltivec=be', the element order for AltiVec intrinsics such as
  15992. 'vec_splat', 'vec_extract', and 'vec_insert' match array element
  15993. order corresponding to the endianness of the target. That is,
  15994. element zero identifies the leftmost element in a vector register
  15995. when targeting a big-endian platform, and identifies the rightmost
  15996. element in a vector register when targeting a little-endian
  15997. platform.
  15998. '-maltivec=be'
  15999. Generate AltiVec instructions using big-endian element order,
  16000. regardless of whether the target is big- or little-endian. This is
  16001. the default when targeting a big-endian platform.
  16002. The element order is used to interpret element numbers in AltiVec
  16003. intrinsics such as 'vec_splat', 'vec_extract', and 'vec_insert'.
  16004. By default, these match array element order corresponding to the
  16005. endianness for the target.
  16006. '-maltivec=le'
  16007. Generate AltiVec instructions using little-endian element order,
  16008. regardless of whether the target is big- or little-endian. This is
  16009. the default when targeting a little-endian platform. This option
  16010. is currently ignored when targeting a big-endian platform.
  16011. The element order is used to interpret element numbers in AltiVec
  16012. intrinsics such as 'vec_splat', 'vec_extract', and 'vec_insert'.
  16013. By default, these match array element order corresponding to the
  16014. endianness for the target.
  16015. '-mvrsave'
  16016. '-mno-vrsave'
  16017. Generate VRSAVE instructions when generating AltiVec code.
  16018. '-mgen-cell-microcode'
  16019. Generate Cell microcode instructions.
  16020. '-mwarn-cell-microcode'
  16021. Warn when a Cell microcode instruction is emitted. An example of a
  16022. Cell microcode instruction is a variable shift.
  16023. '-msecure-plt'
  16024. Generate code that allows 'ld' and 'ld.so' to build executables and
  16025. shared libraries with non-executable '.plt' and '.got' sections.
  16026. This is a PowerPC 32-bit SYSV ABI option.
  16027. '-mbss-plt'
  16028. Generate code that uses a BSS '.plt' section that 'ld.so' fills in,
  16029. and requires '.plt' and '.got' sections that are both writable and
  16030. executable. This is a PowerPC 32-bit SYSV ABI option.
  16031. '-misel'
  16032. '-mno-isel'
  16033. This switch enables or disables the generation of ISEL
  16034. instructions.
  16035. '-misel=YES/NO'
  16036. This switch has been deprecated. Use '-misel' and '-mno-isel'
  16037. instead.
  16038. '-mlra'
  16039. Enable Local Register Allocation. By default the port uses LRA.
  16040. (i.e. '-mno-lra').
  16041. '-mspe'
  16042. '-mno-spe'
  16043. This switch enables or disables the generation of SPE simd
  16044. instructions.
  16045. '-mpaired'
  16046. '-mno-paired'
  16047. This switch enables or disables the generation of PAIRED simd
  16048. instructions.
  16049. '-mspe=YES/NO'
  16050. This option has been deprecated. Use '-mspe' and '-mno-spe'
  16051. instead.
  16052. '-mvsx'
  16053. '-mno-vsx'
  16054. Generate code that uses (does not use) vector/scalar (VSX)
  16055. instructions, and also enable the use of built-in functions that
  16056. allow more direct access to the VSX instruction set.
  16057. '-mcrypto'
  16058. '-mno-crypto'
  16059. Enable the use (disable) of the built-in functions that allow
  16060. direct access to the cryptographic instructions that were added in
  16061. version 2.07 of the PowerPC ISA.
  16062. '-mdirect-move'
  16063. '-mno-direct-move'
  16064. Generate code that uses (does not use) the instructions to move
  16065. data between the general purpose registers and the vector/scalar
  16066. (VSX) registers that were added in version 2.07 of the PowerPC ISA.
  16067. '-mhtm'
  16068. '-mno-htm'
  16069. Enable (disable) the use of the built-in functions that allow
  16070. direct access to the Hardware Transactional Memory (HTM)
  16071. instructions that were added in version 2.07 of the PowerPC ISA.
  16072. '-mpower8-fusion'
  16073. '-mno-power8-fusion'
  16074. Generate code that keeps (does not keeps) some integer operations
  16075. adjacent so that the instructions can be fused together on power8
  16076. and later processors.
  16077. '-mpower8-vector'
  16078. '-mno-power8-vector'
  16079. Generate code that uses (does not use) the vector and scalar
  16080. instructions that were added in version 2.07 of the PowerPC ISA.
  16081. Also enable the use of built-in functions that allow more direct
  16082. access to the vector instructions.
  16083. '-mquad-memory'
  16084. '-mno-quad-memory'
  16085. Generate code that uses (does not use) the non-atomic quad word
  16086. memory instructions. The '-mquad-memory' option requires use of
  16087. 64-bit mode.
  16088. '-mquad-memory-atomic'
  16089. '-mno-quad-memory-atomic'
  16090. Generate code that uses (does not use) the atomic quad word memory
  16091. instructions. The '-mquad-memory-atomic' option requires use of
  16092. 64-bit mode.
  16093. '-mupper-regs-di'
  16094. '-mno-upper-regs-di'
  16095. Generate code that uses (does not use) the scalar instructions that
  16096. target all 64 registers in the vector/scalar floating point
  16097. register set that were added in version 2.06 of the PowerPC ISA
  16098. when processing integers. '-mupper-regs-di' is turned on by
  16099. default if you use any of the '-mcpu=power7', '-mcpu=power8',
  16100. '-mcpu=power9', or '-mvsx' options.
  16101. '-mupper-regs-df'
  16102. '-mno-upper-regs-df'
  16103. Generate code that uses (does not use) the scalar double precision
  16104. instructions that target all 64 registers in the vector/scalar
  16105. floating point register set that were added in version 2.06 of the
  16106. PowerPC ISA. '-mupper-regs-df' is turned on by default if you use
  16107. any of the '-mcpu=power7', '-mcpu=power8', '-mcpu=power9', or
  16108. '-mvsx' options.
  16109. '-mupper-regs-sf'
  16110. '-mno-upper-regs-sf'
  16111. Generate code that uses (does not use) the scalar single precision
  16112. instructions that target all 64 registers in the vector/scalar
  16113. floating point register set that were added in version 2.07 of the
  16114. PowerPC ISA. '-mupper-regs-sf' is turned on by default if you use
  16115. either of the '-mcpu=power8', '-mpower8-vector', or '-mcpu=power9'
  16116. options.
  16117. '-mupper-regs'
  16118. '-mno-upper-regs'
  16119. Generate code that uses (does not use) the scalar instructions that
  16120. target all 64 registers in the vector/scalar floating point
  16121. register set, depending on the model of the machine.
  16122. If the '-mno-upper-regs' option is used, it turns off both
  16123. '-mupper-regs-sf' and '-mupper-regs-df' options.
  16124. '-mfloat128'
  16125. '-mno-float128'
  16126. Enable/disable the __FLOAT128 keyword for IEEE 128-bit floating
  16127. point and use either software emulation for IEEE 128-bit floating
  16128. point or hardware instructions.
  16129. The VSX instruction set ('-mvsx', '-mcpu=power7', or
  16130. '-mcpu=power8') must be enabled to use the '-mfloat128' option.
  16131. The '-mfloat128' option only works on PowerPC 64-bit Linux systems.
  16132. If you use the ISA 3.0 instruction set ('-mcpu=power9'), the
  16133. '-mfloat128' option will also enable the generation of ISA 3.0 IEEE
  16134. 128-bit floating point instructions. Otherwise, IEEE 128-bit
  16135. floating point will be done with software emulation.
  16136. '-mfloat128-hardware'
  16137. '-mno-float128-hardware'
  16138. Enable/disable using ISA 3.0 hardware instructions to support the
  16139. __FLOAT128 data type.
  16140. If you use '-mfloat128-hardware', it will enable the option
  16141. '-mfloat128' as well.
  16142. If you select ISA 3.0 instructions with '-mcpu=power9', but do not
  16143. use either '-mfloat128' or '-mfloat128-hardware', the IEEE 128-bit
  16144. floating point support will not be enabled.
  16145. '-mfloat-gprs=YES/SINGLE/DOUBLE/NO'
  16146. '-mfloat-gprs'
  16147. This switch enables or disables the generation of floating-point
  16148. operations on the general-purpose registers for architectures that
  16149. support it.
  16150. The argument 'yes' or 'single' enables the use of single-precision
  16151. floating-point operations.
  16152. The argument 'double' enables the use of single and
  16153. double-precision floating-point operations.
  16154. The argument 'no' disables floating-point operations on the
  16155. general-purpose registers.
  16156. This option is currently only available on the MPC854x.
  16157. '-m32'
  16158. '-m64'
  16159. Generate code for 32-bit or 64-bit environments of Darwin and SVR4
  16160. targets (including GNU/Linux). The 32-bit environment sets int,
  16161. long and pointer to 32 bits and generates code that runs on any
  16162. PowerPC variant. The 64-bit environment sets int to 32 bits and
  16163. long and pointer to 64 bits, and generates code for PowerPC64, as
  16164. for '-mpowerpc64'.
  16165. '-mfull-toc'
  16166. '-mno-fp-in-toc'
  16167. '-mno-sum-in-toc'
  16168. '-mminimal-toc'
  16169. Modify generation of the TOC (Table Of Contents), which is created
  16170. for every executable file. The '-mfull-toc' option is selected by
  16171. default. In that case, GCC allocates at least one TOC entry for
  16172. each unique non-automatic variable reference in your program. GCC
  16173. also places floating-point constants in the TOC. However, only
  16174. 16,384 entries are available in the TOC.
  16175. If you receive a linker error message that saying you have
  16176. overflowed the available TOC space, you can reduce the amount of
  16177. TOC space used with the '-mno-fp-in-toc' and '-mno-sum-in-toc'
  16178. options. '-mno-fp-in-toc' prevents GCC from putting floating-point
  16179. constants in the TOC and '-mno-sum-in-toc' forces GCC to generate
  16180. code to calculate the sum of an address and a constant at run time
  16181. instead of putting that sum into the TOC. You may specify one or
  16182. both of these options. Each causes GCC to produce very slightly
  16183. slower and larger code at the expense of conserving TOC space.
  16184. If you still run out of space in the TOC even when you specify both
  16185. of these options, specify '-mminimal-toc' instead. This option
  16186. causes GCC to make only one TOC entry for every file. When you
  16187. specify this option, GCC produces code that is slower and larger
  16188. but which uses extremely little TOC space. You may wish to use
  16189. this option only on files that contain less frequently-executed
  16190. code.
  16191. '-maix64'
  16192. '-maix32'
  16193. Enable 64-bit AIX ABI and calling convention: 64-bit pointers,
  16194. 64-bit 'long' type, and the infrastructure needed to support them.
  16195. Specifying '-maix64' implies '-mpowerpc64', while '-maix32'
  16196. disables the 64-bit ABI and implies '-mno-powerpc64'. GCC defaults
  16197. to '-maix32'.
  16198. '-mxl-compat'
  16199. '-mno-xl-compat'
  16200. Produce code that conforms more closely to IBM XL compiler
  16201. semantics when using AIX-compatible ABI. Pass floating-point
  16202. arguments to prototyped functions beyond the register save area
  16203. (RSA) on the stack in addition to argument FPRs. Do not assume
  16204. that most significant double in 128-bit long double value is
  16205. properly rounded when comparing values and converting to double.
  16206. Use XL symbol names for long double support routines.
  16207. The AIX calling convention was extended but not initially
  16208. documented to handle an obscure K&R C case of calling a function
  16209. that takes the address of its arguments with fewer arguments than
  16210. declared. IBM XL compilers access floating-point arguments that do
  16211. not fit in the RSA from the stack when a subroutine is compiled
  16212. without optimization. Because always storing floating-point
  16213. arguments on the stack is inefficient and rarely needed, this
  16214. option is not enabled by default and only is necessary when calling
  16215. subroutines compiled by IBM XL compilers without optimization.
  16216. '-mpe'
  16217. Support "IBM RS/6000 SP" "Parallel Environment" (PE). Link an
  16218. application written to use message passing with special startup
  16219. code to enable the application to run. The system must have PE
  16220. installed in the standard location ('/usr/lpp/ppe.poe/'), or the
  16221. 'specs' file must be overridden with the '-specs=' option to
  16222. specify the appropriate directory location. The Parallel
  16223. Environment does not support threads, so the '-mpe' option and the
  16224. '-pthread' option are incompatible.
  16225. '-malign-natural'
  16226. '-malign-power'
  16227. On AIX, 32-bit Darwin, and 64-bit PowerPC GNU/Linux, the option
  16228. '-malign-natural' overrides the ABI-defined alignment of larger
  16229. types, such as floating-point doubles, on their natural size-based
  16230. boundary. The option '-malign-power' instructs GCC to follow the
  16231. ABI-specified alignment rules. GCC defaults to the standard
  16232. alignment defined in the ABI.
  16233. On 64-bit Darwin, natural alignment is the default, and
  16234. '-malign-power' is not supported.
  16235. '-msoft-float'
  16236. '-mhard-float'
  16237. Generate code that does not use (uses) the floating-point register
  16238. set. Software floating-point emulation is provided if you use the
  16239. '-msoft-float' option, and pass the option to GCC when linking.
  16240. '-msingle-float'
  16241. '-mdouble-float'
  16242. Generate code for single- or double-precision floating-point
  16243. operations. '-mdouble-float' implies '-msingle-float'.
  16244. '-msimple-fpu'
  16245. Do not generate 'sqrt' and 'div' instructions for hardware
  16246. floating-point unit.
  16247. '-mfpu=NAME'
  16248. Specify type of floating-point unit. Valid values for NAME are
  16249. 'sp_lite' (equivalent to '-msingle-float -msimple-fpu'), 'dp_lite'
  16250. (equivalent to '-mdouble-float -msimple-fpu'), 'sp_full'
  16251. (equivalent to '-msingle-float'), and 'dp_full' (equivalent to
  16252. '-mdouble-float').
  16253. '-mxilinx-fpu'
  16254. Perform optimizations for the floating-point unit on Xilinx PPC
  16255. 405/440.
  16256. '-mmultiple'
  16257. '-mno-multiple'
  16258. Generate code that uses (does not use) the load multiple word
  16259. instructions and the store multiple word instructions. These
  16260. instructions are generated by default on POWER systems, and not
  16261. generated on PowerPC systems. Do not use '-mmultiple' on
  16262. little-endian PowerPC systems, since those instructions do not work
  16263. when the processor is in little-endian mode. The exceptions are
  16264. PPC740 and PPC750 which permit these instructions in little-endian
  16265. mode.
  16266. '-mstring'
  16267. '-mno-string'
  16268. Generate code that uses (does not use) the load string instructions
  16269. and the store string word instructions to save multiple registers
  16270. and do small block moves. These instructions are generated by
  16271. default on POWER systems, and not generated on PowerPC systems. Do
  16272. not use '-mstring' on little-endian PowerPC systems, since those
  16273. instructions do not work when the processor is in little-endian
  16274. mode. The exceptions are PPC740 and PPC750 which permit these
  16275. instructions in little-endian mode.
  16276. '-mupdate'
  16277. '-mno-update'
  16278. Generate code that uses (does not use) the load or store
  16279. instructions that update the base register to the address of the
  16280. calculated memory location. These instructions are generated by
  16281. default. If you use '-mno-update', there is a small window between
  16282. the time that the stack pointer is updated and the address of the
  16283. previous frame is stored, which means code that walks the stack
  16284. frame across interrupts or signals may get corrupted data.
  16285. '-mavoid-indexed-addresses'
  16286. '-mno-avoid-indexed-addresses'
  16287. Generate code that tries to avoid (not avoid) the use of indexed
  16288. load or store instructions. These instructions can incur a
  16289. performance penalty on Power6 processors in certain situations,
  16290. such as when stepping through large arrays that cross a 16M
  16291. boundary. This option is enabled by default when targeting Power6
  16292. and disabled otherwise.
  16293. '-mfused-madd'
  16294. '-mno-fused-madd'
  16295. Generate code that uses (does not use) the floating-point multiply
  16296. and accumulate instructions. These instructions are generated by
  16297. default if hardware floating point is used. The machine-dependent
  16298. '-mfused-madd' option is now mapped to the machine-independent
  16299. '-ffp-contract=fast' option, and '-mno-fused-madd' is mapped to
  16300. '-ffp-contract=off'.
  16301. '-mmulhw'
  16302. '-mno-mulhw'
  16303. Generate code that uses (does not use) the half-word multiply and
  16304. multiply-accumulate instructions on the IBM 405, 440, 464 and 476
  16305. processors. These instructions are generated by default when
  16306. targeting those processors.
  16307. '-mdlmzb'
  16308. '-mno-dlmzb'
  16309. Generate code that uses (does not use) the string-search 'dlmzb'
  16310. instruction on the IBM 405, 440, 464 and 476 processors. This
  16311. instruction is generated by default when targeting those
  16312. processors.
  16313. '-mno-bit-align'
  16314. '-mbit-align'
  16315. On System V.4 and embedded PowerPC systems do not (do) force
  16316. structures and unions that contain bit-fields to be aligned to the
  16317. base type of the bit-field.
  16318. For example, by default a structure containing nothing but 8
  16319. 'unsigned' bit-fields of length 1 is aligned to a 4-byte boundary
  16320. and has a size of 4 bytes. By using '-mno-bit-align', the
  16321. structure is aligned to a 1-byte boundary and is 1 byte in size.
  16322. '-mno-strict-align'
  16323. '-mstrict-align'
  16324. On System V.4 and embedded PowerPC systems do not (do) assume that
  16325. unaligned memory references are handled by the system.
  16326. '-mrelocatable'
  16327. '-mno-relocatable'
  16328. Generate code that allows (does not allow) a static executable to
  16329. be relocated to a different address at run time. A simple embedded
  16330. PowerPC system loader should relocate the entire contents of
  16331. '.got2' and 4-byte locations listed in the '.fixup' section, a
  16332. table of 32-bit addresses generated by this option. For this to
  16333. work, all objects linked together must be compiled with
  16334. '-mrelocatable' or '-mrelocatable-lib'. '-mrelocatable' code
  16335. aligns the stack to an 8-byte boundary.
  16336. '-mrelocatable-lib'
  16337. '-mno-relocatable-lib'
  16338. Like '-mrelocatable', '-mrelocatable-lib' generates a '.fixup'
  16339. section to allow static executables to be relocated at run time,
  16340. but '-mrelocatable-lib' does not use the smaller stack alignment of
  16341. '-mrelocatable'. Objects compiled with '-mrelocatable-lib' may be
  16342. linked with objects compiled with any combination of the
  16343. '-mrelocatable' options.
  16344. '-mno-toc'
  16345. '-mtoc'
  16346. On System V.4 and embedded PowerPC systems do not (do) assume that
  16347. register 2 contains a pointer to a global area pointing to the
  16348. addresses used in the program.
  16349. '-mlittle'
  16350. '-mlittle-endian'
  16351. On System V.4 and embedded PowerPC systems compile code for the
  16352. processor in little-endian mode. The '-mlittle-endian' option is
  16353. the same as '-mlittle'.
  16354. '-mbig'
  16355. '-mbig-endian'
  16356. On System V.4 and embedded PowerPC systems compile code for the
  16357. processor in big-endian mode. The '-mbig-endian' option is the
  16358. same as '-mbig'.
  16359. '-mdynamic-no-pic'
  16360. On Darwin and Mac OS X systems, compile code so that it is not
  16361. relocatable, but that its external references are relocatable. The
  16362. resulting code is suitable for applications, but not shared
  16363. libraries.
  16364. '-msingle-pic-base'
  16365. Treat the register used for PIC addressing as read-only, rather
  16366. than loading it in the prologue for each function. The runtime
  16367. system is responsible for initializing this register with an
  16368. appropriate value before execution begins.
  16369. '-mprioritize-restricted-insns=PRIORITY'
  16370. This option controls the priority that is assigned to dispatch-slot
  16371. restricted instructions during the second scheduling pass. The
  16372. argument PRIORITY takes the value '0', '1', or '2' to assign no,
  16373. highest, or second-highest (respectively) priority to dispatch-slot
  16374. restricted instructions.
  16375. '-msched-costly-dep=DEPENDENCE_TYPE'
  16376. This option controls which dependences are considered costly by the
  16377. target during instruction scheduling. The argument DEPENDENCE_TYPE
  16378. takes one of the following values:
  16379. 'no'
  16380. No dependence is costly.
  16381. 'all'
  16382. All dependences are costly.
  16383. 'true_store_to_load'
  16384. A true dependence from store to load is costly.
  16385. 'store_to_load'
  16386. Any dependence from store to load is costly.
  16387. NUMBER
  16388. Any dependence for which the latency is greater than or equal
  16389. to NUMBER is costly.
  16390. '-minsert-sched-nops=SCHEME'
  16391. This option controls which NOP insertion scheme is used during the
  16392. second scheduling pass. The argument SCHEME takes one of the
  16393. following values:
  16394. 'no'
  16395. Don't insert NOPs.
  16396. 'pad'
  16397. Pad with NOPs any dispatch group that has vacant issue slots,
  16398. according to the scheduler's grouping.
  16399. 'regroup_exact'
  16400. Insert NOPs to force costly dependent insns into separate
  16401. groups. Insert exactly as many NOPs as needed to force an
  16402. insn to a new group, according to the estimated processor
  16403. grouping.
  16404. NUMBER
  16405. Insert NOPs to force costly dependent insns into separate
  16406. groups. Insert NUMBER NOPs to force an insn to a new group.
  16407. '-mcall-sysv'
  16408. On System V.4 and embedded PowerPC systems compile code using
  16409. calling conventions that adhere to the March 1995 draft of the
  16410. System V Application Binary Interface, PowerPC processor
  16411. supplement. This is the default unless you configured GCC using
  16412. 'powerpc-*-eabiaix'.
  16413. '-mcall-sysv-eabi'
  16414. '-mcall-eabi'
  16415. Specify both '-mcall-sysv' and '-meabi' options.
  16416. '-mcall-sysv-noeabi'
  16417. Specify both '-mcall-sysv' and '-mno-eabi' options.
  16418. '-mcall-aixdesc'
  16419. On System V.4 and embedded PowerPC systems compile code for the AIX
  16420. operating system.
  16421. '-mcall-linux'
  16422. On System V.4 and embedded PowerPC systems compile code for the
  16423. Linux-based GNU system.
  16424. '-mcall-freebsd'
  16425. On System V.4 and embedded PowerPC systems compile code for the
  16426. FreeBSD operating system.
  16427. '-mcall-netbsd'
  16428. On System V.4 and embedded PowerPC systems compile code for the
  16429. NetBSD operating system.
  16430. '-mcall-openbsd'
  16431. On System V.4 and embedded PowerPC systems compile code for the
  16432. OpenBSD operating system.
  16433. '-maix-struct-return'
  16434. Return all structures in memory (as specified by the AIX ABI).
  16435. '-msvr4-struct-return'
  16436. Return structures smaller than 8 bytes in registers (as specified
  16437. by the SVR4 ABI).
  16438. '-mabi=ABI-TYPE'
  16439. Extend the current ABI with a particular extension, or remove such
  16440. extension. Valid values are 'altivec', 'no-altivec', 'spe',
  16441. 'no-spe', 'ibmlongdouble', 'ieeelongdouble', 'elfv1', 'elfv2'.
  16442. '-mabi=spe'
  16443. Extend the current ABI with SPE ABI extensions. This does not
  16444. change the default ABI, instead it adds the SPE ABI extensions to
  16445. the current ABI.
  16446. '-mabi=no-spe'
  16447. Disable Book-E SPE ABI extensions for the current ABI.
  16448. '-mabi=ibmlongdouble'
  16449. Change the current ABI to use IBM extended-precision long double.
  16450. This is a PowerPC 32-bit SYSV ABI option. Requires
  16451. '-mlong-double-128' to be enabled.
  16452. '-mabi=ieeelongdouble'
  16453. Change the current ABI to use IEEE extended-precision long double.
  16454. This is a PowerPC 32-bit Linux ABI option. Requires
  16455. '-mlong-double-128' to be enabled.
  16456. '-mabi=elfv1'
  16457. Change the current ABI to use the ELFv1 ABI. This is the default
  16458. ABI for big-endian PowerPC 64-bit Linux. Overriding the default
  16459. ABI requires special system support and is likely to fail in
  16460. spectacular ways.
  16461. '-mabi=elfv2'
  16462. Change the current ABI to use the ELFv2 ABI. This is the default
  16463. ABI for little-endian PowerPC 64-bit Linux. Overriding the default
  16464. ABI requires special system support and is likely to fail in
  16465. spectacular ways.
  16466. '-mgnu-attribute'
  16467. '-mno-gnu-attribute'
  16468. Emit .gnu_attribute assembly directives to set tag/value pairs in a
  16469. .gnu.attributes section that specify ABI variations in function
  16470. parameters or return values.
  16471. '-mprototype'
  16472. '-mno-prototype'
  16473. On System V.4 and embedded PowerPC systems assume that all calls to
  16474. variable argument functions are properly prototyped. Otherwise,
  16475. the compiler must insert an instruction before every non-prototyped
  16476. call to set or clear bit 6 of the condition code register ('CR') to
  16477. indicate whether floating-point values are passed in the
  16478. floating-point registers in case the function takes variable
  16479. arguments. With '-mprototype', only calls to prototyped variable
  16480. argument functions set or clear the bit.
  16481. '-msim'
  16482. On embedded PowerPC systems, assume that the startup module is
  16483. called 'sim-crt0.o' and that the standard C libraries are
  16484. 'libsim.a' and 'libc.a'. This is the default for
  16485. 'powerpc-*-eabisim' configurations.
  16486. '-mmvme'
  16487. On embedded PowerPC systems, assume that the startup module is
  16488. called 'crt0.o' and the standard C libraries are 'libmvme.a' and
  16489. 'libc.a'.
  16490. '-mads'
  16491. On embedded PowerPC systems, assume that the startup module is
  16492. called 'crt0.o' and the standard C libraries are 'libads.a' and
  16493. 'libc.a'.
  16494. '-myellowknife'
  16495. On embedded PowerPC systems, assume that the startup module is
  16496. called 'crt0.o' and the standard C libraries are 'libyk.a' and
  16497. 'libc.a'.
  16498. '-mvxworks'
  16499. On System V.4 and embedded PowerPC systems, specify that you are
  16500. compiling for a VxWorks system.
  16501. '-memb'
  16502. On embedded PowerPC systems, set the 'PPC_EMB' bit in the ELF flags
  16503. header to indicate that 'eabi' extended relocations are used.
  16504. '-meabi'
  16505. '-mno-eabi'
  16506. On System V.4 and embedded PowerPC systems do (do not) adhere to
  16507. the Embedded Applications Binary Interface (EABI), which is a set
  16508. of modifications to the System V.4 specifications. Selecting
  16509. '-meabi' means that the stack is aligned to an 8-byte boundary, a
  16510. function '__eabi' is called from 'main' to set up the EABI
  16511. environment, and the '-msdata' option can use both 'r2' and 'r13'
  16512. to point to two separate small data areas. Selecting '-mno-eabi'
  16513. means that the stack is aligned to a 16-byte boundary, no EABI
  16514. initialization function is called from 'main', and the '-msdata'
  16515. option only uses 'r13' to point to a single small data area. The
  16516. '-meabi' option is on by default if you configured GCC using one of
  16517. the 'powerpc*-*-eabi*' options.
  16518. '-msdata=eabi'
  16519. On System V.4 and embedded PowerPC systems, put small initialized
  16520. 'const' global and static data in the '.sdata2' section, which is
  16521. pointed to by register 'r2'. Put small initialized non-'const'
  16522. global and static data in the '.sdata' section, which is pointed to
  16523. by register 'r13'. Put small uninitialized global and static data
  16524. in the '.sbss' section, which is adjacent to the '.sdata' section.
  16525. The '-msdata=eabi' option is incompatible with the '-mrelocatable'
  16526. option. The '-msdata=eabi' option also sets the '-memb' option.
  16527. '-msdata=sysv'
  16528. On System V.4 and embedded PowerPC systems, put small global and
  16529. static data in the '.sdata' section, which is pointed to by
  16530. register 'r13'. Put small uninitialized global and static data in
  16531. the '.sbss' section, which is adjacent to the '.sdata' section.
  16532. The '-msdata=sysv' option is incompatible with the '-mrelocatable'
  16533. option.
  16534. '-msdata=default'
  16535. '-msdata'
  16536. On System V.4 and embedded PowerPC systems, if '-meabi' is used,
  16537. compile code the same as '-msdata=eabi', otherwise compile code the
  16538. same as '-msdata=sysv'.
  16539. '-msdata=data'
  16540. On System V.4 and embedded PowerPC systems, put small global data
  16541. in the '.sdata' section. Put small uninitialized global data in
  16542. the '.sbss' section. Do not use register 'r13' to address small
  16543. data however. This is the default behavior unless other '-msdata'
  16544. options are used.
  16545. '-msdata=none'
  16546. '-mno-sdata'
  16547. On embedded PowerPC systems, put all initialized global and static
  16548. data in the '.data' section, and all uninitialized data in the
  16549. '.bss' section.
  16550. '-mreadonly-in-sdata'
  16551. '-mreadonly-in-sdata'
  16552. Put read-only objects in the '.sdata' section as well. This is the
  16553. default.
  16554. '-mblock-move-inline-limit=NUM'
  16555. Inline all block moves (such as calls to 'memcpy' or structure
  16556. copies) less than or equal to NUM bytes. The minimum value for NUM
  16557. is 32 bytes on 32-bit targets and 64 bytes on 64-bit targets. The
  16558. default value is target-specific.
  16559. '-G NUM'
  16560. On embedded PowerPC systems, put global and static items less than
  16561. or equal to NUM bytes into the small data or BSS sections instead
  16562. of the normal data or BSS section. By default, NUM is 8. The '-G
  16563. NUM' switch is also passed to the linker. All modules should be
  16564. compiled with the same '-G NUM' value.
  16565. '-mregnames'
  16566. '-mno-regnames'
  16567. On System V.4 and embedded PowerPC systems do (do not) emit
  16568. register names in the assembly language output using symbolic
  16569. forms.
  16570. '-mlongcall'
  16571. '-mno-longcall'
  16572. By default assume that all calls are far away so that a longer and
  16573. more expensive calling sequence is required. This is required for
  16574. calls farther than 32 megabytes (33,554,432 bytes) from the current
  16575. location. A short call is generated if the compiler knows the call
  16576. cannot be that far away. This setting can be overridden by the
  16577. 'shortcall' function attribute, or by '#pragma longcall(0)'.
  16578. Some linkers are capable of detecting out-of-range calls and
  16579. generating glue code on the fly. On these systems, long calls are
  16580. unnecessary and generate slower code. As of this writing, the AIX
  16581. linker can do this, as can the GNU linker for PowerPC/64. It is
  16582. planned to add this feature to the GNU linker for 32-bit PowerPC
  16583. systems as well.
  16584. On Darwin/PPC systems, '#pragma longcall' generates 'jbsr callee,
  16585. L42', plus a "branch island" (glue code). The two target addresses
  16586. represent the callee and the branch island. The Darwin/PPC linker
  16587. prefers the first address and generates a 'bl callee' if the PPC
  16588. 'bl' instruction reaches the callee directly; otherwise, the linker
  16589. generates 'bl L42' to call the branch island. The branch island is
  16590. appended to the body of the calling function; it computes the full
  16591. 32-bit address of the callee and jumps to it.
  16592. On Mach-O (Darwin) systems, this option directs the compiler emit
  16593. to the glue for every direct call, and the Darwin linker decides
  16594. whether to use or discard it.
  16595. In the future, GCC may ignore all longcall specifications when the
  16596. linker is known to generate glue.
  16597. '-mtls-markers'
  16598. '-mno-tls-markers'
  16599. Mark (do not mark) calls to '__tls_get_addr' with a relocation
  16600. specifying the function argument. The relocation allows the linker
  16601. to reliably associate function call with argument setup
  16602. instructions for TLS optimization, which in turn allows GCC to
  16603. better schedule the sequence.
  16604. '-mrecip'
  16605. '-mno-recip'
  16606. This option enables use of the reciprocal estimate and reciprocal
  16607. square root estimate instructions with additional Newton-Raphson
  16608. steps to increase precision instead of doing a divide or square
  16609. root and divide for floating-point arguments. You should use the
  16610. '-ffast-math' option when using '-mrecip' (or at least
  16611. '-funsafe-math-optimizations', '-ffinite-math-only',
  16612. '-freciprocal-math' and '-fno-trapping-math'). Note that while the
  16613. throughput of the sequence is generally higher than the throughput
  16614. of the non-reciprocal instruction, the precision of the sequence
  16615. can be decreased by up to 2 ulp (i.e. the inverse of 1.0 equals
  16616. 0.99999994) for reciprocal square roots.
  16617. '-mrecip=OPT'
  16618. This option controls which reciprocal estimate instructions may be
  16619. used. OPT is a comma-separated list of options, which may be
  16620. preceded by a '!' to invert the option:
  16621. 'all'
  16622. Enable all estimate instructions.
  16623. 'default'
  16624. Enable the default instructions, equivalent to '-mrecip'.
  16625. 'none'
  16626. Disable all estimate instructions, equivalent to '-mno-recip'.
  16627. 'div'
  16628. Enable the reciprocal approximation instructions for both
  16629. single and double precision.
  16630. 'divf'
  16631. Enable the single-precision reciprocal approximation
  16632. instructions.
  16633. 'divd'
  16634. Enable the double-precision reciprocal approximation
  16635. instructions.
  16636. 'rsqrt'
  16637. Enable the reciprocal square root approximation instructions
  16638. for both single and double precision.
  16639. 'rsqrtf'
  16640. Enable the single-precision reciprocal square root
  16641. approximation instructions.
  16642. 'rsqrtd'
  16643. Enable the double-precision reciprocal square root
  16644. approximation instructions.
  16645. So, for example, '-mrecip=all,!rsqrtd' enables all of the
  16646. reciprocal estimate instructions, except for the 'FRSQRTE',
  16647. 'XSRSQRTEDP', and 'XVRSQRTEDP' instructions which handle the
  16648. double-precision reciprocal square root calculations.
  16649. '-mrecip-precision'
  16650. '-mno-recip-precision'
  16651. Assume (do not assume) that the reciprocal estimate instructions
  16652. provide higher-precision estimates than is mandated by the PowerPC
  16653. ABI. Selecting '-mcpu=power6', '-mcpu=power7' or '-mcpu=power8'
  16654. automatically selects '-mrecip-precision'. The double-precision
  16655. square root estimate instructions are not generated by default on
  16656. low-precision machines, since they do not provide an estimate that
  16657. converges after three steps.
  16658. '-mveclibabi=TYPE'
  16659. Specifies the ABI type to use for vectorizing intrinsics using an
  16660. external library. The only type supported at present is 'mass',
  16661. which specifies to use IBM's Mathematical Acceleration Subsystem
  16662. (MASS) libraries for vectorizing intrinsics using external
  16663. libraries. GCC currently emits calls to 'acosd2', 'acosf4',
  16664. 'acoshd2', 'acoshf4', 'asind2', 'asinf4', 'asinhd2', 'asinhf4',
  16665. 'atan2d2', 'atan2f4', 'atand2', 'atanf4', 'atanhd2', 'atanhf4',
  16666. 'cbrtd2', 'cbrtf4', 'cosd2', 'cosf4', 'coshd2', 'coshf4', 'erfcd2',
  16667. 'erfcf4', 'erfd2', 'erff4', 'exp2d2', 'exp2f4', 'expd2', 'expf4',
  16668. 'expm1d2', 'expm1f4', 'hypotd2', 'hypotf4', 'lgammad2', 'lgammaf4',
  16669. 'log10d2', 'log10f4', 'log1pd2', 'log1pf4', 'log2d2', 'log2f4',
  16670. 'logd2', 'logf4', 'powd2', 'powf4', 'sind2', 'sinf4', 'sinhd2',
  16671. 'sinhf4', 'sqrtd2', 'sqrtf4', 'tand2', 'tanf4', 'tanhd2', and
  16672. 'tanhf4' when generating code for power7. Both '-ftree-vectorize'
  16673. and '-funsafe-math-optimizations' must also be enabled. The MASS
  16674. libraries must be specified at link time.
  16675. '-mfriz'
  16676. '-mno-friz'
  16677. Generate (do not generate) the 'friz' instruction when the
  16678. '-funsafe-math-optimizations' option is used to optimize rounding
  16679. of floating-point values to 64-bit integer and back to floating
  16680. point. The 'friz' instruction does not return the same value if
  16681. the floating-point number is too large to fit in an integer.
  16682. '-mpointers-to-nested-functions'
  16683. '-mno-pointers-to-nested-functions'
  16684. Generate (do not generate) code to load up the static chain
  16685. register ('r11') when calling through a pointer on AIX and 64-bit
  16686. Linux systems where a function pointer points to a 3-word
  16687. descriptor giving the function address, TOC value to be loaded in
  16688. register 'r2', and static chain value to be loaded in register
  16689. 'r11'. The '-mpointers-to-nested-functions' is on by default. You
  16690. cannot call through pointers to nested functions or pointers to
  16691. functions compiled in other languages that use the static chain if
  16692. you use '-mno-pointers-to-nested-functions'.
  16693. '-msave-toc-indirect'
  16694. '-mno-save-toc-indirect'
  16695. Generate (do not generate) code to save the TOC value in the
  16696. reserved stack location in the function prologue if the function
  16697. calls through a pointer on AIX and 64-bit Linux systems. If the
  16698. TOC value is not saved in the prologue, it is saved just before the
  16699. call through the pointer. The '-mno-save-toc-indirect' option is
  16700. the default.
  16701. '-mcompat-align-parm'
  16702. '-mno-compat-align-parm'
  16703. Generate (do not generate) code to pass structure parameters with a
  16704. maximum alignment of 64 bits, for compatibility with older versions
  16705. of GCC.
  16706. Older versions of GCC (prior to 4.9.0) incorrectly did not align a
  16707. structure parameter on a 128-bit boundary when that structure
  16708. contained a member requiring 128-bit alignment. This is corrected
  16709. in more recent versions of GCC. This option may be used to generate
  16710. code that is compatible with functions compiled with older versions
  16711. of GCC.
  16712. The '-mno-compat-align-parm' option is the default.
  16713. '-mstack-protector-guard=GUARD'
  16714. '-mstack-protector-guard-reg=REG'
  16715. '-mstack-protector-guard-offset=OFFSET'
  16716. Generate stack protection code using canary at GUARD. Supported
  16717. locations are 'global' for global canary or 'tls' for per-thread
  16718. canary in the TLS block (the default with GNU libc version 2.4 or
  16719. later).
  16720. With the latter choice the options
  16721. '-mstack-protector-guard-reg=REG' and
  16722. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  16723. register to use as base register for reading the canary, and from
  16724. what offset from that base register. The default for those is as
  16725. specified in the relevant ABI.
  16726. 
  16727. File: gcc.info, Node: RX Options, Next: S/390 and zSeries Options, Prev: RS/6000 and PowerPC Options, Up: Submodel Options
  16728. 3.18.40 RX Options
  16729. ------------------
  16730. These command-line options are defined for RX targets:
  16731. '-m64bit-doubles'
  16732. '-m32bit-doubles'
  16733. Make the 'double' data type be 64 bits ('-m64bit-doubles') or 32
  16734. bits ('-m32bit-doubles') in size. The default is
  16735. '-m32bit-doubles'. _Note_ RX floating-point hardware only works on
  16736. 32-bit values, which is why the default is '-m32bit-doubles'.
  16737. '-fpu'
  16738. '-nofpu'
  16739. Enables ('-fpu') or disables ('-nofpu') the use of RX
  16740. floating-point hardware. The default is enabled for the RX600
  16741. series and disabled for the RX200 series.
  16742. Floating-point instructions are only generated for 32-bit
  16743. floating-point values, however, so the FPU hardware is not used for
  16744. doubles if the '-m64bit-doubles' option is used.
  16745. _Note_ If the '-fpu' option is enabled then
  16746. '-funsafe-math-optimizations' is also enabled automatically. This
  16747. is because the RX FPU instructions are themselves unsafe.
  16748. '-mcpu=NAME'
  16749. Selects the type of RX CPU to be targeted. Currently three types
  16750. are supported, the generic 'RX600' and 'RX200' series hardware and
  16751. the specific 'RX610' CPU. The default is 'RX600'.
  16752. The only difference between 'RX600' and 'RX610' is that the 'RX610'
  16753. does not support the 'MVTIPL' instruction.
  16754. The 'RX200' series does not have a hardware floating-point unit and
  16755. so '-nofpu' is enabled by default when this type is selected.
  16756. '-mbig-endian-data'
  16757. '-mlittle-endian-data'
  16758. Store data (but not code) in the big-endian format. The default is
  16759. '-mlittle-endian-data', i.e. to store data in the little-endian
  16760. format.
  16761. '-msmall-data-limit=N'
  16762. Specifies the maximum size in bytes of global and static variables
  16763. which can be placed into the small data area. Using the small data
  16764. area can lead to smaller and faster code, but the size of area is
  16765. limited and it is up to the programmer to ensure that the area does
  16766. not overflow. Also when the small data area is used one of the
  16767. RX's registers (usually 'r13') is reserved for use pointing to this
  16768. area, so it is no longer available for use by the compiler. This
  16769. could result in slower and/or larger code if variables are pushed
  16770. onto the stack instead of being held in this register.
  16771. Note, common variables (variables that have not been initialized)
  16772. and constants are not placed into the small data area as they are
  16773. assigned to other sections in the output executable.
  16774. The default value is zero, which disables this feature. Note, this
  16775. feature is not enabled by default with higher optimization levels
  16776. ('-O2' etc) because of the potentially detrimental effects of
  16777. reserving a register. It is up to the programmer to experiment and
  16778. discover whether this feature is of benefit to their program. See
  16779. the description of the '-mpid' option for a description of how the
  16780. actual register to hold the small data area pointer is chosen.
  16781. '-msim'
  16782. '-mno-sim'
  16783. Use the simulator runtime. The default is to use the libgloss
  16784. board-specific runtime.
  16785. '-mas100-syntax'
  16786. '-mno-as100-syntax'
  16787. When generating assembler output use a syntax that is compatible
  16788. with Renesas's AS100 assembler. This syntax can also be handled by
  16789. the GAS assembler, but it has some restrictions so it is not
  16790. generated by default.
  16791. '-mmax-constant-size=N'
  16792. Specifies the maximum size, in bytes, of a constant that can be
  16793. used as an operand in a RX instruction. Although the RX
  16794. instruction set does allow constants of up to 4 bytes in length to
  16795. be used in instructions, a longer value equates to a longer
  16796. instruction. Thus in some circumstances it can be beneficial to
  16797. restrict the size of constants that are used in instructions.
  16798. Constants that are too big are instead placed into a constant pool
  16799. and referenced via register indirection.
  16800. The value N can be between 0 and 4. A value of 0 (the default) or
  16801. 4 means that constants of any size are allowed.
  16802. '-mrelax'
  16803. Enable linker relaxation. Linker relaxation is a process whereby
  16804. the linker attempts to reduce the size of a program by finding
  16805. shorter versions of various instructions. Disabled by default.
  16806. '-mint-register=N'
  16807. Specify the number of registers to reserve for fast interrupt
  16808. handler functions. The value N can be between 0 and 4. A value of
  16809. 1 means that register 'r13' is reserved for the exclusive use of
  16810. fast interrupt handlers. A value of 2 reserves 'r13' and 'r12'. A
  16811. value of 3 reserves 'r13', 'r12' and 'r11', and a value of 4
  16812. reserves 'r13' through 'r10'. A value of 0, the default, does not
  16813. reserve any registers.
  16814. '-msave-acc-in-interrupts'
  16815. Specifies that interrupt handler functions should preserve the
  16816. accumulator register. This is only necessary if normal code might
  16817. use the accumulator register, for example because it performs
  16818. 64-bit multiplications. The default is to ignore the accumulator
  16819. as this makes the interrupt handlers faster.
  16820. '-mpid'
  16821. '-mno-pid'
  16822. Enables the generation of position independent data. When enabled
  16823. any access to constant data is done via an offset from a base
  16824. address held in a register. This allows the location of constant
  16825. data to be determined at run time without requiring the executable
  16826. to be relocated, which is a benefit to embedded applications with
  16827. tight memory constraints. Data that can be modified is not
  16828. affected by this option.
  16829. Note, using this feature reserves a register, usually 'r13', for
  16830. the constant data base address. This can result in slower and/or
  16831. larger code, especially in complicated functions.
  16832. The actual register chosen to hold the constant data base address
  16833. depends upon whether the '-msmall-data-limit' and/or the
  16834. '-mint-register' command-line options are enabled. Starting with
  16835. register 'r13' and proceeding downwards, registers are allocated
  16836. first to satisfy the requirements of '-mint-register', then '-mpid'
  16837. and finally '-msmall-data-limit'. Thus it is possible for the
  16838. small data area register to be 'r8' if both '-mint-register=4' and
  16839. '-mpid' are specified on the command line.
  16840. By default this feature is not enabled. The default can be
  16841. restored via the '-mno-pid' command-line option.
  16842. '-mno-warn-multiple-fast-interrupts'
  16843. '-mwarn-multiple-fast-interrupts'
  16844. Prevents GCC from issuing a warning message if it finds more than
  16845. one fast interrupt handler when it is compiling a file. The
  16846. default is to issue a warning for each extra fast interrupt handler
  16847. found, as the RX only supports one such interrupt.
  16848. '-mallow-string-insns'
  16849. '-mno-allow-string-insns'
  16850. Enables or disables the use of the string manipulation instructions
  16851. 'SMOVF', 'SCMPU', 'SMOVB', 'SMOVU', 'SUNTIL' 'SWHILE' and also the
  16852. 'RMPA' instruction. These instructions may prefetch data, which is
  16853. not safe to do if accessing an I/O register. (See section 12.2.7
  16854. of the RX62N Group User's Manual for more information).
  16855. The default is to allow these instructions, but it is not possible
  16856. for GCC to reliably detect all circumstances where a string
  16857. instruction might be used to access an I/O register, so their use
  16858. cannot be disabled automatically. Instead it is reliant upon the
  16859. programmer to use the '-mno-allow-string-insns' option if their
  16860. program accesses I/O space.
  16861. When the instructions are enabled GCC defines the C preprocessor
  16862. symbol '__RX_ALLOW_STRING_INSNS__', otherwise it defines the symbol
  16863. '__RX_DISALLOW_STRING_INSNS__'.
  16864. '-mjsr'
  16865. '-mno-jsr'
  16866. Use only (or not only) 'JSR' instructions to access functions.
  16867. This option can be used when code size exceeds the range of 'BSR'
  16868. instructions. Note that '-mno-jsr' does not mean to not use 'JSR'
  16869. but instead means that any type of branch may be used.
  16870. _Note:_ The generic GCC command-line option '-ffixed-REG' has special
  16871. significance to the RX port when used with the 'interrupt' function
  16872. attribute. This attribute indicates a function intended to process fast
  16873. interrupts. GCC ensures that it only uses the registers 'r10', 'r11',
  16874. 'r12' and/or 'r13' and only provided that the normal use of the
  16875. corresponding registers have been restricted via the '-ffixed-REG' or
  16876. '-mint-register' command-line options.
  16877. 
  16878. File: gcc.info, Node: S/390 and zSeries Options, Next: Score Options, Prev: RX Options, Up: Submodel Options
  16879. 3.18.41 S/390 and zSeries Options
  16880. ---------------------------------
  16881. These are the '-m' options defined for the S/390 and zSeries
  16882. architecture.
  16883. '-mhard-float'
  16884. '-msoft-float'
  16885. Use (do not use) the hardware floating-point instructions and
  16886. registers for floating-point operations. When '-msoft-float' is
  16887. specified, functions in 'libgcc.a' are used to perform
  16888. floating-point operations. When '-mhard-float' is specified, the
  16889. compiler generates IEEE floating-point instructions. This is the
  16890. default.
  16891. '-mhard-dfp'
  16892. '-mno-hard-dfp'
  16893. Use (do not use) the hardware decimal-floating-point instructions
  16894. for decimal-floating-point operations. When '-mno-hard-dfp' is
  16895. specified, functions in 'libgcc.a' are used to perform
  16896. decimal-floating-point operations. When '-mhard-dfp' is specified,
  16897. the compiler generates decimal-floating-point hardware
  16898. instructions. This is the default for '-march=z9-ec' or higher.
  16899. '-mlong-double-64'
  16900. '-mlong-double-128'
  16901. These switches control the size of 'long double' type. A size of
  16902. 64 bits makes the 'long double' type equivalent to the 'double'
  16903. type. This is the default.
  16904. '-mbackchain'
  16905. '-mno-backchain'
  16906. Store (do not store) the address of the caller's frame as backchain
  16907. pointer into the callee's stack frame. A backchain may be needed
  16908. to allow debugging using tools that do not understand DWARF call
  16909. frame information. When '-mno-packed-stack' is in effect, the
  16910. backchain pointer is stored at the bottom of the stack frame; when
  16911. '-mpacked-stack' is in effect, the backchain is placed into the
  16912. topmost word of the 96/160 byte register save area.
  16913. In general, code compiled with '-mbackchain' is call-compatible
  16914. with code compiled with '-mmo-backchain'; however, use of the
  16915. backchain for debugging purposes usually requires that the whole
  16916. binary is built with '-mbackchain'. Note that the combination of
  16917. '-mbackchain', '-mpacked-stack' and '-mhard-float' is not
  16918. supported. In order to build a linux kernel use '-msoft-float'.
  16919. The default is to not maintain the backchain.
  16920. '-mpacked-stack'
  16921. '-mno-packed-stack'
  16922. Use (do not use) the packed stack layout. When '-mno-packed-stack'
  16923. is specified, the compiler uses the all fields of the 96/160 byte
  16924. register save area only for their default purpose; unused fields
  16925. still take up stack space. When '-mpacked-stack' is specified,
  16926. register save slots are densely packed at the top of the register
  16927. save area; unused space is reused for other purposes, allowing for
  16928. more efficient use of the available stack space. However, when
  16929. '-mbackchain' is also in effect, the topmost word of the save area
  16930. is always used to store the backchain, and the return address
  16931. register is always saved two words below the backchain.
  16932. As long as the stack frame backchain is not used, code generated
  16933. with '-mpacked-stack' is call-compatible with code generated with
  16934. '-mno-packed-stack'. Note that some non-FSF releases of GCC 2.95
  16935. for S/390 or zSeries generated code that uses the stack frame
  16936. backchain at run time, not just for debugging purposes. Such code
  16937. is not call-compatible with code compiled with '-mpacked-stack'.
  16938. Also, note that the combination of '-mbackchain', '-mpacked-stack'
  16939. and '-mhard-float' is not supported. In order to build a linux
  16940. kernel use '-msoft-float'.
  16941. The default is to not use the packed stack layout.
  16942. '-msmall-exec'
  16943. '-mno-small-exec'
  16944. Generate (or do not generate) code using the 'bras' instruction to
  16945. do subroutine calls. This only works reliably if the total
  16946. executable size does not exceed 64k. The default is to use the
  16947. 'basr' instruction instead, which does not have this limitation.
  16948. '-m64'
  16949. '-m31'
  16950. When '-m31' is specified, generate code compliant to the GNU/Linux
  16951. for S/390 ABI. When '-m64' is specified, generate code compliant
  16952. to the GNU/Linux for zSeries ABI. This allows GCC in particular to
  16953. generate 64-bit instructions. For the 's390' targets, the default
  16954. is '-m31', while the 's390x' targets default to '-m64'.
  16955. '-mzarch'
  16956. '-mesa'
  16957. When '-mzarch' is specified, generate code using the instructions
  16958. available on z/Architecture. When '-mesa' is specified, generate
  16959. code using the instructions available on ESA/390. Note that
  16960. '-mesa' is not possible with '-m64'. When generating code
  16961. compliant to the GNU/Linux for S/390 ABI, the default is '-mesa'.
  16962. When generating code compliant to the GNU/Linux for zSeries ABI,
  16963. the default is '-mzarch'.
  16964. '-mhtm'
  16965. '-mno-htm'
  16966. The '-mhtm' option enables a set of builtins making use of
  16967. instructions available with the transactional execution facility
  16968. introduced with the IBM zEnterprise EC12 machine generation *note
  16969. S/390 System z Built-in Functions::. '-mhtm' is enabled by default
  16970. when using '-march=zEC12'.
  16971. '-mvx'
  16972. '-mno-vx'
  16973. When '-mvx' is specified, generate code using the instructions
  16974. available with the vector extension facility introduced with the
  16975. IBM z13 machine generation. This option changes the ABI for some
  16976. vector type values with regard to alignment and calling
  16977. conventions. In case vector type values are being used in an
  16978. ABI-relevant context a GAS '.gnu_attribute' command will be added
  16979. to mark the resulting binary with the ABI used. '-mvx' is enabled
  16980. by default when using '-march=z13'.
  16981. '-mzvector'
  16982. '-mno-zvector'
  16983. The '-mzvector' option enables vector language extensions and
  16984. builtins using instructions available with the vector extension
  16985. facility introduced with the IBM z13 machine generation. This
  16986. option adds support for 'vector' to be used as a keyword to define
  16987. vector type variables and arguments. 'vector' is only available
  16988. when GNU extensions are enabled. It will not be expanded when
  16989. requesting strict standard compliance e.g. with '-std=c99'. In
  16990. addition to the GCC low-level builtins '-mzvector' enables a set of
  16991. builtins added for compatibility with AltiVec-style implementations
  16992. like Power and Cell. In order to make use of these builtins the
  16993. header file 'vecintrin.h' needs to be included. '-mzvector' is
  16994. disabled by default.
  16995. '-mmvcle'
  16996. '-mno-mvcle'
  16997. Generate (or do not generate) code using the 'mvcle' instruction to
  16998. perform block moves. When '-mno-mvcle' is specified, use a 'mvc'
  16999. loop instead. This is the default unless optimizing for size.
  17000. '-mdebug'
  17001. '-mno-debug'
  17002. Print (or do not print) additional debug information when
  17003. compiling. The default is to not print debug information.
  17004. '-march=CPU-TYPE'
  17005. Generate code that runs on CPU-TYPE, which is the name of a system
  17006. representing a certain processor type. Possible values for
  17007. CPU-TYPE are 'z900'/'arch5', 'z990'/'arch6', 'z9-109',
  17008. 'z9-ec'/'arch7', 'z10'/'arch8', 'z196'/'arch9', 'zEC12',
  17009. 'z13'/'arch11', 'z14'/'arch12', and 'native'.
  17010. The default is '-march=z900'. 'g5'/'arch3' and 'g6' are deprecated
  17011. and will be removed with future releases.
  17012. Specifying 'native' as cpu type can be used to select the best
  17013. architecture option for the host processor. '-march=native' has no
  17014. effect if GCC does not recognize the processor.
  17015. '-mtune=CPU-TYPE'
  17016. Tune to CPU-TYPE everything applicable about the generated code,
  17017. except for the ABI and the set of available instructions. The list
  17018. of CPU-TYPE values is the same as for '-march'. The default is the
  17019. value used for '-march'.
  17020. '-mtpf-trace'
  17021. '-mno-tpf-trace'
  17022. Generate code that adds (does not add) in TPF OS specific branches
  17023. to trace routines in the operating system. This option is off by
  17024. default, even when compiling for the TPF OS.
  17025. '-mfused-madd'
  17026. '-mno-fused-madd'
  17027. Generate code that uses (does not use) the floating-point multiply
  17028. and accumulate instructions. These instructions are generated by
  17029. default if hardware floating point is used.
  17030. '-mwarn-framesize=FRAMESIZE'
  17031. Emit a warning if the current function exceeds the given frame
  17032. size. Because this is a compile-time check it doesn't need to be a
  17033. real problem when the program runs. It is intended to identify
  17034. functions that most probably cause a stack overflow. It is useful
  17035. to be used in an environment with limited stack size e.g. the linux
  17036. kernel.
  17037. '-mwarn-dynamicstack'
  17038. Emit a warning if the function calls 'alloca' or uses
  17039. dynamically-sized arrays. This is generally a bad idea with a
  17040. limited stack size.
  17041. '-mstack-guard=STACK-GUARD'
  17042. '-mstack-size=STACK-SIZE'
  17043. If these options are provided the S/390 back end emits additional
  17044. instructions in the function prologue that trigger a trap if the
  17045. stack size is STACK-GUARD bytes above the STACK-SIZE (remember that
  17046. the stack on S/390 grows downward). If the STACK-GUARD option is
  17047. omitted the smallest power of 2 larger than the frame size of the
  17048. compiled function is chosen. These options are intended to be used
  17049. to help debugging stack overflow problems. The additionally
  17050. emitted code causes only little overhead and hence can also be used
  17051. in production-like systems without greater performance degradation.
  17052. The given values have to be exact powers of 2 and STACK-SIZE has to
  17053. be greater than STACK-GUARD without exceeding 64k. In order to be
  17054. efficient the extra code makes the assumption that the stack starts
  17055. at an address aligned to the value given by STACK-SIZE. The
  17056. STACK-GUARD option can only be used in conjunction with STACK-SIZE.
  17057. '-mhotpatch=PRE-HALFWORDS,POST-HALFWORDS'
  17058. If the hotpatch option is enabled, a "hot-patching" function
  17059. prologue is generated for all functions in the compilation unit.
  17060. The funtion label is prepended with the given number of two-byte
  17061. NOP instructions (PRE-HALFWORDS, maximum 1000000). After the
  17062. label, 2 * POST-HALFWORDS bytes are appended, using the largest NOP
  17063. like instructions the architecture allows (maximum 1000000).
  17064. If both arguments are zero, hotpatching is disabled.
  17065. This option can be overridden for individual functions with the
  17066. 'hotpatch' attribute.
  17067. 
  17068. File: gcc.info, Node: Score Options, Next: SH Options, Prev: S/390 and zSeries Options, Up: Submodel Options
  17069. 3.18.42 Score Options
  17070. ---------------------
  17071. These options are defined for Score implementations:
  17072. '-meb'
  17073. Compile code for big-endian mode. This is the default.
  17074. '-mel'
  17075. Compile code for little-endian mode.
  17076. '-mnhwloop'
  17077. Disable generation of 'bcnz' instructions.
  17078. '-muls'
  17079. Enable generation of unaligned load and store instructions.
  17080. '-mmac'
  17081. Enable the use of multiply-accumulate instructions. Disabled by
  17082. default.
  17083. '-mscore5'
  17084. Specify the SCORE5 as the target architecture.
  17085. '-mscore5u'
  17086. Specify the SCORE5U of the target architecture.
  17087. '-mscore7'
  17088. Specify the SCORE7 as the target architecture. This is the
  17089. default.
  17090. '-mscore7d'
  17091. Specify the SCORE7D as the target architecture.
  17092. 
  17093. File: gcc.info, Node: SH Options, Next: Solaris 2 Options, Prev: Score Options, Up: Submodel Options
  17094. 3.18.43 SH Options
  17095. ------------------
  17096. These '-m' options are defined for the SH implementations:
  17097. '-m1'
  17098. Generate code for the SH1.
  17099. '-m2'
  17100. Generate code for the SH2.
  17101. '-m2e'
  17102. Generate code for the SH2e.
  17103. '-m2a-nofpu'
  17104. Generate code for the SH2a without FPU, or for a SH2a-FPU in such a
  17105. way that the floating-point unit is not used.
  17106. '-m2a-single-only'
  17107. Generate code for the SH2a-FPU, in such a way that no
  17108. double-precision floating-point operations are used.
  17109. '-m2a-single'
  17110. Generate code for the SH2a-FPU assuming the floating-point unit is
  17111. in single-precision mode by default.
  17112. '-m2a'
  17113. Generate code for the SH2a-FPU assuming the floating-point unit is
  17114. in double-precision mode by default.
  17115. '-m3'
  17116. Generate code for the SH3.
  17117. '-m3e'
  17118. Generate code for the SH3e.
  17119. '-m4-nofpu'
  17120. Generate code for the SH4 without a floating-point unit.
  17121. '-m4-single-only'
  17122. Generate code for the SH4 with a floating-point unit that only
  17123. supports single-precision arithmetic.
  17124. '-m4-single'
  17125. Generate code for the SH4 assuming the floating-point unit is in
  17126. single-precision mode by default.
  17127. '-m4'
  17128. Generate code for the SH4.
  17129. '-m4-100'
  17130. Generate code for SH4-100.
  17131. '-m4-100-nofpu'
  17132. Generate code for SH4-100 in such a way that the floating-point
  17133. unit is not used.
  17134. '-m4-100-single'
  17135. Generate code for SH4-100 assuming the floating-point unit is in
  17136. single-precision mode by default.
  17137. '-m4-100-single-only'
  17138. Generate code for SH4-100 in such a way that no double-precision
  17139. floating-point operations are used.
  17140. '-m4-200'
  17141. Generate code for SH4-200.
  17142. '-m4-200-nofpu'
  17143. Generate code for SH4-200 without in such a way that the
  17144. floating-point unit is not used.
  17145. '-m4-200-single'
  17146. Generate code for SH4-200 assuming the floating-point unit is in
  17147. single-precision mode by default.
  17148. '-m4-200-single-only'
  17149. Generate code for SH4-200 in such a way that no double-precision
  17150. floating-point operations are used.
  17151. '-m4-300'
  17152. Generate code for SH4-300.
  17153. '-m4-300-nofpu'
  17154. Generate code for SH4-300 without in such a way that the
  17155. floating-point unit is not used.
  17156. '-m4-300-single'
  17157. Generate code for SH4-300 in such a way that no double-precision
  17158. floating-point operations are used.
  17159. '-m4-300-single-only'
  17160. Generate code for SH4-300 in such a way that no double-precision
  17161. floating-point operations are used.
  17162. '-m4-340'
  17163. Generate code for SH4-340 (no MMU, no FPU).
  17164. '-m4-500'
  17165. Generate code for SH4-500 (no FPU). Passes '-isa=sh4-nofpu' to the
  17166. assembler.
  17167. '-m4a-nofpu'
  17168. Generate code for the SH4al-dsp, or for a SH4a in such a way that
  17169. the floating-point unit is not used.
  17170. '-m4a-single-only'
  17171. Generate code for the SH4a, in such a way that no double-precision
  17172. floating-point operations are used.
  17173. '-m4a-single'
  17174. Generate code for the SH4a assuming the floating-point unit is in
  17175. single-precision mode by default.
  17176. '-m4a'
  17177. Generate code for the SH4a.
  17178. '-m4al'
  17179. Same as '-m4a-nofpu', except that it implicitly passes '-dsp' to
  17180. the assembler. GCC doesn't generate any DSP instructions at the
  17181. moment.
  17182. '-mb'
  17183. Compile code for the processor in big-endian mode.
  17184. '-ml'
  17185. Compile code for the processor in little-endian mode.
  17186. '-mdalign'
  17187. Align doubles at 64-bit boundaries. Note that this changes the
  17188. calling conventions, and thus some functions from the standard C
  17189. library do not work unless you recompile it first with '-mdalign'.
  17190. '-mrelax'
  17191. Shorten some address references at link time, when possible; uses
  17192. the linker option '-relax'.
  17193. '-mbigtable'
  17194. Use 32-bit offsets in 'switch' tables. The default is to use
  17195. 16-bit offsets.
  17196. '-mbitops'
  17197. Enable the use of bit manipulation instructions on SH2A.
  17198. '-mfmovd'
  17199. Enable the use of the instruction 'fmovd'. Check '-mdalign' for
  17200. alignment constraints.
  17201. '-mrenesas'
  17202. Comply with the calling conventions defined by Renesas.
  17203. '-mno-renesas'
  17204. Comply with the calling conventions defined for GCC before the
  17205. Renesas conventions were available. This option is the default for
  17206. all targets of the SH toolchain.
  17207. '-mnomacsave'
  17208. Mark the 'MAC' register as call-clobbered, even if '-mrenesas' is
  17209. given.
  17210. '-mieee'
  17211. '-mno-ieee'
  17212. Control the IEEE compliance of floating-point comparisons, which
  17213. affects the handling of cases where the result of a comparison is
  17214. unordered. By default '-mieee' is implicitly enabled. If
  17215. '-ffinite-math-only' is enabled '-mno-ieee' is implicitly set,
  17216. which results in faster floating-point greater-equal and less-equal
  17217. comparisons. The implicit settings can be overridden by specifying
  17218. either '-mieee' or '-mno-ieee'.
  17219. '-minline-ic_invalidate'
  17220. Inline code to invalidate instruction cache entries after setting
  17221. up nested function trampolines. This option has no effect if
  17222. '-musermode' is in effect and the selected code generation option
  17223. (e.g. '-m4') does not allow the use of the 'icbi' instruction. If
  17224. the selected code generation option does not allow the use of the
  17225. 'icbi' instruction, and '-musermode' is not in effect, the inlined
  17226. code manipulates the instruction cache address array directly with
  17227. an associative write. This not only requires privileged mode at
  17228. run time, but it also fails if the cache line had been mapped via
  17229. the TLB and has become unmapped.
  17230. '-misize'
  17231. Dump instruction size and location in the assembly code.
  17232. '-mpadstruct'
  17233. This option is deprecated. It pads structures to multiple of 4
  17234. bytes, which is incompatible with the SH ABI.
  17235. '-matomic-model=MODEL'
  17236. Sets the model of atomic operations and additional parameters as a
  17237. comma separated list. For details on the atomic built-in functions
  17238. see *note __atomic Builtins::. The following models and parameters
  17239. are supported:
  17240. 'none'
  17241. Disable compiler generated atomic sequences and emit library
  17242. calls for atomic operations. This is the default if the
  17243. target is not 'sh*-*-linux*'.
  17244. 'soft-gusa'
  17245. Generate GNU/Linux compatible gUSA software atomic sequences
  17246. for the atomic built-in functions. The generated atomic
  17247. sequences require additional support from the
  17248. interrupt/exception handling code of the system and are only
  17249. suitable for SH3* and SH4* single-core systems. This option
  17250. is enabled by default when the target is 'sh*-*-linux*' and
  17251. SH3* or SH4*. When the target is SH4A, this option also
  17252. partially utilizes the hardware atomic instructions 'movli.l'
  17253. and 'movco.l' to create more efficient code, unless 'strict'
  17254. is specified.
  17255. 'soft-tcb'
  17256. Generate software atomic sequences that use a variable in the
  17257. thread control block. This is a variation of the gUSA
  17258. sequences which can also be used on SH1* and SH2* targets.
  17259. The generated atomic sequences require additional support from
  17260. the interrupt/exception handling code of the system and are
  17261. only suitable for single-core systems. When using this model,
  17262. the 'gbr-offset=' parameter has to be specified as well.
  17263. 'soft-imask'
  17264. Generate software atomic sequences that temporarily disable
  17265. interrupts by setting 'SR.IMASK = 1111'. This model works
  17266. only when the program runs in privileged mode and is only
  17267. suitable for single-core systems. Additional support from the
  17268. interrupt/exception handling code of the system is not
  17269. required. This model is enabled by default when the target is
  17270. 'sh*-*-linux*' and SH1* or SH2*.
  17271. 'hard-llcs'
  17272. Generate hardware atomic sequences using the 'movli.l' and
  17273. 'movco.l' instructions only. This is only available on SH4A
  17274. and is suitable for multi-core systems. Since the hardware
  17275. instructions support only 32 bit atomic variables access to 8
  17276. or 16 bit variables is emulated with 32 bit accesses. Code
  17277. compiled with this option is also compatible with other
  17278. software atomic model interrupt/exception handling systems if
  17279. executed on an SH4A system. Additional support from the
  17280. interrupt/exception handling code of the system is not
  17281. required for this model.
  17282. 'gbr-offset='
  17283. This parameter specifies the offset in bytes of the variable
  17284. in the thread control block structure that should be used by
  17285. the generated atomic sequences when the 'soft-tcb' model has
  17286. been selected. For other models this parameter is ignored.
  17287. The specified value must be an integer multiple of four and in
  17288. the range 0-1020.
  17289. 'strict'
  17290. This parameter prevents mixed usage of multiple atomic models,
  17291. even if they are compatible, and makes the compiler generate
  17292. atomic sequences of the specified model only.
  17293. '-mtas'
  17294. Generate the 'tas.b' opcode for '__atomic_test_and_set'. Notice
  17295. that depending on the particular hardware and software
  17296. configuration this can degrade overall performance due to the
  17297. operand cache line flushes that are implied by the 'tas.b'
  17298. instruction. On multi-core SH4A processors the 'tas.b' instruction
  17299. must be used with caution since it can result in data corruption
  17300. for certain cache configurations.
  17301. '-mprefergot'
  17302. When generating position-independent code, emit function calls
  17303. using the Global Offset Table instead of the Procedure Linkage
  17304. Table.
  17305. '-musermode'
  17306. '-mno-usermode'
  17307. Don't allow (allow) the compiler generating privileged mode code.
  17308. Specifying '-musermode' also implies '-mno-inline-ic_invalidate' if
  17309. the inlined code would not work in user mode. '-musermode' is the
  17310. default when the target is 'sh*-*-linux*'. If the target is SH1*
  17311. or SH2* '-musermode' has no effect, since there is no user mode.
  17312. '-multcost=NUMBER'
  17313. Set the cost to assume for a multiply insn.
  17314. '-mdiv=STRATEGY'
  17315. Set the division strategy to be used for integer division
  17316. operations. STRATEGY can be one of:
  17317. 'call-div1'
  17318. Calls a library function that uses the single-step division
  17319. instruction 'div1' to perform the operation. Division by zero
  17320. calculates an unspecified result and does not trap. This is
  17321. the default except for SH4, SH2A and SHcompact.
  17322. 'call-fp'
  17323. Calls a library function that performs the operation in double
  17324. precision floating point. Division by zero causes a
  17325. floating-point exception. This is the default for SHcompact
  17326. with FPU. Specifying this for targets that do not have a
  17327. double precision FPU defaults to 'call-div1'.
  17328. 'call-table'
  17329. Calls a library function that uses a lookup table for small
  17330. divisors and the 'div1' instruction with case distinction for
  17331. larger divisors. Division by zero calculates an unspecified
  17332. result and does not trap. This is the default for SH4.
  17333. Specifying this for targets that do not have dynamic shift
  17334. instructions defaults to 'call-div1'.
  17335. When a division strategy has not been specified the default
  17336. strategy is selected based on the current target. For SH2A the
  17337. default strategy is to use the 'divs' and 'divu' instructions
  17338. instead of library function calls.
  17339. '-maccumulate-outgoing-args'
  17340. Reserve space once for outgoing arguments in the function prologue
  17341. rather than around each call. Generally beneficial for performance
  17342. and size. Also needed for unwinding to avoid changing the stack
  17343. frame around conditional code.
  17344. '-mdivsi3_libfunc=NAME'
  17345. Set the name of the library function used for 32-bit signed
  17346. division to NAME. This only affects the name used in the 'call'
  17347. division strategies, and the compiler still expects the same sets
  17348. of input/output/clobbered registers as if this option were not
  17349. present.
  17350. '-mfixed-range=REGISTER-RANGE'
  17351. Generate code treating the given register range as fixed registers.
  17352. A fixed register is one that the register allocator can not use.
  17353. This is useful when compiling kernel code. A register range is
  17354. specified as two registers separated by a dash. Multiple register
  17355. ranges can be specified separated by a comma.
  17356. '-mbranch-cost=NUM'
  17357. Assume NUM to be the cost for a branch instruction. Higher numbers
  17358. make the compiler try to generate more branch-free code if
  17359. possible. If not specified the value is selected depending on the
  17360. processor type that is being compiled for.
  17361. '-mzdcbranch'
  17362. '-mno-zdcbranch'
  17363. Assume (do not assume) that zero displacement conditional branch
  17364. instructions 'bt' and 'bf' are fast. If '-mzdcbranch' is
  17365. specified, the compiler prefers zero displacement branch code
  17366. sequences. This is enabled by default when generating code for SH4
  17367. and SH4A. It can be explicitly disabled by specifying
  17368. '-mno-zdcbranch'.
  17369. '-mcbranch-force-delay-slot'
  17370. Force the usage of delay slots for conditional branches, which
  17371. stuffs the delay slot with a 'nop' if a suitable instruction cannot
  17372. be found. By default this option is disabled. It can be enabled
  17373. to work around hardware bugs as found in the original SH7055.
  17374. '-mfused-madd'
  17375. '-mno-fused-madd'
  17376. Generate code that uses (does not use) the floating-point multiply
  17377. and accumulate instructions. These instructions are generated by
  17378. default if hardware floating point is used. The machine-dependent
  17379. '-mfused-madd' option is now mapped to the machine-independent
  17380. '-ffp-contract=fast' option, and '-mno-fused-madd' is mapped to
  17381. '-ffp-contract=off'.
  17382. '-mfsca'
  17383. '-mno-fsca'
  17384. Allow or disallow the compiler to emit the 'fsca' instruction for
  17385. sine and cosine approximations. The option '-mfsca' must be used
  17386. in combination with '-funsafe-math-optimizations'. It is enabled
  17387. by default when generating code for SH4A. Using '-mno-fsca'
  17388. disables sine and cosine approximations even if
  17389. '-funsafe-math-optimizations' is in effect.
  17390. '-mfsrra'
  17391. '-mno-fsrra'
  17392. Allow or disallow the compiler to emit the 'fsrra' instruction for
  17393. reciprocal square root approximations. The option '-mfsrra' must
  17394. be used in combination with '-funsafe-math-optimizations' and
  17395. '-ffinite-math-only'. It is enabled by default when generating
  17396. code for SH4A. Using '-mno-fsrra' disables reciprocal square root
  17397. approximations even if '-funsafe-math-optimizations' and
  17398. '-ffinite-math-only' are in effect.
  17399. '-mpretend-cmove'
  17400. Prefer zero-displacement conditional branches for conditional move
  17401. instruction patterns. This can result in faster code on the SH4
  17402. processor.
  17403. '-mfdpic'
  17404. Generate code using the FDPIC ABI.
  17405. 
  17406. File: gcc.info, Node: Solaris 2 Options, Next: SPARC Options, Prev: SH Options, Up: Submodel Options
  17407. 3.18.44 Solaris 2 Options
  17408. -------------------------
  17409. These '-m' options are supported on Solaris 2:
  17410. '-mclear-hwcap'
  17411. '-mclear-hwcap' tells the compiler to remove the hardware
  17412. capabilities generated by the Solaris assembler. This is only
  17413. necessary when object files use ISA extensions not supported by the
  17414. current machine, but check at runtime whether or not to use them.
  17415. '-mimpure-text'
  17416. '-mimpure-text', used in addition to '-shared', tells the compiler
  17417. to not pass '-z text' to the linker when linking a shared object.
  17418. Using this option, you can link position-dependent code into a
  17419. shared object.
  17420. '-mimpure-text' suppresses the "relocations remain against
  17421. allocatable but non-writable sections" linker error message.
  17422. However, the necessary relocations trigger copy-on-write, and the
  17423. shared object is not actually shared across processes. Instead of
  17424. using '-mimpure-text', you should compile all source code with
  17425. '-fpic' or '-fPIC'.
  17426. These switches are supported in addition to the above on Solaris 2:
  17427. '-pthreads'
  17428. This is a synonym for '-pthread'.
  17429. 
  17430. File: gcc.info, Node: SPARC Options, Next: SPU Options, Prev: Solaris 2 Options, Up: Submodel Options
  17431. 3.18.45 SPARC Options
  17432. ---------------------
  17433. These '-m' options are supported on the SPARC:
  17434. '-mno-app-regs'
  17435. '-mapp-regs'
  17436. Specify '-mapp-regs' to generate output using the global registers
  17437. 2 through 4, which the SPARC SVR4 ABI reserves for applications.
  17438. Like the global register 1, each global register 2 through 4 is
  17439. then treated as an allocable register that is clobbered by function
  17440. calls. This is the default.
  17441. To be fully SVR4 ABI-compliant at the cost of some performance
  17442. loss, specify '-mno-app-regs'. You should compile libraries and
  17443. system software with this option.
  17444. '-mflat'
  17445. '-mno-flat'
  17446. With '-mflat', the compiler does not generate save/restore
  17447. instructions and uses a "flat" or single register window model.
  17448. This model is compatible with the regular register window model.
  17449. The local registers and the input registers (0-5) are still treated
  17450. as "call-saved" registers and are saved on the stack as needed.
  17451. With '-mno-flat' (the default), the compiler generates save/restore
  17452. instructions (except for leaf functions). This is the normal
  17453. operating mode.
  17454. '-mfpu'
  17455. '-mhard-float'
  17456. Generate output containing floating-point instructions. This is
  17457. the default.
  17458. '-mno-fpu'
  17459. '-msoft-float'
  17460. Generate output containing library calls for floating point.
  17461. *Warning:* the requisite libraries are not available for all SPARC
  17462. targets. Normally the facilities of the machine's usual C compiler
  17463. are used, but this cannot be done directly in cross-compilation.
  17464. You must make your own arrangements to provide suitable library
  17465. functions for cross-compilation. The embedded targets
  17466. 'sparc-*-aout' and 'sparclite-*-*' do provide software
  17467. floating-point support.
  17468. '-msoft-float' changes the calling convention in the output file;
  17469. therefore, it is only useful if you compile _all_ of a program with
  17470. this option. In particular, you need to compile 'libgcc.a', the
  17471. library that comes with GCC, with '-msoft-float' in order for this
  17472. to work.
  17473. '-mhard-quad-float'
  17474. Generate output containing quad-word (long double) floating-point
  17475. instructions.
  17476. '-msoft-quad-float'
  17477. Generate output containing library calls for quad-word (long
  17478. double) floating-point instructions. The functions called are
  17479. those specified in the SPARC ABI. This is the default.
  17480. As of this writing, there are no SPARC implementations that have
  17481. hardware support for the quad-word floating-point instructions.
  17482. They all invoke a trap handler for one of these instructions, and
  17483. then the trap handler emulates the effect of the instruction.
  17484. Because of the trap handler overhead, this is much slower than
  17485. calling the ABI library routines. Thus the '-msoft-quad-float'
  17486. option is the default.
  17487. '-mno-unaligned-doubles'
  17488. '-munaligned-doubles'
  17489. Assume that doubles have 8-byte alignment. This is the default.
  17490. With '-munaligned-doubles', GCC assumes that doubles have 8-byte
  17491. alignment only if they are contained in another type, or if they
  17492. have an absolute address. Otherwise, it assumes they have 4-byte
  17493. alignment. Specifying this option avoids some rare compatibility
  17494. problems with code generated by other compilers. It is not the
  17495. default because it results in a performance loss, especially for
  17496. floating-point code.
  17497. '-muser-mode'
  17498. '-mno-user-mode'
  17499. Do not generate code that can only run in supervisor mode. This is
  17500. relevant only for the 'casa' instruction emitted for the LEON3
  17501. processor. This is the default.
  17502. '-mfaster-structs'
  17503. '-mno-faster-structs'
  17504. With '-mfaster-structs', the compiler assumes that structures
  17505. should have 8-byte alignment. This enables the use of pairs of
  17506. 'ldd' and 'std' instructions for copies in structure assignment, in
  17507. place of twice as many 'ld' and 'st' pairs. However, the use of
  17508. this changed alignment directly violates the SPARC ABI. Thus, it's
  17509. intended only for use on targets where the developer acknowledges
  17510. that their resulting code is not directly in line with the rules of
  17511. the ABI.
  17512. '-mstd-struct-return'
  17513. '-mno-std-struct-return'
  17514. With '-mstd-struct-return', the compiler generates checking code in
  17515. functions returning structures or unions to detect size mismatches
  17516. between the two sides of function calls, as per the 32-bit ABI.
  17517. The default is '-mno-std-struct-return'. This option has no effect
  17518. in 64-bit mode.
  17519. '-mlra'
  17520. '-mno-lra'
  17521. Enable Local Register Allocation. This is the default for SPARC
  17522. since GCC 7 so '-mno-lra' needs to be passed to get old Reload.
  17523. '-mcpu=CPU_TYPE'
  17524. Set the instruction set, register set, and instruction scheduling
  17525. parameters for machine type CPU_TYPE. Supported values for
  17526. CPU_TYPE are 'v7', 'cypress', 'v8', 'supersparc', 'hypersparc',
  17527. 'leon', 'leon3', 'leon3v7', 'sparclite', 'f930', 'f934',
  17528. 'sparclite86x', 'sparclet', 'tsc701', 'v9', 'ultrasparc',
  17529. 'ultrasparc3', 'niagara', 'niagara2', 'niagara3', 'niagara4',
  17530. 'niagara7' and 'm8'.
  17531. Native Solaris and GNU/Linux toolchains also support the value
  17532. 'native', which selects the best architecture option for the host
  17533. processor. '-mcpu=native' has no effect if GCC does not recognize
  17534. the processor.
  17535. Default instruction scheduling parameters are used for values that
  17536. select an architecture and not an implementation. These are 'v7',
  17537. 'v8', 'sparclite', 'sparclet', 'v9'.
  17538. Here is a list of each supported architecture and their supported
  17539. implementations.
  17540. v7
  17541. cypress, leon3v7
  17542. v8
  17543. supersparc, hypersparc, leon, leon3
  17544. sparclite
  17545. f930, f934, sparclite86x
  17546. sparclet
  17547. tsc701
  17548. v9
  17549. ultrasparc, ultrasparc3, niagara, niagara2, niagara3,
  17550. niagara4, niagara7, m8
  17551. By default (unless configured otherwise), GCC generates code for
  17552. the V7 variant of the SPARC architecture. With '-mcpu=cypress',
  17553. the compiler additionally optimizes it for the Cypress CY7C602
  17554. chip, as used in the SPARCStation/SPARCServer 3xx series. This is
  17555. also appropriate for the older SPARCStation 1, 2, IPX etc.
  17556. With '-mcpu=v8', GCC generates code for the V8 variant of the SPARC
  17557. architecture. The only difference from V7 code is that the
  17558. compiler emits the integer multiply and integer divide instructions
  17559. which exist in SPARC-V8 but not in SPARC-V7. With
  17560. '-mcpu=supersparc', the compiler additionally optimizes it for the
  17561. SuperSPARC chip, as used in the SPARCStation 10, 1000 and 2000
  17562. series.
  17563. With '-mcpu=sparclite', GCC generates code for the SPARClite
  17564. variant of the SPARC architecture. This adds the integer multiply,
  17565. integer divide step and scan ('ffs') instructions which exist in
  17566. SPARClite but not in SPARC-V7. With '-mcpu=f930', the compiler
  17567. additionally optimizes it for the Fujitsu MB86930 chip, which is
  17568. the original SPARClite, with no FPU. With '-mcpu=f934', the
  17569. compiler additionally optimizes it for the Fujitsu MB86934 chip,
  17570. which is the more recent SPARClite with FPU.
  17571. With '-mcpu=sparclet', GCC generates code for the SPARClet variant
  17572. of the SPARC architecture. This adds the integer multiply,
  17573. multiply/accumulate, integer divide step and scan ('ffs')
  17574. instructions which exist in SPARClet but not in SPARC-V7. With
  17575. '-mcpu=tsc701', the compiler additionally optimizes it for the
  17576. TEMIC SPARClet chip.
  17577. With '-mcpu=v9', GCC generates code for the V9 variant of the SPARC
  17578. architecture. This adds 64-bit integer and floating-point move
  17579. instructions, 3 additional floating-point condition code registers
  17580. and conditional move instructions. With '-mcpu=ultrasparc', the
  17581. compiler additionally optimizes it for the Sun UltraSPARC I/II/IIi
  17582. chips. With '-mcpu=ultrasparc3', the compiler additionally
  17583. optimizes it for the Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+
  17584. chips. With '-mcpu=niagara', the compiler additionally optimizes
  17585. it for Sun UltraSPARC T1 chips. With '-mcpu=niagara2', the
  17586. compiler additionally optimizes it for Sun UltraSPARC T2 chips.
  17587. With '-mcpu=niagara3', the compiler additionally optimizes it for
  17588. Sun UltraSPARC T3 chips. With '-mcpu=niagara4', the compiler
  17589. additionally optimizes it for Sun UltraSPARC T4 chips. With
  17590. '-mcpu=niagara7', the compiler additionally optimizes it for Oracle
  17591. SPARC M7 chips. With '-mcpu=m8', the compiler additionally
  17592. optimizes it for Oracle M8 chips.
  17593. '-mtune=CPU_TYPE'
  17594. Set the instruction scheduling parameters for machine type
  17595. CPU_TYPE, but do not set the instruction set or register set that
  17596. the option '-mcpu=CPU_TYPE' does.
  17597. The same values for '-mcpu=CPU_TYPE' can be used for
  17598. '-mtune=CPU_TYPE', but the only useful values are those that select
  17599. a particular CPU implementation. Those are 'cypress',
  17600. 'supersparc', 'hypersparc', 'leon', 'leon3', 'leon3v7', 'f930',
  17601. 'f934', 'sparclite86x', 'tsc701', 'ultrasparc', 'ultrasparc3',
  17602. 'niagara', 'niagara2', 'niagara3', 'niagara4', 'niagara7' and 'm8'.
  17603. With native Solaris and GNU/Linux toolchains, 'native' can also be
  17604. used.
  17605. '-mv8plus'
  17606. '-mno-v8plus'
  17607. With '-mv8plus', GCC generates code for the SPARC-V8+ ABI. The
  17608. difference from the V8 ABI is that the global and out registers are
  17609. considered 64 bits wide. This is enabled by default on Solaris in
  17610. 32-bit mode for all SPARC-V9 processors.
  17611. '-mvis'
  17612. '-mno-vis'
  17613. With '-mvis', GCC generates code that takes advantage of the
  17614. UltraSPARC Visual Instruction Set extensions. The default is
  17615. '-mno-vis'.
  17616. '-mvis2'
  17617. '-mno-vis2'
  17618. With '-mvis2', GCC generates code that takes advantage of version
  17619. 2.0 of the UltraSPARC Visual Instruction Set extensions. The
  17620. default is '-mvis2' when targeting a cpu that supports such
  17621. instructions, such as UltraSPARC-III and later. Setting '-mvis2'
  17622. also sets '-mvis'.
  17623. '-mvis3'
  17624. '-mno-vis3'
  17625. With '-mvis3', GCC generates code that takes advantage of version
  17626. 3.0 of the UltraSPARC Visual Instruction Set extensions. The
  17627. default is '-mvis3' when targeting a cpu that supports such
  17628. instructions, such as niagara-3 and later. Setting '-mvis3' also
  17629. sets '-mvis2' and '-mvis'.
  17630. '-mvis4'
  17631. '-mno-vis4'
  17632. With '-mvis4', GCC generates code that takes advantage of version
  17633. 4.0 of the UltraSPARC Visual Instruction Set extensions. The
  17634. default is '-mvis4' when targeting a cpu that supports such
  17635. instructions, such as niagara-7 and later. Setting '-mvis4' also
  17636. sets '-mvis3', '-mvis2' and '-mvis'.
  17637. '-mvis4b'
  17638. '-mno-vis4b'
  17639. With '-mvis4b', GCC generates code that takes advantage of version
  17640. 4.0 of the UltraSPARC Visual Instruction Set extensions, plus the
  17641. additional VIS instructions introduced in the Oracle SPARC
  17642. Architecture 2017. The default is '-mvis4b' when targeting a cpu
  17643. that supports such instructions, such as m8 and later. Setting
  17644. '-mvis4b' also sets '-mvis4', '-mvis3', '-mvis2' and '-mvis'.
  17645. '-mcbcond'
  17646. '-mno-cbcond'
  17647. With '-mcbcond', GCC generates code that takes advantage of the
  17648. UltraSPARC Compare-and-Branch-on-Condition instructions. The
  17649. default is '-mcbcond' when targeting a CPU that supports such
  17650. instructions, such as Niagara-4 and later.
  17651. '-mfmaf'
  17652. '-mno-fmaf'
  17653. With '-mfmaf', GCC generates code that takes advantage of the
  17654. UltraSPARC Fused Multiply-Add Floating-point instructions. The
  17655. default is '-mfmaf' when targeting a CPU that supports such
  17656. instructions, such as Niagara-3 and later.
  17657. '-mfsmuld'
  17658. '-mno-fsmuld'
  17659. With '-mfsmuld', GCC generates code that takes advantage of the
  17660. Floating-point Multiply Single to Double (FsMULd) instruction. The
  17661. default is '-mfsmuld' when targeting a CPU supporting the
  17662. architecture versions V8 or V9 with FPU except '-mcpu=leon'.
  17663. '-mpopc'
  17664. '-mno-popc'
  17665. With '-mpopc', GCC generates code that takes advantage of the
  17666. UltraSPARC Population Count instruction. The default is '-mpopc'
  17667. when targeting a CPU that supports such an instruction, such as
  17668. Niagara-2 and later.
  17669. '-msubxc'
  17670. '-mno-subxc'
  17671. With '-msubxc', GCC generates code that takes advantage of the
  17672. UltraSPARC Subtract-Extended-with-Carry instruction. The default
  17673. is '-msubxc' when targeting a CPU that supports such an
  17674. instruction, such as Niagara-7 and later.
  17675. '-mfix-at697f'
  17676. Enable the documented workaround for the single erratum of the
  17677. Atmel AT697F processor (which corresponds to erratum #13 of the
  17678. AT697E processor).
  17679. '-mfix-ut699'
  17680. Enable the documented workarounds for the floating-point errata and
  17681. the data cache nullify errata of the UT699 processor.
  17682. '-mfix-ut700'
  17683. Enable the documented workaround for the back-to-back store errata
  17684. of the UT699E/UT700 processor.
  17685. '-mfix-gr712rc'
  17686. Enable the documented workaround for the back-to-back store errata
  17687. of the GR712RC processor.
  17688. These '-m' options are supported in addition to the above on SPARC-V9
  17689. processors in 64-bit environments:
  17690. '-m32'
  17691. '-m64'
  17692. Generate code for a 32-bit or 64-bit environment. The 32-bit
  17693. environment sets int, long and pointer to 32 bits. The 64-bit
  17694. environment sets int to 32 bits and long and pointer to 64 bits.
  17695. '-mcmodel=WHICH'
  17696. Set the code model to one of
  17697. 'medlow'
  17698. The Medium/Low code model: 64-bit addresses, programs must be
  17699. linked in the low 32 bits of memory. Programs can be
  17700. statically or dynamically linked.
  17701. 'medmid'
  17702. The Medium/Middle code model: 64-bit addresses, programs must
  17703. be linked in the low 44 bits of memory, the text and data
  17704. segments must be less than 2GB in size and the data segment
  17705. must be located within 2GB of the text segment.
  17706. 'medany'
  17707. The Medium/Anywhere code model: 64-bit addresses, programs may
  17708. be linked anywhere in memory, the text and data segments must
  17709. be less than 2GB in size and the data segment must be located
  17710. within 2GB of the text segment.
  17711. 'embmedany'
  17712. The Medium/Anywhere code model for embedded systems: 64-bit
  17713. addresses, the text and data segments must be less than 2GB in
  17714. size, both starting anywhere in memory (determined at link
  17715. time). The global register %g4 points to the base of the data
  17716. segment. Programs are statically linked and PIC is not
  17717. supported.
  17718. '-mmemory-model=MEM-MODEL'
  17719. Set the memory model in force on the processor to one of
  17720. 'default'
  17721. The default memory model for the processor and operating
  17722. system.
  17723. 'rmo'
  17724. Relaxed Memory Order
  17725. 'pso'
  17726. Partial Store Order
  17727. 'tso'
  17728. Total Store Order
  17729. 'sc'
  17730. Sequential Consistency
  17731. These memory models are formally defined in Appendix D of the
  17732. SPARC-V9 architecture manual, as set in the processor's 'PSTATE.MM'
  17733. field.
  17734. '-mstack-bias'
  17735. '-mno-stack-bias'
  17736. With '-mstack-bias', GCC assumes that the stack pointer, and frame
  17737. pointer if present, are offset by -2047 which must be added back
  17738. when making stack frame references. This is the default in 64-bit
  17739. mode. Otherwise, assume no such offset is present.
  17740. 
  17741. File: gcc.info, Node: SPU Options, Next: System V Options, Prev: SPARC Options, Up: Submodel Options
  17742. 3.18.46 SPU Options
  17743. -------------------
  17744. These '-m' options are supported on the SPU:
  17745. '-mwarn-reloc'
  17746. '-merror-reloc'
  17747. The loader for SPU does not handle dynamic relocations. By
  17748. default, GCC gives an error when it generates code that requires a
  17749. dynamic relocation. '-mno-error-reloc' disables the error,
  17750. '-mwarn-reloc' generates a warning instead.
  17751. '-msafe-dma'
  17752. '-munsafe-dma'
  17753. Instructions that initiate or test completion of DMA must not be
  17754. reordered with respect to loads and stores of the memory that is
  17755. being accessed. With '-munsafe-dma' you must use the 'volatile'
  17756. keyword to protect memory accesses, but that can lead to
  17757. inefficient code in places where the memory is known to not change.
  17758. Rather than mark the memory as volatile, you can use '-msafe-dma'
  17759. to tell the compiler to treat the DMA instructions as potentially
  17760. affecting all memory.
  17761. '-mbranch-hints'
  17762. By default, GCC generates a branch hint instruction to avoid
  17763. pipeline stalls for always-taken or probably-taken branches. A
  17764. hint is not generated closer than 8 instructions away from its
  17765. branch. There is little reason to disable them, except for
  17766. debugging purposes, or to make an object a little bit smaller.
  17767. '-msmall-mem'
  17768. '-mlarge-mem'
  17769. By default, GCC generates code assuming that addresses are never
  17770. larger than 18 bits. With '-mlarge-mem' code is generated that
  17771. assumes a full 32-bit address.
  17772. '-mstdmain'
  17773. By default, GCC links against startup code that assumes the
  17774. SPU-style main function interface (which has an unconventional
  17775. parameter list). With '-mstdmain', GCC links your program against
  17776. startup code that assumes a C99-style interface to 'main',
  17777. including a local copy of 'argv' strings.
  17778. '-mfixed-range=REGISTER-RANGE'
  17779. Generate code treating the given register range as fixed registers.
  17780. A fixed register is one that the register allocator cannot use.
  17781. This is useful when compiling kernel code. A register range is
  17782. specified as two registers separated by a dash. Multiple register
  17783. ranges can be specified separated by a comma.
  17784. '-mea32'
  17785. '-mea64'
  17786. Compile code assuming that pointers to the PPU address space
  17787. accessed via the '__ea' named address space qualifier are either 32
  17788. or 64 bits wide. The default is 32 bits. As this is an
  17789. ABI-changing option, all object code in an executable must be
  17790. compiled with the same setting.
  17791. '-maddress-space-conversion'
  17792. '-mno-address-space-conversion'
  17793. Allow/disallow treating the '__ea' address space as superset of the
  17794. generic address space. This enables explicit type casts between
  17795. '__ea' and generic pointer as well as implicit conversions of
  17796. generic pointers to '__ea' pointers. The default is to allow
  17797. address space pointer conversions.
  17798. '-mcache-size=CACHE-SIZE'
  17799. This option controls the version of libgcc that the compiler links
  17800. to an executable and selects a software-managed cache for accessing
  17801. variables in the '__ea' address space with a particular cache size.
  17802. Possible options for CACHE-SIZE are '8', '16', '32', '64' and
  17803. '128'. The default cache size is 64KB.
  17804. '-matomic-updates'
  17805. '-mno-atomic-updates'
  17806. This option controls the version of libgcc that the compiler links
  17807. to an executable and selects whether atomic updates to the
  17808. software-managed cache of PPU-side variables are used. If you use
  17809. atomic updates, changes to a PPU variable from SPU code using the
  17810. '__ea' named address space qualifier do not interfere with changes
  17811. to other PPU variables residing in the same cache line from PPU
  17812. code. If you do not use atomic updates, such interference may
  17813. occur; however, writing back cache lines is more efficient. The
  17814. default behavior is to use atomic updates.
  17815. '-mdual-nops'
  17816. '-mdual-nops=N'
  17817. By default, GCC inserts NOPs to increase dual issue when it expects
  17818. it to increase performance. N can be a value from 0 to 10. A
  17819. smaller N inserts fewer NOPs. 10 is the default, 0 is the same as
  17820. '-mno-dual-nops'. Disabled with '-Os'.
  17821. '-mhint-max-nops=N'
  17822. Maximum number of NOPs to insert for a branch hint. A branch hint
  17823. must be at least 8 instructions away from the branch it is
  17824. affecting. GCC inserts up to N NOPs to enforce this, otherwise it
  17825. does not generate the branch hint.
  17826. '-mhint-max-distance=N'
  17827. The encoding of the branch hint instruction limits the hint to be
  17828. within 256 instructions of the branch it is affecting. By default,
  17829. GCC makes sure it is within 125.
  17830. '-msafe-hints'
  17831. Work around a hardware bug that causes the SPU to stall
  17832. indefinitely. By default, GCC inserts the 'hbrp' instruction to
  17833. make sure this stall won't happen.
  17834. 
  17835. File: gcc.info, Node: System V Options, Next: TILE-Gx Options, Prev: SPU Options, Up: Submodel Options
  17836. 3.18.47 Options for System V
  17837. ----------------------------
  17838. These additional options are available on System V Release 4 for
  17839. compatibility with other compilers on those systems:
  17840. '-G'
  17841. Create a shared object. It is recommended that '-symbolic' or
  17842. '-shared' be used instead.
  17843. '-Qy'
  17844. Identify the versions of each tool used by the compiler, in a
  17845. '.ident' assembler directive in the output.
  17846. '-Qn'
  17847. Refrain from adding '.ident' directives to the output file (this is
  17848. the default).
  17849. '-YP,DIRS'
  17850. Search the directories DIRS, and no others, for libraries specified
  17851. with '-l'.
  17852. '-Ym,DIR'
  17853. Look in the directory DIR to find the M4 preprocessor. The
  17854. assembler uses this option.
  17855. 
  17856. File: gcc.info, Node: TILE-Gx Options, Next: TILEPro Options, Prev: System V Options, Up: Submodel Options
  17857. 3.18.48 TILE-Gx Options
  17858. -----------------------
  17859. These '-m' options are supported on the TILE-Gx:
  17860. '-mcmodel=small'
  17861. Generate code for the small model. The distance for direct calls
  17862. is limited to 500M in either direction. PC-relative addresses are
  17863. 32 bits. Absolute addresses support the full address range.
  17864. '-mcmodel=large'
  17865. Generate code for the large model. There is no limitation on call
  17866. distance, pc-relative addresses, or absolute addresses.
  17867. '-mcpu=NAME'
  17868. Selects the type of CPU to be targeted. Currently the only
  17869. supported type is 'tilegx'.
  17870. '-m32'
  17871. '-m64'
  17872. Generate code for a 32-bit or 64-bit environment. The 32-bit
  17873. environment sets int, long, and pointer to 32 bits. The 64-bit
  17874. environment sets int to 32 bits and long and pointer to 64 bits.
  17875. '-mbig-endian'
  17876. '-mlittle-endian'
  17877. Generate code in big/little endian mode, respectively.
  17878. 
  17879. File: gcc.info, Node: TILEPro Options, Next: V850 Options, Prev: TILE-Gx Options, Up: Submodel Options
  17880. 3.18.49 TILEPro Options
  17881. -----------------------
  17882. These '-m' options are supported on the TILEPro:
  17883. '-mcpu=NAME'
  17884. Selects the type of CPU to be targeted. Currently the only
  17885. supported type is 'tilepro'.
  17886. '-m32'
  17887. Generate code for a 32-bit environment, which sets int, long, and
  17888. pointer to 32 bits. This is the only supported behavior so the
  17889. flag is essentially ignored.
  17890. 
  17891. File: gcc.info, Node: V850 Options, Next: VAX Options, Prev: TILEPro Options, Up: Submodel Options
  17892. 3.18.50 V850 Options
  17893. --------------------
  17894. These '-m' options are defined for V850 implementations:
  17895. '-mlong-calls'
  17896. '-mno-long-calls'
  17897. Treat all calls as being far away (near). If calls are assumed to
  17898. be far away, the compiler always loads the function's address into
  17899. a register, and calls indirect through the pointer.
  17900. '-mno-ep'
  17901. '-mep'
  17902. Do not optimize (do optimize) basic blocks that use the same index
  17903. pointer 4 or more times to copy pointer into the 'ep' register, and
  17904. use the shorter 'sld' and 'sst' instructions. The '-mep' option is
  17905. on by default if you optimize.
  17906. '-mno-prolog-function'
  17907. '-mprolog-function'
  17908. Do not use (do use) external functions to save and restore
  17909. registers at the prologue and epilogue of a function. The external
  17910. functions are slower, but use less code space if more than one
  17911. function saves the same number of registers. The
  17912. '-mprolog-function' option is on by default if you optimize.
  17913. '-mspace'
  17914. Try to make the code as small as possible. At present, this just
  17915. turns on the '-mep' and '-mprolog-function' options.
  17916. '-mtda=N'
  17917. Put static or global variables whose size is N bytes or less into
  17918. the tiny data area that register 'ep' points to. The tiny data
  17919. area can hold up to 256 bytes in total (128 bytes for byte
  17920. references).
  17921. '-msda=N'
  17922. Put static or global variables whose size is N bytes or less into
  17923. the small data area that register 'gp' points to. The small data
  17924. area can hold up to 64 kilobytes.
  17925. '-mzda=N'
  17926. Put static or global variables whose size is N bytes or less into
  17927. the first 32 kilobytes of memory.
  17928. '-mv850'
  17929. Specify that the target processor is the V850.
  17930. '-mv850e3v5'
  17931. Specify that the target processor is the V850E3V5. The
  17932. preprocessor constant '__v850e3v5__' is defined if this option is
  17933. used.
  17934. '-mv850e2v4'
  17935. Specify that the target processor is the V850E3V5. This is an
  17936. alias for the '-mv850e3v5' option.
  17937. '-mv850e2v3'
  17938. Specify that the target processor is the V850E2V3. The
  17939. preprocessor constant '__v850e2v3__' is defined if this option is
  17940. used.
  17941. '-mv850e2'
  17942. Specify that the target processor is the V850E2. The preprocessor
  17943. constant '__v850e2__' is defined if this option is used.
  17944. '-mv850e1'
  17945. Specify that the target processor is the V850E1. The preprocessor
  17946. constants '__v850e1__' and '__v850e__' are defined if this option
  17947. is used.
  17948. '-mv850es'
  17949. Specify that the target processor is the V850ES. This is an alias
  17950. for the '-mv850e1' option.
  17951. '-mv850e'
  17952. Specify that the target processor is the V850E. The preprocessor
  17953. constant '__v850e__' is defined if this option is used.
  17954. If neither '-mv850' nor '-mv850e' nor '-mv850e1' nor '-mv850e2' nor
  17955. '-mv850e2v3' nor '-mv850e3v5' are defined then a default target
  17956. processor is chosen and the relevant '__v850*__' preprocessor
  17957. constant is defined.
  17958. The preprocessor constants '__v850' and '__v851__' are always
  17959. defined, regardless of which processor variant is the target.
  17960. '-mdisable-callt'
  17961. '-mno-disable-callt'
  17962. This option suppresses generation of the 'CALLT' instruction for
  17963. the v850e, v850e1, v850e2, v850e2v3 and v850e3v5 flavors of the
  17964. v850 architecture.
  17965. This option is enabled by default when the RH850 ABI is in use (see
  17966. '-mrh850-abi'), and disabled by default when the GCC ABI is in use.
  17967. If 'CALLT' instructions are being generated then the C preprocessor
  17968. symbol '__V850_CALLT__' is defined.
  17969. '-mrelax'
  17970. '-mno-relax'
  17971. Pass on (or do not pass on) the '-mrelax' command-line option to
  17972. the assembler.
  17973. '-mlong-jumps'
  17974. '-mno-long-jumps'
  17975. Disable (or re-enable) the generation of PC-relative jump
  17976. instructions.
  17977. '-msoft-float'
  17978. '-mhard-float'
  17979. Disable (or re-enable) the generation of hardware floating point
  17980. instructions. This option is only significant when the target
  17981. architecture is 'V850E2V3' or higher. If hardware floating point
  17982. instructions are being generated then the C preprocessor symbol
  17983. '__FPU_OK__' is defined, otherwise the symbol '__NO_FPU__' is
  17984. defined.
  17985. '-mloop'
  17986. Enables the use of the e3v5 LOOP instruction. The use of this
  17987. instruction is not enabled by default when the e3v5 architecture is
  17988. selected because its use is still experimental.
  17989. '-mrh850-abi'
  17990. '-mghs'
  17991. Enables support for the RH850 version of the V850 ABI. This is the
  17992. default. With this version of the ABI the following rules apply:
  17993. * Integer sized structures and unions are returned via a memory
  17994. pointer rather than a register.
  17995. * Large structures and unions (more than 8 bytes in size) are
  17996. passed by value.
  17997. * Functions are aligned to 16-bit boundaries.
  17998. * The '-m8byte-align' command-line option is supported.
  17999. * The '-mdisable-callt' command-line option is enabled by
  18000. default. The '-mno-disable-callt' command-line option is not
  18001. supported.
  18002. When this version of the ABI is enabled the C preprocessor symbol
  18003. '__V850_RH850_ABI__' is defined.
  18004. '-mgcc-abi'
  18005. Enables support for the old GCC version of the V850 ABI. With this
  18006. version of the ABI the following rules apply:
  18007. * Integer sized structures and unions are returned in register
  18008. 'r10'.
  18009. * Large structures and unions (more than 8 bytes in size) are
  18010. passed by reference.
  18011. * Functions are aligned to 32-bit boundaries, unless optimizing
  18012. for size.
  18013. * The '-m8byte-align' command-line option is not supported.
  18014. * The '-mdisable-callt' command-line option is supported but not
  18015. enabled by default.
  18016. When this version of the ABI is enabled the C preprocessor symbol
  18017. '__V850_GCC_ABI__' is defined.
  18018. '-m8byte-align'
  18019. '-mno-8byte-align'
  18020. Enables support for 'double' and 'long long' types to be aligned on
  18021. 8-byte boundaries. The default is to restrict the alignment of all
  18022. objects to at most 4-bytes. When '-m8byte-align' is in effect the
  18023. C preprocessor symbol '__V850_8BYTE_ALIGN__' is defined.
  18024. '-mbig-switch'
  18025. Generate code suitable for big switch tables. Use this option only
  18026. if the assembler/linker complain about out of range branches within
  18027. a switch table.
  18028. '-mapp-regs'
  18029. This option causes r2 and r5 to be used in the code generated by
  18030. the compiler. This setting is the default.
  18031. '-mno-app-regs'
  18032. This option causes r2 and r5 to be treated as fixed registers.
  18033. 
  18034. File: gcc.info, Node: VAX Options, Next: Visium Options, Prev: V850 Options, Up: Submodel Options
  18035. 3.18.51 VAX Options
  18036. -------------------
  18037. These '-m' options are defined for the VAX:
  18038. '-munix'
  18039. Do not output certain jump instructions ('aobleq' and so on) that
  18040. the Unix assembler for the VAX cannot handle across long ranges.
  18041. '-mgnu'
  18042. Do output those jump instructions, on the assumption that the GNU
  18043. assembler is being used.
  18044. '-mg'
  18045. Output code for G-format floating-point numbers instead of
  18046. D-format.
  18047. 
  18048. File: gcc.info, Node: Visium Options, Next: VMS Options, Prev: VAX Options, Up: Submodel Options
  18049. 3.18.52 Visium Options
  18050. ----------------------
  18051. '-mdebug'
  18052. A program which performs file I/O and is destined to run on an MCM
  18053. target should be linked with this option. It causes the libraries
  18054. libc.a and libdebug.a to be linked. The program should be run on
  18055. the target under the control of the GDB remote debugging stub.
  18056. '-msim'
  18057. A program which performs file I/O and is destined to run on the
  18058. simulator should be linked with option. This causes libraries
  18059. libc.a and libsim.a to be linked.
  18060. '-mfpu'
  18061. '-mhard-float'
  18062. Generate code containing floating-point instructions. This is the
  18063. default.
  18064. '-mno-fpu'
  18065. '-msoft-float'
  18066. Generate code containing library calls for floating-point.
  18067. '-msoft-float' changes the calling convention in the output file;
  18068. therefore, it is only useful if you compile _all_ of a program with
  18069. this option. In particular, you need to compile 'libgcc.a', the
  18070. library that comes with GCC, with '-msoft-float' in order for this
  18071. to work.
  18072. '-mcpu=CPU_TYPE'
  18073. Set the instruction set, register set, and instruction scheduling
  18074. parameters for machine type CPU_TYPE. Supported values for
  18075. CPU_TYPE are 'mcm', 'gr5' and 'gr6'.
  18076. 'mcm' is a synonym of 'gr5' present for backward compatibility.
  18077. By default (unless configured otherwise), GCC generates code for
  18078. the GR5 variant of the Visium architecture.
  18079. With '-mcpu=gr6', GCC generates code for the GR6 variant of the
  18080. Visium architecture. The only difference from GR5 code is that the
  18081. compiler will generate block move instructions.
  18082. '-mtune=CPU_TYPE'
  18083. Set the instruction scheduling parameters for machine type
  18084. CPU_TYPE, but do not set the instruction set or register set that
  18085. the option '-mcpu=CPU_TYPE' would.
  18086. '-msv-mode'
  18087. Generate code for the supervisor mode, where there are no
  18088. restrictions on the access to general registers. This is the
  18089. default.
  18090. '-muser-mode'
  18091. Generate code for the user mode, where the access to some general
  18092. registers is forbidden: on the GR5, registers r24 to r31 cannot be
  18093. accessed in this mode; on the GR6, only registers r29 to r31 are
  18094. affected.
  18095. 
  18096. File: gcc.info, Node: VMS Options, Next: VxWorks Options, Prev: Visium Options, Up: Submodel Options
  18097. 3.18.53 VMS Options
  18098. -------------------
  18099. These '-m' options are defined for the VMS implementations:
  18100. '-mvms-return-codes'
  18101. Return VMS condition codes from 'main'. The default is to return
  18102. POSIX-style condition (e.g. error) codes.
  18103. '-mdebug-main=PREFIX'
  18104. Flag the first routine whose name starts with PREFIX as the main
  18105. routine for the debugger.
  18106. '-mmalloc64'
  18107. Default to 64-bit memory allocation routines.
  18108. '-mpointer-size=SIZE'
  18109. Set the default size of pointers. Possible options for SIZE are
  18110. '32' or 'short' for 32 bit pointers, '64' or 'long' for 64 bit
  18111. pointers, and 'no' for supporting only 32 bit pointers. The later
  18112. option disables 'pragma pointer_size'.
  18113. 
  18114. File: gcc.info, Node: VxWorks Options, Next: x86 Options, Prev: VMS Options, Up: Submodel Options
  18115. 3.18.54 VxWorks Options
  18116. -----------------------
  18117. The options in this section are defined for all VxWorks targets.
  18118. Options specific to the target hardware are listed with the other
  18119. options for that target.
  18120. '-mrtp'
  18121. GCC can generate code for both VxWorks kernels and real time
  18122. processes (RTPs). This option switches from the former to the
  18123. latter. It also defines the preprocessor macro '__RTP__'.
  18124. '-non-static'
  18125. Link an RTP executable against shared libraries rather than static
  18126. libraries. The options '-static' and '-shared' can also be used
  18127. for RTPs (*note Link Options::); '-static' is the default.
  18128. '-Bstatic'
  18129. '-Bdynamic'
  18130. These options are passed down to the linker. They are defined for
  18131. compatibility with Diab.
  18132. '-Xbind-lazy'
  18133. Enable lazy binding of function calls. This option is equivalent
  18134. to '-Wl,-z,now' and is defined for compatibility with Diab.
  18135. '-Xbind-now'
  18136. Disable lazy binding of function calls. This option is the default
  18137. and is defined for compatibility with Diab.
  18138. 
  18139. File: gcc.info, Node: x86 Options, Next: x86 Windows Options, Prev: VxWorks Options, Up: Submodel Options
  18140. 3.18.55 x86 Options
  18141. -------------------
  18142. These '-m' options are defined for the x86 family of computers.
  18143. '-march=CPU-TYPE'
  18144. Generate instructions for the machine type CPU-TYPE. In contrast
  18145. to '-mtune=CPU-TYPE', which merely tunes the generated code for the
  18146. specified CPU-TYPE, '-march=CPU-TYPE' allows GCC to generate code
  18147. that may not run at all on processors other than the one indicated.
  18148. Specifying '-march=CPU-TYPE' implies '-mtune=CPU-TYPE'.
  18149. The choices for CPU-TYPE are:
  18150. 'native'
  18151. This selects the CPU to generate code for at compilation time
  18152. by determining the processor type of the compiling machine.
  18153. Using '-march=native' enables all instruction subsets
  18154. supported by the local machine (hence the result might not run
  18155. on different machines). Using '-mtune=native' produces code
  18156. optimized for the local machine under the constraints of the
  18157. selected instruction set.
  18158. 'i386'
  18159. Original Intel i386 CPU.
  18160. 'i486'
  18161. Intel i486 CPU. (No scheduling is implemented for this chip.)
  18162. 'i586'
  18163. 'pentium'
  18164. Intel Pentium CPU with no MMX support.
  18165. 'lakemont'
  18166. Intel Lakemont MCU, based on Intel Pentium CPU.
  18167. 'pentium-mmx'
  18168. Intel Pentium MMX CPU, based on Pentium core with MMX
  18169. instruction set support.
  18170. 'pentiumpro'
  18171. Intel Pentium Pro CPU.
  18172. 'i686'
  18173. When used with '-march', the Pentium Pro instruction set is
  18174. used, so the code runs on all i686 family chips. When used
  18175. with '-mtune', it has the same meaning as 'generic'.
  18176. 'pentium2'
  18177. Intel Pentium II CPU, based on Pentium Pro core with MMX
  18178. instruction set support.
  18179. 'pentium3'
  18180. 'pentium3m'
  18181. Intel Pentium III CPU, based on Pentium Pro core with MMX and
  18182. SSE instruction set support.
  18183. 'pentium-m'
  18184. Intel Pentium M; low-power version of Intel Pentium III CPU
  18185. with MMX, SSE and SSE2 instruction set support. Used by
  18186. Centrino notebooks.
  18187. 'pentium4'
  18188. 'pentium4m'
  18189. Intel Pentium 4 CPU with MMX, SSE and SSE2 instruction set
  18190. support.
  18191. 'prescott'
  18192. Improved version of Intel Pentium 4 CPU with MMX, SSE, SSE2
  18193. and SSE3 instruction set support.
  18194. 'nocona'
  18195. Improved version of Intel Pentium 4 CPU with 64-bit
  18196. extensions, MMX, SSE, SSE2 and SSE3 instruction set support.
  18197. 'core2'
  18198. Intel Core 2 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3
  18199. and SSSE3 instruction set support.
  18200. 'nehalem'
  18201. Intel Nehalem CPU with 64-bit extensions, MMX, SSE, SSE2,
  18202. SSE3, SSSE3, SSE4.1, SSE4.2 and POPCNT instruction set
  18203. support.
  18204. 'westmere'
  18205. Intel Westmere CPU with 64-bit extensions, MMX, SSE, SSE2,
  18206. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES and PCLMUL
  18207. instruction set support.
  18208. 'sandybridge'
  18209. Intel Sandy Bridge CPU with 64-bit extensions, MMX, SSE, SSE2,
  18210. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES and PCLMUL
  18211. instruction set support.
  18212. 'ivybridge'
  18213. Intel Ivy Bridge CPU with 64-bit extensions, MMX, SSE, SSE2,
  18214. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES, PCLMUL,
  18215. FSGSBASE, RDRND and F16C instruction set support.
  18216. 'haswell'
  18217. Intel Haswell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  18218. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  18219. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2 and F16C instruction
  18220. set support.
  18221. 'broadwell'
  18222. Intel Broadwell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  18223. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  18224. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX
  18225. and PREFETCHW instruction set support.
  18226. 'skylake'
  18227. Intel Skylake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  18228. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  18229. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX,
  18230. PREFETCHW, CLFLUSHOPT, XSAVEC and XSAVES instruction set
  18231. support.
  18232. 'bonnell'
  18233. Intel Bonnell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  18234. SSE2, SSE3 and SSSE3 instruction set support.
  18235. 'silvermont'
  18236. Intel Silvermont CPU with 64-bit extensions, MOVBE, MMX, SSE,
  18237. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PCLMUL and
  18238. RDRND instruction set support.
  18239. 'knl'
  18240. Intel Knight's Landing CPU with 64-bit extensions, MOVBE, MMX,
  18241. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2,
  18242. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  18243. ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER and AVX512CD
  18244. instruction set support.
  18245. 'skylake-avx512'
  18246. Intel Skylake Server CPU with 64-bit extensions, MOVBE, MMX,
  18247. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  18248. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  18249. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  18250. AVX512VL, AVX512BW, AVX512DQ and AVX512CD instruction set
  18251. support.
  18252. 'k6'
  18253. AMD K6 CPU with MMX instruction set support.
  18254. 'k6-2'
  18255. 'k6-3'
  18256. Improved versions of AMD K6 CPU with MMX and 3DNow!
  18257. instruction set support.
  18258. 'athlon'
  18259. 'athlon-tbird'
  18260. AMD Athlon CPU with MMX, 3dNOW!, enhanced 3DNow! and SSE
  18261. prefetch instructions support.
  18262. 'athlon-4'
  18263. 'athlon-xp'
  18264. 'athlon-mp'
  18265. Improved AMD Athlon CPU with MMX, 3DNow!, enhanced 3DNow! and
  18266. full SSE instruction set support.
  18267. 'k8'
  18268. 'opteron'
  18269. 'athlon64'
  18270. 'athlon-fx'
  18271. Processors based on the AMD K8 core with x86-64 instruction
  18272. set support, including the AMD Opteron, Athlon 64, and Athlon
  18273. 64 FX processors. (This supersets MMX, SSE, SSE2, 3DNow!,
  18274. enhanced 3DNow! and 64-bit instruction set extensions.)
  18275. 'k8-sse3'
  18276. 'opteron-sse3'
  18277. 'athlon64-sse3'
  18278. Improved versions of AMD K8 cores with SSE3 instruction set
  18279. support.
  18280. 'amdfam10'
  18281. 'barcelona'
  18282. CPUs based on AMD Family 10h cores with x86-64 instruction set
  18283. support. (This supersets MMX, SSE, SSE2, SSE3, SSE4A, 3DNow!,
  18284. enhanced 3DNow!, ABM and 64-bit instruction set extensions.)
  18285. 'bdver1'
  18286. CPUs based on AMD Family 15h cores with x86-64 instruction set
  18287. support. (This supersets FMA4, AVX, XOP, LWP, AES, PCL_MUL,
  18288. CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM
  18289. and 64-bit instruction set extensions.)
  18290. 'bdver2'
  18291. AMD Family 15h core based CPUs with x86-64 instruction set
  18292. support. (This supersets BMI, TBM, F16C, FMA, FMA4, AVX, XOP,
  18293. LWP, AES, PCL_MUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
  18294. SSE4.1, SSE4.2, ABM and 64-bit instruction set extensions.)
  18295. 'bdver3'
  18296. AMD Family 15h core based CPUs with x86-64 instruction set
  18297. support. (This supersets BMI, TBM, F16C, FMA, FMA4, FSGSBASE,
  18298. AVX, XOP, LWP, AES, PCL_MUL, CX16, MMX, SSE, SSE2, SSE3,
  18299. SSE4A, SSSE3, SSE4.1, SSE4.2, ABM and 64-bit instruction set
  18300. extensions.
  18301. 'bdver4'
  18302. AMD Family 15h core based CPUs with x86-64 instruction set
  18303. support. (This supersets BMI, BMI2, TBM, F16C, FMA, FMA4,
  18304. FSGSBASE, AVX, AVX2, XOP, LWP, AES, PCL_MUL, CX16, MOVBE, MMX,
  18305. SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM and 64-bit
  18306. instruction set extensions.
  18307. 'znver1'
  18308. AMD Family 17h core based CPUs with x86-64 instruction set
  18309. support. (This supersets BMI, BMI2, F16C, FMA, FSGSBASE, AVX,
  18310. AVX2, ADCX, RDSEED, MWAITX, SHA, CLZERO, AES, PCL_MUL, CX16,
  18311. MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2,
  18312. ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT, and 64-bit
  18313. instruction set extensions.
  18314. 'btver1'
  18315. CPUs based on AMD Family 14h cores with x86-64 instruction set
  18316. support. (This supersets MMX, SSE, SSE2, SSE3, SSSE3, SSE4A,
  18317. CX16, ABM and 64-bit instruction set extensions.)
  18318. 'btver2'
  18319. CPUs based on AMD Family 16h cores with x86-64 instruction set
  18320. support. This includes MOVBE, F16C, BMI, AVX, PCL_MUL, AES,
  18321. SSE4.2, SSE4.1, CX16, ABM, SSE4A, SSSE3, SSE3, SSE2, SSE, MMX
  18322. and 64-bit instruction set extensions.
  18323. 'winchip-c6'
  18324. IDT WinChip C6 CPU, dealt in same way as i486 with additional
  18325. MMX instruction set support.
  18326. 'winchip2'
  18327. IDT WinChip 2 CPU, dealt in same way as i486 with additional
  18328. MMX and 3DNow! instruction set support.
  18329. 'c3'
  18330. VIA C3 CPU with MMX and 3DNow! instruction set support. (No
  18331. scheduling is implemented for this chip.)
  18332. 'c3-2'
  18333. VIA C3-2 (Nehemiah/C5XL) CPU with MMX and SSE instruction set
  18334. support. (No scheduling is implemented for this chip.)
  18335. 'c7'
  18336. VIA C7 (Esther) CPU with MMX, SSE, SSE2 and SSE3 instruction
  18337. set support. (No scheduling is implemented for this chip.)
  18338. 'samuel-2'
  18339. VIA Eden Samuel 2 CPU with MMX and 3DNow! instruction set
  18340. support. (No scheduling is implemented for this chip.)
  18341. 'nehemiah'
  18342. VIA Eden Nehemiah CPU with MMX and SSE instruction set
  18343. support. (No scheduling is implemented for this chip.)
  18344. 'esther'
  18345. VIA Eden Esther CPU with MMX, SSE, SSE2 and SSE3 instruction
  18346. set support. (No scheduling is implemented for this chip.)
  18347. 'eden-x2'
  18348. VIA Eden X2 CPU with x86-64, MMX, SSE, SSE2 and SSE3
  18349. instruction set support. (No scheduling is implemented for
  18350. this chip.)
  18351. 'eden-x4'
  18352. VIA Eden X4 CPU with x86-64, MMX, SSE, SSE2, SSE3, SSSE3,
  18353. SSE4.1, SSE4.2, AVX and AVX2 instruction set support. (No
  18354. scheduling is implemented for this chip.)
  18355. 'nano'
  18356. Generic VIA Nano CPU with x86-64, MMX, SSE, SSE2, SSE3 and
  18357. SSSE3 instruction set support. (No scheduling is implemented
  18358. for this chip.)
  18359. 'nano-1000'
  18360. VIA Nano 1xxx CPU with x86-64, MMX, SSE, SSE2, SSE3 and SSSE3
  18361. instruction set support. (No scheduling is implemented for
  18362. this chip.)
  18363. 'nano-2000'
  18364. VIA Nano 2xxx CPU with x86-64, MMX, SSE, SSE2, SSE3 and SSSE3
  18365. instruction set support. (No scheduling is implemented for
  18366. this chip.)
  18367. 'nano-3000'
  18368. VIA Nano 3xxx CPU with x86-64, MMX, SSE, SSE2, SSE3, SSSE3 and
  18369. SSE4.1 instruction set support. (No scheduling is implemented
  18370. for this chip.)
  18371. 'nano-x2'
  18372. VIA Nano Dual Core CPU with x86-64, MMX, SSE, SSE2, SSE3,
  18373. SSSE3 and SSE4.1 instruction set support. (No scheduling is
  18374. implemented for this chip.)
  18375. 'nano-x4'
  18376. VIA Nano Quad Core CPU with x86-64, MMX, SSE, SSE2, SSE3,
  18377. SSSE3 and SSE4.1 instruction set support. (No scheduling is
  18378. implemented for this chip.)
  18379. 'geode'
  18380. AMD Geode embedded processor with MMX and 3DNow! instruction
  18381. set support.
  18382. '-mtune=CPU-TYPE'
  18383. Tune to CPU-TYPE everything applicable about the generated code,
  18384. except for the ABI and the set of available instructions. While
  18385. picking a specific CPU-TYPE schedules things appropriately for that
  18386. particular chip, the compiler does not generate any code that
  18387. cannot run on the default machine type unless you use a
  18388. '-march=CPU-TYPE' option. For example, if GCC is configured for
  18389. i686-pc-linux-gnu then '-mtune=pentium4' generates code that is
  18390. tuned for Pentium 4 but still runs on i686 machines.
  18391. The choices for CPU-TYPE are the same as for '-march'. In
  18392. addition, '-mtune' supports 2 extra choices for CPU-TYPE:
  18393. 'generic'
  18394. Produce code optimized for the most common IA32/AMD64/EM64T
  18395. processors. If you know the CPU on which your code will run,
  18396. then you should use the corresponding '-mtune' or '-march'
  18397. option instead of '-mtune=generic'. But, if you do not know
  18398. exactly what CPU users of your application will have, then you
  18399. should use this option.
  18400. As new processors are deployed in the marketplace, the
  18401. behavior of this option will change. Therefore, if you
  18402. upgrade to a newer version of GCC, code generation controlled
  18403. by this option will change to reflect the processors that are
  18404. most common at the time that version of GCC is released.
  18405. There is no '-march=generic' option because '-march' indicates
  18406. the instruction set the compiler can use, and there is no
  18407. generic instruction set applicable to all processors. In
  18408. contrast, '-mtune' indicates the processor (or, in this case,
  18409. collection of processors) for which the code is optimized.
  18410. 'intel'
  18411. Produce code optimized for the most current Intel processors,
  18412. which are Haswell and Silvermont for this version of GCC. If
  18413. you know the CPU on which your code will run, then you should
  18414. use the corresponding '-mtune' or '-march' option instead of
  18415. '-mtune=intel'. But, if you want your application performs
  18416. better on both Haswell and Silvermont, then you should use
  18417. this option.
  18418. As new Intel processors are deployed in the marketplace, the
  18419. behavior of this option will change. Therefore, if you
  18420. upgrade to a newer version of GCC, code generation controlled
  18421. by this option will change to reflect the most current Intel
  18422. processors at the time that version of GCC is released.
  18423. There is no '-march=intel' option because '-march' indicates
  18424. the instruction set the compiler can use, and there is no
  18425. common instruction set applicable to all processors. In
  18426. contrast, '-mtune' indicates the processor (or, in this case,
  18427. collection of processors) for which the code is optimized.
  18428. '-mcpu=CPU-TYPE'
  18429. A deprecated synonym for '-mtune'.
  18430. '-mfpmath=UNIT'
  18431. Generate floating-point arithmetic for selected unit UNIT. The
  18432. choices for UNIT are:
  18433. '387'
  18434. Use the standard 387 floating-point coprocessor present on the
  18435. majority of chips and emulated otherwise. Code compiled with
  18436. this option runs almost everywhere. The temporary results are
  18437. computed in 80-bit precision instead of the precision
  18438. specified by the type, resulting in slightly different results
  18439. compared to most of other chips. See '-ffloat-store' for more
  18440. detailed description.
  18441. This is the default choice for non-Darwin x86-32 targets.
  18442. 'sse'
  18443. Use scalar floating-point instructions present in the SSE
  18444. instruction set. This instruction set is supported by Pentium
  18445. III and newer chips, and in the AMD line by Athlon-4, Athlon
  18446. XP and Athlon MP chips. The earlier version of the SSE
  18447. instruction set supports only single-precision arithmetic,
  18448. thus the double and extended-precision arithmetic are still
  18449. done using 387. A later version, present only in Pentium 4
  18450. and AMD x86-64 chips, supports double-precision arithmetic
  18451. too.
  18452. For the x86-32 compiler, you must use '-march=CPU-TYPE',
  18453. '-msse' or '-msse2' switches to enable SSE extensions and make
  18454. this option effective. For the x86-64 compiler, these
  18455. extensions are enabled by default.
  18456. The resulting code should be considerably faster in the
  18457. majority of cases and avoid the numerical instability problems
  18458. of 387 code, but may break some existing code that expects
  18459. temporaries to be 80 bits.
  18460. This is the default choice for the x86-64 compiler, Darwin
  18461. x86-32 targets, and the default choice for x86-32 targets with
  18462. the SSE2 instruction set when '-ffast-math' is enabled.
  18463. 'sse,387'
  18464. 'sse+387'
  18465. 'both'
  18466. Attempt to utilize both instruction sets at once. This
  18467. effectively doubles the amount of available registers, and on
  18468. chips with separate execution units for 387 and SSE the
  18469. execution resources too. Use this option with care, as it is
  18470. still experimental, because the GCC register allocator does
  18471. not model separate functional units well, resulting in
  18472. unstable performance.
  18473. '-masm=DIALECT'
  18474. Output assembly instructions using selected DIALECT. Also affects
  18475. which dialect is used for basic 'asm' (*note Basic Asm::) and
  18476. extended 'asm' (*note Extended Asm::). Supported choices (in
  18477. dialect order) are 'att' or 'intel'. The default is 'att'. Darwin
  18478. does not support 'intel'.
  18479. '-mieee-fp'
  18480. '-mno-ieee-fp'
  18481. Control whether or not the compiler uses IEEE floating-point
  18482. comparisons. These correctly handle the case where the result of a
  18483. comparison is unordered.
  18484. '-m80387'
  18485. '-mhard-float'
  18486. Generate output containing 80387 instructions for floating point.
  18487. '-mno-80387'
  18488. '-msoft-float'
  18489. Generate output containing library calls for floating point.
  18490. *Warning:* the requisite libraries are not part of GCC. Normally
  18491. the facilities of the machine's usual C compiler are used, but this
  18492. cannot be done directly in cross-compilation. You must make your
  18493. own arrangements to provide suitable library functions for
  18494. cross-compilation.
  18495. On machines where a function returns floating-point results in the
  18496. 80387 register stack, some floating-point opcodes may be emitted
  18497. even if '-msoft-float' is used.
  18498. '-mno-fp-ret-in-387'
  18499. Do not use the FPU registers for return values of functions.
  18500. The usual calling convention has functions return values of types
  18501. 'float' and 'double' in an FPU register, even if there is no FPU.
  18502. The idea is that the operating system should emulate an FPU.
  18503. The option '-mno-fp-ret-in-387' causes such values to be returned
  18504. in ordinary CPU registers instead.
  18505. '-mno-fancy-math-387'
  18506. Some 387 emulators do not support the 'sin', 'cos' and 'sqrt'
  18507. instructions for the 387. Specify this option to avoid generating
  18508. those instructions. This option is the default on OpenBSD and
  18509. NetBSD. This option is overridden when '-march' indicates that the
  18510. target CPU always has an FPU and so the instruction does not need
  18511. emulation. These instructions are not generated unless you also
  18512. use the '-funsafe-math-optimizations' switch.
  18513. '-malign-double'
  18514. '-mno-align-double'
  18515. Control whether GCC aligns 'double', 'long double', and 'long long'
  18516. variables on a two-word boundary or a one-word boundary. Aligning
  18517. 'double' variables on a two-word boundary produces code that runs
  18518. somewhat faster on a Pentium at the expense of more memory.
  18519. On x86-64, '-malign-double' is enabled by default.
  18520. *Warning:* if you use the '-malign-double' switch, structures
  18521. containing the above types are aligned differently than the
  18522. published application binary interface specifications for the
  18523. x86-32 and are not binary compatible with structures in code
  18524. compiled without that switch.
  18525. '-m96bit-long-double'
  18526. '-m128bit-long-double'
  18527. These switches control the size of 'long double' type. The x86-32
  18528. application binary interface specifies the size to be 96 bits, so
  18529. '-m96bit-long-double' is the default in 32-bit mode.
  18530. Modern architectures (Pentium and newer) prefer 'long double' to be
  18531. aligned to an 8- or 16-byte boundary. In arrays or structures
  18532. conforming to the ABI, this is not possible. So specifying
  18533. '-m128bit-long-double' aligns 'long double' to a 16-byte boundary
  18534. by padding the 'long double' with an additional 32-bit zero.
  18535. In the x86-64 compiler, '-m128bit-long-double' is the default
  18536. choice as its ABI specifies that 'long double' is aligned on
  18537. 16-byte boundary.
  18538. Notice that neither of these options enable any extra precision
  18539. over the x87 standard of 80 bits for a 'long double'.
  18540. *Warning:* if you override the default value for your target ABI,
  18541. this changes the size of structures and arrays containing 'long
  18542. double' variables, as well as modifying the function calling
  18543. convention for functions taking 'long double'. Hence they are not
  18544. binary-compatible with code compiled without that switch.
  18545. '-mlong-double-64'
  18546. '-mlong-double-80'
  18547. '-mlong-double-128'
  18548. These switches control the size of 'long double' type. A size of
  18549. 64 bits makes the 'long double' type equivalent to the 'double'
  18550. type. This is the default for 32-bit Bionic C library. A size of
  18551. 128 bits makes the 'long double' type equivalent to the
  18552. '__float128' type. This is the default for 64-bit Bionic C
  18553. library.
  18554. *Warning:* if you override the default value for your target ABI,
  18555. this changes the size of structures and arrays containing 'long
  18556. double' variables, as well as modifying the function calling
  18557. convention for functions taking 'long double'. Hence they are not
  18558. binary-compatible with code compiled without that switch.
  18559. '-malign-data=TYPE'
  18560. Control how GCC aligns variables. Supported values for TYPE are
  18561. 'compat' uses increased alignment value compatible uses GCC 4.8 and
  18562. earlier, 'abi' uses alignment value as specified by the psABI, and
  18563. 'cacheline' uses increased alignment value to match the cache line
  18564. size. 'compat' is the default.
  18565. '-mlarge-data-threshold=THRESHOLD'
  18566. When '-mcmodel=medium' is specified, data objects larger than
  18567. THRESHOLD are placed in the large data section. This value must be
  18568. the same across all objects linked into the binary, and defaults to
  18569. 65535.
  18570. '-mrtd'
  18571. Use a different function-calling convention, in which functions
  18572. that take a fixed number of arguments return with the 'ret NUM'
  18573. instruction, which pops their arguments while returning. This
  18574. saves one instruction in the caller since there is no need to pop
  18575. the arguments there.
  18576. You can specify that an individual function is called with this
  18577. calling sequence with the function attribute 'stdcall'. You can
  18578. also override the '-mrtd' option by using the function attribute
  18579. 'cdecl'. *Note Function Attributes::.
  18580. *Warning:* this calling convention is incompatible with the one
  18581. normally used on Unix, so you cannot use it if you need to call
  18582. libraries compiled with the Unix compiler.
  18583. Also, you must provide function prototypes for all functions that
  18584. take variable numbers of arguments (including 'printf'); otherwise
  18585. incorrect code is generated for calls to those functions.
  18586. In addition, seriously incorrect code results if you call a
  18587. function with too many arguments. (Normally, extra arguments are
  18588. harmlessly ignored.)
  18589. '-mregparm=NUM'
  18590. Control how many registers are used to pass integer arguments. By
  18591. default, no registers are used to pass arguments, and at most 3
  18592. registers can be used. You can control this behavior for a
  18593. specific function by using the function attribute 'regparm'. *Note
  18594. Function Attributes::.
  18595. *Warning:* if you use this switch, and NUM is nonzero, then you
  18596. must build all modules with the same value, including any
  18597. libraries. This includes the system libraries and startup modules.
  18598. '-msseregparm'
  18599. Use SSE register passing conventions for float and double arguments
  18600. and return values. You can control this behavior for a specific
  18601. function by using the function attribute 'sseregparm'. *Note
  18602. Function Attributes::.
  18603. *Warning:* if you use this switch then you must build all modules
  18604. with the same value, including any libraries. This includes the
  18605. system libraries and startup modules.
  18606. '-mvect8-ret-in-mem'
  18607. Return 8-byte vectors in memory instead of MMX registers. This is
  18608. the default on Solaris 8 and 9 and VxWorks to match the ABI of the
  18609. Sun Studio compilers until version 12. Later compiler versions
  18610. (starting with Studio 12 Update 1) follow the ABI used by other x86
  18611. targets, which is the default on Solaris 10 and later. _Only_ use
  18612. this option if you need to remain compatible with existing code
  18613. produced by those previous compiler versions or older versions of
  18614. GCC.
  18615. '-mpc32'
  18616. '-mpc64'
  18617. '-mpc80'
  18618. Set 80387 floating-point precision to 32, 64 or 80 bits. When
  18619. '-mpc32' is specified, the significands of results of
  18620. floating-point operations are rounded to 24 bits (single
  18621. precision); '-mpc64' rounds the significands of results of
  18622. floating-point operations to 53 bits (double precision) and
  18623. '-mpc80' rounds the significands of results of floating-point
  18624. operations to 64 bits (extended double precision), which is the
  18625. default. When this option is used, floating-point operations in
  18626. higher precisions are not available to the programmer without
  18627. setting the FPU control word explicitly.
  18628. Setting the rounding of floating-point operations to less than the
  18629. default 80 bits can speed some programs by 2% or more. Note that
  18630. some mathematical libraries assume that extended-precision (80-bit)
  18631. floating-point operations are enabled by default; routines in such
  18632. libraries could suffer significant loss of accuracy, typically
  18633. through so-called "catastrophic cancellation", when this option is
  18634. used to set the precision to less than extended precision.
  18635. '-mstackrealign'
  18636. Realign the stack at entry. On the x86, the '-mstackrealign'
  18637. option generates an alternate prologue and epilogue that realigns
  18638. the run-time stack if necessary. This supports mixing legacy codes
  18639. that keep 4-byte stack alignment with modern codes that keep
  18640. 16-byte stack alignment for SSE compatibility. See also the
  18641. attribute 'force_align_arg_pointer', applicable to individual
  18642. functions.
  18643. '-mpreferred-stack-boundary=NUM'
  18644. Attempt to keep the stack boundary aligned to a 2 raised to NUM
  18645. byte boundary. If '-mpreferred-stack-boundary' is not specified,
  18646. the default is 4 (16 bytes or 128 bits).
  18647. *Warning:* When generating code for the x86-64 architecture with
  18648. SSE extensions disabled, '-mpreferred-stack-boundary=3' can be used
  18649. to keep the stack boundary aligned to 8 byte boundary. Since
  18650. x86-64 ABI require 16 byte stack alignment, this is ABI
  18651. incompatible and intended to be used in controlled environment
  18652. where stack space is important limitation. This option leads to
  18653. wrong code when functions compiled with 16 byte stack alignment
  18654. (such as functions from a standard library) are called with
  18655. misaligned stack. In this case, SSE instructions may lead to
  18656. misaligned memory access traps. In addition, variable arguments
  18657. are handled incorrectly for 16 byte aligned objects (including x87
  18658. long double and __int128), leading to wrong results. You must
  18659. build all modules with '-mpreferred-stack-boundary=3', including
  18660. any libraries. This includes the system libraries and startup
  18661. modules.
  18662. '-mincoming-stack-boundary=NUM'
  18663. Assume the incoming stack is aligned to a 2 raised to NUM byte
  18664. boundary. If '-mincoming-stack-boundary' is not specified, the one
  18665. specified by '-mpreferred-stack-boundary' is used.
  18666. On Pentium and Pentium Pro, 'double' and 'long double' values
  18667. should be aligned to an 8-byte boundary (see '-malign-double') or
  18668. suffer significant run time performance penalties. On Pentium III,
  18669. the Streaming SIMD Extension (SSE) data type '__m128' may not work
  18670. properly if it is not 16-byte aligned.
  18671. To ensure proper alignment of this values on the stack, the stack
  18672. boundary must be as aligned as that required by any value stored on
  18673. the stack. Further, every function must be generated such that it
  18674. keeps the stack aligned. Thus calling a function compiled with a
  18675. higher preferred stack boundary from a function compiled with a
  18676. lower preferred stack boundary most likely misaligns the stack. It
  18677. is recommended that libraries that use callbacks always use the
  18678. default setting.
  18679. This extra alignment does consume extra stack space, and generally
  18680. increases code size. Code that is sensitive to stack space usage,
  18681. such as embedded systems and operating system kernels, may want to
  18682. reduce the preferred alignment to '-mpreferred-stack-boundary=2'.
  18683. '-mmmx'
  18684. '-msse'
  18685. '-msse2'
  18686. '-msse3'
  18687. '-mssse3'
  18688. '-msse4'
  18689. '-msse4a'
  18690. '-msse4.1'
  18691. '-msse4.2'
  18692. '-mavx'
  18693. '-mavx2'
  18694. '-mavx512f'
  18695. '-mavx512pf'
  18696. '-mavx512er'
  18697. '-mavx512cd'
  18698. '-mavx512vl'
  18699. '-mavx512bw'
  18700. '-mavx512dq'
  18701. '-mavx512ifma'
  18702. '-mavx512vbmi'
  18703. '-msha'
  18704. '-maes'
  18705. '-mpclmul'
  18706. '-mclflushopt'
  18707. '-mfsgsbase'
  18708. '-mrdrnd'
  18709. '-mf16c'
  18710. '-mfma'
  18711. '-mfma4'
  18712. '-mprefetchwt1'
  18713. '-mxop'
  18714. '-mlwp'
  18715. '-m3dnow'
  18716. '-m3dnowa'
  18717. '-mpopcnt'
  18718. '-mabm'
  18719. '-mbmi'
  18720. '-mbmi2'
  18721. '-mlzcnt'
  18722. '-mfxsr'
  18723. '-mxsave'
  18724. '-mxsaveopt'
  18725. '-mxsavec'
  18726. '-mxsaves'
  18727. '-mrtm'
  18728. '-mtbm'
  18729. '-mmpx'
  18730. '-mmwaitx'
  18731. '-mclzero'
  18732. '-mpku'
  18733. These switches enable the use of instructions in the MMX, SSE,
  18734. SSE2, SSE3, SSSE3, SSE4.1, AVX, AVX2, AVX512F, AVX512PF, AVX512ER,
  18735. AVX512CD, SHA, AES, PCLMUL, FSGSBASE, RDRND, F16C, FMA, SSE4A,
  18736. FMA4, XOP, LWP, ABM, AVX512VL, AVX512BW, AVX512DQ, AVX512IFMA
  18737. AVX512VBMI, BMI, BMI2, FXSR, XSAVE, XSAVEOPT, LZCNT, RTM, MPX,
  18738. MWAITX, PKU, 3DNow! or enhanced 3DNow! extended instruction sets.
  18739. Each has a corresponding '-mno-' option to disable use of these
  18740. instructions.
  18741. These extensions are also available as built-in functions: see
  18742. *note x86 Built-in Functions::, for details of the functions
  18743. enabled and disabled by these switches.
  18744. To generate SSE/SSE2 instructions automatically from floating-point
  18745. code (as opposed to 387 instructions), see '-mfpmath=sse'.
  18746. GCC depresses SSEx instructions when '-mavx' is used. Instead, it
  18747. generates new AVX instructions or AVX equivalence for all SSEx
  18748. instructions when needed.
  18749. These options enable GCC to use these extended instructions in
  18750. generated code, even without '-mfpmath=sse'. Applications that
  18751. perform run-time CPU detection must compile separate files for each
  18752. supported architecture, using the appropriate flags. In
  18753. particular, the file containing the CPU detection code should be
  18754. compiled without these options.
  18755. '-mdump-tune-features'
  18756. This option instructs GCC to dump the names of the x86 performance
  18757. tuning features and default settings. The names can be used in
  18758. '-mtune-ctrl=FEATURE-LIST'.
  18759. '-mtune-ctrl=FEATURE-LIST'
  18760. This option is used to do fine grain control of x86 code generation
  18761. features. FEATURE-LIST is a comma separated list of FEATURE names.
  18762. See also '-mdump-tune-features'. When specified, the FEATURE is
  18763. turned on if it is not preceded with '^', otherwise, it is turned
  18764. off. '-mtune-ctrl=FEATURE-LIST' is intended to be used by GCC
  18765. developers. Using it may lead to code paths not covered by testing
  18766. and can potentially result in compiler ICEs or runtime errors.
  18767. '-mno-default'
  18768. This option instructs GCC to turn off all tunable features. See
  18769. also '-mtune-ctrl=FEATURE-LIST' and '-mdump-tune-features'.
  18770. '-mcld'
  18771. This option instructs GCC to emit a 'cld' instruction in the
  18772. prologue of functions that use string instructions. String
  18773. instructions depend on the DF flag to select between autoincrement
  18774. or autodecrement mode. While the ABI specifies the DF flag to be
  18775. cleared on function entry, some operating systems violate this
  18776. specification by not clearing the DF flag in their exception
  18777. dispatchers. The exception handler can be invoked with the DF flag
  18778. set, which leads to wrong direction mode when string instructions
  18779. are used. This option can be enabled by default on 32-bit x86
  18780. targets by configuring GCC with the '--enable-cld' configure
  18781. option. Generation of 'cld' instructions can be suppressed with
  18782. the '-mno-cld' compiler option in this case.
  18783. '-mvzeroupper'
  18784. This option instructs GCC to emit a 'vzeroupper' instruction before
  18785. a transfer of control flow out of the function to minimize the AVX
  18786. to SSE transition penalty as well as remove unnecessary 'zeroupper'
  18787. intrinsics.
  18788. '-mprefer-avx128'
  18789. This option instructs GCC to use 128-bit AVX instructions instead
  18790. of 256-bit AVX instructions in the auto-vectorizer.
  18791. '-mcx16'
  18792. This option enables GCC to generate 'CMPXCHG16B' instructions in
  18793. 64-bit code to implement compare-and-exchange operations on 16-byte
  18794. aligned 128-bit objects. This is useful for atomic updates of data
  18795. structures exceeding one machine word in size. The compiler uses
  18796. this instruction to implement *note __sync Builtins::. However,
  18797. for *note __atomic Builtins:: operating on 128-bit integers, a
  18798. library call is always used.
  18799. '-msahf'
  18800. This option enables generation of 'SAHF' instructions in 64-bit
  18801. code. Early Intel Pentium 4 CPUs with Intel 64 support, prior to
  18802. the introduction of Pentium 4 G1 step in December 2005, lacked the
  18803. 'LAHF' and 'SAHF' instructions which are supported by AMD64. These
  18804. are load and store instructions, respectively, for certain status
  18805. flags. In 64-bit mode, the 'SAHF' instruction is used to optimize
  18806. 'fmod', 'drem', and 'remainder' built-in functions; see *note Other
  18807. Builtins:: for details.
  18808. '-mmovbe'
  18809. This option enables use of the 'movbe' instruction to implement
  18810. '__builtin_bswap32' and '__builtin_bswap64'.
  18811. '-mcrc32'
  18812. This option enables built-in functions '__builtin_ia32_crc32qi',
  18813. '__builtin_ia32_crc32hi', '__builtin_ia32_crc32si' and
  18814. '__builtin_ia32_crc32di' to generate the 'crc32' machine
  18815. instruction.
  18816. '-mrecip'
  18817. This option enables use of 'RCPSS' and 'RSQRTSS' instructions (and
  18818. their vectorized variants 'RCPPS' and 'RSQRTPS') with an additional
  18819. Newton-Raphson step to increase precision instead of 'DIVSS' and
  18820. 'SQRTSS' (and their vectorized variants) for single-precision
  18821. floating-point arguments. These instructions are generated only
  18822. when '-funsafe-math-optimizations' is enabled together with
  18823. '-ffinite-math-only' and '-fno-trapping-math'. Note that while the
  18824. throughput of the sequence is higher than the throughput of the
  18825. non-reciprocal instruction, the precision of the sequence can be
  18826. decreased by up to 2 ulp (i.e. the inverse of 1.0 equals
  18827. 0.99999994).
  18828. Note that GCC implements '1.0f/sqrtf(X)' in terms of 'RSQRTSS' (or
  18829. 'RSQRTPS') already with '-ffast-math' (or the above option
  18830. combination), and doesn't need '-mrecip'.
  18831. Also note that GCC emits the above sequence with additional
  18832. Newton-Raphson step for vectorized single-float division and
  18833. vectorized 'sqrtf(X)' already with '-ffast-math' (or the above
  18834. option combination), and doesn't need '-mrecip'.
  18835. '-mrecip=OPT'
  18836. This option controls which reciprocal estimate instructions may be
  18837. used. OPT is a comma-separated list of options, which may be
  18838. preceded by a '!' to invert the option:
  18839. 'all'
  18840. Enable all estimate instructions.
  18841. 'default'
  18842. Enable the default instructions, equivalent to '-mrecip'.
  18843. 'none'
  18844. Disable all estimate instructions, equivalent to '-mno-recip'.
  18845. 'div'
  18846. Enable the approximation for scalar division.
  18847. 'vec-div'
  18848. Enable the approximation for vectorized division.
  18849. 'sqrt'
  18850. Enable the approximation for scalar square root.
  18851. 'vec-sqrt'
  18852. Enable the approximation for vectorized square root.
  18853. So, for example, '-mrecip=all,!sqrt' enables all of the reciprocal
  18854. approximations, except for square root.
  18855. '-mveclibabi=TYPE'
  18856. Specifies the ABI type to use for vectorizing intrinsics using an
  18857. external library. Supported values for TYPE are 'svml' for the
  18858. Intel short vector math library and 'acml' for the AMD math core
  18859. library. To use this option, both '-ftree-vectorize' and
  18860. '-funsafe-math-optimizations' have to be enabled, and an SVML or
  18861. ACML ABI-compatible library must be specified at link time.
  18862. GCC currently emits calls to 'vmldExp2', 'vmldLn2', 'vmldLog102',
  18863. 'vmldLog102', 'vmldPow2', 'vmldTanh2', 'vmldTan2', 'vmldAtan2',
  18864. 'vmldAtanh2', 'vmldCbrt2', 'vmldSinh2', 'vmldSin2', 'vmldAsinh2',
  18865. 'vmldAsin2', 'vmldCosh2', 'vmldCos2', 'vmldAcosh2', 'vmldAcos2',
  18866. 'vmlsExp4', 'vmlsLn4', 'vmlsLog104', 'vmlsLog104', 'vmlsPow4',
  18867. 'vmlsTanh4', 'vmlsTan4', 'vmlsAtan4', 'vmlsAtanh4', 'vmlsCbrt4',
  18868. 'vmlsSinh4', 'vmlsSin4', 'vmlsAsinh4', 'vmlsAsin4', 'vmlsCosh4',
  18869. 'vmlsCos4', 'vmlsAcosh4' and 'vmlsAcos4' for corresponding function
  18870. type when '-mveclibabi=svml' is used, and '__vrd2_sin',
  18871. '__vrd2_cos', '__vrd2_exp', '__vrd2_log', '__vrd2_log2',
  18872. '__vrd2_log10', '__vrs4_sinf', '__vrs4_cosf', '__vrs4_expf',
  18873. '__vrs4_logf', '__vrs4_log2f', '__vrs4_log10f' and '__vrs4_powf'
  18874. for the corresponding function type when '-mveclibabi=acml' is
  18875. used.
  18876. '-mabi=NAME'
  18877. Generate code for the specified calling convention. Permissible
  18878. values are 'sysv' for the ABI used on GNU/Linux and other systems,
  18879. and 'ms' for the Microsoft ABI. The default is to use the Microsoft
  18880. ABI when targeting Microsoft Windows and the SysV ABI on all other
  18881. systems. You can control this behavior for specific functions by
  18882. using the function attributes 'ms_abi' and 'sysv_abi'. *Note
  18883. Function Attributes::.
  18884. '-mtls-dialect=TYPE'
  18885. Generate code to access thread-local storage using the 'gnu' or
  18886. 'gnu2' conventions. 'gnu' is the conservative default; 'gnu2' is
  18887. more efficient, but it may add compile- and run-time requirements
  18888. that cannot be satisfied on all systems.
  18889. '-mpush-args'
  18890. '-mno-push-args'
  18891. Use PUSH operations to store outgoing parameters. This method is
  18892. shorter and usually equally fast as method using SUB/MOV operations
  18893. and is enabled by default. In some cases disabling it may improve
  18894. performance because of improved scheduling and reduced
  18895. dependencies.
  18896. '-maccumulate-outgoing-args'
  18897. If enabled, the maximum amount of space required for outgoing
  18898. arguments is computed in the function prologue. This is faster on
  18899. most modern CPUs because of reduced dependencies, improved
  18900. scheduling and reduced stack usage when the preferred stack
  18901. boundary is not equal to 2. The drawback is a notable increase in
  18902. code size. This switch implies '-mno-push-args'.
  18903. '-mthreads'
  18904. Support thread-safe exception handling on MinGW. Programs that rely
  18905. on thread-safe exception handling must compile and link all code
  18906. with the '-mthreads' option. When compiling, '-mthreads' defines
  18907. '-D_MT'; when linking, it links in a special thread helper library
  18908. '-lmingwthrd' which cleans up per-thread exception-handling data.
  18909. '-mms-bitfields'
  18910. '-mno-ms-bitfields'
  18911. Enable/disable bit-field layout compatible with the native
  18912. Microsoft Windows compiler.
  18913. If 'packed' is used on a structure, or if bit-fields are used, it
  18914. may be that the Microsoft ABI lays out the structure differently
  18915. than the way GCC normally does. Particularly when moving packed
  18916. data between functions compiled with GCC and the native Microsoft
  18917. compiler (either via function call or as data in a file), it may be
  18918. necessary to access either format.
  18919. This option is enabled by default for Microsoft Windows targets.
  18920. This behavior can also be controlled locally by use of variable or
  18921. type attributes. For more information, see *note x86 Variable
  18922. Attributes:: and *note x86 Type Attributes::.
  18923. The Microsoft structure layout algorithm is fairly simple with the
  18924. exception of the bit-field packing. The padding and alignment of
  18925. members of structures and whether a bit-field can straddle a
  18926. storage-unit boundary are determine by these rules:
  18927. 1. Structure members are stored sequentially in the order in
  18928. which they are declared: the first member has the lowest
  18929. memory address and the last member the highest.
  18930. 2. Every data object has an alignment requirement. The alignment
  18931. requirement for all data except structures, unions, and arrays
  18932. is either the size of the object or the current packing size
  18933. (specified with either the 'aligned' attribute or the 'pack'
  18934. pragma), whichever is less. For structures, unions, and
  18935. arrays, the alignment requirement is the largest alignment
  18936. requirement of its members. Every object is allocated an
  18937. offset so that:
  18938. offset % alignment_requirement == 0
  18939. 3. Adjacent bit-fields are packed into the same 1-, 2-, or 4-byte
  18940. allocation unit if the integral types are the same size and if
  18941. the next bit-field fits into the current allocation unit
  18942. without crossing the boundary imposed by the common alignment
  18943. requirements of the bit-fields.
  18944. MSVC interprets zero-length bit-fields in the following ways:
  18945. 1. If a zero-length bit-field is inserted between two bit-fields
  18946. that are normally coalesced, the bit-fields are not coalesced.
  18947. For example:
  18948. struct
  18949. {
  18950. unsigned long bf_1 : 12;
  18951. unsigned long : 0;
  18952. unsigned long bf_2 : 12;
  18953. } t1;
  18954. The size of 't1' is 8 bytes with the zero-length bit-field.
  18955. If the zero-length bit-field were removed, 't1''s size would
  18956. be 4 bytes.
  18957. 2. If a zero-length bit-field is inserted after a bit-field,
  18958. 'foo', and the alignment of the zero-length bit-field is
  18959. greater than the member that follows it, 'bar', 'bar' is
  18960. aligned as the type of the zero-length bit-field.
  18961. For example:
  18962. struct
  18963. {
  18964. char foo : 4;
  18965. short : 0;
  18966. char bar;
  18967. } t2;
  18968. struct
  18969. {
  18970. char foo : 4;
  18971. short : 0;
  18972. double bar;
  18973. } t3;
  18974. For 't2', 'bar' is placed at offset 2, rather than offset 1.
  18975. Accordingly, the size of 't2' is 4. For 't3', the zero-length
  18976. bit-field does not affect the alignment of 'bar' or, as a
  18977. result, the size of the structure.
  18978. Taking this into account, it is important to note the
  18979. following:
  18980. 1. If a zero-length bit-field follows a normal bit-field,
  18981. the type of the zero-length bit-field may affect the
  18982. alignment of the structure as whole. For example, 't2'
  18983. has a size of 4 bytes, since the zero-length bit-field
  18984. follows a normal bit-field, and is of type short.
  18985. 2. Even if a zero-length bit-field is not followed by a
  18986. normal bit-field, it may still affect the alignment of
  18987. the structure:
  18988. struct
  18989. {
  18990. char foo : 6;
  18991. long : 0;
  18992. } t4;
  18993. Here, 't4' takes up 4 bytes.
  18994. 3. Zero-length bit-fields following non-bit-field members are
  18995. ignored:
  18996. struct
  18997. {
  18998. char foo;
  18999. long : 0;
  19000. char bar;
  19001. } t5;
  19002. Here, 't5' takes up 2 bytes.
  19003. '-mno-align-stringops'
  19004. Do not align the destination of inlined string operations. This
  19005. switch reduces code size and improves performance in case the
  19006. destination is already aligned, but GCC doesn't know about it.
  19007. '-minline-all-stringops'
  19008. By default GCC inlines string operations only when the destination
  19009. is known to be aligned to least a 4-byte boundary. This enables
  19010. more inlining and increases code size, but may improve performance
  19011. of code that depends on fast 'memcpy', 'strlen', and 'memset' for
  19012. short lengths.
  19013. '-minline-stringops-dynamically'
  19014. For string operations of unknown size, use run-time checks with
  19015. inline code for small blocks and a library call for large blocks.
  19016. '-mstringop-strategy=ALG'
  19017. Override the internal decision heuristic for the particular
  19018. algorithm to use for inlining string operations. The allowed
  19019. values for ALG are:
  19020. 'rep_byte'
  19021. 'rep_4byte'
  19022. 'rep_8byte'
  19023. Expand using i386 'rep' prefix of the specified size.
  19024. 'byte_loop'
  19025. 'loop'
  19026. 'unrolled_loop'
  19027. Expand into an inline loop.
  19028. 'libcall'
  19029. Always use a library call.
  19030. '-mmemcpy-strategy=STRATEGY'
  19031. Override the internal decision heuristic to decide if
  19032. '__builtin_memcpy' should be inlined and what inline algorithm to
  19033. use when the expected size of the copy operation is known.
  19034. STRATEGY is a comma-separated list of ALG:MAX_SIZE:DEST_ALIGN
  19035. triplets. ALG is specified in '-mstringop-strategy', MAX_SIZE
  19036. specifies the max byte size with which inline algorithm ALG is
  19037. allowed. For the last triplet, the MAX_SIZE must be '-1'. The
  19038. MAX_SIZE of the triplets in the list must be specified in
  19039. increasing order. The minimal byte size for ALG is '0' for the
  19040. first triplet and 'MAX_SIZE + 1' of the preceding range.
  19041. '-mmemset-strategy=STRATEGY'
  19042. The option is similar to '-mmemcpy-strategy=' except that it is to
  19043. control '__builtin_memset' expansion.
  19044. '-momit-leaf-frame-pointer'
  19045. Don't keep the frame pointer in a register for leaf functions.
  19046. This avoids the instructions to save, set up, and restore frame
  19047. pointers and makes an extra register available in leaf functions.
  19048. The option '-fomit-leaf-frame-pointer' removes the frame pointer
  19049. for leaf functions, which might make debugging harder.
  19050. '-mtls-direct-seg-refs'
  19051. '-mno-tls-direct-seg-refs'
  19052. Controls whether TLS variables may be accessed with offsets from
  19053. the TLS segment register ('%gs' for 32-bit, '%fs' for 64-bit), or
  19054. whether the thread base pointer must be added. Whether or not this
  19055. is valid depends on the operating system, and whether it maps the
  19056. segment to cover the entire TLS area.
  19057. For systems that use the GNU C Library, the default is on.
  19058. '-msse2avx'
  19059. '-mno-sse2avx'
  19060. Specify that the assembler should encode SSE instructions with VEX
  19061. prefix. The option '-mavx' turns this on by default.
  19062. '-mfentry'
  19063. '-mno-fentry'
  19064. If profiling is active ('-pg'), put the profiling counter call
  19065. before the prologue. Note: On x86 architectures the attribute
  19066. 'ms_hook_prologue' isn't possible at the moment for '-mfentry' and
  19067. '-pg'.
  19068. '-mrecord-mcount'
  19069. '-mno-record-mcount'
  19070. If profiling is active ('-pg'), generate a __mcount_loc section
  19071. that contains pointers to each profiling call. This is useful for
  19072. automatically patching and out calls.
  19073. '-mnop-mcount'
  19074. '-mno-nop-mcount'
  19075. If profiling is active ('-pg'), generate the calls to the profiling
  19076. functions as NOPs. This is useful when they should be patched in
  19077. later dynamically. This is likely only useful together with
  19078. '-mrecord-mcount'.
  19079. '-mskip-rax-setup'
  19080. '-mno-skip-rax-setup'
  19081. When generating code for the x86-64 architecture with SSE
  19082. extensions disabled, '-mskip-rax-setup' can be used to skip setting
  19083. up RAX register when there are no variable arguments passed in
  19084. vector registers.
  19085. *Warning:* Since RAX register is used to avoid unnecessarily saving
  19086. vector registers on stack when passing variable arguments, the
  19087. impacts of this option are callees may waste some stack space,
  19088. misbehave or jump to a random location. GCC 4.4 or newer don't
  19089. have those issues, regardless the RAX register value.
  19090. '-m8bit-idiv'
  19091. '-mno-8bit-idiv'
  19092. On some processors, like Intel Atom, 8-bit unsigned integer divide
  19093. is much faster than 32-bit/64-bit integer divide. This option
  19094. generates a run-time check. If both dividend and divisor are
  19095. within range of 0 to 255, 8-bit unsigned integer divide is used
  19096. instead of 32-bit/64-bit integer divide.
  19097. '-mavx256-split-unaligned-load'
  19098. '-mavx256-split-unaligned-store'
  19099. Split 32-byte AVX unaligned load and store.
  19100. '-mstack-protector-guard=GUARD'
  19101. Generate stack protection code using canary at GUARD. Supported
  19102. locations are 'global' for global canary or 'tls' for per-thread
  19103. canary in the TLS block (the default). This option has effect only
  19104. when '-fstack-protector' or '-fstack-protector-all' is specified.
  19105. '-mmitigate-rop'
  19106. Try to avoid generating code sequences that contain unintended
  19107. return opcodes, to mitigate against certain forms of attack. At
  19108. the moment, this option is limited in what it can do and should not
  19109. be relied on to provide serious protection.
  19110. '-mgeneral-regs-only'
  19111. Generate code that uses only the general-purpose registers. This
  19112. prevents the compiler from using floating-point, vector, mask and
  19113. bound registers.
  19114. '-mindirect-branch=CHOICE'
  19115. Convert indirect call and jump with CHOICE. The default is 'keep',
  19116. which keeps indirect call and jump unmodified. 'thunk' converts
  19117. indirect call and jump to call and return thunk. 'thunk-inline'
  19118. converts indirect call and jump to inlined call and return thunk.
  19119. 'thunk-extern' converts indirect call and jump to external call and
  19120. return thunk provided in a separate object file. You can control
  19121. this behavior for a specific function by using the function
  19122. attribute 'indirect_branch'. *Note Function Attributes::.
  19123. Note that '-mcmodel=large' is incompatible with
  19124. '-mindirect-branch=thunk' nor '-mindirect-branch=thunk-extern'
  19125. since the thunk function may not be reachable in large code model.
  19126. '-mfunction-return=CHOICE'
  19127. Convert function return with CHOICE. The default is 'keep', which
  19128. keeps function return unmodified. 'thunk' converts function return
  19129. to call and return thunk. 'thunk-inline' converts function return
  19130. to inlined call and return thunk. 'thunk-extern' converts function
  19131. return to external call and return thunk provided in a separate
  19132. object file. You can control this behavior for a specific function
  19133. by using the function attribute 'function_return'. *Note Function
  19134. Attributes::.
  19135. Note that '-mcmodel=large' is incompatible with
  19136. '-mfunction-return=thunk' nor '-mfunction-return=thunk-extern'
  19137. since the thunk function may not be reachable in large code model.
  19138. '-mindirect-branch-register'
  19139. Force indirect call and jump via register.
  19140. These '-m' switches are supported in addition to the above on x86-64
  19141. processors in 64-bit environments.
  19142. '-m32'
  19143. '-m64'
  19144. '-mx32'
  19145. '-m16'
  19146. '-miamcu'
  19147. Generate code for a 16-bit, 32-bit or 64-bit environment. The
  19148. '-m32' option sets 'int', 'long', and pointer types to 32 bits, and
  19149. generates code that runs on any i386 system.
  19150. The '-m64' option sets 'int' to 32 bits and 'long' and pointer
  19151. types to 64 bits, and generates code for the x86-64 architecture.
  19152. For Darwin only the '-m64' option also turns off the '-fno-pic' and
  19153. '-mdynamic-no-pic' options.
  19154. The '-mx32' option sets 'int', 'long', and pointer types to 32
  19155. bits, and generates code for the x86-64 architecture.
  19156. The '-m16' option is the same as '-m32', except for that it outputs
  19157. the '.code16gcc' assembly directive at the beginning of the
  19158. assembly output so that the binary can run in 16-bit mode.
  19159. The '-miamcu' option generates code which conforms to Intel MCU
  19160. psABI. It requires the '-m32' option to be turned on.
  19161. '-mno-red-zone'
  19162. Do not use a so-called "red zone" for x86-64 code. The red zone is
  19163. mandated by the x86-64 ABI; it is a 128-byte area beyond the
  19164. location of the stack pointer that is not modified by signal or
  19165. interrupt handlers and therefore can be used for temporary data
  19166. without adjusting the stack pointer. The flag '-mno-red-zone'
  19167. disables this red zone.
  19168. '-mcmodel=small'
  19169. Generate code for the small code model: the program and its symbols
  19170. must be linked in the lower 2 GB of the address space. Pointers
  19171. are 64 bits. Programs can be statically or dynamically linked.
  19172. This is the default code model.
  19173. '-mcmodel=kernel'
  19174. Generate code for the kernel code model. The kernel runs in the
  19175. negative 2 GB of the address space. This model has to be used for
  19176. Linux kernel code.
  19177. '-mcmodel=medium'
  19178. Generate code for the medium model: the program is linked in the
  19179. lower 2 GB of the address space. Small symbols are also placed
  19180. there. Symbols with sizes larger than '-mlarge-data-threshold' are
  19181. put into large data or BSS sections and can be located above 2GB.
  19182. Programs can be statically or dynamically linked.
  19183. '-mcmodel=large'
  19184. Generate code for the large model. This model makes no assumptions
  19185. about addresses and sizes of sections.
  19186. '-maddress-mode=long'
  19187. Generate code for long address mode. This is only supported for
  19188. 64-bit and x32 environments. It is the default address mode for
  19189. 64-bit environments.
  19190. '-maddress-mode=short'
  19191. Generate code for short address mode. This is only supported for
  19192. 32-bit and x32 environments. It is the default address mode for
  19193. 32-bit and x32 environments.
  19194. 
  19195. File: gcc.info, Node: x86 Windows Options, Next: Xstormy16 Options, Prev: x86 Options, Up: Submodel Options
  19196. 3.18.56 x86 Windows Options
  19197. ---------------------------
  19198. These additional options are available for Microsoft Windows targets:
  19199. '-mconsole'
  19200. This option specifies that a console application is to be
  19201. generated, by instructing the linker to set the PE header subsystem
  19202. type required for console applications. This option is available
  19203. for Cygwin and MinGW targets and is enabled by default on those
  19204. targets.
  19205. '-mdll'
  19206. This option is available for Cygwin and MinGW targets. It
  19207. specifies that a DLL--a dynamic link library--is to be generated,
  19208. enabling the selection of the required runtime startup object and
  19209. entry point.
  19210. '-mnop-fun-dllimport'
  19211. This option is available for Cygwin and MinGW targets. It
  19212. specifies that the 'dllimport' attribute should be ignored.
  19213. '-mthread'
  19214. This option is available for MinGW targets. It specifies that
  19215. MinGW-specific thread support is to be used.
  19216. '-municode'
  19217. This option is available for MinGW-w64 targets. It causes the
  19218. 'UNICODE' preprocessor macro to be predefined, and chooses
  19219. Unicode-capable runtime startup code.
  19220. '-mwin32'
  19221. This option is available for Cygwin and MinGW targets. It
  19222. specifies that the typical Microsoft Windows predefined macros are
  19223. to be set in the pre-processor, but does not influence the choice
  19224. of runtime library/startup code.
  19225. '-mwindows'
  19226. This option is available for Cygwin and MinGW targets. It
  19227. specifies that a GUI application is to be generated by instructing
  19228. the linker to set the PE header subsystem type appropriately.
  19229. '-fno-set-stack-executable'
  19230. This option is available for MinGW targets. It specifies that the
  19231. executable flag for the stack used by nested functions isn't set.
  19232. This is necessary for binaries running in kernel mode of Microsoft
  19233. Windows, as there the User32 API, which is used to set executable
  19234. privileges, isn't available.
  19235. '-fwritable-relocated-rdata'
  19236. This option is available for MinGW and Cygwin targets. It
  19237. specifies that relocated-data in read-only section is put into the
  19238. '.data' section. This is a necessary for older runtimes not
  19239. supporting modification of '.rdata' sections for pseudo-relocation.
  19240. '-mpe-aligned-commons'
  19241. This option is available for Cygwin and MinGW targets. It
  19242. specifies that the GNU extension to the PE file format that permits
  19243. the correct alignment of COMMON variables should be used when
  19244. generating code. It is enabled by default if GCC detects that the
  19245. target assembler found during configuration supports the feature.
  19246. See also under *note x86 Options:: for standard options.
  19247. 
  19248. File: gcc.info, Node: Xstormy16 Options, Next: Xtensa Options, Prev: x86 Windows Options, Up: Submodel Options
  19249. 3.18.57 Xstormy16 Options
  19250. -------------------------
  19251. These options are defined for Xstormy16:
  19252. '-msim'
  19253. Choose startup files and linker script suitable for the simulator.
  19254. 
  19255. File: gcc.info, Node: Xtensa Options, Next: zSeries Options, Prev: Xstormy16 Options, Up: Submodel Options
  19256. 3.18.58 Xtensa Options
  19257. ----------------------
  19258. These options are supported for Xtensa targets:
  19259. '-mconst16'
  19260. '-mno-const16'
  19261. Enable or disable use of 'CONST16' instructions for loading
  19262. constant values. The 'CONST16' instruction is currently not a
  19263. standard option from Tensilica. When enabled, 'CONST16'
  19264. instructions are always used in place of the standard 'L32R'
  19265. instructions. The use of 'CONST16' is enabled by default only if
  19266. the 'L32R' instruction is not available.
  19267. '-mfused-madd'
  19268. '-mno-fused-madd'
  19269. Enable or disable use of fused multiply/add and multiply/subtract
  19270. instructions in the floating-point option. This has no effect if
  19271. the floating-point option is not also enabled. Disabling fused
  19272. multiply/add and multiply/subtract instructions forces the compiler
  19273. to use separate instructions for the multiply and add/subtract
  19274. operations. This may be desirable in some cases where strict IEEE
  19275. 754-compliant results are required: the fused multiply add/subtract
  19276. instructions do not round the intermediate result, thereby
  19277. producing results with _more_ bits of precision than specified by
  19278. the IEEE standard. Disabling fused multiply add/subtract
  19279. instructions also ensures that the program output is not sensitive
  19280. to the compiler's ability to combine multiply and add/subtract
  19281. operations.
  19282. '-mserialize-volatile'
  19283. '-mno-serialize-volatile'
  19284. When this option is enabled, GCC inserts 'MEMW' instructions before
  19285. 'volatile' memory references to guarantee sequential consistency.
  19286. The default is '-mserialize-volatile'. Use
  19287. '-mno-serialize-volatile' to omit the 'MEMW' instructions.
  19288. '-mforce-no-pic'
  19289. For targets, like GNU/Linux, where all user-mode Xtensa code must
  19290. be position-independent code (PIC), this option disables PIC for
  19291. compiling kernel code.
  19292. '-mtext-section-literals'
  19293. '-mno-text-section-literals'
  19294. These options control the treatment of literal pools. The default
  19295. is '-mno-text-section-literals', which places literals in a
  19296. separate section in the output file. This allows the literal pool
  19297. to be placed in a data RAM/ROM, and it also allows the linker to
  19298. combine literal pools from separate object files to remove
  19299. redundant literals and improve code size. With
  19300. '-mtext-section-literals', the literals are interspersed in the
  19301. text section in order to keep them as close as possible to their
  19302. references. This may be necessary for large assembly files.
  19303. Literals for each function are placed right before that function.
  19304. '-mauto-litpools'
  19305. '-mno-auto-litpools'
  19306. These options control the treatment of literal pools. The default
  19307. is '-mno-auto-litpools', which places literals in a separate
  19308. section in the output file unless '-mtext-section-literals' is
  19309. used. With '-mauto-litpools' the literals are interspersed in the
  19310. text section by the assembler. Compiler does not produce explicit
  19311. '.literal' directives and loads literals into registers with 'MOVI'
  19312. instructions instead of 'L32R' to let the assembler do relaxation
  19313. and place literals as necessary. This option allows assembler to
  19314. create several literal pools per function and assemble very big
  19315. functions, which may not be possible with
  19316. '-mtext-section-literals'.
  19317. '-mtarget-align'
  19318. '-mno-target-align'
  19319. When this option is enabled, GCC instructs the assembler to
  19320. automatically align instructions to reduce branch penalties at the
  19321. expense of some code density. The assembler attempts to widen
  19322. density instructions to align branch targets and the instructions
  19323. following call instructions. If there are not enough preceding
  19324. safe density instructions to align a target, no widening is
  19325. performed. The default is '-mtarget-align'. These options do not
  19326. affect the treatment of auto-aligned instructions like 'LOOP',
  19327. which the assembler always aligns, either by widening density
  19328. instructions or by inserting NOP instructions.
  19329. '-mlongcalls'
  19330. '-mno-longcalls'
  19331. When this option is enabled, GCC instructs the assembler to
  19332. translate direct calls to indirect calls unless it can determine
  19333. that the target of a direct call is in the range allowed by the
  19334. call instruction. This translation typically occurs for calls to
  19335. functions in other source files. Specifically, the assembler
  19336. translates a direct 'CALL' instruction into an 'L32R' followed by a
  19337. 'CALLX' instruction. The default is '-mno-longcalls'. This option
  19338. should be used in programs where the call target can potentially be
  19339. out of range. This option is implemented in the assembler, not the
  19340. compiler, so the assembly code generated by GCC still shows direct
  19341. call instructions--look at the disassembled object code to see the
  19342. actual instructions. Note that the assembler uses an indirect call
  19343. for every cross-file call, not just those that really are out of
  19344. range.
  19345. 
  19346. File: gcc.info, Node: zSeries Options, Prev: Xtensa Options, Up: Submodel Options
  19347. 3.18.59 zSeries Options
  19348. -----------------------
  19349. These are listed under *Note S/390 and zSeries Options::.
  19350. 
  19351. File: gcc.info, Node: Spec Files, Next: Environment Variables, Prev: Submodel Options, Up: Invoking GCC
  19352. 3.19 Specifying Subprocesses and the Switches to Pass to Them
  19353. =============================================================
  19354. 'gcc' is a driver program. It performs its job by invoking a sequence
  19355. of other programs to do the work of compiling, assembling and linking.
  19356. GCC interprets its command-line parameters and uses these to deduce
  19357. which programs it should invoke, and which command-line options it ought
  19358. to place on their command lines. This behavior is controlled by "spec
  19359. strings". In most cases there is one spec string for each program that
  19360. GCC can invoke, but a few programs have multiple spec strings to control
  19361. their behavior. The spec strings built into GCC can be overridden by
  19362. using the '-specs=' command-line switch to specify a spec file.
  19363. "Spec files" are plain-text files that are used to construct spec
  19364. strings. They consist of a sequence of directives separated by blank
  19365. lines. The type of directive is determined by the first non-whitespace
  19366. character on the line, which can be one of the following:
  19367. '%COMMAND'
  19368. Issues a COMMAND to the spec file processor. The commands that can
  19369. appear here are:
  19370. '%include <FILE>'
  19371. Search for FILE and insert its text at the current point in
  19372. the specs file.
  19373. '%include_noerr <FILE>'
  19374. Just like '%include', but do not generate an error message if
  19375. the include file cannot be found.
  19376. '%rename OLD_NAME NEW_NAME'
  19377. Rename the spec string OLD_NAME to NEW_NAME.
  19378. '*[SPEC_NAME]:'
  19379. This tells the compiler to create, override or delete the named
  19380. spec string. All lines after this directive up to the next
  19381. directive or blank line are considered to be the text for the spec
  19382. string. If this results in an empty string then the spec is
  19383. deleted. (Or, if the spec did not exist, then nothing happens.)
  19384. Otherwise, if the spec does not currently exist a new spec is
  19385. created. If the spec does exist then its contents are overridden
  19386. by the text of this directive, unless the first character of that
  19387. text is the '+' character, in which case the text is appended to
  19388. the spec.
  19389. '[SUFFIX]:'
  19390. Creates a new '[SUFFIX] spec' pair. All lines after this directive
  19391. and up to the next directive or blank line are considered to make
  19392. up the spec string for the indicated suffix. When the compiler
  19393. encounters an input file with the named suffix, it processes the
  19394. spec string in order to work out how to compile that file. For
  19395. example:
  19396. .ZZ:
  19397. z-compile -input %i
  19398. This says that any input file whose name ends in '.ZZ' should be
  19399. passed to the program 'z-compile', which should be invoked with the
  19400. command-line switch '-input' and with the result of performing the
  19401. '%i' substitution. (See below.)
  19402. As an alternative to providing a spec string, the text following a
  19403. suffix directive can be one of the following:
  19404. '@LANGUAGE'
  19405. This says that the suffix is an alias for a known LANGUAGE.
  19406. This is similar to using the '-x' command-line switch to GCC
  19407. to specify a language explicitly. For example:
  19408. .ZZ:
  19409. @c++
  19410. Says that .ZZ files are, in fact, C++ source files.
  19411. '#NAME'
  19412. This causes an error messages saying:
  19413. NAME compiler not installed on this system.
  19414. GCC already has an extensive list of suffixes built into it. This
  19415. directive adds an entry to the end of the list of suffixes, but
  19416. since the list is searched from the end backwards, it is
  19417. effectively possible to override earlier entries using this
  19418. technique.
  19419. GCC has the following spec strings built into it. Spec files can
  19420. override these strings or create their own. Note that individual
  19421. targets can also add their own spec strings to this list.
  19422. asm Options to pass to the assembler
  19423. asm_final Options to pass to the assembler post-processor
  19424. cpp Options to pass to the C preprocessor
  19425. cc1 Options to pass to the C compiler
  19426. cc1plus Options to pass to the C++ compiler
  19427. endfile Object files to include at the end of the link
  19428. link Options to pass to the linker
  19429. lib Libraries to include on the command line to the linker
  19430. libgcc Decides which GCC support library to pass to the linker
  19431. linker Sets the name of the linker
  19432. predefines Defines to be passed to the C preprocessor
  19433. signed_char Defines to pass to CPP to say whether char is signed
  19434. by default
  19435. startfile Object files to include at the start of the link
  19436. Here is a small example of a spec file:
  19437. %rename lib old_lib
  19438. *lib:
  19439. --start-group -lgcc -lc -leval1 --end-group %(old_lib)
  19440. This example renames the spec called 'lib' to 'old_lib' and then
  19441. overrides the previous definition of 'lib' with a new one. The new
  19442. definition adds in some extra command-line options before including the
  19443. text of the old definition.
  19444. "Spec strings" are a list of command-line options to be passed to their
  19445. corresponding program. In addition, the spec strings can contain
  19446. '%'-prefixed sequences to substitute variable text or to conditionally
  19447. insert text into the command line. Using these constructs it is
  19448. possible to generate quite complex command lines.
  19449. Here is a table of all defined '%'-sequences for spec strings. Note
  19450. that spaces are not generated automatically around the results of
  19451. expanding these sequences. Therefore you can concatenate them together
  19452. or combine them with constant text in a single argument.
  19453. '%%'
  19454. Substitute one '%' into the program name or argument.
  19455. '%i'
  19456. Substitute the name of the input file being processed.
  19457. '%b'
  19458. Substitute the basename of the input file being processed. This is
  19459. the substring up to (and not including) the last period and not
  19460. including the directory.
  19461. '%B'
  19462. This is the same as '%b', but include the file suffix (text after
  19463. the last period).
  19464. '%d'
  19465. Marks the argument containing or following the '%d' as a temporary
  19466. file name, so that that file is deleted if GCC exits successfully.
  19467. Unlike '%g', this contributes no text to the argument.
  19468. '%gSUFFIX'
  19469. Substitute a file name that has suffix SUFFIX and is chosen once
  19470. per compilation, and mark the argument in the same way as '%d'. To
  19471. reduce exposure to denial-of-service attacks, the file name is now
  19472. chosen in a way that is hard to predict even when previously chosen
  19473. file names are known. For example, '%g.s ... %g.o ... %g.s' might
  19474. turn into 'ccUVUUAU.s ccXYAXZ12.o ccUVUUAU.s'. SUFFIX matches the
  19475. regexp '[.A-Za-z]*' or the special string '%O', which is treated
  19476. exactly as if '%O' had been preprocessed. Previously, '%g' was
  19477. simply substituted with a file name chosen once per compilation,
  19478. without regard to any appended suffix (which was therefore treated
  19479. just like ordinary text), making such attacks more likely to
  19480. succeed.
  19481. '%uSUFFIX'
  19482. Like '%g', but generates a new temporary file name each time it
  19483. appears instead of once per compilation.
  19484. '%USUFFIX'
  19485. Substitutes the last file name generated with '%uSUFFIX',
  19486. generating a new one if there is no such last file name. In the
  19487. absence of any '%uSUFFIX', this is just like '%gSUFFIX', except
  19488. they don't share the same suffix _space_, so '%g.s ... %U.s ...
  19489. %g.s ... %U.s' involves the generation of two distinct file names,
  19490. one for each '%g.s' and another for each '%U.s'. Previously, '%U'
  19491. was simply substituted with a file name chosen for the previous
  19492. '%u', without regard to any appended suffix.
  19493. '%jSUFFIX'
  19494. Substitutes the name of the 'HOST_BIT_BUCKET', if any, and if it is
  19495. writable, and if '-save-temps' is not used; otherwise, substitute
  19496. the name of a temporary file, just like '%u'. This temporary file
  19497. is not meant for communication between processes, but rather as a
  19498. junk disposal mechanism.
  19499. '%|SUFFIX'
  19500. '%mSUFFIX'
  19501. Like '%g', except if '-pipe' is in effect. In that case '%|'
  19502. substitutes a single dash and '%m' substitutes nothing at all.
  19503. These are the two most common ways to instruct a program that it
  19504. should read from standard input or write to standard output. If
  19505. you need something more elaborate you can use an '%{pipe:'X'}'
  19506. construct: see for example 'f/lang-specs.h'.
  19507. '%.SUFFIX'
  19508. Substitutes .SUFFIX for the suffixes of a matched switch's args
  19509. when it is subsequently output with '%*'. SUFFIX is terminated by
  19510. the next space or %.
  19511. '%w'
  19512. Marks the argument containing or following the '%w' as the
  19513. designated output file of this compilation. This puts the argument
  19514. into the sequence of arguments that '%o' substitutes.
  19515. '%o'
  19516. Substitutes the names of all the output files, with spaces
  19517. automatically placed around them. You should write spaces around
  19518. the '%o' as well or the results are undefined. '%o' is for use in
  19519. the specs for running the linker. Input files whose names have no
  19520. recognized suffix are not compiled at all, but they are included
  19521. among the output files, so they are linked.
  19522. '%O'
  19523. Substitutes the suffix for object files. Note that this is handled
  19524. specially when it immediately follows '%g, %u, or %U', because of
  19525. the need for those to form complete file names. The handling is
  19526. such that '%O' is treated exactly as if it had already been
  19527. substituted, except that '%g, %u, and %U' do not currently support
  19528. additional SUFFIX characters following '%O' as they do following,
  19529. for example, '.o'.
  19530. '%p'
  19531. Substitutes the standard macro predefinitions for the current
  19532. target machine. Use this when running 'cpp'.
  19533. '%P'
  19534. Like '%p', but puts '__' before and after the name of each
  19535. predefined macro, except for macros that start with '__' or with
  19536. '_L', where L is an uppercase letter. This is for ISO C.
  19537. '%I'
  19538. Substitute any of '-iprefix' (made from 'GCC_EXEC_PREFIX'),
  19539. '-isysroot' (made from 'TARGET_SYSTEM_ROOT'), '-isystem' (made from
  19540. 'COMPILER_PATH' and '-B' options) and '-imultilib' as necessary.
  19541. '%s'
  19542. Current argument is the name of a library or startup file of some
  19543. sort. Search for that file in a standard list of directories and
  19544. substitute the full name found. The current working directory is
  19545. included in the list of directories scanned.
  19546. '%T'
  19547. Current argument is the name of a linker script. Search for that
  19548. file in the current list of directories to scan for libraries. If
  19549. the file is located insert a '--script' option into the command
  19550. line followed by the full path name found. If the file is not
  19551. found then generate an error message. Note: the current working
  19552. directory is not searched.
  19553. '%eSTR'
  19554. Print STR as an error message. STR is terminated by a newline.
  19555. Use this when inconsistent options are detected.
  19556. '%(NAME)'
  19557. Substitute the contents of spec string NAME at this point.
  19558. '%x{OPTION}'
  19559. Accumulate an option for '%X'.
  19560. '%X'
  19561. Output the accumulated linker options specified by '-Wl' or a '%x'
  19562. spec string.
  19563. '%Y'
  19564. Output the accumulated assembler options specified by '-Wa'.
  19565. '%Z'
  19566. Output the accumulated preprocessor options specified by '-Wp'.
  19567. '%a'
  19568. Process the 'asm' spec. This is used to compute the switches to be
  19569. passed to the assembler.
  19570. '%A'
  19571. Process the 'asm_final' spec. This is a spec string for passing
  19572. switches to an assembler post-processor, if such a program is
  19573. needed.
  19574. '%l'
  19575. Process the 'link' spec. This is the spec for computing the
  19576. command line passed to the linker. Typically it makes use of the
  19577. '%L %G %S %D and %E' sequences.
  19578. '%D'
  19579. Dump out a '-L' option for each directory that GCC believes might
  19580. contain startup files. If the target supports multilibs then the
  19581. current multilib directory is prepended to each of these paths.
  19582. '%L'
  19583. Process the 'lib' spec. This is a spec string for deciding which
  19584. libraries are included on the command line to the linker.
  19585. '%G'
  19586. Process the 'libgcc' spec. This is a spec string for deciding
  19587. which GCC support library is included on the command line to the
  19588. linker.
  19589. '%S'
  19590. Process the 'startfile' spec. This is a spec for deciding which
  19591. object files are the first ones passed to the linker. Typically
  19592. this might be a file named 'crt0.o'.
  19593. '%E'
  19594. Process the 'endfile' spec. This is a spec string that specifies
  19595. the last object files that are passed to the linker.
  19596. '%C'
  19597. Process the 'cpp' spec. This is used to construct the arguments to
  19598. be passed to the C preprocessor.
  19599. '%1'
  19600. Process the 'cc1' spec. This is used to construct the options to
  19601. be passed to the actual C compiler ('cc1').
  19602. '%2'
  19603. Process the 'cc1plus' spec. This is used to construct the options
  19604. to be passed to the actual C++ compiler ('cc1plus').
  19605. '%*'
  19606. Substitute the variable part of a matched option. See below. Note
  19607. that each comma in the substituted string is replaced by a single
  19608. space.
  19609. '%<S'
  19610. Remove all occurrences of '-S' from the command line. Note--this
  19611. command is position dependent. '%' commands in the spec string
  19612. before this one see '-S', '%' commands in the spec string after
  19613. this one do not.
  19614. '%:FUNCTION(ARGS)'
  19615. Call the named function FUNCTION, passing it ARGS. ARGS is first
  19616. processed as a nested spec string, then split into an argument
  19617. vector in the usual fashion. The function returns a string which
  19618. is processed as if it had appeared literally as part of the current
  19619. spec.
  19620. The following built-in spec functions are provided:
  19621. 'getenv'
  19622. The 'getenv' spec function takes two arguments: an environment
  19623. variable name and a string. If the environment variable is
  19624. not defined, a fatal error is issued. Otherwise, the return
  19625. value is the value of the environment variable concatenated
  19626. with the string. For example, if 'TOPDIR' is defined as
  19627. '/path/to/top', then:
  19628. %:getenv(TOPDIR /include)
  19629. expands to '/path/to/top/include'.
  19630. 'if-exists'
  19631. The 'if-exists' spec function takes one argument, an absolute
  19632. pathname to a file. If the file exists, 'if-exists' returns
  19633. the pathname. Here is a small example of its usage:
  19634. *startfile:
  19635. crt0%O%s %:if-exists(crti%O%s) crtbegin%O%s
  19636. 'if-exists-else'
  19637. The 'if-exists-else' spec function is similar to the
  19638. 'if-exists' spec function, except that it takes two arguments.
  19639. The first argument is an absolute pathname to a file. If the
  19640. file exists, 'if-exists-else' returns the pathname. If it
  19641. does not exist, it returns the second argument. This way,
  19642. 'if-exists-else' can be used to select one file or another,
  19643. based on the existence of the first. Here is a small example
  19644. of its usage:
  19645. *startfile:
  19646. crt0%O%s %:if-exists(crti%O%s) \
  19647. %:if-exists-else(crtbeginT%O%s crtbegin%O%s)
  19648. 'replace-outfile'
  19649. The 'replace-outfile' spec function takes two arguments. It
  19650. looks for the first argument in the outfiles array and
  19651. replaces it with the second argument. Here is a small example
  19652. of its usage:
  19653. %{fgnu-runtime:%:replace-outfile(-lobjc -lobjc-gnu)}
  19654. 'remove-outfile'
  19655. The 'remove-outfile' spec function takes one argument. It
  19656. looks for the first argument in the outfiles array and removes
  19657. it. Here is a small example its usage:
  19658. %:remove-outfile(-lm)
  19659. 'pass-through-libs'
  19660. The 'pass-through-libs' spec function takes any number of
  19661. arguments. It finds any '-l' options and any non-options
  19662. ending in '.a' (which it assumes are the names of linker input
  19663. library archive files) and returns a result containing all the
  19664. found arguments each prepended by '-plugin-opt=-pass-through='
  19665. and joined by spaces. This list is intended to be passed to
  19666. the LTO linker plugin.
  19667. %:pass-through-libs(%G %L %G)
  19668. 'print-asm-header'
  19669. The 'print-asm-header' function takes no arguments and simply
  19670. prints a banner like:
  19671. Assembler options
  19672. =================
  19673. Use "-Wa,OPTION" to pass "OPTION" to the assembler.
  19674. It is used to separate compiler options from assembler options
  19675. in the '--target-help' output.
  19676. '%{S}'
  19677. Substitutes the '-S' switch, if that switch is given to GCC. If
  19678. that switch is not specified, this substitutes nothing. Note that
  19679. the leading dash is omitted when specifying this option, and it is
  19680. automatically inserted if the substitution is performed. Thus the
  19681. spec string '%{foo}' matches the command-line option '-foo' and
  19682. outputs the command-line option '-foo'.
  19683. '%W{S}'
  19684. Like %{'S'} but mark last argument supplied within as a file to be
  19685. deleted on failure.
  19686. '%{S*}'
  19687. Substitutes all the switches specified to GCC whose names start
  19688. with '-S', but which also take an argument. This is used for
  19689. switches like '-o', '-D', '-I', etc. GCC considers '-o foo' as
  19690. being one switch whose name starts with 'o'. %{o*} substitutes
  19691. this text, including the space. Thus two arguments are generated.
  19692. '%{S*&T*}'
  19693. Like %{'S'*}, but preserve order of 'S' and 'T' options (the order
  19694. of 'S' and 'T' in the spec is not significant). There can be any
  19695. number of ampersand-separated variables; for each the wild card is
  19696. optional. Useful for CPP as '%{D*&U*&A*}'.
  19697. '%{S:X}'
  19698. Substitutes 'X', if the '-S' switch is given to GCC.
  19699. '%{!S:X}'
  19700. Substitutes 'X', if the '-S' switch is _not_ given to GCC.
  19701. '%{S*:X}'
  19702. Substitutes 'X' if one or more switches whose names start with '-S'
  19703. are specified to GCC. Normally 'X' is substituted only once, no
  19704. matter how many such switches appeared. However, if '%*' appears
  19705. somewhere in 'X', then 'X' is substituted once for each matching
  19706. switch, with the '%*' replaced by the part of that switch matching
  19707. the '*'.
  19708. If '%*' appears as the last part of a spec sequence then a space is
  19709. added after the end of the last substitution. If there is more
  19710. text in the sequence, however, then a space is not generated. This
  19711. allows the '%*' substitution to be used as part of a larger string.
  19712. For example, a spec string like this:
  19713. %{mcu=*:--script=%*/memory.ld}
  19714. when matching an option like '-mcu=newchip' produces:
  19715. --script=newchip/memory.ld
  19716. '%{.S:X}'
  19717. Substitutes 'X', if processing a file with suffix 'S'.
  19718. '%{!.S:X}'
  19719. Substitutes 'X', if _not_ processing a file with suffix 'S'.
  19720. '%{,S:X}'
  19721. Substitutes 'X', if processing a file for language 'S'.
  19722. '%{!,S:X}'
  19723. Substitutes 'X', if not processing a file for language 'S'.
  19724. '%{S|P:X}'
  19725. Substitutes 'X' if either '-S' or '-P' is given to GCC. This may
  19726. be combined with '!', '.', ',', and '*' sequences as well, although
  19727. they have a stronger binding than the '|'. If '%*' appears in 'X',
  19728. all of the alternatives must be starred, and only the first
  19729. matching alternative is substituted.
  19730. For example, a spec string like this:
  19731. %{.c:-foo} %{!.c:-bar} %{.c|d:-baz} %{!.c|d:-boggle}
  19732. outputs the following command-line options from the following input
  19733. command-line options:
  19734. fred.c -foo -baz
  19735. jim.d -bar -boggle
  19736. -d fred.c -foo -baz -boggle
  19737. -d jim.d -bar -baz -boggle
  19738. '%{S:X; T:Y; :D}'
  19739. If 'S' is given to GCC, substitutes 'X'; else if 'T' is given to
  19740. GCC, substitutes 'Y'; else substitutes 'D'. There can be as many
  19741. clauses as you need. This may be combined with '.', ',', '!', '|',
  19742. and '*' as needed.
  19743. The conditional text 'X' in a %{'S':'X'} or similar construct may
  19744. contain other nested '%' constructs or spaces, or even newlines. They
  19745. are processed as usual, as described above. Trailing white space in 'X'
  19746. is ignored. White space may also appear anywhere on the left side of
  19747. the colon in these constructs, except between '.' or '*' and the
  19748. corresponding word.
  19749. The '-O', '-f', '-m', and '-W' switches are handled specifically in
  19750. these constructs. If another value of '-O' or the negated form of a
  19751. '-f', '-m', or '-W' switch is found later in the command line, the
  19752. earlier switch value is ignored, except with {'S'*} where 'S' is just
  19753. one letter, which passes all matching options.
  19754. The character '|' at the beginning of the predicate text is used to
  19755. indicate that a command should be piped to the following command, but
  19756. only if '-pipe' is specified.
  19757. It is built into GCC which switches take arguments and which do not.
  19758. (You might think it would be useful to generalize this to allow each
  19759. compiler's spec to say which switches take arguments. But this cannot
  19760. be done in a consistent fashion. GCC cannot even decide which input
  19761. files have been specified without knowing which switches take arguments,
  19762. and it must know which input files to compile in order to tell which
  19763. compilers to run).
  19764. GCC also knows implicitly that arguments starting in '-l' are to be
  19765. treated as compiler output files, and passed to the linker in their
  19766. proper position among the other output files.
  19767. 
  19768. File: gcc.info, Node: Environment Variables, Next: Precompiled Headers, Prev: Spec Files, Up: Invoking GCC
  19769. 3.20 Environment Variables Affecting GCC
  19770. ========================================
  19771. This section describes several environment variables that affect how GCC
  19772. operates. Some of them work by specifying directories or prefixes to
  19773. use when searching for various kinds of files. Some are used to specify
  19774. other aspects of the compilation environment.
  19775. Note that you can also specify places to search using options such as
  19776. '-B', '-I' and '-L' (*note Directory Options::). These take precedence
  19777. over places specified using environment variables, which in turn take
  19778. precedence over those specified by the configuration of GCC. *Note
  19779. Controlling the Compilation Driver 'gcc': (gccint)Driver.
  19780. 'LANG'
  19781. 'LC_CTYPE'
  19782. 'LC_MESSAGES'
  19783. 'LC_ALL'
  19784. These environment variables control the way that GCC uses
  19785. localization information which allows GCC to work with different
  19786. national conventions. GCC inspects the locale categories
  19787. 'LC_CTYPE' and 'LC_MESSAGES' if it has been configured to do so.
  19788. These locale categories can be set to any value supported by your
  19789. installation. A typical value is 'en_GB.UTF-8' for English in the
  19790. United Kingdom encoded in UTF-8.
  19791. The 'LC_CTYPE' environment variable specifies character
  19792. classification. GCC uses it to determine the character boundaries
  19793. in a string; this is needed for some multibyte encodings that
  19794. contain quote and escape characters that are otherwise interpreted
  19795. as a string end or escape.
  19796. The 'LC_MESSAGES' environment variable specifies the language to
  19797. use in diagnostic messages.
  19798. If the 'LC_ALL' environment variable is set, it overrides the value
  19799. of 'LC_CTYPE' and 'LC_MESSAGES'; otherwise, 'LC_CTYPE' and
  19800. 'LC_MESSAGES' default to the value of the 'LANG' environment
  19801. variable. If none of these variables are set, GCC defaults to
  19802. traditional C English behavior.
  19803. 'TMPDIR'
  19804. If 'TMPDIR' is set, it specifies the directory to use for temporary
  19805. files. GCC uses temporary files to hold the output of one stage of
  19806. compilation which is to be used as input to the next stage: for
  19807. example, the output of the preprocessor, which is the input to the
  19808. compiler proper.
  19809. 'GCC_COMPARE_DEBUG'
  19810. Setting 'GCC_COMPARE_DEBUG' is nearly equivalent to passing
  19811. '-fcompare-debug' to the compiler driver. See the documentation of
  19812. this option for more details.
  19813. 'GCC_EXEC_PREFIX'
  19814. If 'GCC_EXEC_PREFIX' is set, it specifies a prefix to use in the
  19815. names of the subprograms executed by the compiler. No slash is
  19816. added when this prefix is combined with the name of a subprogram,
  19817. but you can specify a prefix that ends with a slash if you wish.
  19818. If 'GCC_EXEC_PREFIX' is not set, GCC attempts to figure out an
  19819. appropriate prefix to use based on the pathname it is invoked with.
  19820. If GCC cannot find the subprogram using the specified prefix, it
  19821. tries looking in the usual places for the subprogram.
  19822. The default value of 'GCC_EXEC_PREFIX' is 'PREFIX/lib/gcc/' where
  19823. PREFIX is the prefix to the installed compiler. In many cases
  19824. PREFIX is the value of 'prefix' when you ran the 'configure'
  19825. script.
  19826. Other prefixes specified with '-B' take precedence over this
  19827. prefix.
  19828. This prefix is also used for finding files such as 'crt0.o' that
  19829. are used for linking.
  19830. In addition, the prefix is used in an unusual way in finding the
  19831. directories to search for header files. For each of the standard
  19832. directories whose name normally begins with '/usr/local/lib/gcc'
  19833. (more precisely, with the value of 'GCC_INCLUDE_DIR'), GCC tries
  19834. replacing that beginning with the specified prefix to produce an
  19835. alternate directory name. Thus, with '-Bfoo/', GCC searches
  19836. 'foo/bar' just before it searches the standard directory
  19837. '/usr/local/lib/bar'. If a standard directory begins with the
  19838. configured PREFIX then the value of PREFIX is replaced by
  19839. 'GCC_EXEC_PREFIX' when looking for header files.
  19840. 'COMPILER_PATH'
  19841. The value of 'COMPILER_PATH' is a colon-separated list of
  19842. directories, much like 'PATH'. GCC tries the directories thus
  19843. specified when searching for subprograms, if it cannot find the
  19844. subprograms using 'GCC_EXEC_PREFIX'.
  19845. 'LIBRARY_PATH'
  19846. The value of 'LIBRARY_PATH' is a colon-separated list of
  19847. directories, much like 'PATH'. When configured as a native
  19848. compiler, GCC tries the directories thus specified when searching
  19849. for special linker files, if it cannot find them using
  19850. 'GCC_EXEC_PREFIX'. Linking using GCC also uses these directories
  19851. when searching for ordinary libraries for the '-l' option (but
  19852. directories specified with '-L' come first).
  19853. 'LANG'
  19854. This variable is used to pass locale information to the compiler.
  19855. One way in which this information is used is to determine the
  19856. character set to be used when character literals, string literals
  19857. and comments are parsed in C and C++. When the compiler is
  19858. configured to allow multibyte characters, the following values for
  19859. 'LANG' are recognized:
  19860. 'C-JIS'
  19861. Recognize JIS characters.
  19862. 'C-SJIS'
  19863. Recognize SJIS characters.
  19864. 'C-EUCJP'
  19865. Recognize EUCJP characters.
  19866. If 'LANG' is not defined, or if it has some other value, then the
  19867. compiler uses 'mblen' and 'mbtowc' as defined by the default locale
  19868. to recognize and translate multibyte characters.
  19869. Some additional environment variables affect the behavior of the
  19870. preprocessor.
  19871. 'CPATH'
  19872. 'C_INCLUDE_PATH'
  19873. 'CPLUS_INCLUDE_PATH'
  19874. 'OBJC_INCLUDE_PATH'
  19875. Each variable's value is a list of directories separated by a
  19876. special character, much like 'PATH', in which to look for header
  19877. files. The special character, 'PATH_SEPARATOR', is
  19878. target-dependent and determined at GCC build time. For Microsoft
  19879. Windows-based targets it is a semicolon, and for almost all other
  19880. targets it is a colon.
  19881. 'CPATH' specifies a list of directories to be searched as if
  19882. specified with '-I', but after any paths given with '-I' options on
  19883. the command line. This environment variable is used regardless of
  19884. which language is being preprocessed.
  19885. The remaining environment variables apply only when preprocessing
  19886. the particular language indicated. Each specifies a list of
  19887. directories to be searched as if specified with '-isystem', but
  19888. after any paths given with '-isystem' options on the command line.
  19889. In all these variables, an empty element instructs the compiler to
  19890. search its current working directory. Empty elements can appear at
  19891. the beginning or end of a path. For instance, if the value of
  19892. 'CPATH' is ':/special/include', that has the same effect as
  19893. '-I. -I/special/include'.
  19894. 'DEPENDENCIES_OUTPUT'
  19895. If this variable is set, its value specifies how to output
  19896. dependencies for Make based on the non-system header files
  19897. processed by the compiler. System header files are ignored in the
  19898. dependency output.
  19899. The value of 'DEPENDENCIES_OUTPUT' can be just a file name, in
  19900. which case the Make rules are written to that file, guessing the
  19901. target name from the source file name. Or the value can have the
  19902. form 'FILE TARGET', in which case the rules are written to file
  19903. FILE using TARGET as the target name.
  19904. In other words, this environment variable is equivalent to
  19905. combining the options '-MM' and '-MF' (*note Preprocessor
  19906. Options::), with an optional '-MT' switch too.
  19907. 'SUNPRO_DEPENDENCIES'
  19908. This variable is the same as 'DEPENDENCIES_OUTPUT' (see above),
  19909. except that system header files are not ignored, so it implies '-M'
  19910. rather than '-MM'. However, the dependence on the main input file
  19911. is omitted. *Note Preprocessor Options::.
  19912. 'SOURCE_DATE_EPOCH'
  19913. If this variable is set, its value specifies a UNIX timestamp to be
  19914. used in replacement of the current date and time in the '__DATE__'
  19915. and '__TIME__' macros, so that the embedded timestamps become
  19916. reproducible.
  19917. The value of 'SOURCE_DATE_EPOCH' must be a UNIX timestamp, defined
  19918. as the number of seconds (excluding leap seconds) since 01 Jan 1970
  19919. 00:00:00 represented in ASCII; identical to the output of ''date
  19920. +%s'' on GNU/Linux and other systems that support the '%s'
  19921. extension in the 'date' command.
  19922. The value should be a known timestamp such as the last modification
  19923. time of the source or package and it should be set by the build
  19924. process.
  19925. 
  19926. File: gcc.info, Node: Precompiled Headers, Prev: Environment Variables, Up: Invoking GCC
  19927. 3.21 Using Precompiled Headers
  19928. ==============================
  19929. Often large projects have many header files that are included in every
  19930. source file. The time the compiler takes to process these header files
  19931. over and over again can account for nearly all of the time required to
  19932. build the project. To make builds faster, GCC allows you to
  19933. "precompile" a header file.
  19934. To create a precompiled header file, simply compile it as you would any
  19935. other file, if necessary using the '-x' option to make the driver treat
  19936. it as a C or C++ header file. You may want to use a tool like 'make' to
  19937. keep the precompiled header up-to-date when the headers it contains
  19938. change.
  19939. A precompiled header file is searched for when '#include' is seen in
  19940. the compilation. As it searches for the included file (*note Search
  19941. Path: (cpp)Search Path.) the compiler looks for a precompiled header in
  19942. each directory just before it looks for the include file in that
  19943. directory. The name searched for is the name specified in the
  19944. '#include' with '.gch' appended. If the precompiled header file cannot
  19945. be used, it is ignored.
  19946. For instance, if you have '#include "all.h"', and you have 'all.h.gch'
  19947. in the same directory as 'all.h', then the precompiled header file is
  19948. used if possible, and the original header is used otherwise.
  19949. Alternatively, you might decide to put the precompiled header file in a
  19950. directory and use '-I' to ensure that directory is searched before (or
  19951. instead of) the directory containing the original header. Then, if you
  19952. want to check that the precompiled header file is always used, you can
  19953. put a file of the same name as the original header in this directory
  19954. containing an '#error' command.
  19955. This also works with '-include'. So yet another way to use precompiled
  19956. headers, good for projects not designed with precompiled header files in
  19957. mind, is to simply take most of the header files used by a project,
  19958. include them from another header file, precompile that header file, and
  19959. '-include' the precompiled header. If the header files have guards
  19960. against multiple inclusion, they are skipped because they've already
  19961. been included (in the precompiled header).
  19962. If you need to precompile the same header file for different languages,
  19963. targets, or compiler options, you can instead make a _directory_ named
  19964. like 'all.h.gch', and put each precompiled header in the directory,
  19965. perhaps using '-o'. It doesn't matter what you call the files in the
  19966. directory; every precompiled header in the directory is considered. The
  19967. first precompiled header encountered in the directory that is valid for
  19968. this compilation is used; they're searched in no particular order.
  19969. There are many other possibilities, limited only by your imagination,
  19970. good sense, and the constraints of your build system.
  19971. A precompiled header file can be used only when these conditions apply:
  19972. * Only one precompiled header can be used in a particular
  19973. compilation.
  19974. * A precompiled header cannot be used once the first C token is seen.
  19975. You can have preprocessor directives before a precompiled header;
  19976. you cannot include a precompiled header from inside another header.
  19977. * The precompiled header file must be produced for the same language
  19978. as the current compilation. You cannot use a C precompiled header
  19979. for a C++ compilation.
  19980. * The precompiled header file must have been produced by the same
  19981. compiler binary as the current compilation is using.
  19982. * Any macros defined before the precompiled header is included must
  19983. either be defined in the same way as when the precompiled header
  19984. was generated, or must not affect the precompiled header, which
  19985. usually means that they don't appear in the precompiled header at
  19986. all.
  19987. The '-D' option is one way to define a macro before a precompiled
  19988. header is included; using a '#define' can also do it. There are
  19989. also some options that define macros implicitly, like '-O' and
  19990. '-Wdeprecated'; the same rule applies to macros defined this way.
  19991. * If debugging information is output when using the precompiled
  19992. header, using '-g' or similar, the same kind of debugging
  19993. information must have been output when building the precompiled
  19994. header. However, a precompiled header built using '-g' can be used
  19995. in a compilation when no debugging information is being output.
  19996. * The same '-m' options must generally be used when building and
  19997. using the precompiled header. *Note Submodel Options::, for any
  19998. cases where this rule is relaxed.
  19999. * Each of the following options must be the same when building and
  20000. using the precompiled header:
  20001. -fexceptions
  20002. * Some other command-line options starting with '-f', '-p', or '-O'
  20003. must be defined in the same way as when the precompiled header was
  20004. generated. At present, it's not clear which options are safe to
  20005. change and which are not; the safest choice is to use exactly the
  20006. same options when generating and using the precompiled header. The
  20007. following are known to be safe:
  20008. -fmessage-length= -fpreprocessed -fsched-interblock
  20009. -fsched-spec -fsched-spec-load -fsched-spec-load-dangerous
  20010. -fsched-verbose=NUMBER -fschedule-insns -fvisibility=
  20011. -pedantic-errors
  20012. For all of these except the last, the compiler automatically ignores
  20013. the precompiled header if the conditions aren't met. If you find an
  20014. option combination that doesn't work and doesn't cause the precompiled
  20015. header to be ignored, please consider filing a bug report, see *note
  20016. Bugs::.
  20017. If you do use differing options when generating and using the
  20018. precompiled header, the actual behavior is a mixture of the behavior for
  20019. the options. For instance, if you use '-g' to generate the precompiled
  20020. header but not when using it, you may or may not get debugging
  20021. information for routines in the precompiled header.
  20022. 
  20023. File: gcc.info, Node: C Implementation, Next: C++ Implementation, Prev: Invoking GCC, Up: Top
  20024. 4 C Implementation-Defined Behavior
  20025. ***********************************
  20026. A conforming implementation of ISO C is required to document its choice
  20027. of behavior in each of the areas that are designated "implementation
  20028. defined". The following lists all such areas, along with the section
  20029. numbers from the ISO/IEC 9899:1990, ISO/IEC 9899:1999 and ISO/IEC
  20030. 9899:2011 standards. Some areas are only implementation-defined in one
  20031. version of the standard.
  20032. Some choices depend on the externally determined ABI for the platform
  20033. (including standard character encodings) which GCC follows; these are
  20034. listed as "determined by ABI" below. *Note Binary Compatibility:
  20035. Compatibility, and <http://gcc.gnu.org/readings.html>. Some choices are
  20036. documented in the preprocessor manual. *Note Implementation-defined
  20037. behavior: (cpp)Implementation-defined behavior. Some choices are made
  20038. by the library and operating system (or other environment when compiling
  20039. for a freestanding environment); refer to their documentation for
  20040. details.
  20041. * Menu:
  20042. * Translation implementation::
  20043. * Environment implementation::
  20044. * Identifiers implementation::
  20045. * Characters implementation::
  20046. * Integers implementation::
  20047. * Floating point implementation::
  20048. * Arrays and pointers implementation::
  20049. * Hints implementation::
  20050. * Structures unions enumerations and bit-fields implementation::
  20051. * Qualifiers implementation::
  20052. * Declarators implementation::
  20053. * Statements implementation::
  20054. * Preprocessing directives implementation::
  20055. * Library functions implementation::
  20056. * Architecture implementation::
  20057. * Locale-specific behavior implementation::
  20058. 
  20059. File: gcc.info, Node: Translation implementation, Next: Environment implementation, Up: C Implementation
  20060. 4.1 Translation
  20061. ===============
  20062. * 'How a diagnostic is identified (C90 3.7, C99 and C11 3.10, C90,
  20063. C99 and C11 5.1.1.3).'
  20064. Diagnostics consist of all the output sent to stderr by GCC.
  20065. * 'Whether each nonempty sequence of white-space characters other
  20066. than new-line is retained or replaced by one space character in
  20067. translation phase 3 (C90, C99 and C11 5.1.1.2).'
  20068. *Note Implementation-defined behavior: (cpp)Implementation-defined
  20069. behavior.
  20070. 
  20071. File: gcc.info, Node: Environment implementation, Next: Identifiers implementation, Prev: Translation implementation, Up: C Implementation
  20072. 4.2 Environment
  20073. ===============
  20074. The behavior of most of these points are dependent on the implementation
  20075. of the C library, and are not defined by GCC itself.
  20076. * 'The mapping between physical source file multibyte characters and
  20077. the source character set in translation phase 1 (C90, C99 and C11
  20078. 5.1.1.2).'
  20079. *Note Implementation-defined behavior: (cpp)Implementation-defined
  20080. behavior.
  20081. 
  20082. File: gcc.info, Node: Identifiers implementation, Next: Characters implementation, Prev: Environment implementation, Up: C Implementation
  20083. 4.3 Identifiers
  20084. ===============
  20085. * 'Which additional multibyte characters may appear in identifiers
  20086. and their correspondence to universal character names (C99 and C11
  20087. 6.4.2).'
  20088. *Note Implementation-defined behavior: (cpp)Implementation-defined
  20089. behavior.
  20090. * 'The number of significant initial characters in an identifier (C90
  20091. 6.1.2, C90, C99 and C11 5.2.4.1, C99 and C11 6.4.2).'
  20092. For internal names, all characters are significant. For external
  20093. names, the number of significant characters are defined by the
  20094. linker; for almost all targets, all characters are significant.
  20095. * 'Whether case distinctions are significant in an identifier with
  20096. external linkage (C90 6.1.2).'
  20097. This is a property of the linker. C99 and C11 require that case
  20098. distinctions are always significant in identifiers with external
  20099. linkage and systems without this property are not supported by GCC.
  20100. 
  20101. File: gcc.info, Node: Characters implementation, Next: Integers implementation, Prev: Identifiers implementation, Up: C Implementation
  20102. 4.4 Characters
  20103. ==============
  20104. * 'The number of bits in a byte (C90 3.4, C99 and C11 3.6).'
  20105. Determined by ABI.
  20106. * 'The values of the members of the execution character set (C90, C99
  20107. and C11 5.2.1).'
  20108. Determined by ABI.
  20109. * 'The unique value of the member of the execution character set
  20110. produced for each of the standard alphabetic escape sequences (C90,
  20111. C99 and C11 5.2.2).'
  20112. Determined by ABI.
  20113. * 'The value of a 'char' object into which has been stored any
  20114. character other than a member of the basic execution character set
  20115. (C90 6.1.2.5, C99 and C11 6.2.5).'
  20116. Determined by ABI.
  20117. * 'Which of 'signed char' or 'unsigned char' has the same range,
  20118. representation, and behavior as "plain" 'char' (C90 6.1.2.5, C90
  20119. 6.2.1.1, C99 and C11 6.2.5, C99 and C11 6.3.1.1).'
  20120. Determined by ABI. The options '-funsigned-char' and
  20121. '-fsigned-char' change the default. *Note Options Controlling C
  20122. Dialect: C Dialect Options.
  20123. * 'The mapping of members of the source character set (in character
  20124. constants and string literals) to members of the execution
  20125. character set (C90 6.1.3.4, C99 and C11 6.4.4.4, C90, C99 and C11
  20126. 5.1.1.2).'
  20127. Determined by ABI.
  20128. * 'The value of an integer character constant containing more than
  20129. one character or containing a character or escape sequence that
  20130. does not map to a single-byte execution character (C90 6.1.3.4, C99
  20131. and C11 6.4.4.4).'
  20132. *Note Implementation-defined behavior: (cpp)Implementation-defined
  20133. behavior.
  20134. * 'The value of a wide character constant containing more than one
  20135. multibyte character or a single multibyte character that maps to
  20136. multiple members of the extended execution character set, or
  20137. containing a multibyte character or escape sequence not represented
  20138. in the extended execution character set (C90 6.1.3.4, C99 and C11
  20139. 6.4.4.4).'
  20140. *Note Implementation-defined behavior: (cpp)Implementation-defined
  20141. behavior.
  20142. * 'The current locale used to convert a wide character constant
  20143. consisting of a single multibyte character that maps to a member of
  20144. the extended execution character set into a corresponding wide
  20145. character code (C90 6.1.3.4, C99 and C11 6.4.4.4).'
  20146. *Note Implementation-defined behavior: (cpp)Implementation-defined
  20147. behavior.
  20148. * 'Whether differently-prefixed wide string literal tokens can be
  20149. concatenated and, if so, the treatment of the resulting multibyte
  20150. character sequence (C11 6.4.5).'
  20151. Such tokens may not be concatenated.
  20152. * 'The current locale used to convert a wide string literal into
  20153. corresponding wide character codes (C90 6.1.4, C99 and C11 6.4.5).'
  20154. *Note Implementation-defined behavior: (cpp)Implementation-defined
  20155. behavior.
  20156. * 'The value of a string literal containing a multibyte character or
  20157. escape sequence not represented in the execution character set (C90
  20158. 6.1.4, C99 and C11 6.4.5).'
  20159. *Note Implementation-defined behavior: (cpp)Implementation-defined
  20160. behavior.
  20161. * 'The encoding of any of 'wchar_t', 'char16_t', and 'char32_t' where
  20162. the corresponding standard encoding macro ('__STDC_ISO_10646__',
  20163. '__STDC_UTF_16__', or '__STDC_UTF_32__') is not defined (C11
  20164. 6.10.8.2).'
  20165. *Note Implementation-defined behavior: (cpp)Implementation-defined
  20166. behavior. 'char16_t' and 'char32_t' literals are always encoded in
  20167. UTF-16 and UTF-32 respectively.
  20168. 
  20169. File: gcc.info, Node: Integers implementation, Next: Floating point implementation, Prev: Characters implementation, Up: C Implementation
  20170. 4.5 Integers
  20171. ============
  20172. * 'Any extended integer types that exist in the implementation (C99
  20173. and C11 6.2.5).'
  20174. GCC does not support any extended integer types.
  20175. * 'Whether signed integer types are represented using sign and
  20176. magnitude, two's complement, or one's complement, and whether the
  20177. extraordinary value is a trap representation or an ordinary value
  20178. (C99 and C11 6.2.6.2).'
  20179. GCC supports only two's complement integer types, and all bit
  20180. patterns are ordinary values.
  20181. * 'The rank of any extended integer type relative to another extended
  20182. integer type with the same precision (C99 and C11 6.3.1.1).'
  20183. GCC does not support any extended integer types.
  20184. * 'The result of, or the signal raised by, converting an integer to a
  20185. signed integer type when the value cannot be represented in an
  20186. object of that type (C90 6.2.1.2, C99 and C11 6.3.1.3).'
  20187. For conversion to a type of width N, the value is reduced modulo
  20188. 2^N to be within range of the type; no signal is raised.
  20189. * 'The results of some bitwise operations on signed integers (C90
  20190. 6.3, C99 and C11 6.5).'
  20191. Bitwise operators act on the representation of the value including
  20192. both the sign and value bits, where the sign bit is considered
  20193. immediately above the highest-value value bit. Signed '>>' acts on
  20194. negative numbers by sign extension.
  20195. As an extension to the C language, GCC does not use the latitude
  20196. given in C99 and C11 only to treat certain aspects of signed '<<'
  20197. as undefined. However, '-fsanitize=shift' (and
  20198. '-fsanitize=undefined') will diagnose such cases. They are also
  20199. diagnosed where constant expressions are required.
  20200. * 'The sign of the remainder on integer division (C90 6.3.5).'
  20201. GCC always follows the C99 and C11 requirement that the result of
  20202. division is truncated towards zero.
  20203. 
  20204. File: gcc.info, Node: Floating point implementation, Next: Arrays and pointers implementation, Prev: Integers implementation, Up: C Implementation
  20205. 4.6 Floating Point
  20206. ==================
  20207. * 'The accuracy of the floating-point operations and of the library
  20208. functions in '<math.h>' and '<complex.h>' that return
  20209. floating-point results (C90, C99 and C11 5.2.4.2.2).'
  20210. The accuracy is unknown.
  20211. * 'The rounding behaviors characterized by non-standard values of
  20212. 'FLT_ROUNDS' (C90, C99 and C11 5.2.4.2.2).'
  20213. GCC does not use such values.
  20214. * 'The evaluation methods characterized by non-standard negative
  20215. values of 'FLT_EVAL_METHOD' (C99 and C11 5.2.4.2.2).'
  20216. GCC does not use such values.
  20217. * 'The direction of rounding when an integer is converted to a
  20218. floating-point number that cannot exactly represent the original
  20219. value (C90 6.2.1.3, C99 and C11 6.3.1.4).'
  20220. C99 Annex F is followed.
  20221. * 'The direction of rounding when a floating-point number is
  20222. converted to a narrower floating-point number (C90 6.2.1.4, C99 and
  20223. C11 6.3.1.5).'
  20224. C99 Annex F is followed.
  20225. * 'How the nearest representable value or the larger or smaller
  20226. representable value immediately adjacent to the nearest
  20227. representable value is chosen for certain floating constants (C90
  20228. 6.1.3.1, C99 and C11 6.4.4.2).'
  20229. C99 Annex F is followed.
  20230. * 'Whether and how floating expressions are contracted when not
  20231. disallowed by the 'FP_CONTRACT' pragma (C99 and C11 6.5).'
  20232. Expressions are currently only contracted if '-ffp-contract=fast',
  20233. '-funsafe-math-optimizations' or '-ffast-math' are used. This is
  20234. subject to change.
  20235. * 'The default state for the 'FENV_ACCESS' pragma (C99 and C11
  20236. 7.6.1).'
  20237. This pragma is not implemented, but the default is to "off" unless
  20238. '-frounding-math' is used in which case it is "on".
  20239. * 'Additional floating-point exceptions, rounding modes,
  20240. environments, and classifications, and their macro names (C99 and
  20241. C11 7.6, C99 and C11 7.12).'
  20242. This is dependent on the implementation of the C library, and is
  20243. not defined by GCC itself.
  20244. * 'The default state for the 'FP_CONTRACT' pragma (C99 and C11
  20245. 7.12.2).'
  20246. This pragma is not implemented. Expressions are currently only
  20247. contracted if '-ffp-contract=fast', '-funsafe-math-optimizations'
  20248. or '-ffast-math' are used. This is subject to change.
  20249. * 'Whether the "inexact" floating-point exception can be raised when
  20250. the rounded result actually does equal the mathematical result in
  20251. an IEC 60559 conformant implementation (C99 F.9).'
  20252. This is dependent on the implementation of the C library, and is
  20253. not defined by GCC itself.
  20254. * 'Whether the "underflow" (and "inexact") floating-point exception
  20255. can be raised when a result is tiny but not inexact in an IEC 60559
  20256. conformant implementation (C99 F.9).'
  20257. This is dependent on the implementation of the C library, and is
  20258. not defined by GCC itself.
  20259. 
  20260. File: gcc.info, Node: Arrays and pointers implementation, Next: Hints implementation, Prev: Floating point implementation, Up: C Implementation
  20261. 4.7 Arrays and Pointers
  20262. =======================
  20263. * 'The result of converting a pointer to an integer or vice versa
  20264. (C90 6.3.4, C99 and C11 6.3.2.3).'
  20265. A cast from pointer to integer discards most-significant bits if
  20266. the pointer representation is larger than the integer type,
  20267. sign-extends(1) if the pointer representation is smaller than the
  20268. integer type, otherwise the bits are unchanged.
  20269. A cast from integer to pointer discards most-significant bits if
  20270. the pointer representation is smaller than the integer type,
  20271. extends according to the signedness of the integer type if the
  20272. pointer representation is larger than the integer type, otherwise
  20273. the bits are unchanged.
  20274. When casting from pointer to integer and back again, the resulting
  20275. pointer must reference the same object as the original pointer,
  20276. otherwise the behavior is undefined. That is, one may not use
  20277. integer arithmetic to avoid the undefined behavior of pointer
  20278. arithmetic as proscribed in C99 and C11 6.5.6/8.
  20279. * 'The size of the result of subtracting two pointers to elements of
  20280. the same array (C90 6.3.6, C99 and C11 6.5.6).'
  20281. The value is as specified in the standard and the type is
  20282. determined by the ABI.
  20283. ---------- Footnotes ----------
  20284. (1) Future versions of GCC may zero-extend, or use a target-defined
  20285. 'ptr_extend' pattern. Do not rely on sign extension.
  20286. 
  20287. File: gcc.info, Node: Hints implementation, Next: Structures unions enumerations and bit-fields implementation, Prev: Arrays and pointers implementation, Up: C Implementation
  20288. 4.8 Hints
  20289. =========
  20290. * 'The extent to which suggestions made by using the 'register'
  20291. storage-class specifier are effective (C90 6.5.1, C99 and C11
  20292. 6.7.1).'
  20293. The 'register' specifier affects code generation only in these
  20294. ways:
  20295. * When used as part of the register variable extension, see
  20296. *note Explicit Register Variables::.
  20297. * When '-O0' is in use, the compiler allocates distinct stack
  20298. memory for all variables that do not have the 'register'
  20299. storage-class specifier; if 'register' is specified, the
  20300. variable may have a shorter lifespan than the code would
  20301. indicate and may never be placed in memory.
  20302. * On some rare x86 targets, 'setjmp' doesn't save the registers
  20303. in all circumstances. In those cases, GCC doesn't allocate
  20304. any variables in registers unless they are marked 'register'.
  20305. * 'The extent to which suggestions made by using the inline function
  20306. specifier are effective (C99 and C11 6.7.4).'
  20307. GCC will not inline any functions if the '-fno-inline' option is
  20308. used or if '-O0' is used. Otherwise, GCC may still be unable to
  20309. inline a function for many reasons; the '-Winline' option may be
  20310. used to determine if a function has not been inlined and why not.
  20311. 
  20312. File: gcc.info, Node: Structures unions enumerations and bit-fields implementation, Next: Qualifiers implementation, Prev: Hints implementation, Up: C Implementation
  20313. 4.9 Structures, Unions, Enumerations, and Bit-Fields
  20314. ====================================================
  20315. * 'A member of a union object is accessed using a member of a
  20316. different type (C90 6.3.2.3).'
  20317. The relevant bytes of the representation of the object are treated
  20318. as an object of the type used for the access. *Note
  20319. Type-punning::. This may be a trap representation.
  20320. * 'Whether a "plain" 'int' bit-field is treated as a 'signed int'
  20321. bit-field or as an 'unsigned int' bit-field (C90 6.5.2, C90
  20322. 6.5.2.1, C99 and C11 6.7.2, C99 and C11 6.7.2.1).'
  20323. By default it is treated as 'signed int' but this may be changed by
  20324. the '-funsigned-bitfields' option.
  20325. * 'Allowable bit-field types other than '_Bool', 'signed int', and
  20326. 'unsigned int' (C99 and C11 6.7.2.1).'
  20327. Other integer types, such as 'long int', and enumerated types are
  20328. permitted even in strictly conforming mode.
  20329. * 'Whether atomic types are permitted for bit-fields (C11 6.7.2.1).'
  20330. Atomic types are not permitted for bit-fields.
  20331. * 'Whether a bit-field can straddle a storage-unit boundary (C90
  20332. 6.5.2.1, C99 and C11 6.7.2.1).'
  20333. Determined by ABI.
  20334. * 'The order of allocation of bit-fields within a unit (C90 6.5.2.1,
  20335. C99 and C11 6.7.2.1).'
  20336. Determined by ABI.
  20337. * 'The alignment of non-bit-field members of structures (C90 6.5.2.1,
  20338. C99 and C11 6.7.2.1).'
  20339. Determined by ABI.
  20340. * 'The integer type compatible with each enumerated type (C90
  20341. 6.5.2.2, C99 and C11 6.7.2.2).'
  20342. Normally, the type is 'unsigned int' if there are no negative
  20343. values in the enumeration, otherwise 'int'. If '-fshort-enums' is
  20344. specified, then if there are negative values it is the first of
  20345. 'signed char', 'short' and 'int' that can represent all the values,
  20346. otherwise it is the first of 'unsigned char', 'unsigned short' and
  20347. 'unsigned int' that can represent all the values.
  20348. On some targets, '-fshort-enums' is the default; this is determined
  20349. by the ABI.
  20350. 
  20351. File: gcc.info, Node: Qualifiers implementation, Next: Declarators implementation, Prev: Structures unions enumerations and bit-fields implementation, Up: C Implementation
  20352. 4.10 Qualifiers
  20353. ===============
  20354. * 'What constitutes an access to an object that has
  20355. volatile-qualified type (C90 6.5.3, C99 and C11 6.7.3).'
  20356. Such an object is normally accessed by pointers and used for
  20357. accessing hardware. In most expressions, it is intuitively obvious
  20358. what is a read and what is a write. For example
  20359. volatile int *dst = SOMEVALUE;
  20360. volatile int *src = SOMEOTHERVALUE;
  20361. *dst = *src;
  20362. will cause a read of the volatile object pointed to by SRC and
  20363. store the value into the volatile object pointed to by DST. There
  20364. is no guarantee that these reads and writes are atomic, especially
  20365. for objects larger than 'int'.
  20366. However, if the volatile storage is not being modified, and the
  20367. value of the volatile storage is not used, then the situation is
  20368. less obvious. For example
  20369. volatile int *src = SOMEVALUE;
  20370. *src;
  20371. According to the C standard, such an expression is an rvalue whose
  20372. type is the unqualified version of its original type, i.e. 'int'.
  20373. Whether GCC interprets this as a read of the volatile object being
  20374. pointed to or only as a request to evaluate the expression for its
  20375. side-effects depends on this type.
  20376. If it is a scalar type, or on most targets an aggregate type whose
  20377. only member object is of a scalar type, or a union type whose
  20378. member objects are of scalar types, the expression is interpreted
  20379. by GCC as a read of the volatile object; in the other cases, the
  20380. expression is only evaluated for its side-effects.
  20381. 
  20382. File: gcc.info, Node: Declarators implementation, Next: Statements implementation, Prev: Qualifiers implementation, Up: C Implementation
  20383. 4.11 Declarators
  20384. ================
  20385. * 'The maximum number of declarators that may modify an arithmetic,
  20386. structure or union type (C90 6.5.4).'
  20387. GCC is only limited by available memory.
  20388. 
  20389. File: gcc.info, Node: Statements implementation, Next: Preprocessing directives implementation, Prev: Declarators implementation, Up: C Implementation
  20390. 4.12 Statements
  20391. ===============
  20392. * 'The maximum number of 'case' values in a 'switch' statement (C90
  20393. 6.6.4.2).'
  20394. GCC is only limited by available memory.
  20395. 
  20396. File: gcc.info, Node: Preprocessing directives implementation, Next: Library functions implementation, Prev: Statements implementation, Up: C Implementation
  20397. 4.13 Preprocessing Directives
  20398. =============================
  20399. *Note Implementation-defined behavior: (cpp)Implementation-defined
  20400. behavior, for details of these aspects of implementation-defined
  20401. behavior.
  20402. * 'The locations within '#pragma' directives where header name
  20403. preprocessing tokens are recognized (C11 6.4, C11 6.4.7).'
  20404. * 'How sequences in both forms of header names are mapped to headers
  20405. or external source file names (C90 6.1.7, C99 and C11 6.4.7).'
  20406. * 'Whether the value of a character constant in a constant expression
  20407. that controls conditional inclusion matches the value of the same
  20408. character constant in the execution character set (C90 6.8.1, C99
  20409. and C11 6.10.1).'
  20410. * 'Whether the value of a single-character character constant in a
  20411. constant expression that controls conditional inclusion may have a
  20412. negative value (C90 6.8.1, C99 and C11 6.10.1).'
  20413. * 'The places that are searched for an included '<>' delimited
  20414. header, and how the places are specified or the header is
  20415. identified (C90 6.8.2, C99 and C11 6.10.2).'
  20416. * 'How the named source file is searched for in an included '""'
  20417. delimited header (C90 6.8.2, C99 and C11 6.10.2).'
  20418. * 'The method by which preprocessing tokens (possibly resulting from
  20419. macro expansion) in a '#include' directive are combined into a
  20420. header name (C90 6.8.2, C99 and C11 6.10.2).'
  20421. * 'The nesting limit for '#include' processing (C90 6.8.2, C99 and
  20422. C11 6.10.2).'
  20423. * 'Whether the '#' operator inserts a '\' character before the '\'
  20424. character that begins a universal character name in a character
  20425. constant or string literal (C99 and C11 6.10.3.2).'
  20426. * 'The behavior on each recognized non-'STDC #pragma' directive (C90
  20427. 6.8.6, C99 and C11 6.10.6).'
  20428. *Note Pragmas: (cpp)Pragmas, for details of pragmas accepted by GCC
  20429. on all targets. *Note Pragmas Accepted by GCC: Pragmas, for
  20430. details of target-specific pragmas.
  20431. * 'The definitions for '__DATE__' and '__TIME__' when respectively,
  20432. the date and time of translation are not available (C90 6.8.8, C99
  20433. 6.10.8, C11 6.10.8.1).'
  20434. 
  20435. File: gcc.info, Node: Library functions implementation, Next: Architecture implementation, Prev: Preprocessing directives implementation, Up: C Implementation
  20436. 4.14 Library Functions
  20437. ======================
  20438. The behavior of most of these points are dependent on the implementation
  20439. of the C library, and are not defined by GCC itself.
  20440. * 'The null pointer constant to which the macro 'NULL' expands (C90
  20441. 7.1.6, C99 7.17, C11 7.19).'
  20442. In '<stddef.h>', 'NULL' expands to '((void *)0)'. GCC does not
  20443. provide the other headers which define 'NULL' and some library
  20444. implementations may use other definitions in those headers.
  20445. 
  20446. File: gcc.info, Node: Architecture implementation, Next: Locale-specific behavior implementation, Prev: Library functions implementation, Up: C Implementation
  20447. 4.15 Architecture
  20448. =================
  20449. * 'The values or expressions assigned to the macros specified in the
  20450. headers '<float.h>', '<limits.h>', and '<stdint.h>' (C90, C99 and
  20451. C11 5.2.4.2, C99 7.18.2, C99 7.18.3, C11 7.20.2, C11 7.20.3).'
  20452. Determined by ABI.
  20453. * 'The result of attempting to indirectly access an object with
  20454. automatic or thread storage duration from a thread other than the
  20455. one with which it is associated (C11 6.2.4).'
  20456. Such accesses are supported, subject to the same requirements for
  20457. synchronization for concurrent accesses as for concurrent accesses
  20458. to any object.
  20459. * 'The number, order, and encoding of bytes in any object (when not
  20460. explicitly specified in this International Standard) (C99 and C11
  20461. 6.2.6.1).'
  20462. Determined by ABI.
  20463. * 'Whether any extended alignments are supported and the contexts in
  20464. which they are supported (C11 6.2.8).'
  20465. Extended alignments up to 2^{28} (bytes) are supported for objects
  20466. of automatic storage duration. Alignments supported for objects of
  20467. static and thread storage duration are determined by the ABI.
  20468. * 'Valid alignment values other than those returned by an _Alignof
  20469. expression for fundamental types, if any (C11 6.2.8).'
  20470. Valid alignments are powers of 2 up to and including 2^{28}.
  20471. * 'The value of the result of the 'sizeof' and '_Alignof' operators
  20472. (C90 6.3.3.4, C99 and C11 6.5.3.4).'
  20473. Determined by ABI.
  20474. 
  20475. File: gcc.info, Node: Locale-specific behavior implementation, Prev: Architecture implementation, Up: C Implementation
  20476. 4.16 Locale-Specific Behavior
  20477. =============================
  20478. The behavior of these points are dependent on the implementation of the
  20479. C library, and are not defined by GCC itself.
  20480. 
  20481. File: gcc.info, Node: C++ Implementation, Next: C Extensions, Prev: C Implementation, Up: Top
  20482. 5 C++ Implementation-Defined Behavior
  20483. *************************************
  20484. A conforming implementation of ISO C++ is required to document its
  20485. choice of behavior in each of the areas that are designated
  20486. "implementation defined". The following lists all such areas, along
  20487. with the section numbers from the ISO/IEC 14882:1998 and ISO/IEC
  20488. 14882:2003 standards. Some areas are only implementation-defined in one
  20489. version of the standard.
  20490. Some choices depend on the externally determined ABI for the platform
  20491. (including standard character encodings) which GCC follows; these are
  20492. listed as "determined by ABI" below. *Note Binary Compatibility:
  20493. Compatibility, and <http://gcc.gnu.org/readings.html>. Some choices are
  20494. documented in the preprocessor manual. *Note Implementation-defined
  20495. behavior: (cpp)Implementation-defined behavior. Some choices are
  20496. documented in the corresponding document for the C language. *Note C
  20497. Implementation::. Some choices are made by the library and operating
  20498. system (or other environment when compiling for a freestanding
  20499. environment); refer to their documentation for details.
  20500. * Menu:
  20501. * Conditionally-supported behavior::
  20502. * Exception handling::
  20503. 
  20504. File: gcc.info, Node: Conditionally-supported behavior, Next: Exception handling, Up: C++ Implementation
  20505. 5.1 Conditionally-Supported Behavior
  20506. ====================================
  20507. 'Each implementation shall include documentation that identifies all
  20508. conditionally-supported constructs that it does not support (C++0x
  20509. 1.4).'
  20510. * 'Whether an argument of class type with a non-trivial copy
  20511. constructor or destructor can be passed to ... (C++0x 5.2.2).'
  20512. Such argument passing is supported, using the same
  20513. pass-by-invisible-reference approach used for normal function
  20514. arguments of such types.
  20515. 
  20516. File: gcc.info, Node: Exception handling, Prev: Conditionally-supported behavior, Up: C++ Implementation
  20517. 5.2 Exception Handling
  20518. ======================
  20519. * 'In the situation where no matching handler is found, it is
  20520. implementation-defined whether or not the stack is unwound before
  20521. std::terminate() is called (C++98 15.5.1).'
  20522. The stack is not unwound before std::terminate is called.
  20523. 
  20524. File: gcc.info, Node: C Extensions, Next: C++ Extensions, Prev: C++ Implementation, Up: Top
  20525. 6 Extensions to the C Language Family
  20526. *************************************
  20527. GNU C provides several language features not found in ISO standard C.
  20528. (The '-pedantic' option directs GCC to print a warning message if any of
  20529. these features is used.) To test for the availability of these features
  20530. in conditional compilation, check for a predefined macro '__GNUC__',
  20531. which is always defined under GCC.
  20532. These extensions are available in C and Objective-C. Most of them are
  20533. also available in C++. *Note Extensions to the C++ Language: C++
  20534. Extensions, for extensions that apply _only_ to C++.
  20535. Some features that are in ISO C99 but not C90 or C++ are also, as
  20536. extensions, accepted by GCC in C90 mode and in C++.
  20537. * Menu:
  20538. * Statement Exprs:: Putting statements and declarations inside expressions.
  20539. * Local Labels:: Labels local to a block.
  20540. * Labels as Values:: Getting pointers to labels, and computed gotos.
  20541. * Nested Functions:: As in Algol and Pascal, lexical scoping of functions.
  20542. * Constructing Calls:: Dispatching a call to another function.
  20543. * Typeof:: 'typeof': referring to the type of an expression.
  20544. * Conditionals:: Omitting the middle operand of a '?:' expression.
  20545. * __int128:: 128-bit integers--'__int128'.
  20546. * Long Long:: Double-word integers--'long long int'.
  20547. * Complex:: Data types for complex numbers.
  20548. * Floating Types:: Additional Floating Types.
  20549. * Half-Precision:: Half-Precision Floating Point.
  20550. * Decimal Float:: Decimal Floating Types.
  20551. * Hex Floats:: Hexadecimal floating-point constants.
  20552. * Fixed-Point:: Fixed-Point Types.
  20553. * Named Address Spaces::Named address spaces.
  20554. * Zero Length:: Zero-length arrays.
  20555. * Empty Structures:: Structures with no members.
  20556. * Variable Length:: Arrays whose length is computed at run time.
  20557. * Variadic Macros:: Macros with a variable number of arguments.
  20558. * Escaped Newlines:: Slightly looser rules for escaped newlines.
  20559. * Subscripting:: Any array can be subscripted, even if not an lvalue.
  20560. * Pointer Arith:: Arithmetic on 'void'-pointers and function pointers.
  20561. * Pointers to Arrays:: Pointers to arrays with qualifiers work as expected.
  20562. * Initializers:: Non-constant initializers.
  20563. * Compound Literals:: Compound literals give structures, unions
  20564. or arrays as values.
  20565. * Designated Inits:: Labeling elements of initializers.
  20566. * Case Ranges:: 'case 1 ... 9' and such.
  20567. * Cast to Union:: Casting to union type from any member of the union.
  20568. * Mixed Declarations:: Mixing declarations and code.
  20569. * Function Attributes:: Declaring that functions have no side effects,
  20570. or that they can never return.
  20571. * Variable Attributes:: Specifying attributes of variables.
  20572. * Type Attributes:: Specifying attributes of types.
  20573. * Label Attributes:: Specifying attributes on labels.
  20574. * Enumerator Attributes:: Specifying attributes on enumerators.
  20575. * Statement Attributes:: Specifying attributes on statements.
  20576. * Attribute Syntax:: Formal syntax for attributes.
  20577. * Function Prototypes:: Prototype declarations and old-style definitions.
  20578. * C++ Comments:: C++ comments are recognized.
  20579. * Dollar Signs:: Dollar sign is allowed in identifiers.
  20580. * Character Escapes:: '\e' stands for the character <ESC>.
  20581. * Alignment:: Inquiring about the alignment of a type or variable.
  20582. * Inline:: Defining inline functions (as fast as macros).
  20583. * Volatiles:: What constitutes an access to a volatile object.
  20584. * Using Assembly Language with C:: Instructions and extensions for interfacing C with assembler.
  20585. * Alternate Keywords:: '__const__', '__asm__', etc., for header files.
  20586. * Incomplete Enums:: 'enum foo;', with details to follow.
  20587. * Function Names:: Printable strings which are the name of the current
  20588. function.
  20589. * Return Address:: Getting the return or frame address of a function.
  20590. * Vector Extensions:: Using vector instructions through built-in functions.
  20591. * Offsetof:: Special syntax for implementing 'offsetof'.
  20592. * __sync Builtins:: Legacy built-in functions for atomic memory access.
  20593. * __atomic Builtins:: Atomic built-in functions with memory model.
  20594. * Integer Overflow Builtins:: Built-in functions to perform arithmetics and
  20595. arithmetic overflow checking.
  20596. * x86 specific memory model extensions for transactional memory:: x86 memory models.
  20597. * Object Size Checking:: Built-in functions for limited buffer overflow
  20598. checking.
  20599. * Pointer Bounds Checker builtins:: Built-in functions for Pointer Bounds Checker.
  20600. * Cilk Plus Builtins:: Built-in functions for the Cilk Plus language extension.
  20601. * Other Builtins:: Other built-in functions.
  20602. * Target Builtins:: Built-in functions specific to particular targets.
  20603. * Target Format Checks:: Format checks specific to particular targets.
  20604. * Pragmas:: Pragmas accepted by GCC.
  20605. * Unnamed Fields:: Unnamed struct/union fields within structs/unions.
  20606. * Thread-Local:: Per-thread variables.
  20607. * Binary constants:: Binary constants using the '0b' prefix.
  20608. 
  20609. File: gcc.info, Node: Statement Exprs, Next: Local Labels, Up: C Extensions
  20610. 6.1 Statements and Declarations in Expressions
  20611. ==============================================
  20612. A compound statement enclosed in parentheses may appear as an expression
  20613. in GNU C. This allows you to use loops, switches, and local variables
  20614. within an expression.
  20615. Recall that a compound statement is a sequence of statements surrounded
  20616. by braces; in this construct, parentheses go around the braces. For
  20617. example:
  20618. ({ int y = foo (); int z;
  20619. if (y > 0) z = y;
  20620. else z = - y;
  20621. z; })
  20622. is a valid (though slightly more complex than necessary) expression for
  20623. the absolute value of 'foo ()'.
  20624. The last thing in the compound statement should be an expression
  20625. followed by a semicolon; the value of this subexpression serves as the
  20626. value of the entire construct. (If you use some other kind of statement
  20627. last within the braces, the construct has type 'void', and thus
  20628. effectively no value.)
  20629. This feature is especially useful in making macro definitions "safe"
  20630. (so that they evaluate each operand exactly once). For example, the
  20631. "maximum" function is commonly defined as a macro in standard C as
  20632. follows:
  20633. #define max(a,b) ((a) > (b) ? (a) : (b))
  20634. But this definition computes either A or B twice, with bad results if
  20635. the operand has side effects. In GNU C, if you know the type of the
  20636. operands (here taken as 'int'), you can define the macro safely as
  20637. follows:
  20638. #define maxint(a,b) \
  20639. ({int _a = (a), _b = (b); _a > _b ? _a : _b; })
  20640. Embedded statements are not allowed in constant expressions, such as
  20641. the value of an enumeration constant, the width of a bit-field, or the
  20642. initial value of a static variable.
  20643. If you don't know the type of the operand, you can still do this, but
  20644. you must use 'typeof' or '__auto_type' (*note Typeof::).
  20645. In G++, the result value of a statement expression undergoes array and
  20646. function pointer decay, and is returned by value to the enclosing
  20647. expression. For instance, if 'A' is a class, then
  20648. A a;
  20649. ({a;}).Foo ()
  20650. constructs a temporary 'A' object to hold the result of the statement
  20651. expression, and that is used to invoke 'Foo'. Therefore the 'this'
  20652. pointer observed by 'Foo' is not the address of 'a'.
  20653. In a statement expression, any temporaries created within a statement
  20654. are destroyed at that statement's end. This makes statement expressions
  20655. inside macros slightly different from function calls. In the latter
  20656. case temporaries introduced during argument evaluation are destroyed at
  20657. the end of the statement that includes the function call. In the
  20658. statement expression case they are destroyed during the statement
  20659. expression. For instance,
  20660. #define macro(a) ({__typeof__(a) b = (a); b + 3; })
  20661. template<typename T> T function(T a) { T b = a; return b + 3; }
  20662. void foo ()
  20663. {
  20664. macro (X ());
  20665. function (X ());
  20666. }
  20667. has different places where temporaries are destroyed. For the 'macro'
  20668. case, the temporary 'X' is destroyed just after the initialization of
  20669. 'b'. In the 'function' case that temporary is destroyed when the
  20670. function returns.
  20671. These considerations mean that it is probably a bad idea to use
  20672. statement expressions of this form in header files that are designed to
  20673. work with C++. (Note that some versions of the GNU C Library contained
  20674. header files using statement expressions that lead to precisely this
  20675. bug.)
  20676. Jumping into a statement expression with 'goto' or using a 'switch'
  20677. statement outside the statement expression with a 'case' or 'default'
  20678. label inside the statement expression is not permitted. Jumping into a
  20679. statement expression with a computed 'goto' (*note Labels as Values::)
  20680. has undefined behavior. Jumping out of a statement expression is
  20681. permitted, but if the statement expression is part of a larger
  20682. expression then it is unspecified which other subexpressions of that
  20683. expression have been evaluated except where the language definition
  20684. requires certain subexpressions to be evaluated before or after the
  20685. statement expression. In any case, as with a function call, the
  20686. evaluation of a statement expression is not interleaved with the
  20687. evaluation of other parts of the containing expression. For example,
  20688. foo (), (({ bar1 (); goto a; 0; }) + bar2 ()), baz();
  20689. calls 'foo' and 'bar1' and does not call 'baz' but may or may not call
  20690. 'bar2'. If 'bar2' is called, it is called after 'foo' and before
  20691. 'bar1'.
  20692. 
  20693. File: gcc.info, Node: Local Labels, Next: Labels as Values, Prev: Statement Exprs, Up: C Extensions
  20694. 6.2 Locally Declared Labels
  20695. ===========================
  20696. GCC allows you to declare "local labels" in any nested block scope. A
  20697. local label is just like an ordinary label, but you can only reference
  20698. it (with a 'goto' statement, or by taking its address) within the block
  20699. in which it is declared.
  20700. A local label declaration looks like this:
  20701. __label__ LABEL;
  20702. or
  20703. __label__ LABEL1, LABEL2, /* ... */;
  20704. Local label declarations must come at the beginning of the block,
  20705. before any ordinary declarations or statements.
  20706. The label declaration defines the label _name_, but does not define the
  20707. label itself. You must do this in the usual way, with 'LABEL:', within
  20708. the statements of the statement expression.
  20709. The local label feature is useful for complex macros. If a macro
  20710. contains nested loops, a 'goto' can be useful for breaking out of them.
  20711. However, an ordinary label whose scope is the whole function cannot be
  20712. used: if the macro can be expanded several times in one function, the
  20713. label is multiply defined in that function. A local label avoids this
  20714. problem. For example:
  20715. #define SEARCH(value, array, target) \
  20716. do { \
  20717. __label__ found; \
  20718. typeof (target) _SEARCH_target = (target); \
  20719. typeof (*(array)) *_SEARCH_array = (array); \
  20720. int i, j; \
  20721. int value; \
  20722. for (i = 0; i < max; i++) \
  20723. for (j = 0; j < max; j++) \
  20724. if (_SEARCH_array[i][j] == _SEARCH_target) \
  20725. { (value) = i; goto found; } \
  20726. (value) = -1; \
  20727. found:; \
  20728. } while (0)
  20729. This could also be written using a statement expression:
  20730. #define SEARCH(array, target) \
  20731. ({ \
  20732. __label__ found; \
  20733. typeof (target) _SEARCH_target = (target); \
  20734. typeof (*(array)) *_SEARCH_array = (array); \
  20735. int i, j; \
  20736. int value; \
  20737. for (i = 0; i < max; i++) \
  20738. for (j = 0; j < max; j++) \
  20739. if (_SEARCH_array[i][j] == _SEARCH_target) \
  20740. { value = i; goto found; } \
  20741. value = -1; \
  20742. found: \
  20743. value; \
  20744. })
  20745. Local label declarations also make the labels they declare visible to
  20746. nested functions, if there are any. *Note Nested Functions::, for
  20747. details.
  20748. 
  20749. File: gcc.info, Node: Labels as Values, Next: Nested Functions, Prev: Local Labels, Up: C Extensions
  20750. 6.3 Labels as Values
  20751. ====================
  20752. You can get the address of a label defined in the current function (or a
  20753. containing function) with the unary operator '&&'. The value has type
  20754. 'void *'. This value is a constant and can be used wherever a constant
  20755. of that type is valid. For example:
  20756. void *ptr;
  20757. /* ... */
  20758. ptr = &&foo;
  20759. To use these values, you need to be able to jump to one. This is done
  20760. with the computed goto statement(1), 'goto *EXP;'. For example,
  20761. goto *ptr;
  20762. Any expression of type 'void *' is allowed.
  20763. One way of using these constants is in initializing a static array that
  20764. serves as a jump table:
  20765. static void *array[] = { &&foo, &&bar, &&hack };
  20766. Then you can select a label with indexing, like this:
  20767. goto *array[i];
  20768. Note that this does not check whether the subscript is in bounds--array
  20769. indexing in C never does that.
  20770. Such an array of label values serves a purpose much like that of the
  20771. 'switch' statement. The 'switch' statement is cleaner, so use that
  20772. rather than an array unless the problem does not fit a 'switch'
  20773. statement very well.
  20774. Another use of label values is in an interpreter for threaded code.
  20775. The labels within the interpreter function can be stored in the threaded
  20776. code for super-fast dispatching.
  20777. You may not use this mechanism to jump to code in a different function.
  20778. If you do that, totally unpredictable things happen. The best way to
  20779. avoid this is to store the label address only in automatic variables and
  20780. never pass it as an argument.
  20781. An alternate way to write the above example is
  20782. static const int array[] = { &&foo - &&foo, &&bar - &&foo,
  20783. &&hack - &&foo };
  20784. goto *(&&foo + array[i]);
  20785. This is more friendly to code living in shared libraries, as it reduces
  20786. the number of dynamic relocations that are needed, and by consequence,
  20787. allows the data to be read-only. This alternative with label
  20788. differences is not supported for the AVR target, please use the first
  20789. approach for AVR programs.
  20790. The '&&foo' expressions for the same label might have different values
  20791. if the containing function is inlined or cloned. If a program relies on
  20792. them being always the same, '__attribute__((__noinline__,__noclone__))'
  20793. should be used to prevent inlining and cloning. If '&&foo' is used in a
  20794. static variable initializer, inlining and cloning is forbidden.
  20795. ---------- Footnotes ----------
  20796. (1) The analogous feature in Fortran is called an assigned goto, but
  20797. that name seems inappropriate in C, where one can do more than simply
  20798. store label addresses in label variables.
  20799. 
  20800. File: gcc.info, Node: Nested Functions, Next: Constructing Calls, Prev: Labels as Values, Up: C Extensions
  20801. 6.4 Nested Functions
  20802. ====================
  20803. A "nested function" is a function defined inside another function.
  20804. Nested functions are supported as an extension in GNU C, but are not
  20805. supported by GNU C++.
  20806. The nested function's name is local to the block where it is defined.
  20807. For example, here we define a nested function named 'square', and call
  20808. it twice:
  20809. foo (double a, double b)
  20810. {
  20811. double square (double z) { return z * z; }
  20812. return square (a) + square (b);
  20813. }
  20814. The nested function can access all the variables of the containing
  20815. function that are visible at the point of its definition. This is
  20816. called "lexical scoping". For example, here we show a nested function
  20817. which uses an inherited variable named 'offset':
  20818. bar (int *array, int offset, int size)
  20819. {
  20820. int access (int *array, int index)
  20821. { return array[index + offset]; }
  20822. int i;
  20823. /* ... */
  20824. for (i = 0; i < size; i++)
  20825. /* ... */ access (array, i) /* ... */
  20826. }
  20827. Nested function definitions are permitted within functions in the
  20828. places where variable definitions are allowed; that is, in any block,
  20829. mixed with the other declarations and statements in the block.
  20830. It is possible to call the nested function from outside the scope of
  20831. its name by storing its address or passing the address to another
  20832. function:
  20833. hack (int *array, int size)
  20834. {
  20835. void store (int index, int value)
  20836. { array[index] = value; }
  20837. intermediate (store, size);
  20838. }
  20839. Here, the function 'intermediate' receives the address of 'store' as an
  20840. argument. If 'intermediate' calls 'store', the arguments given to
  20841. 'store' are used to store into 'array'. But this technique works only
  20842. so long as the containing function ('hack', in this example) does not
  20843. exit.
  20844. If you try to call the nested function through its address after the
  20845. containing function exits, all hell breaks loose. If you try to call it
  20846. after a containing scope level exits, and if it refers to some of the
  20847. variables that are no longer in scope, you may be lucky, but it's not
  20848. wise to take the risk. If, however, the nested function does not refer
  20849. to anything that has gone out of scope, you should be safe.
  20850. GCC implements taking the address of a nested function using a
  20851. technique called "trampolines". This technique was described in
  20852. 'Lexical Closures for C++' (Thomas M. Breuel, USENIX C++ Conference
  20853. Proceedings, October 17-21, 1988).
  20854. A nested function can jump to a label inherited from a containing
  20855. function, provided the label is explicitly declared in the containing
  20856. function (*note Local Labels::). Such a jump returns instantly to the
  20857. containing function, exiting the nested function that did the 'goto' and
  20858. any intermediate functions as well. Here is an example:
  20859. bar (int *array, int offset, int size)
  20860. {
  20861. __label__ failure;
  20862. int access (int *array, int index)
  20863. {
  20864. if (index > size)
  20865. goto failure;
  20866. return array[index + offset];
  20867. }
  20868. int i;
  20869. /* ... */
  20870. for (i = 0; i < size; i++)
  20871. /* ... */ access (array, i) /* ... */
  20872. /* ... */
  20873. return 0;
  20874. /* Control comes here from 'access'
  20875. if it detects an error. */
  20876. failure:
  20877. return -1;
  20878. }
  20879. A nested function always has no linkage. Declaring one with 'extern'
  20880. or 'static' is erroneous. If you need to declare the nested function
  20881. before its definition, use 'auto' (which is otherwise meaningless for
  20882. function declarations).
  20883. bar (int *array, int offset, int size)
  20884. {
  20885. __label__ failure;
  20886. auto int access (int *, int);
  20887. /* ... */
  20888. int access (int *array, int index)
  20889. {
  20890. if (index > size)
  20891. goto failure;
  20892. return array[index + offset];
  20893. }
  20894. /* ... */
  20895. }
  20896. 
  20897. File: gcc.info, Node: Constructing Calls, Next: Typeof, Prev: Nested Functions, Up: C Extensions
  20898. 6.5 Constructing Function Calls
  20899. ===============================
  20900. Using the built-in functions described below, you can record the
  20901. arguments a function received, and call another function with the same
  20902. arguments, without knowing the number or types of the arguments.
  20903. You can also record the return value of that function call, and later
  20904. return that value, without knowing what data type the function tried to
  20905. return (as long as your caller expects that data type).
  20906. However, these built-in functions may interact badly with some
  20907. sophisticated features or other extensions of the language. It is,
  20908. therefore, not recommended to use them outside very simple functions
  20909. acting as mere forwarders for their arguments.
  20910. -- Built-in Function: void * __builtin_apply_args ()
  20911. This built-in function returns a pointer to data describing how to
  20912. perform a call with the same arguments as are passed to the current
  20913. function.
  20914. The function saves the arg pointer register, structure value
  20915. address, and all registers that might be used to pass arguments to
  20916. a function into a block of memory allocated on the stack. Then it
  20917. returns the address of that block.
  20918. -- Built-in Function: void * __builtin_apply (void (*FUNCTION)(), void
  20919. *ARGUMENTS, size_t SIZE)
  20920. This built-in function invokes FUNCTION with a copy of the
  20921. parameters described by ARGUMENTS and SIZE.
  20922. The value of ARGUMENTS should be the value returned by
  20923. '__builtin_apply_args'. The argument SIZE specifies the size of
  20924. the stack argument data, in bytes.
  20925. This function returns a pointer to data describing how to return
  20926. whatever value is returned by FUNCTION. The data is saved in a
  20927. block of memory allocated on the stack.
  20928. It is not always simple to compute the proper value for SIZE. The
  20929. value is used by '__builtin_apply' to compute the amount of data
  20930. that should be pushed on the stack and copied from the incoming
  20931. argument area.
  20932. -- Built-in Function: void __builtin_return (void *RESULT)
  20933. This built-in function returns the value described by RESULT from
  20934. the containing function. You should specify, for RESULT, a value
  20935. returned by '__builtin_apply'.
  20936. -- Built-in Function: __builtin_va_arg_pack ()
  20937. This built-in function represents all anonymous arguments of an
  20938. inline function. It can be used only in inline functions that are
  20939. always inlined, never compiled as a separate function, such as
  20940. those using '__attribute__ ((__always_inline__))' or '__attribute__
  20941. ((__gnu_inline__))' extern inline functions. It must be only
  20942. passed as last argument to some other function with variable
  20943. arguments. This is useful for writing small wrapper inlines for
  20944. variable argument functions, when using preprocessor macros is
  20945. undesirable. For example:
  20946. extern int myprintf (FILE *f, const char *format, ...);
  20947. extern inline __attribute__ ((__gnu_inline__)) int
  20948. myprintf (FILE *f, const char *format, ...)
  20949. {
  20950. int r = fprintf (f, "myprintf: ");
  20951. if (r < 0)
  20952. return r;
  20953. int s = fprintf (f, format, __builtin_va_arg_pack ());
  20954. if (s < 0)
  20955. return s;
  20956. return r + s;
  20957. }
  20958. -- Built-in Function: size_t __builtin_va_arg_pack_len ()
  20959. This built-in function returns the number of anonymous arguments of
  20960. an inline function. It can be used only in inline functions that
  20961. are always inlined, never compiled as a separate function, such as
  20962. those using '__attribute__ ((__always_inline__))' or '__attribute__
  20963. ((__gnu_inline__))' extern inline functions. For example following
  20964. does link- or run-time checking of open arguments for optimized
  20965. code:
  20966. #ifdef __OPTIMIZE__
  20967. extern inline __attribute__((__gnu_inline__)) int
  20968. myopen (const char *path, int oflag, ...)
  20969. {
  20970. if (__builtin_va_arg_pack_len () > 1)
  20971. warn_open_too_many_arguments ();
  20972. if (__builtin_constant_p (oflag))
  20973. {
  20974. if ((oflag & O_CREAT) != 0 && __builtin_va_arg_pack_len () < 1)
  20975. {
  20976. warn_open_missing_mode ();
  20977. return __open_2 (path, oflag);
  20978. }
  20979. return open (path, oflag, __builtin_va_arg_pack ());
  20980. }
  20981. if (__builtin_va_arg_pack_len () < 1)
  20982. return __open_2 (path, oflag);
  20983. return open (path, oflag, __builtin_va_arg_pack ());
  20984. }
  20985. #endif
  20986. 
  20987. File: gcc.info, Node: Typeof, Next: Conditionals, Prev: Constructing Calls, Up: C Extensions
  20988. 6.6 Referring to a Type with 'typeof'
  20989. =====================================
  20990. Another way to refer to the type of an expression is with 'typeof'. The
  20991. syntax of using of this keyword looks like 'sizeof', but the construct
  20992. acts semantically like a type name defined with 'typedef'.
  20993. There are two ways of writing the argument to 'typeof': with an
  20994. expression or with a type. Here is an example with an expression:
  20995. typeof (x[0](1))
  20996. This assumes that 'x' is an array of pointers to functions; the type
  20997. described is that of the values of the functions.
  20998. Here is an example with a typename as the argument:
  20999. typeof (int *)
  21000. Here the type described is that of pointers to 'int'.
  21001. If you are writing a header file that must work when included in ISO C
  21002. programs, write '__typeof__' instead of 'typeof'. *Note Alternate
  21003. Keywords::.
  21004. A 'typeof' construct can be used anywhere a typedef name can be used.
  21005. For example, you can use it in a declaration, in a cast, or inside of
  21006. 'sizeof' or 'typeof'.
  21007. The operand of 'typeof' is evaluated for its side effects if and only
  21008. if it is an expression of variably modified type or the name of such a
  21009. type.
  21010. 'typeof' is often useful in conjunction with statement expressions
  21011. (*note Statement Exprs::). Here is how the two together can be used to
  21012. define a safe "maximum" macro which operates on any arithmetic type and
  21013. evaluates each of its arguments exactly once:
  21014. #define max(a,b) \
  21015. ({ typeof (a) _a = (a); \
  21016. typeof (b) _b = (b); \
  21017. _a > _b ? _a : _b; })
  21018. The reason for using names that start with underscores for the local
  21019. variables is to avoid conflicts with variable names that occur within
  21020. the expressions that are substituted for 'a' and 'b'. Eventually we
  21021. hope to design a new form of declaration syntax that allows you to
  21022. declare variables whose scopes start only after their initializers; this
  21023. will be a more reliable way to prevent such conflicts.
  21024. Some more examples of the use of 'typeof':
  21025. * This declares 'y' with the type of what 'x' points to.
  21026. typeof (*x) y;
  21027. * This declares 'y' as an array of such values.
  21028. typeof (*x) y[4];
  21029. * This declares 'y' as an array of pointers to characters:
  21030. typeof (typeof (char *)[4]) y;
  21031. It is equivalent to the following traditional C declaration:
  21032. char *y[4];
  21033. To see the meaning of the declaration using 'typeof', and why it
  21034. might be a useful way to write, rewrite it with these macros:
  21035. #define pointer(T) typeof(T *)
  21036. #define array(T, N) typeof(T [N])
  21037. Now the declaration can be rewritten this way:
  21038. array (pointer (char), 4) y;
  21039. Thus, 'array (pointer (char), 4)' is the type of arrays of 4
  21040. pointers to 'char'.
  21041. In GNU C, but not GNU C++, you may also declare the type of a variable
  21042. as '__auto_type'. In that case, the declaration must declare only one
  21043. variable, whose declarator must just be an identifier, the declaration
  21044. must be initialized, and the type of the variable is determined by the
  21045. initializer; the name of the variable is not in scope until after the
  21046. initializer. (In C++, you should use C++11 'auto' for this purpose.)
  21047. Using '__auto_type', the "maximum" macro above could be written as:
  21048. #define max(a,b) \
  21049. ({ __auto_type _a = (a); \
  21050. __auto_type _b = (b); \
  21051. _a > _b ? _a : _b; })
  21052. Using '__auto_type' instead of 'typeof' has two advantages:
  21053. * Each argument to the macro appears only once in the expansion of
  21054. the macro. This prevents the size of the macro expansion growing
  21055. exponentially when calls to such macros are nested inside arguments
  21056. of such macros.
  21057. * If the argument to the macro has variably modified type, it is
  21058. evaluated only once when using '__auto_type', but twice if 'typeof'
  21059. is used.
  21060. 
  21061. File: gcc.info, Node: Conditionals, Next: __int128, Prev: Typeof, Up: C Extensions
  21062. 6.7 Conditionals with Omitted Operands
  21063. ======================================
  21064. The middle operand in a conditional expression may be omitted. Then if
  21065. the first operand is nonzero, its value is the value of the conditional
  21066. expression.
  21067. Therefore, the expression
  21068. x ? : y
  21069. has the value of 'x' if that is nonzero; otherwise, the value of 'y'.
  21070. This example is perfectly equivalent to
  21071. x ? x : y
  21072. In this simple case, the ability to omit the middle operand is not
  21073. especially useful. When it becomes useful is when the first operand
  21074. does, or may (if it is a macro argument), contain a side effect. Then
  21075. repeating the operand in the middle would perform the side effect twice.
  21076. Omitting the middle operand uses the value already computed without the
  21077. undesirable effects of recomputing it.
  21078. 
  21079. File: gcc.info, Node: __int128, Next: Long Long, Prev: Conditionals, Up: C Extensions
  21080. 6.8 128-bit Integers
  21081. ====================
  21082. As an extension the integer scalar type '__int128' is supported for
  21083. targets which have an integer mode wide enough to hold 128 bits. Simply
  21084. write '__int128' for a signed 128-bit integer, or 'unsigned __int128'
  21085. for an unsigned 128-bit integer. There is no support in GCC for
  21086. expressing an integer constant of type '__int128' for targets with 'long
  21087. long' integer less than 128 bits wide.
  21088. 
  21089. File: gcc.info, Node: Long Long, Next: Complex, Prev: __int128, Up: C Extensions
  21090. 6.9 Double-Word Integers
  21091. ========================
  21092. ISO C99 supports data types for integers that are at least 64 bits wide,
  21093. and as an extension GCC supports them in C90 mode and in C++. Simply
  21094. write 'long long int' for a signed integer, or 'unsigned long long int'
  21095. for an unsigned integer. To make an integer constant of type 'long long
  21096. int', add the suffix 'LL' to the integer. To make an integer constant
  21097. of type 'unsigned long long int', add the suffix 'ULL' to the integer.
  21098. You can use these types in arithmetic like any other integer types.
  21099. Addition, subtraction, and bitwise boolean operations on these types are
  21100. open-coded on all types of machines. Multiplication is open-coded if
  21101. the machine supports a fullword-to-doubleword widening multiply
  21102. instruction. Division and shifts are open-coded only on machines that
  21103. provide special support. The operations that are not open-coded use
  21104. special library routines that come with GCC.
  21105. There may be pitfalls when you use 'long long' types for function
  21106. arguments without function prototypes. If a function expects type 'int'
  21107. for its argument, and you pass a value of type 'long long int',
  21108. confusion results because the caller and the subroutine disagree about
  21109. the number of bytes for the argument. Likewise, if the function expects
  21110. 'long long int' and you pass 'int'. The best way to avoid such problems
  21111. is to use prototypes.
  21112. 
  21113. File: gcc.info, Node: Complex, Next: Floating Types, Prev: Long Long, Up: C Extensions
  21114. 6.10 Complex Numbers
  21115. ====================
  21116. ISO C99 supports complex floating data types, and as an extension GCC
  21117. supports them in C90 mode and in C++. GCC also supports complex integer
  21118. data types which are not part of ISO C99. You can declare complex types
  21119. using the keyword '_Complex'. As an extension, the older GNU keyword
  21120. '__complex__' is also supported.
  21121. For example, '_Complex double x;' declares 'x' as a variable whose real
  21122. part and imaginary part are both of type 'double'. '_Complex short int
  21123. y;' declares 'y' to have real and imaginary parts of type 'short int';
  21124. this is not likely to be useful, but it shows that the set of complex
  21125. types is complete.
  21126. To write a constant with a complex data type, use the suffix 'i' or 'j'
  21127. (either one; they are equivalent). For example, '2.5fi' has type
  21128. '_Complex float' and '3i' has type '_Complex int'. Such a constant
  21129. always has a pure imaginary value, but you can form any complex value
  21130. you like by adding one to a real constant. This is a GNU extension; if
  21131. you have an ISO C99 conforming C library (such as the GNU C Library),
  21132. and want to construct complex constants of floating type, you should
  21133. include '<complex.h>' and use the macros 'I' or '_Complex_I' instead.
  21134. To extract the real part of a complex-valued expression EXP, write
  21135. '__real__ EXP'. Likewise, use '__imag__' to extract the imaginary part.
  21136. This is a GNU extension; for values of floating type, you should use the
  21137. ISO C99 functions 'crealf', 'creal', 'creall', 'cimagf', 'cimag' and
  21138. 'cimagl', declared in '<complex.h>' and also provided as built-in
  21139. functions by GCC.
  21140. The operator '~' performs complex conjugation when used on a value with
  21141. a complex type. This is a GNU extension; for values of floating type,
  21142. you should use the ISO C99 functions 'conjf', 'conj' and 'conjl',
  21143. declared in '<complex.h>' and also provided as built-in functions by
  21144. GCC.
  21145. GCC can allocate complex automatic variables in a noncontiguous
  21146. fashion; it's even possible for the real part to be in a register while
  21147. the imaginary part is on the stack (or vice versa). Only the DWARF
  21148. debug info format can represent this, so use of DWARF is recommended.
  21149. If you are using the stabs debug info format, GCC describes a
  21150. noncontiguous complex variable as if it were two separate variables of
  21151. noncomplex type. If the variable's actual name is 'foo', the two
  21152. fictitious variables are named 'foo$real' and 'foo$imag'. You can
  21153. examine and set these two fictitious variables with your debugger.
  21154. 
  21155. File: gcc.info, Node: Floating Types, Next: Half-Precision, Prev: Complex, Up: C Extensions
  21156. 6.11 Additional Floating Types
  21157. ==============================
  21158. ISO/IEC TS 18661-3:2015 defines C support for additional floating types
  21159. '_FloatN' and '_FloatNx', and GCC supports these type names; the set of
  21160. types supported depends on the target architecture. These types are not
  21161. supported when compiling C++. Constants with these types use suffixes
  21162. 'fN' or 'FN' and 'fNx' or 'FNx'. These type names can be used together
  21163. with '_Complex' to declare complex types.
  21164. As an extension, GNU C and GNU C++ support additional floating types,
  21165. which are not supported by all targets.
  21166. * '__float128' is available on i386, x86_64, IA-64, and hppa HP-UX,
  21167. as well as on PowerPC GNU/Linux targets that enable the vector
  21168. scalar (VSX) instruction set. '__float128' supports the 128-bit
  21169. floating type. On i386, x86_64, PowerPC, and IA-64 other than
  21170. HP-UX, '__float128' is an alias for '_Float128'. On hppa and IA-64
  21171. HP-UX, '__float128' is an alias for 'long double'.
  21172. * '__float80' is available on the i386, x86_64, and IA-64 targets,
  21173. and supports the 80-bit ('XFmode') floating type. It is an alias
  21174. for the type name '_Float64x' on these targets.
  21175. * '__ibm128' is available on PowerPC targets, and provides access to
  21176. the IBM extended double format which is the current format used for
  21177. 'long double'. When 'long double' transitions to '__float128' on
  21178. PowerPC in the future, '__ibm128' will remain for use in
  21179. conversions between the two types.
  21180. Support for these additional types includes the arithmetic operators:
  21181. add, subtract, multiply, divide; unary arithmetic operators; relational
  21182. operators; equality operators; and conversions to and from integer and
  21183. other floating types. Use a suffix 'w' or 'W' in a literal constant of
  21184. type '__float80' or type '__ibm128'. Use a suffix 'q' or 'Q' for
  21185. '_float128'.
  21186. In order to use '_Float128', '__float128', and '__ibm128' on PowerPC
  21187. Linux systems, you must use the '-mfloat128' option. It is expected in
  21188. future versions of GCC that '_Float128' and '__float128' will be enabled
  21189. automatically.
  21190. The '_Float128' type is supported on all systems where '__float128' is
  21191. supported or where 'long double' has the IEEE binary128 format. The
  21192. '_Float64x' type is supported on all systems where '__float128' is
  21193. supported. The '_Float32' type is supported on all systems supporting
  21194. IEEE binary32; the '_Float64' and '_Float32x' types are supported on all
  21195. systems supporting IEEE binary64. The '_Float16' type is supported on
  21196. AArch64 systems by default, and on ARM systems when the IEEE format for
  21197. 16-bit floating-point types is selected with '-mfp16-format=ieee'. GCC
  21198. does not currently support '_Float128x' on any systems.
  21199. On the i386, x86_64, IA-64, and HP-UX targets, you can declare complex
  21200. types using the corresponding internal complex type, 'XCmode' for
  21201. '__float80' type and 'TCmode' for '__float128' type:
  21202. typedef _Complex float __attribute__((mode(TC))) _Complex128;
  21203. typedef _Complex float __attribute__((mode(XC))) _Complex80;
  21204. On the PowerPC Linux VSX targets, you can declare complex types using
  21205. the corresponding internal complex type, 'KCmode' for '__float128' type
  21206. and 'ICmode' for '__ibm128' type:
  21207. typedef _Complex float __attribute__((mode(KC))) _Complex_float128;
  21208. typedef _Complex float __attribute__((mode(IC))) _Complex_ibm128;
  21209. 
  21210. File: gcc.info, Node: Half-Precision, Next: Decimal Float, Prev: Floating Types, Up: C Extensions
  21211. 6.12 Half-Precision Floating Point
  21212. ==================================
  21213. On ARM and AArch64 targets, GCC supports half-precision (16-bit)
  21214. floating point via the '__fp16' type defined in the ARM C Language
  21215. Extensions. On ARM systems, you must enable this type explicitly with
  21216. the '-mfp16-format' command-line option in order to use it.
  21217. ARM targets support two incompatible representations for half-precision
  21218. floating-point values. You must choose one of the representations and
  21219. use it consistently in your program.
  21220. Specifying '-mfp16-format=ieee' selects the IEEE 754-2008 format. This
  21221. format can represent normalized values in the range of 2^{-14} to 65504.
  21222. There are 11 bits of significand precision, approximately 3 decimal
  21223. digits.
  21224. Specifying '-mfp16-format=alternative' selects the ARM alternative
  21225. format. This representation is similar to the IEEE format, but does not
  21226. support infinities or NaNs. Instead, the range of exponents is
  21227. extended, so that this format can represent normalized values in the
  21228. range of 2^{-14} to 131008.
  21229. The GCC port for AArch64 only supports the IEEE 754-2008 format, and
  21230. does not require use of the '-mfp16-format' command-line option.
  21231. The '__fp16' type may only be used as an argument to intrinsics defined
  21232. in '<arm_fp16.h>', or as a storage format. For purposes of arithmetic
  21233. and other operations, '__fp16' values in C or C++ expressions are
  21234. automatically promoted to 'float'.
  21235. The ARM target provides hardware support for conversions between
  21236. '__fp16' and 'float' values as an extension to VFP and NEON (Advanced
  21237. SIMD), and from ARMv8 provides hardware support for conversions between
  21238. '__fp16' and 'double' values. GCC generates code using these hardware
  21239. instructions if you compile with options to select an FPU that provides
  21240. them; for example, '-mfpu=neon-fp16 -mfloat-abi=softfp', in addition to
  21241. the '-mfp16-format' option to select a half-precision format.
  21242. Language-level support for the '__fp16' data type is independent of
  21243. whether GCC generates code using hardware floating-point instructions.
  21244. In cases where hardware support is not specified, GCC implements
  21245. conversions between '__fp16' and other types as library calls.
  21246. It is recommended that portable code use the '_Float16' type defined by
  21247. ISO/IEC TS 18661-3:2015. *Note Floating Types::.
  21248. 
  21249. File: gcc.info, Node: Decimal Float, Next: Hex Floats, Prev: Half-Precision, Up: C Extensions
  21250. 6.13 Decimal Floating Types
  21251. ===========================
  21252. As an extension, GNU C supports decimal floating types as defined in the
  21253. N1312 draft of ISO/IEC WDTR24732. Support for decimal floating types in
  21254. GCC will evolve as the draft technical report changes. Calling
  21255. conventions for any target might also change. Not all targets support
  21256. decimal floating types.
  21257. The decimal floating types are '_Decimal32', '_Decimal64', and
  21258. '_Decimal128'. They use a radix of ten, unlike the floating types
  21259. 'float', 'double', and 'long double' whose radix is not specified by the
  21260. C standard but is usually two.
  21261. Support for decimal floating types includes the arithmetic operators
  21262. add, subtract, multiply, divide; unary arithmetic operators; relational
  21263. operators; equality operators; and conversions to and from integer and
  21264. other floating types. Use a suffix 'df' or 'DF' in a literal constant
  21265. of type '_Decimal32', 'dd' or 'DD' for '_Decimal64', and 'dl' or 'DL'
  21266. for '_Decimal128'.
  21267. GCC support of decimal float as specified by the draft technical report
  21268. is incomplete:
  21269. * When the value of a decimal floating type cannot be represented in
  21270. the integer type to which it is being converted, the result is
  21271. undefined rather than the result value specified by the draft
  21272. technical report.
  21273. * GCC does not provide the C library functionality associated with
  21274. 'math.h', 'fenv.h', 'stdio.h', 'stdlib.h', and 'wchar.h', which
  21275. must come from a separate C library implementation. Because of
  21276. this the GNU C compiler does not define macro '__STDC_DEC_FP__' to
  21277. indicate that the implementation conforms to the technical report.
  21278. Types '_Decimal32', '_Decimal64', and '_Decimal128' are supported by
  21279. the DWARF debug information format.
  21280. 
  21281. File: gcc.info, Node: Hex Floats, Next: Fixed-Point, Prev: Decimal Float, Up: C Extensions
  21282. 6.14 Hex Floats
  21283. ===============
  21284. ISO C99 supports floating-point numbers written not only in the usual
  21285. decimal notation, such as '1.55e1', but also numbers such as '0x1.fp3'
  21286. written in hexadecimal format. As a GNU extension, GCC supports this in
  21287. C90 mode (except in some cases when strictly conforming) and in C++. In
  21288. that format the '0x' hex introducer and the 'p' or 'P' exponent field
  21289. are mandatory. The exponent is a decimal number that indicates the
  21290. power of 2 by which the significant part is multiplied. Thus '0x1.f' is
  21291. 1 15/16, 'p3' multiplies it by 8, and the value of '0x1.fp3' is the same
  21292. as '1.55e1'.
  21293. Unlike for floating-point numbers in the decimal notation the exponent
  21294. is always required in the hexadecimal notation. Otherwise the compiler
  21295. would not be able to resolve the ambiguity of, e.g., '0x1.f'. This
  21296. could mean '1.0f' or '1.9375' since 'f' is also the extension for
  21297. floating-point constants of type 'float'.
  21298. 
  21299. File: gcc.info, Node: Fixed-Point, Next: Named Address Spaces, Prev: Hex Floats, Up: C Extensions
  21300. 6.15 Fixed-Point Types
  21301. ======================
  21302. As an extension, GNU C supports fixed-point types as defined in the
  21303. N1169 draft of ISO/IEC DTR 18037. Support for fixed-point types in GCC
  21304. will evolve as the draft technical report changes. Calling conventions
  21305. for any target might also change. Not all targets support fixed-point
  21306. types.
  21307. The fixed-point types are 'short _Fract', '_Fract', 'long _Fract',
  21308. 'long long _Fract', 'unsigned short _Fract', 'unsigned _Fract',
  21309. 'unsigned long _Fract', 'unsigned long long _Fract', '_Sat short
  21310. _Fract', '_Sat _Fract', '_Sat long _Fract', '_Sat long long _Fract',
  21311. '_Sat unsigned short _Fract', '_Sat unsigned _Fract', '_Sat unsigned
  21312. long _Fract', '_Sat unsigned long long _Fract', 'short _Accum',
  21313. '_Accum', 'long _Accum', 'long long _Accum', 'unsigned short _Accum',
  21314. 'unsigned _Accum', 'unsigned long _Accum', 'unsigned long long _Accum',
  21315. '_Sat short _Accum', '_Sat _Accum', '_Sat long _Accum', '_Sat long long
  21316. _Accum', '_Sat unsigned short _Accum', '_Sat unsigned _Accum', '_Sat
  21317. unsigned long _Accum', '_Sat unsigned long long _Accum'.
  21318. Fixed-point data values contain fractional and optional integral parts.
  21319. The format of fixed-point data varies and depends on the target machine.
  21320. Support for fixed-point types includes:
  21321. * prefix and postfix increment and decrement operators ('++', '--')
  21322. * unary arithmetic operators ('+', '-', '!')
  21323. * binary arithmetic operators ('+', '-', '*', '/')
  21324. * binary shift operators ('<<', '>>')
  21325. * relational operators ('<', '<=', '>=', '>')
  21326. * equality operators ('==', '!=')
  21327. * assignment operators ('+=', '-=', '*=', '/=', '<<=', '>>=')
  21328. * conversions to and from integer, floating-point, or fixed-point
  21329. types
  21330. Use a suffix in a fixed-point literal constant:
  21331. * 'hr' or 'HR' for 'short _Fract' and '_Sat short _Fract'
  21332. * 'r' or 'R' for '_Fract' and '_Sat _Fract'
  21333. * 'lr' or 'LR' for 'long _Fract' and '_Sat long _Fract'
  21334. * 'llr' or 'LLR' for 'long long _Fract' and '_Sat long long _Fract'
  21335. * 'uhr' or 'UHR' for 'unsigned short _Fract' and '_Sat unsigned short
  21336. _Fract'
  21337. * 'ur' or 'UR' for 'unsigned _Fract' and '_Sat unsigned _Fract'
  21338. * 'ulr' or 'ULR' for 'unsigned long _Fract' and '_Sat unsigned long
  21339. _Fract'
  21340. * 'ullr' or 'ULLR' for 'unsigned long long _Fract' and '_Sat unsigned
  21341. long long _Fract'
  21342. * 'hk' or 'HK' for 'short _Accum' and '_Sat short _Accum'
  21343. * 'k' or 'K' for '_Accum' and '_Sat _Accum'
  21344. * 'lk' or 'LK' for 'long _Accum' and '_Sat long _Accum'
  21345. * 'llk' or 'LLK' for 'long long _Accum' and '_Sat long long _Accum'
  21346. * 'uhk' or 'UHK' for 'unsigned short _Accum' and '_Sat unsigned short
  21347. _Accum'
  21348. * 'uk' or 'UK' for 'unsigned _Accum' and '_Sat unsigned _Accum'
  21349. * 'ulk' or 'ULK' for 'unsigned long _Accum' and '_Sat unsigned long
  21350. _Accum'
  21351. * 'ullk' or 'ULLK' for 'unsigned long long _Accum' and '_Sat unsigned
  21352. long long _Accum'
  21353. GCC support of fixed-point types as specified by the draft technical
  21354. report is incomplete:
  21355. * Pragmas to control overflow and rounding behaviors are not
  21356. implemented.
  21357. Fixed-point types are supported by the DWARF debug information format.
  21358. 
  21359. File: gcc.info, Node: Named Address Spaces, Next: Zero Length, Prev: Fixed-Point, Up: C Extensions
  21360. 6.16 Named Address Spaces
  21361. =========================
  21362. As an extension, GNU C supports named address spaces as defined in the
  21363. N1275 draft of ISO/IEC DTR 18037. Support for named address spaces in
  21364. GCC will evolve as the draft technical report changes. Calling
  21365. conventions for any target might also change. At present, only the AVR,
  21366. SPU, M32C, RL78, and x86 targets support address spaces other than the
  21367. generic address space.
  21368. Address space identifiers may be used exactly like any other C type
  21369. qualifier (e.g., 'const' or 'volatile'). See the N1275 document for
  21370. more details.
  21371. 6.16.1 AVR Named Address Spaces
  21372. -------------------------------
  21373. On the AVR target, there are several address spaces that can be used in
  21374. order to put read-only data into the flash memory and access that data
  21375. by means of the special instructions 'LPM' or 'ELPM' needed to read from
  21376. flash.
  21377. Per default, any data including read-only data is located in RAM (the
  21378. generic address space) so that non-generic address spaces are needed to
  21379. locate read-only data in flash memory _and_ to generate the right
  21380. instructions to access this data without using (inline) assembler code.
  21381. '__flash'
  21382. The '__flash' qualifier locates data in the '.progmem.data'
  21383. section. Data is read using the 'LPM' instruction. Pointers to
  21384. this address space are 16 bits wide.
  21385. '__flash1'
  21386. '__flash2'
  21387. '__flash3'
  21388. '__flash4'
  21389. '__flash5'
  21390. These are 16-bit address spaces locating data in section
  21391. '.progmemN.data' where N refers to address space '__flashN'. The
  21392. compiler sets the 'RAMPZ' segment register appropriately before
  21393. reading data by means of the 'ELPM' instruction.
  21394. '__memx'
  21395. This is a 24-bit address space that linearizes flash and RAM: If
  21396. the high bit of the address is set, data is read from RAM using the
  21397. lower two bytes as RAM address. If the high bit of the address is
  21398. clear, data is read from flash with 'RAMPZ' set according to the
  21399. high byte of the address. *Note '__builtin_avr_flash_segment': AVR
  21400. Built-in Functions.
  21401. Objects in this address space are located in '.progmemx.data'.
  21402. Example
  21403. char my_read (const __flash char ** p)
  21404. {
  21405. /* p is a pointer to RAM that points to a pointer to flash.
  21406. The first indirection of p reads that flash pointer
  21407. from RAM and the second indirection reads a char from this
  21408. flash address. */
  21409. return **p;
  21410. }
  21411. /* Locate array[] in flash memory */
  21412. const __flash int array[] = { 3, 5, 7, 11, 13, 17, 19 };
  21413. int i = 1;
  21414. int main (void)
  21415. {
  21416. /* Return 17 by reading from flash memory */
  21417. return array[array[i]];
  21418. }
  21419. For each named address space supported by avr-gcc there is an equally
  21420. named but uppercase built-in macro defined. The purpose is to
  21421. facilitate testing if respective address space support is available or
  21422. not:
  21423. #ifdef __FLASH
  21424. const __flash int var = 1;
  21425. int read_var (void)
  21426. {
  21427. return var;
  21428. }
  21429. #else
  21430. #include <avr/pgmspace.h> /* From AVR-LibC */
  21431. const int var PROGMEM = 1;
  21432. int read_var (void)
  21433. {
  21434. return (int) pgm_read_word (&var);
  21435. }
  21436. #endif /* __FLASH */
  21437. Notice that attribute *note 'progmem': AVR Variable Attributes. locates
  21438. data in flash but accesses to these data read from generic address
  21439. space, i.e. from RAM, so that you need special accessors like
  21440. 'pgm_read_byte' from AVR-LibC (http://nongnu.org/avr-libc/user-manual/)
  21441. together with attribute 'progmem'.
  21442. Limitations and caveats
  21443. * Reading across the 64 KiB section boundary of the '__flash' or
  21444. '__flashN' address spaces shows undefined behavior. The only
  21445. address space that supports reading across the 64 KiB flash segment
  21446. boundaries is '__memx'.
  21447. * If you use one of the '__flashN' address spaces you must arrange
  21448. your linker script to locate the '.progmemN.data' sections
  21449. according to your needs.
  21450. * Any data or pointers to the non-generic address spaces must be
  21451. qualified as 'const', i.e. as read-only data. This still applies
  21452. if the data in one of these address spaces like software version
  21453. number or calibration lookup table are intended to be changed after
  21454. load time by, say, a boot loader. In this case the right
  21455. qualification is 'const' 'volatile' so that the compiler must not
  21456. optimize away known values or insert them as immediates into
  21457. operands of instructions.
  21458. * The following code initializes a variable 'pfoo' located in static
  21459. storage with a 24-bit address:
  21460. extern const __memx char foo;
  21461. const __memx void *pfoo = &foo;
  21462. Such code requires at least binutils 2.23, see
  21463. PR13503 (https://sourceware.org/PR13503).
  21464. * On the reduced Tiny devices like ATtiny40, no address spaces are
  21465. supported. Data can be put into and read from flash memory by
  21466. means of attribute 'progmem', see *note AVR Variable Attributes::.
  21467. 6.16.2 M32C Named Address Spaces
  21468. --------------------------------
  21469. On the M32C target, with the R8C and M16C CPU variants, variables
  21470. qualified with '__far' are accessed using 32-bit addresses in order to
  21471. access memory beyond the first 64 Ki bytes. If '__far' is used with the
  21472. M32CM or M32C CPU variants, it has no effect.
  21473. 6.16.3 RL78 Named Address Spaces
  21474. --------------------------------
  21475. On the RL78 target, variables qualified with '__far' are accessed with
  21476. 32-bit pointers (20-bit addresses) rather than the default 16-bit
  21477. addresses. Non-far variables are assumed to appear in the topmost
  21478. 64 KiB of the address space.
  21479. 6.16.4 SPU Named Address Spaces
  21480. -------------------------------
  21481. On the SPU target variables may be declared as belonging to another
  21482. address space by qualifying the type with the '__ea' address space
  21483. identifier:
  21484. extern int __ea i;
  21485. The compiler generates special code to access the variable 'i'. It may
  21486. use runtime library support, or generate special machine instructions to
  21487. access that address space.
  21488. 6.16.5 x86 Named Address Spaces
  21489. -------------------------------
  21490. On the x86 target, variables may be declared as being relative to the
  21491. '%fs' or '%gs' segments.
  21492. '__seg_fs'
  21493. '__seg_gs'
  21494. The object is accessed with the respective segment override prefix.
  21495. The respective segment base must be set via some method specific to
  21496. the operating system. Rather than require an expensive system call
  21497. to retrieve the segment base, these address spaces are not
  21498. considered to be subspaces of the generic (flat) address space.
  21499. This means that explicit casts are required to convert pointers
  21500. between these address spaces and the generic address space. In
  21501. practice the application should cast to 'uintptr_t' and apply the
  21502. segment base offset that it installed previously.
  21503. The preprocessor symbols '__SEG_FS' and '__SEG_GS' are defined when
  21504. these address spaces are supported.
  21505. 
  21506. File: gcc.info, Node: Zero Length, Next: Empty Structures, Prev: Named Address Spaces, Up: C Extensions
  21507. 6.17 Arrays of Length Zero
  21508. ==========================
  21509. Zero-length arrays are allowed in GNU C. They are very useful as the
  21510. last element of a structure that is really a header for a
  21511. variable-length object:
  21512. struct line {
  21513. int length;
  21514. char contents[0];
  21515. };
  21516. struct line *thisline = (struct line *)
  21517. malloc (sizeof (struct line) + this_length);
  21518. thisline->length = this_length;
  21519. In ISO C90, you would have to give 'contents' a length of 1, which
  21520. means either you waste space or complicate the argument to 'malloc'.
  21521. In ISO C99, you would use a "flexible array member", which is slightly
  21522. different in syntax and semantics:
  21523. * Flexible array members are written as 'contents[]' without the '0'.
  21524. * Flexible array members have incomplete type, and so the 'sizeof'
  21525. operator may not be applied. As a quirk of the original
  21526. implementation of zero-length arrays, 'sizeof' evaluates to zero.
  21527. * Flexible array members may only appear as the last member of a
  21528. 'struct' that is otherwise non-empty.
  21529. * A structure containing a flexible array member, or a union
  21530. containing such a structure (possibly recursively), may not be a
  21531. member of a structure or an element of an array. (However, these
  21532. uses are permitted by GCC as extensions.)
  21533. Non-empty initialization of zero-length arrays is treated like any case
  21534. where there are more initializer elements than the array holds, in that
  21535. a suitable warning about "excess elements in array" is given, and the
  21536. excess elements (all of them, in this case) are ignored.
  21537. GCC allows static initialization of flexible array members. This is
  21538. equivalent to defining a new structure containing the original structure
  21539. followed by an array of sufficient size to contain the data. E.g. in
  21540. the following, 'f1' is constructed as if it were declared like 'f2'.
  21541. struct f1 {
  21542. int x; int y[];
  21543. } f1 = { 1, { 2, 3, 4 } };
  21544. struct f2 {
  21545. struct f1 f1; int data[3];
  21546. } f2 = { { 1 }, { 2, 3, 4 } };
  21547. The convenience of this extension is that 'f1' has the desired type,
  21548. eliminating the need to consistently refer to 'f2.f1'.
  21549. This has symmetry with normal static arrays, in that an array of
  21550. unknown size is also written with '[]'.
  21551. Of course, this extension only makes sense if the extra data comes at
  21552. the end of a top-level object, as otherwise we would be overwriting data
  21553. at subsequent offsets. To avoid undue complication and confusion with
  21554. initialization of deeply nested arrays, we simply disallow any non-empty
  21555. initialization except when the structure is the top-level object. For
  21556. example:
  21557. struct foo { int x; int y[]; };
  21558. struct bar { struct foo z; };
  21559. struct foo a = { 1, { 2, 3, 4 } }; // Valid.
  21560. struct bar b = { { 1, { 2, 3, 4 } } }; // Invalid.
  21561. struct bar c = { { 1, { } } }; // Valid.
  21562. struct foo d[1] = { { 1, { 2, 3, 4 } } }; // Invalid.
  21563. 
  21564. File: gcc.info, Node: Empty Structures, Next: Variable Length, Prev: Zero Length, Up: C Extensions
  21565. 6.18 Structures with No Members
  21566. ===============================
  21567. GCC permits a C structure to have no members:
  21568. struct empty {
  21569. };
  21570. The structure has size zero. In C++, empty structures are part of the
  21571. language. G++ treats empty structures as if they had a single member of
  21572. type 'char'.
  21573. 
  21574. File: gcc.info, Node: Variable Length, Next: Variadic Macros, Prev: Empty Structures, Up: C Extensions
  21575. 6.19 Arrays of Variable Length
  21576. ==============================
  21577. Variable-length automatic arrays are allowed in ISO C99, and as an
  21578. extension GCC accepts them in C90 mode and in C++. These arrays are
  21579. declared like any other automatic arrays, but with a length that is not
  21580. a constant expression. The storage is allocated at the point of
  21581. declaration and deallocated when the block scope containing the
  21582. declaration exits. For example:
  21583. FILE *
  21584. concat_fopen (char *s1, char *s2, char *mode)
  21585. {
  21586. char str[strlen (s1) + strlen (s2) + 1];
  21587. strcpy (str, s1);
  21588. strcat (str, s2);
  21589. return fopen (str, mode);
  21590. }
  21591. Jumping or breaking out of the scope of the array name deallocates the
  21592. storage. Jumping into the scope is not allowed; you get an error
  21593. message for it.
  21594. As an extension, GCC accepts variable-length arrays as a member of a
  21595. structure or a union. For example:
  21596. void
  21597. foo (int n)
  21598. {
  21599. struct S { int x[n]; };
  21600. }
  21601. You can use the function 'alloca' to get an effect much like
  21602. variable-length arrays. The function 'alloca' is available in many
  21603. other C implementations (but not in all). On the other hand,
  21604. variable-length arrays are more elegant.
  21605. There are other differences between these two methods. Space allocated
  21606. with 'alloca' exists until the containing _function_ returns. The space
  21607. for a variable-length array is deallocated as soon as the array name's
  21608. scope ends, unless you also use 'alloca' in this scope.
  21609. You can also use variable-length arrays as arguments to functions:
  21610. struct entry
  21611. tester (int len, char data[len][len])
  21612. {
  21613. /* ... */
  21614. }
  21615. The length of an array is computed once when the storage is allocated
  21616. and is remembered for the scope of the array in case you access it with
  21617. 'sizeof'.
  21618. If you want to pass the array first and the length afterward, you can
  21619. use a forward declaration in the parameter list--another GNU extension.
  21620. struct entry
  21621. tester (int len; char data[len][len], int len)
  21622. {
  21623. /* ... */
  21624. }
  21625. The 'int len' before the semicolon is a "parameter forward
  21626. declaration", and it serves the purpose of making the name 'len' known
  21627. when the declaration of 'data' is parsed.
  21628. You can write any number of such parameter forward declarations in the
  21629. parameter list. They can be separated by commas or semicolons, but the
  21630. last one must end with a semicolon, which is followed by the "real"
  21631. parameter declarations. Each forward declaration must match a "real"
  21632. declaration in parameter name and data type. ISO C99 does not support
  21633. parameter forward declarations.
  21634. 
  21635. File: gcc.info, Node: Variadic Macros, Next: Escaped Newlines, Prev: Variable Length, Up: C Extensions
  21636. 6.20 Macros with a Variable Number of Arguments.
  21637. ================================================
  21638. In the ISO C standard of 1999, a macro can be declared to accept a
  21639. variable number of arguments much as a function can. The syntax for
  21640. defining the macro is similar to that of a function. Here is an
  21641. example:
  21642. #define debug(format, ...) fprintf (stderr, format, __VA_ARGS__)
  21643. Here '...' is a "variable argument". In the invocation of such a macro,
  21644. it represents the zero or more tokens until the closing parenthesis that
  21645. ends the invocation, including any commas. This set of tokens replaces
  21646. the identifier '__VA_ARGS__' in the macro body wherever it appears. See
  21647. the CPP manual for more information.
  21648. GCC has long supported variadic macros, and used a different syntax
  21649. that allowed you to give a name to the variable arguments just like any
  21650. other argument. Here is an example:
  21651. #define debug(format, args...) fprintf (stderr, format, args)
  21652. This is in all ways equivalent to the ISO C example above, but arguably
  21653. more readable and descriptive.
  21654. GNU CPP has two further variadic macro extensions, and permits them to
  21655. be used with either of the above forms of macro definition.
  21656. In standard C, you are not allowed to leave the variable argument out
  21657. entirely; but you are allowed to pass an empty argument. For example,
  21658. this invocation is invalid in ISO C, because there is no comma after the
  21659. string:
  21660. debug ("A message")
  21661. GNU CPP permits you to completely omit the variable arguments in this
  21662. way. In the above examples, the compiler would complain, though since
  21663. the expansion of the macro still has the extra comma after the format
  21664. string.
  21665. To help solve this problem, CPP behaves specially for variable
  21666. arguments used with the token paste operator, '##'. If instead you
  21667. write
  21668. #define debug(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
  21669. and if the variable arguments are omitted or empty, the '##' operator
  21670. causes the preprocessor to remove the comma before it. If you do
  21671. provide some variable arguments in your macro invocation, GNU CPP does
  21672. not complain about the paste operation and instead places the variable
  21673. arguments after the comma. Just like any other pasted macro argument,
  21674. these arguments are not macro expanded.
  21675. 
  21676. File: gcc.info, Node: Escaped Newlines, Next: Subscripting, Prev: Variadic Macros, Up: C Extensions
  21677. 6.21 Slightly Looser Rules for Escaped Newlines
  21678. ===============================================
  21679. The preprocessor treatment of escaped newlines is more relaxed than that
  21680. specified by the C90 standard, which requires the newline to immediately
  21681. follow a backslash. GCC's implementation allows whitespace in the form
  21682. of spaces, horizontal and vertical tabs, and form feeds between the
  21683. backslash and the subsequent newline. The preprocessor issues a
  21684. warning, but treats it as a valid escaped newline and combines the two
  21685. lines to form a single logical line. This works within comments and
  21686. tokens, as well as between tokens. Comments are _not_ treated as
  21687. whitespace for the purposes of this relaxation, since they have not yet
  21688. been replaced with spaces.
  21689. 
  21690. File: gcc.info, Node: Subscripting, Next: Pointer Arith, Prev: Escaped Newlines, Up: C Extensions
  21691. 6.22 Non-Lvalue Arrays May Have Subscripts
  21692. ==========================================
  21693. In ISO C99, arrays that are not lvalues still decay to pointers, and may
  21694. be subscripted, although they may not be modified or used after the next
  21695. sequence point and the unary '&' operator may not be applied to them.
  21696. As an extension, GNU C allows such arrays to be subscripted in C90 mode,
  21697. though otherwise they do not decay to pointers outside C99 mode. For
  21698. example, this is valid in GNU C though not valid in C90:
  21699. struct foo {int a[4];};
  21700. struct foo f();
  21701. bar (int index)
  21702. {
  21703. return f().a[index];
  21704. }
  21705. 
  21706. File: gcc.info, Node: Pointer Arith, Next: Pointers to Arrays, Prev: Subscripting, Up: C Extensions
  21707. 6.23 Arithmetic on 'void'- and Function-Pointers
  21708. ================================================
  21709. In GNU C, addition and subtraction operations are supported on pointers
  21710. to 'void' and on pointers to functions. This is done by treating the
  21711. size of a 'void' or of a function as 1.
  21712. A consequence of this is that 'sizeof' is also allowed on 'void' and on
  21713. function types, and returns 1.
  21714. The option '-Wpointer-arith' requests a warning if these extensions are
  21715. used.
  21716. 
  21717. File: gcc.info, Node: Pointers to Arrays, Next: Initializers, Prev: Pointer Arith, Up: C Extensions
  21718. 6.24 Pointers to Arrays with Qualifiers Work as Expected
  21719. ========================================================
  21720. In GNU C, pointers to arrays with qualifiers work similar to pointers to
  21721. other qualified types. For example, a value of type 'int (*)[5]' can be
  21722. used to initialize a variable of type 'const int (*)[5]'. These types
  21723. are incompatible in ISO C because the 'const' qualifier is formally
  21724. attached to the element type of the array and not the array itself.
  21725. extern void
  21726. transpose (int N, int M, double out[M][N], const double in[N][M]);
  21727. double x[3][2];
  21728. double y[2][3];
  21729. ...
  21730. transpose(3, 2, y, x);
  21731. 
  21732. File: gcc.info, Node: Initializers, Next: Compound Literals, Prev: Pointers to Arrays, Up: C Extensions
  21733. 6.25 Non-Constant Initializers
  21734. ==============================
  21735. As in standard C++ and ISO C99, the elements of an aggregate initializer
  21736. for an automatic variable are not required to be constant expressions in
  21737. GNU C. Here is an example of an initializer with run-time varying
  21738. elements:
  21739. foo (float f, float g)
  21740. {
  21741. float beat_freqs[2] = { f-g, f+g };
  21742. /* ... */
  21743. }
  21744. 
  21745. File: gcc.info, Node: Compound Literals, Next: Designated Inits, Prev: Initializers, Up: C Extensions
  21746. 6.26 Compound Literals
  21747. ======================
  21748. A compound literal looks like a cast of a brace-enclosed aggregate
  21749. initializer list. Its value is an object of the type specified in the
  21750. cast, containing the elements specified in the initializer. Unlike the
  21751. result of a cast, a compound literal is an lvalue. ISO C99 and later
  21752. support compound literals. As an extension, GCC supports compound
  21753. literals also in C90 mode and in C++, although as explained below, the
  21754. C++ semantics are somewhat different.
  21755. Usually, the specified type of a compound literal is a structure.
  21756. Assume that 'struct foo' and 'structure' are declared as shown:
  21757. struct foo {int a; char b[2];} structure;
  21758. Here is an example of constructing a 'struct foo' with a compound
  21759. literal:
  21760. structure = ((struct foo) {x + y, 'a', 0});
  21761. This is equivalent to writing the following:
  21762. {
  21763. struct foo temp = {x + y, 'a', 0};
  21764. structure = temp;
  21765. }
  21766. You can also construct an array, though this is dangerous in C++, as
  21767. explained below. If all the elements of the compound literal are (made
  21768. up of) simple constant expressions suitable for use in initializers of
  21769. objects of static storage duration, then the compound literal can be
  21770. coerced to a pointer to its first element and used in such an
  21771. initializer, as shown here:
  21772. char **foo = (char *[]) { "x", "y", "z" };
  21773. Compound literals for scalar types and union types are also allowed.
  21774. In the following example the variable 'i' is initialized to the value
  21775. '2', the result of incrementing the unnamed object created by the
  21776. compound literal.
  21777. int i = ++(int) { 1 };
  21778. As a GNU extension, GCC allows initialization of objects with static
  21779. storage duration by compound literals (which is not possible in ISO C99
  21780. because the initializer is not a constant). It is handled as if the
  21781. object were initialized only with the brace-enclosed list if the types
  21782. of the compound literal and the object match. The elements of the
  21783. compound literal must be constant. If the object being initialized has
  21784. array type of unknown size, the size is determined by the size of the
  21785. compound literal.
  21786. static struct foo x = (struct foo) {1, 'a', 'b'};
  21787. static int y[] = (int []) {1, 2, 3};
  21788. static int z[] = (int [3]) {1};
  21789. The above lines are equivalent to the following:
  21790. static struct foo x = {1, 'a', 'b'};
  21791. static int y[] = {1, 2, 3};
  21792. static int z[] = {1, 0, 0};
  21793. In C, a compound literal designates an unnamed object with static or
  21794. automatic storage duration. In C++, a compound literal designates a
  21795. temporary object that only lives until the end of its full-expression.
  21796. As a result, well-defined C code that takes the address of a subobject
  21797. of a compound literal can be undefined in C++, so G++ rejects the
  21798. conversion of a temporary array to a pointer. For instance, if the
  21799. array compound literal example above appeared inside a function, any
  21800. subsequent use of 'foo' in C++ would have undefined behavior because the
  21801. lifetime of the array ends after the declaration of 'foo'.
  21802. As an optimization, G++ sometimes gives array compound literals longer
  21803. lifetimes: when the array either appears outside a function or has a
  21804. 'const'-qualified type. If 'foo' and its initializer had elements of
  21805. type 'char *const' rather than 'char *', or if 'foo' were a global
  21806. variable, the array would have static storage duration. But it is
  21807. probably safest just to avoid the use of array compound literals in C++
  21808. code.
  21809. 
  21810. File: gcc.info, Node: Designated Inits, Next: Case Ranges, Prev: Compound Literals, Up: C Extensions
  21811. 6.27 Designated Initializers
  21812. ============================
  21813. Standard C90 requires the elements of an initializer to appear in a
  21814. fixed order, the same as the order of the elements in the array or
  21815. structure being initialized.
  21816. In ISO C99 you can give the elements in any order, specifying the array
  21817. indices or structure field names they apply to, and GNU C allows this as
  21818. an extension in C90 mode as well. This extension is not implemented in
  21819. GNU C++.
  21820. To specify an array index, write '[INDEX] =' before the element value.
  21821. For example,
  21822. int a[6] = { [4] = 29, [2] = 15 };
  21823. is equivalent to
  21824. int a[6] = { 0, 0, 15, 0, 29, 0 };
  21825. The index values must be constant expressions, even if the array being
  21826. initialized is automatic.
  21827. An alternative syntax for this that has been obsolete since GCC 2.5 but
  21828. GCC still accepts is to write '[INDEX]' before the element value, with
  21829. no '='.
  21830. To initialize a range of elements to the same value, write '[FIRST ...
  21831. LAST] = VALUE'. This is a GNU extension. For example,
  21832. int widths[] = { [0 ... 9] = 1, [10 ... 99] = 2, [100] = 3 };
  21833. If the value in it has side-effects, the side-effects happen only once,
  21834. not for each initialized field by the range initializer.
  21835. Note that the length of the array is the highest value specified plus
  21836. one.
  21837. In a structure initializer, specify the name of a field to initialize
  21838. with '.FIELDNAME =' before the element value. For example, given the
  21839. following structure,
  21840. struct point { int x, y; };
  21841. the following initialization
  21842. struct point p = { .y = yvalue, .x = xvalue };
  21843. is equivalent to
  21844. struct point p = { xvalue, yvalue };
  21845. Another syntax that has the same meaning, obsolete since GCC 2.5, is
  21846. 'FIELDNAME:', as shown here:
  21847. struct point p = { y: yvalue, x: xvalue };
  21848. Omitted field members are implicitly initialized the same as objects
  21849. that have static storage duration.
  21850. The '[INDEX]' or '.FIELDNAME' is known as a "designator". You can also
  21851. use a designator (or the obsolete colon syntax) when initializing a
  21852. union, to specify which element of the union should be used. For
  21853. example,
  21854. union foo { int i; double d; };
  21855. union foo f = { .d = 4 };
  21856. converts 4 to a 'double' to store it in the union using the second
  21857. element. By contrast, casting 4 to type 'union foo' stores it into the
  21858. union as the integer 'i', since it is an integer. *Note Cast to
  21859. Union::.
  21860. You can combine this technique of naming elements with ordinary C
  21861. initialization of successive elements. Each initializer element that
  21862. does not have a designator applies to the next consecutive element of
  21863. the array or structure. For example,
  21864. int a[6] = { [1] = v1, v2, [4] = v4 };
  21865. is equivalent to
  21866. int a[6] = { 0, v1, v2, 0, v4, 0 };
  21867. Labeling the elements of an array initializer is especially useful when
  21868. the indices are characters or belong to an 'enum' type. For example:
  21869. int whitespace[256]
  21870. = { [' '] = 1, ['\t'] = 1, ['\h'] = 1,
  21871. ['\f'] = 1, ['\n'] = 1, ['\r'] = 1 };
  21872. You can also write a series of '.FIELDNAME' and '[INDEX]' designators
  21873. before an '=' to specify a nested subobject to initialize; the list is
  21874. taken relative to the subobject corresponding to the closest surrounding
  21875. brace pair. For example, with the 'struct point' declaration above:
  21876. struct point ptarray[10] = { [2].y = yv2, [2].x = xv2, [0].x = xv0 };
  21877. If the same field is initialized multiple times, it has the value from
  21878. the last initialization. If any such overridden initialization has
  21879. side-effect, it is unspecified whether the side-effect happens or not.
  21880. Currently, GCC discards them and issues a warning.
  21881. 
  21882. File: gcc.info, Node: Case Ranges, Next: Cast to Union, Prev: Designated Inits, Up: C Extensions
  21883. 6.28 Case Ranges
  21884. ================
  21885. You can specify a range of consecutive values in a single 'case' label,
  21886. like this:
  21887. case LOW ... HIGH:
  21888. This has the same effect as the proper number of individual 'case'
  21889. labels, one for each integer value from LOW to HIGH, inclusive.
  21890. This feature is especially useful for ranges of ASCII character codes:
  21891. case 'A' ... 'Z':
  21892. *Be careful:* Write spaces around the '...', for otherwise it may be
  21893. parsed wrong when you use it with integer values. For example, write
  21894. this:
  21895. case 1 ... 5:
  21896. rather than this:
  21897. case 1...5:
  21898. 
  21899. File: gcc.info, Node: Cast to Union, Next: Mixed Declarations, Prev: Case Ranges, Up: C Extensions
  21900. 6.29 Cast to a Union Type
  21901. =========================
  21902. A cast to union type looks similar to other casts, except that the type
  21903. specified is a union type. You can specify the type either with the
  21904. 'union' keyword or with a 'typedef' name that refers to a union. A cast
  21905. to a union actually creates a compound literal and yields an lvalue, not
  21906. an rvalue like true casts do. *Note Compound Literals::.
  21907. The types that may be cast to the union type are those of the members
  21908. of the union. Thus, given the following union and variables:
  21909. union foo { int i; double d; };
  21910. int x;
  21911. double y;
  21912. both 'x' and 'y' can be cast to type 'union foo'.
  21913. Using the cast as the right-hand side of an assignment to a variable of
  21914. union type is equivalent to storing in a member of the union:
  21915. union foo u;
  21916. /* ... */
  21917. u = (union foo) x == u.i = x
  21918. u = (union foo) y == u.d = y
  21919. You can also use the union cast as a function argument:
  21920. void hack (union foo);
  21921. /* ... */
  21922. hack ((union foo) x);
  21923. 
  21924. File: gcc.info, Node: Mixed Declarations, Next: Function Attributes, Prev: Cast to Union, Up: C Extensions
  21925. 6.30 Mixed Declarations and Code
  21926. ================================
  21927. ISO C99 and ISO C++ allow declarations and code to be freely mixed
  21928. within compound statements. As an extension, GNU C also allows this in
  21929. C90 mode. For example, you could do:
  21930. int i;
  21931. /* ... */
  21932. i++;
  21933. int j = i + 2;
  21934. Each identifier is visible from where it is declared until the end of
  21935. the enclosing block.
  21936. 
  21937. File: gcc.info, Node: Function Attributes, Next: Variable Attributes, Prev: Mixed Declarations, Up: C Extensions
  21938. 6.31 Declaring Attributes of Functions
  21939. ======================================
  21940. In GNU C, you can use function attributes to declare certain things
  21941. about functions called in your program which help the compiler optimize
  21942. calls and check your code more carefully. For example, you can use
  21943. attributes to declare that a function never returns ('noreturn'),
  21944. returns a value depending only on its arguments ('pure'), or has
  21945. 'printf'-style arguments ('format').
  21946. You can also use attributes to control memory placement, code
  21947. generation options or call/return conventions within the function being
  21948. annotated. Many of these attributes are target-specific. For example,
  21949. many targets support attributes for defining interrupt handler
  21950. functions, which typically must follow special register usage and return
  21951. conventions.
  21952. Function attributes are introduced by the '__attribute__' keyword on a
  21953. declaration, followed by an attribute specification inside double
  21954. parentheses. You can specify multiple attributes in a declaration by
  21955. separating them by commas within the double parentheses or by
  21956. immediately following an attribute declaration with another attribute
  21957. declaration. *Note Attribute Syntax::, for the exact rules on attribute
  21958. syntax and placement.
  21959. GCC also supports attributes on variable declarations (*note Variable
  21960. Attributes::), labels (*note Label Attributes::), enumerators (*note
  21961. Enumerator Attributes::), statements (*note Statement Attributes::), and
  21962. types (*note Type Attributes::).
  21963. There is some overlap between the purposes of attributes and pragmas
  21964. (*note Pragmas Accepted by GCC: Pragmas.). It has been found convenient
  21965. to use '__attribute__' to achieve a natural attachment of attributes to
  21966. their corresponding declarations, whereas '#pragma' is of use for
  21967. compatibility with other compilers or constructs that do not naturally
  21968. form part of the grammar.
  21969. In addition to the attributes documented here, GCC plugins may provide
  21970. their own attributes.
  21971. * Menu:
  21972. * Common Function Attributes::
  21973. * AArch64 Function Attributes::
  21974. * ARC Function Attributes::
  21975. * ARM Function Attributes::
  21976. * AVR Function Attributes::
  21977. * Blackfin Function Attributes::
  21978. * CR16 Function Attributes::
  21979. * Epiphany Function Attributes::
  21980. * H8/300 Function Attributes::
  21981. * IA-64 Function Attributes::
  21982. * M32C Function Attributes::
  21983. * M32R/D Function Attributes::
  21984. * m68k Function Attributes::
  21985. * MCORE Function Attributes::
  21986. * MeP Function Attributes::
  21987. * MicroBlaze Function Attributes::
  21988. * Microsoft Windows Function Attributes::
  21989. * MIPS Function Attributes::
  21990. * MSP430 Function Attributes::
  21991. * NDS32 Function Attributes::
  21992. * Nios II Function Attributes::
  21993. * Nvidia PTX Function Attributes::
  21994. * PowerPC Function Attributes::
  21995. * RL78 Function Attributes::
  21996. * RX Function Attributes::
  21997. * S/390 Function Attributes::
  21998. * SH Function Attributes::
  21999. * SPU Function Attributes::
  22000. * Symbian OS Function Attributes::
  22001. * V850 Function Attributes::
  22002. * Visium Function Attributes::
  22003. * x86 Function Attributes::
  22004. * Xstormy16 Function Attributes::
  22005. 
  22006. File: gcc.info, Node: Common Function Attributes, Next: AArch64 Function Attributes, Up: Function Attributes
  22007. 6.31.1 Common Function Attributes
  22008. ---------------------------------
  22009. The following attributes are supported on most targets.
  22010. 'alias ("TARGET")'
  22011. The 'alias' attribute causes the declaration to be emitted as an
  22012. alias for another symbol, which must be specified. For instance,
  22013. void __f () { /* Do something. */; }
  22014. void f () __attribute__ ((weak, alias ("__f")));
  22015. defines 'f' to be a weak alias for '__f'. In C++, the mangled name
  22016. for the target must be used. It is an error if '__f' is not
  22017. defined in the same translation unit.
  22018. This attribute requires assembler and object file support, and may
  22019. not be available on all targets.
  22020. 'aligned (ALIGNMENT)'
  22021. This attribute specifies a minimum alignment for the function,
  22022. measured in bytes.
  22023. You cannot use this attribute to decrease the alignment of a
  22024. function, only to increase it. However, when you explicitly
  22025. specify a function alignment this overrides the effect of the
  22026. '-falign-functions' (*note Optimize Options::) option for this
  22027. function.
  22028. Note that the effectiveness of 'aligned' attributes may be limited
  22029. by inherent limitations in your linker. On many systems, the
  22030. linker is only able to arrange for functions to be aligned up to a
  22031. certain maximum alignment. (For some linkers, the maximum
  22032. supported alignment may be very very small.) See your linker
  22033. documentation for further information.
  22034. The 'aligned' attribute can also be used for variables and fields
  22035. (*note Variable Attributes::.)
  22036. 'alloc_align'
  22037. The 'alloc_align' attribute is used to tell the compiler that the
  22038. function return value points to memory, where the returned pointer
  22039. minimum alignment is given by one of the functions parameters. GCC
  22040. uses this information to improve pointer alignment analysis.
  22041. The function parameter denoting the allocated alignment is
  22042. specified by one integer argument, whose number is the argument of
  22043. the attribute. Argument numbering starts at one.
  22044. For instance,
  22045. void* my_memalign(size_t, size_t) __attribute__((alloc_align(1)))
  22046. declares that 'my_memalign' returns memory with minimum alignment
  22047. given by parameter 1.
  22048. 'alloc_size'
  22049. The 'alloc_size' attribute is used to tell the compiler that the
  22050. function return value points to memory, where the size is given by
  22051. one or two of the functions parameters. GCC uses this information
  22052. to improve the correctness of '__builtin_object_size'.
  22053. The function parameter(s) denoting the allocated size are specified
  22054. by one or two integer arguments supplied to the attribute. The
  22055. allocated size is either the value of the single function argument
  22056. specified or the product of the two function arguments specified.
  22057. Argument numbering starts at one.
  22058. For instance,
  22059. void* my_calloc(size_t, size_t) __attribute__((alloc_size(1,2)))
  22060. void* my_realloc(void*, size_t) __attribute__((alloc_size(2)))
  22061. declares that 'my_calloc' returns memory of the size given by the
  22062. product of parameter 1 and 2 and that 'my_realloc' returns memory
  22063. of the size given by parameter 2.
  22064. 'always_inline'
  22065. Generally, functions are not inlined unless optimization is
  22066. specified. For functions declared inline, this attribute inlines
  22067. the function independent of any restrictions that otherwise apply
  22068. to inlining. Failure to inline such a function is diagnosed as an
  22069. error. Note that if such a function is called indirectly the
  22070. compiler may or may not inline it depending on optimization level
  22071. and a failure to inline an indirect call may or may not be
  22072. diagnosed.
  22073. 'artificial'
  22074. This attribute is useful for small inline wrappers that if possible
  22075. should appear during debugging as a unit. Depending on the debug
  22076. info format it either means marking the function as artificial or
  22077. using the caller location for all instructions within the inlined
  22078. body.
  22079. 'assume_aligned'
  22080. The 'assume_aligned' attribute is used to tell the compiler that
  22081. the function return value points to memory, where the returned
  22082. pointer minimum alignment is given by the first argument. If the
  22083. attribute has two arguments, the second argument is misalignment
  22084. offset.
  22085. For instance
  22086. void* my_alloc1(size_t) __attribute__((assume_aligned(16)))
  22087. void* my_alloc2(size_t) __attribute__((assume_aligned(32, 8)))
  22088. declares that 'my_alloc1' returns 16-byte aligned pointer and that
  22089. 'my_alloc2' returns a pointer whose value modulo 32 is equal to 8.
  22090. 'bnd_instrument'
  22091. The 'bnd_instrument' attribute on functions is used to inform the
  22092. compiler that the function should be instrumented when compiled
  22093. with the '-fchkp-instrument-marked-only' option.
  22094. 'bnd_legacy'
  22095. The 'bnd_legacy' attribute on functions is used to inform the
  22096. compiler that the function should not be instrumented when compiled
  22097. with the '-fcheck-pointer-bounds' option.
  22098. 'cold'
  22099. The 'cold' attribute on functions is used to inform the compiler
  22100. that the function is unlikely to be executed. The function is
  22101. optimized for size rather than speed and on many targets it is
  22102. placed into a special subsection of the text section so all cold
  22103. functions appear close together, improving code locality of
  22104. non-cold parts of program. The paths leading to calls of cold
  22105. functions within code are marked as unlikely by the branch
  22106. prediction mechanism. It is thus useful to mark functions used to
  22107. handle unlikely conditions, such as 'perror', as cold to improve
  22108. optimization of hot functions that do call marked functions in rare
  22109. occasions.
  22110. When profile feedback is available, via '-fprofile-use', cold
  22111. functions are automatically detected and this attribute is ignored.
  22112. 'const'
  22113. Many functions do not examine any values except their arguments,
  22114. and have no effects except the return value. Basically this is
  22115. just slightly more strict class than the 'pure' attribute below,
  22116. since function is not allowed to read global memory.
  22117. Note that a function that has pointer arguments and examines the
  22118. data pointed to must _not_ be declared 'const'. Likewise, a
  22119. function that calls a non-'const' function usually must not be
  22120. 'const'. It does not make sense for a 'const' function to return
  22121. 'void'.
  22122. 'constructor'
  22123. 'destructor'
  22124. 'constructor (PRIORITY)'
  22125. 'destructor (PRIORITY)'
  22126. The 'constructor' attribute causes the function to be called
  22127. automatically before execution enters 'main ()'. Similarly, the
  22128. 'destructor' attribute causes the function to be called
  22129. automatically after 'main ()' completes or 'exit ()' is called.
  22130. Functions with these attributes are useful for initializing data
  22131. that is used implicitly during the execution of the program.
  22132. You may provide an optional integer priority to control the order
  22133. in which constructor and destructor functions are run. A
  22134. constructor with a smaller priority number runs before a
  22135. constructor with a larger priority number; the opposite
  22136. relationship holds for destructors. So, if you have a constructor
  22137. that allocates a resource and a destructor that deallocates the
  22138. same resource, both functions typically have the same priority.
  22139. The priorities for constructor and destructor functions are the
  22140. same as those specified for namespace-scope C++ objects (*note C++
  22141. Attributes::). However, at present, the order in which
  22142. constructors for C++ objects with static storage duration and
  22143. functions decorated with attribute 'constructor' are invoked is
  22144. unspecified. In mixed declarations, attribute 'init_priority' can
  22145. be used to impose a specific ordering.
  22146. 'deprecated'
  22147. 'deprecated (MSG)'
  22148. The 'deprecated' attribute results in a warning if the function is
  22149. used anywhere in the source file. This is useful when identifying
  22150. functions that are expected to be removed in a future version of a
  22151. program. The warning also includes the location of the declaration
  22152. of the deprecated function, to enable users to easily find further
  22153. information about why the function is deprecated, or what they
  22154. should do instead. Note that the warnings only occurs for uses:
  22155. int old_fn () __attribute__ ((deprecated));
  22156. int old_fn ();
  22157. int (*fn_ptr)() = old_fn;
  22158. results in a warning on line 3 but not line 2. The optional MSG
  22159. argument, which must be a string, is printed in the warning if
  22160. present.
  22161. The 'deprecated' attribute can also be used for variables and types
  22162. (*note Variable Attributes::, *note Type Attributes::.)
  22163. 'error ("MESSAGE")'
  22164. 'warning ("MESSAGE")'
  22165. If the 'error' or 'warning' attribute is used on a function
  22166. declaration and a call to such a function is not eliminated through
  22167. dead code elimination or other optimizations, an error or warning
  22168. (respectively) that includes MESSAGE is diagnosed. This is useful
  22169. for compile-time checking, especially together with
  22170. '__builtin_constant_p' and inline functions where checking the
  22171. inline function arguments is not possible through 'extern char
  22172. [(condition) ? 1 : -1];' tricks.
  22173. While it is possible to leave the function undefined and thus
  22174. invoke a link failure (to define the function with a message in
  22175. '.gnu.warning*' section), when using these attributes the problem
  22176. is diagnosed earlier and with exact location of the call even in
  22177. presence of inline functions or when not emitting debugging
  22178. information.
  22179. 'externally_visible'
  22180. This attribute, attached to a global variable or function,
  22181. nullifies the effect of the '-fwhole-program' command-line option,
  22182. so the object remains visible outside the current compilation unit.
  22183. If '-fwhole-program' is used together with '-flto' and 'gold' is
  22184. used as the linker plugin, 'externally_visible' attributes are
  22185. automatically added to functions (not variable yet due to a current
  22186. 'gold' issue) that are accessed outside of LTO objects according to
  22187. resolution file produced by 'gold'. For other linkers that cannot
  22188. generate resolution file, explicit 'externally_visible' attributes
  22189. are still necessary.
  22190. 'flatten'
  22191. Generally, inlining into a function is limited. For a function
  22192. marked with this attribute, every call inside this function is
  22193. inlined, if possible. Whether the function itself is considered
  22194. for inlining depends on its size and the current inlining
  22195. parameters.
  22196. 'format (ARCHETYPE, STRING-INDEX, FIRST-TO-CHECK)'
  22197. The 'format' attribute specifies that a function takes 'printf',
  22198. 'scanf', 'strftime' or 'strfmon' style arguments that should be
  22199. type-checked against a format string. For example, the
  22200. declaration:
  22201. extern int
  22202. my_printf (void *my_object, const char *my_format, ...)
  22203. __attribute__ ((format (printf, 2, 3)));
  22204. causes the compiler to check the arguments in calls to 'my_printf'
  22205. for consistency with the 'printf' style format string argument
  22206. 'my_format'.
  22207. The parameter ARCHETYPE determines how the format string is
  22208. interpreted, and should be 'printf', 'scanf', 'strftime',
  22209. 'gnu_printf', 'gnu_scanf', 'gnu_strftime' or 'strfmon'. (You can
  22210. also use '__printf__', '__scanf__', '__strftime__' or
  22211. '__strfmon__'.) On MinGW targets, 'ms_printf', 'ms_scanf', and
  22212. 'ms_strftime' are also present. ARCHETYPE values such as 'printf'
  22213. refer to the formats accepted by the system's C runtime library,
  22214. while values prefixed with 'gnu_' always refer to the formats
  22215. accepted by the GNU C Library. On Microsoft Windows targets,
  22216. values prefixed with 'ms_' refer to the formats accepted by the
  22217. 'msvcrt.dll' library. The parameter STRING-INDEX specifies which
  22218. argument is the format string argument (starting from 1), while
  22219. FIRST-TO-CHECK is the number of the first argument to check against
  22220. the format string. For functions where the arguments are not
  22221. available to be checked (such as 'vprintf'), specify the third
  22222. parameter as zero. In this case the compiler only checks the
  22223. format string for consistency. For 'strftime' formats, the third
  22224. parameter is required to be zero. Since non-static C++ methods
  22225. have an implicit 'this' argument, the arguments of such methods
  22226. should be counted from two, not one, when giving values for
  22227. STRING-INDEX and FIRST-TO-CHECK.
  22228. In the example above, the format string ('my_format') is the second
  22229. argument of the function 'my_print', and the arguments to check
  22230. start with the third argument, so the correct parameters for the
  22231. format attribute are 2 and 3.
  22232. The 'format' attribute allows you to identify your own functions
  22233. that take format strings as arguments, so that GCC can check the
  22234. calls to these functions for errors. The compiler always (unless
  22235. '-ffreestanding' or '-fno-builtin' is used) checks formats for the
  22236. standard library functions 'printf', 'fprintf', 'sprintf', 'scanf',
  22237. 'fscanf', 'sscanf', 'strftime', 'vprintf', 'vfprintf' and
  22238. 'vsprintf' whenever such warnings are requested (using '-Wformat'),
  22239. so there is no need to modify the header file 'stdio.h'. In C99
  22240. mode, the functions 'snprintf', 'vsnprintf', 'vscanf', 'vfscanf'
  22241. and 'vsscanf' are also checked. Except in strictly conforming C
  22242. standard modes, the X/Open function 'strfmon' is also checked as
  22243. are 'printf_unlocked' and 'fprintf_unlocked'. *Note Options
  22244. Controlling C Dialect: C Dialect Options.
  22245. For Objective-C dialects, 'NSString' (or '__NSString__') is
  22246. recognized in the same context. Declarations including these
  22247. format attributes are parsed for correct syntax, however the result
  22248. of checking of such format strings is not yet defined, and is not
  22249. carried out by this version of the compiler.
  22250. The target may also provide additional types of format checks.
  22251. *Note Format Checks Specific to Particular Target Machines: Target
  22252. Format Checks.
  22253. 'format_arg (STRING-INDEX)'
  22254. The 'format_arg' attribute specifies that a function takes a format
  22255. string for a 'printf', 'scanf', 'strftime' or 'strfmon' style
  22256. function and modifies it (for example, to translate it into another
  22257. language), so the result can be passed to a 'printf', 'scanf',
  22258. 'strftime' or 'strfmon' style function (with the remaining
  22259. arguments to the format function the same as they would have been
  22260. for the unmodified string). For example, the declaration:
  22261. extern char *
  22262. my_dgettext (char *my_domain, const char *my_format)
  22263. __attribute__ ((format_arg (2)));
  22264. causes the compiler to check the arguments in calls to a 'printf',
  22265. 'scanf', 'strftime' or 'strfmon' type function, whose format string
  22266. argument is a call to the 'my_dgettext' function, for consistency
  22267. with the format string argument 'my_format'. If the 'format_arg'
  22268. attribute had not been specified, all the compiler could tell in
  22269. such calls to format functions would be that the format string
  22270. argument is not constant; this would generate a warning when
  22271. '-Wformat-nonliteral' is used, but the calls could not be checked
  22272. without the attribute.
  22273. The parameter STRING-INDEX specifies which argument is the format
  22274. string argument (starting from one). Since non-static C++ methods
  22275. have an implicit 'this' argument, the arguments of such methods
  22276. should be counted from two.
  22277. The 'format_arg' attribute allows you to identify your own
  22278. functions that modify format strings, so that GCC can check the
  22279. calls to 'printf', 'scanf', 'strftime' or 'strfmon' type function
  22280. whose operands are a call to one of your own function. The
  22281. compiler always treats 'gettext', 'dgettext', and 'dcgettext' in
  22282. this manner except when strict ISO C support is requested by
  22283. '-ansi' or an appropriate '-std' option, or '-ffreestanding' or
  22284. '-fno-builtin' is used. *Note Options Controlling C Dialect: C
  22285. Dialect Options.
  22286. For Objective-C dialects, the 'format-arg' attribute may refer to
  22287. an 'NSString' reference for compatibility with the 'format'
  22288. attribute above.
  22289. The target may also allow additional types in 'format-arg'
  22290. attributes. *Note Format Checks Specific to Particular Target
  22291. Machines: Target Format Checks.
  22292. 'gnu_inline'
  22293. This attribute should be used with a function that is also declared
  22294. with the 'inline' keyword. It directs GCC to treat the function as
  22295. if it were defined in gnu90 mode even when compiling in C99 or
  22296. gnu99 mode.
  22297. If the function is declared 'extern', then this definition of the
  22298. function is used only for inlining. In no case is the function
  22299. compiled as a standalone function, not even if you take its address
  22300. explicitly. Such an address becomes an external reference, as if
  22301. you had only declared the function, and had not defined it. This
  22302. has almost the effect of a macro. The way to use this is to put a
  22303. function definition in a header file with this attribute, and put
  22304. another copy of the function, without 'extern', in a library file.
  22305. The definition in the header file causes most calls to the function
  22306. to be inlined. If any uses of the function remain, they refer to
  22307. the single copy in the library. Note that the two definitions of
  22308. the functions need not be precisely the same, although if they do
  22309. not have the same effect your program may behave oddly.
  22310. In C, if the function is neither 'extern' nor 'static', then the
  22311. function is compiled as a standalone function, as well as being
  22312. inlined where possible.
  22313. This is how GCC traditionally handled functions declared 'inline'.
  22314. Since ISO C99 specifies a different semantics for 'inline', this
  22315. function attribute is provided as a transition measure and as a
  22316. useful feature in its own right. This attribute is available in
  22317. GCC 4.1.3 and later. It is available if either of the preprocessor
  22318. macros '__GNUC_GNU_INLINE__' or '__GNUC_STDC_INLINE__' are defined.
  22319. *Note An Inline Function is As Fast As a Macro: Inline.
  22320. In C++, this attribute does not depend on 'extern' in any way, but
  22321. it still requires the 'inline' keyword to enable its special
  22322. behavior.
  22323. 'hot'
  22324. The 'hot' attribute on a function is used to inform the compiler
  22325. that the function is a hot spot of the compiled program. The
  22326. function is optimized more aggressively and on many targets it is
  22327. placed into a special subsection of the text section so all hot
  22328. functions appear close together, improving locality.
  22329. When profile feedback is available, via '-fprofile-use', hot
  22330. functions are automatically detected and this attribute is ignored.
  22331. 'ifunc ("RESOLVER")'
  22332. The 'ifunc' attribute is used to mark a function as an indirect
  22333. function using the STT_GNU_IFUNC symbol type extension to the ELF
  22334. standard. This allows the resolution of the symbol value to be
  22335. determined dynamically at load time, and an optimized version of
  22336. the routine can be selected for the particular processor or other
  22337. system characteristics determined then. To use this attribute,
  22338. first define the implementation functions available, and a resolver
  22339. function that returns a pointer to the selected implementation
  22340. function. The implementation functions' declarations must match
  22341. the API of the function being implemented, the resolver's
  22342. declaration is be a function returning pointer to void function
  22343. returning void:
  22344. void *my_memcpy (void *dst, const void *src, size_t len)
  22345. {
  22346. ...
  22347. }
  22348. static void (*resolve_memcpy (void)) (void)
  22349. {
  22350. return my_memcpy; // we'll just always select this routine
  22351. }
  22352. The exported header file declaring the function the user calls
  22353. would contain:
  22354. extern void *memcpy (void *, const void *, size_t);
  22355. allowing the user to call this as a regular function, unaware of
  22356. the implementation. Finally, the indirect function needs to be
  22357. defined in the same translation unit as the resolver function:
  22358. void *memcpy (void *, const void *, size_t)
  22359. __attribute__ ((ifunc ("resolve_memcpy")));
  22360. Indirect functions cannot be weak. Binutils version 2.20.1 or
  22361. higher and GNU C Library version 2.11.1 are required to use this
  22362. feature.
  22363. 'interrupt'
  22364. 'interrupt_handler'
  22365. Many GCC back ends support attributes to indicate that a function
  22366. is an interrupt handler, which tells the compiler to generate
  22367. function entry and exit sequences that differ from those from
  22368. regular functions. The exact syntax and behavior are
  22369. target-specific; refer to the following subsections for details.
  22370. 'leaf'
  22371. Calls to external functions with this attribute must return to the
  22372. current compilation unit only by return or by exception handling.
  22373. In particular, a leaf function is not allowed to invoke callback
  22374. functions passed to it from the current compilation unit, directly
  22375. call functions exported by the unit, or 'longjmp' into the unit.
  22376. Leaf functions might still call functions from other compilation
  22377. units and thus they are not necessarily leaf in the sense that they
  22378. contain no function calls at all.
  22379. The attribute is intended for library functions to improve dataflow
  22380. analysis. The compiler takes the hint that any data not escaping
  22381. the current compilation unit cannot be used or modified by the leaf
  22382. function. For example, the 'sin' function is a leaf function, but
  22383. 'qsort' is not.
  22384. Note that leaf functions might indirectly run a signal handler
  22385. defined in the current compilation unit that uses static variables.
  22386. Similarly, when lazy symbol resolution is in effect, leaf functions
  22387. might invoke indirect functions whose resolver function or
  22388. implementation function is defined in the current compilation unit
  22389. and uses static variables. There is no standard-compliant way to
  22390. write such a signal handler, resolver function, or implementation
  22391. function, and the best that you can do is to remove the 'leaf'
  22392. attribute or mark all such static variables 'volatile'. Lastly,
  22393. for ELF-based systems that support symbol interposition, care
  22394. should be taken that functions defined in the current compilation
  22395. unit do not unexpectedly interpose other symbols based on the
  22396. defined standards mode and defined feature test macros; otherwise
  22397. an inadvertent callback would be added.
  22398. The attribute has no effect on functions defined within the current
  22399. compilation unit. This is to allow easy merging of multiple
  22400. compilation units into one, for example, by using the link-time
  22401. optimization. For this reason the attribute is not allowed on
  22402. types to annotate indirect calls.
  22403. 'malloc'
  22404. This tells the compiler that a function is 'malloc'-like, i.e.,
  22405. that the pointer P returned by the function cannot alias any other
  22406. pointer valid when the function returns, and moreover no pointers
  22407. to valid objects occur in any storage addressed by P.
  22408. Using this attribute can improve optimization. Functions like
  22409. 'malloc' and 'calloc' have this property because they return a
  22410. pointer to uninitialized or zeroed-out storage. However, functions
  22411. like 'realloc' do not have this property, as they can return a
  22412. pointer to storage containing pointers.
  22413. 'no_icf'
  22414. This function attribute prevents a functions from being merged with
  22415. another semantically equivalent function.
  22416. 'no_instrument_function'
  22417. If '-finstrument-functions' is given, profiling function calls are
  22418. generated at entry and exit of most user-compiled functions.
  22419. Functions with this attribute are not so instrumented.
  22420. 'no_profile_instrument_function'
  22421. The 'no_profile_instrument_function' attribute on functions is used
  22422. to inform the compiler that it should not process any profile
  22423. feedback based optimization code instrumentation.
  22424. 'no_reorder'
  22425. Do not reorder functions or variables marked 'no_reorder' against
  22426. each other or top level assembler statements the executable. The
  22427. actual order in the program will depend on the linker command line.
  22428. Static variables marked like this are also not removed. This has a
  22429. similar effect as the '-fno-toplevel-reorder' option, but only
  22430. applies to the marked symbols.
  22431. 'no_sanitize_address'
  22432. 'no_address_safety_analysis'
  22433. The 'no_sanitize_address' attribute on functions is used to inform
  22434. the compiler that it should not instrument memory accesses in the
  22435. function when compiling with the '-fsanitize=address' option. The
  22436. 'no_address_safety_analysis' is a deprecated alias of the
  22437. 'no_sanitize_address' attribute, new code should use
  22438. 'no_sanitize_address'.
  22439. 'no_sanitize_thread'
  22440. The 'no_sanitize_thread' attribute on functions is used to inform
  22441. the compiler that it should not instrument memory accesses in the
  22442. function when compiling with the '-fsanitize=thread' option.
  22443. 'no_sanitize_undefined'
  22444. The 'no_sanitize_undefined' attribute on functions is used to
  22445. inform the compiler that it should not check for undefined behavior
  22446. in the function when compiling with the '-fsanitize=undefined'
  22447. option.
  22448. 'no_split_stack'
  22449. If '-fsplit-stack' is given, functions have a small prologue which
  22450. decides whether to split the stack. Functions with the
  22451. 'no_split_stack' attribute do not have that prologue, and thus may
  22452. run with only a small amount of stack space available.
  22453. 'no_stack_limit'
  22454. This attribute locally overrides the '-fstack-limit-register' and
  22455. '-fstack-limit-symbol' command-line options; it has the effect of
  22456. disabling stack limit checking in the function it applies to.
  22457. 'noclone'
  22458. This function attribute prevents a function from being considered
  22459. for cloning--a mechanism that produces specialized copies of
  22460. functions and which is (currently) performed by interprocedural
  22461. constant propagation.
  22462. 'noinline'
  22463. This function attribute prevents a function from being considered
  22464. for inlining. If the function does not have side-effects, there
  22465. are optimizations other than inlining that cause function calls to
  22466. be optimized away, although the function call is live. To keep
  22467. such calls from being optimized away, put
  22468. asm ("");
  22469. (*note Extended Asm::) in the called function, to serve as a
  22470. special side-effect.
  22471. 'nonnull (ARG-INDEX, ...)'
  22472. The 'nonnull' attribute specifies that some function parameters
  22473. should be non-null pointers. For instance, the declaration:
  22474. extern void *
  22475. my_memcpy (void *dest, const void *src, size_t len)
  22476. __attribute__((nonnull (1, 2)));
  22477. causes the compiler to check that, in calls to 'my_memcpy',
  22478. arguments DEST and SRC are non-null. If the compiler determines
  22479. that a null pointer is passed in an argument slot marked as
  22480. non-null, and the '-Wnonnull' option is enabled, a warning is
  22481. issued. The compiler may also choose to make optimizations based
  22482. on the knowledge that certain function arguments will never be
  22483. null.
  22484. If no argument index list is given to the 'nonnull' attribute, all
  22485. pointer arguments are marked as non-null. To illustrate, the
  22486. following declaration is equivalent to the previous example:
  22487. extern void *
  22488. my_memcpy (void *dest, const void *src, size_t len)
  22489. __attribute__((nonnull));
  22490. 'noplt'
  22491. The 'noplt' attribute is the counterpart to option '-fno-plt'.
  22492. Calls to functions marked with this attribute in
  22493. position-independent code do not use the PLT.
  22494. /* Externally defined function foo. */
  22495. int foo () __attribute__ ((noplt));
  22496. int
  22497. main (/* ... */)
  22498. {
  22499. /* ... */
  22500. foo ();
  22501. /* ... */
  22502. }
  22503. The 'noplt' attribute on function 'foo' tells the compiler to
  22504. assume that the function 'foo' is externally defined and that the
  22505. call to 'foo' must avoid the PLT in position-independent code.
  22506. In position-dependent code, a few targets also convert calls to
  22507. functions that are marked to not use the PLT to use the GOT
  22508. instead.
  22509. 'noreturn'
  22510. A few standard library functions, such as 'abort' and 'exit',
  22511. cannot return. GCC knows this automatically. Some programs define
  22512. their own functions that never return. You can declare them
  22513. 'noreturn' to tell the compiler this fact. For example,
  22514. void fatal () __attribute__ ((noreturn));
  22515. void
  22516. fatal (/* ... */)
  22517. {
  22518. /* ... */ /* Print error message. */ /* ... */
  22519. exit (1);
  22520. }
  22521. The 'noreturn' keyword tells the compiler to assume that 'fatal'
  22522. cannot return. It can then optimize without regard to what would
  22523. happen if 'fatal' ever did return. This makes slightly better
  22524. code. More importantly, it helps avoid spurious warnings of
  22525. uninitialized variables.
  22526. The 'noreturn' keyword does not affect the exceptional path when
  22527. that applies: a 'noreturn'-marked function may still return to the
  22528. caller by throwing an exception or calling 'longjmp'.
  22529. Do not assume that registers saved by the calling function are
  22530. restored before calling the 'noreturn' function.
  22531. It does not make sense for a 'noreturn' function to have a return
  22532. type other than 'void'.
  22533. 'nothrow'
  22534. The 'nothrow' attribute is used to inform the compiler that a
  22535. function cannot throw an exception. For example, most functions in
  22536. the standard C library can be guaranteed not to throw an exception
  22537. with the notable exceptions of 'qsort' and 'bsearch' that take
  22538. function pointer arguments.
  22539. 'optimize'
  22540. The 'optimize' attribute is used to specify that a function is to
  22541. be compiled with different optimization options than specified on
  22542. the command line. Arguments can either be numbers or strings.
  22543. Numbers are assumed to be an optimization level. Strings that
  22544. begin with 'O' are assumed to be an optimization option, while
  22545. other options are assumed to be used with a '-f' prefix. You can
  22546. also use the '#pragma GCC optimize' pragma to set the optimization
  22547. options that affect more than one function. *Note Function
  22548. Specific Option Pragmas::, for details about the '#pragma GCC
  22549. optimize' pragma.
  22550. This attribute should be used for debugging purposes only. It is
  22551. not suitable in production code.
  22552. 'pure'
  22553. Many functions have no effects except the return value and their
  22554. return value depends only on the parameters and/or global
  22555. variables. Such a function can be subject to common subexpression
  22556. elimination and loop optimization just as an arithmetic operator
  22557. would be. These functions should be declared with the attribute
  22558. 'pure'. For example,
  22559. int square (int) __attribute__ ((pure));
  22560. says that the hypothetical function 'square' is safe to call fewer
  22561. times than the program says.
  22562. Some common examples of pure functions are 'strlen' or 'memcmp'.
  22563. Interesting non-pure functions are functions with infinite loops or
  22564. those depending on volatile memory or other system resource, that
  22565. may change between two consecutive calls (such as 'feof' in a
  22566. multithreading environment).
  22567. 'returns_nonnull'
  22568. The 'returns_nonnull' attribute specifies that the function return
  22569. value should be a non-null pointer. For instance, the declaration:
  22570. extern void *
  22571. mymalloc (size_t len) __attribute__((returns_nonnull));
  22572. lets the compiler optimize callers based on the knowledge that the
  22573. return value will never be null.
  22574. 'returns_twice'
  22575. The 'returns_twice' attribute tells the compiler that a function
  22576. may return more than one time. The compiler ensures that all
  22577. registers are dead before calling such a function and emits a
  22578. warning about the variables that may be clobbered after the second
  22579. return from the function. Examples of such functions are 'setjmp'
  22580. and 'vfork'. The 'longjmp'-like counterpart of such function, if
  22581. any, might need to be marked with the 'noreturn' attribute.
  22582. 'section ("SECTION-NAME")'
  22583. Normally, the compiler places the code it generates in the 'text'
  22584. section. Sometimes, however, you need additional sections, or you
  22585. need certain particular functions to appear in special sections.
  22586. The 'section' attribute specifies that a function lives in a
  22587. particular section. For example, the declaration:
  22588. extern void foobar (void) __attribute__ ((section ("bar")));
  22589. puts the function 'foobar' in the 'bar' section.
  22590. Some file formats do not support arbitrary sections so the
  22591. 'section' attribute is not available on all platforms. If you need
  22592. to map the entire contents of a module to a particular section,
  22593. consider using the facilities of the linker instead.
  22594. 'sentinel'
  22595. This function attribute ensures that a parameter in a function call
  22596. is an explicit 'NULL'. The attribute is only valid on variadic
  22597. functions. By default, the sentinel is located at position zero,
  22598. the last parameter of the function call. If an optional integer
  22599. position argument P is supplied to the attribute, the sentinel must
  22600. be located at position P counting backwards from the end of the
  22601. argument list.
  22602. __attribute__ ((sentinel))
  22603. is equivalent to
  22604. __attribute__ ((sentinel(0)))
  22605. The attribute is automatically set with a position of 0 for the
  22606. built-in functions 'execl' and 'execlp'. The built-in function
  22607. 'execle' has the attribute set with a position of 1.
  22608. A valid 'NULL' in this context is defined as zero with any pointer
  22609. type. If your system defines the 'NULL' macro with an integer type
  22610. then you need to add an explicit cast. GCC replaces 'stddef.h'
  22611. with a copy that redefines NULL appropriately.
  22612. The warnings for missing or incorrect sentinels are enabled with
  22613. '-Wformat'.
  22614. 'simd'
  22615. 'simd("MASK")'
  22616. This attribute enables creation of one or more function versions
  22617. that can process multiple arguments using SIMD instructions from a
  22618. single invocation. Specifying this attribute allows compiler to
  22619. assume that such versions are available at link time (provided in
  22620. the same or another translation unit). Generated versions are
  22621. target-dependent and described in the corresponding Vector ABI
  22622. document. For x86_64 target this document can be found
  22623. here (https://sourceware.org/glibc/wiki/libmvec?action=AttachFile&do=view&target=VectorABI.txt).
  22624. The optional argument MASK may have the value 'notinbranch' or
  22625. 'inbranch', and instructs the compiler to generate non-masked or
  22626. masked clones correspondingly. By default, all clones are
  22627. generated.
  22628. The attribute should not be used together with Cilk Plus 'vector'
  22629. attribute on the same function.
  22630. If the attribute is specified and '#pragma omp declare simd' is
  22631. present on a declaration and the '-fopenmp' or '-fopenmp-simd'
  22632. switch is specified, then the attribute is ignored.
  22633. 'stack_protect'
  22634. This attribute adds stack protection code to the function if flags
  22635. '-fstack-protector', '-fstack-protector-strong' or
  22636. '-fstack-protector-explicit' are set.
  22637. 'target (OPTIONS)'
  22638. Multiple target back ends implement the 'target' attribute to
  22639. specify that a function is to be compiled with different target
  22640. options than specified on the command line. This can be used for
  22641. instance to have functions compiled with a different ISA
  22642. (instruction set architecture) than the default. You can also use
  22643. the '#pragma GCC target' pragma to set more than one function to be
  22644. compiled with specific target options. *Note Function Specific
  22645. Option Pragmas::, for details about the '#pragma GCC target'
  22646. pragma.
  22647. For instance, on an x86, you could declare one function with the
  22648. 'target("sse4.1,arch=core2")' attribute and another with
  22649. 'target("sse4a,arch=amdfam10")'. This is equivalent to compiling
  22650. the first function with '-msse4.1' and '-march=core2' options, and
  22651. the second function with '-msse4a' and '-march=amdfam10' options.
  22652. It is up to you to make sure that a function is only invoked on a
  22653. machine that supports the particular ISA it is compiled for (for
  22654. example by using 'cpuid' on x86 to determine what feature bits and
  22655. architecture family are used).
  22656. int core2_func (void) __attribute__ ((__target__ ("arch=core2")));
  22657. int sse3_func (void) __attribute__ ((__target__ ("sse3")));
  22658. You can either use multiple strings separated by commas to specify
  22659. multiple options, or separate the options with a comma (',') within
  22660. a single string.
  22661. The options supported are specific to each target; refer to *note
  22662. x86 Function Attributes::, *note PowerPC Function Attributes::,
  22663. *note ARM Function Attributes::,and *note Nios II Function
  22664. Attributes::, for details.
  22665. 'target_clones (OPTIONS)'
  22666. The 'target_clones' attribute is used to specify that a function be
  22667. cloned into multiple versions compiled with different target
  22668. options than specified on the command line. The supported options
  22669. and restrictions are the same as for 'target' attribute.
  22670. For instance, on an x86, you could compile a function with
  22671. 'target_clones("sse4.1,avx")'. GCC creates two function clones,
  22672. one compiled with '-msse4.1' and another with '-mavx'. It also
  22673. creates a resolver function (see the 'ifunc' attribute above) that
  22674. dynamically selects a clone suitable for current architecture.
  22675. 'unused'
  22676. This attribute, attached to a function, means that the function is
  22677. meant to be possibly unused. GCC does not produce a warning for
  22678. this function.
  22679. 'used'
  22680. This attribute, attached to a function, means that code must be
  22681. emitted for the function even if it appears that the function is
  22682. not referenced. This is useful, for example, when the function is
  22683. referenced only in inline assembly.
  22684. When applied to a member function of a C++ class template, the
  22685. attribute also means that the function is instantiated if the class
  22686. itself is instantiated.
  22687. 'visibility ("VISIBILITY_TYPE")'
  22688. This attribute affects the linkage of the declaration to which it
  22689. is attached. It can be applied to variables (*note Common Variable
  22690. Attributes::) and types (*note Common Type Attributes::) as well as
  22691. functions.
  22692. There are four supported VISIBILITY_TYPE values: default, hidden,
  22693. protected or internal visibility.
  22694. void __attribute__ ((visibility ("protected")))
  22695. f () { /* Do something. */; }
  22696. int i __attribute__ ((visibility ("hidden")));
  22697. The possible values of VISIBILITY_TYPE correspond to the visibility
  22698. settings in the ELF gABI.
  22699. 'default'
  22700. Default visibility is the normal case for the object file
  22701. format. This value is available for the visibility attribute
  22702. to override other options that may change the assumed
  22703. visibility of entities.
  22704. On ELF, default visibility means that the declaration is
  22705. visible to other modules and, in shared libraries, means that
  22706. the declared entity may be overridden.
  22707. On Darwin, default visibility means that the declaration is
  22708. visible to other modules.
  22709. Default visibility corresponds to "external linkage" in the
  22710. language.
  22711. 'hidden'
  22712. Hidden visibility indicates that the entity declared has a new
  22713. form of linkage, which we call "hidden linkage". Two
  22714. declarations of an object with hidden linkage refer to the
  22715. same object if they are in the same shared object.
  22716. 'internal'
  22717. Internal visibility is like hidden visibility, but with
  22718. additional processor specific semantics. Unless otherwise
  22719. specified by the psABI, GCC defines internal visibility to
  22720. mean that a function is _never_ called from another module.
  22721. Compare this with hidden functions which, while they cannot be
  22722. referenced directly by other modules, can be referenced
  22723. indirectly via function pointers. By indicating that a
  22724. function cannot be called from outside the module, GCC may for
  22725. instance omit the load of a PIC register since it is known
  22726. that the calling function loaded the correct value.
  22727. 'protected'
  22728. Protected visibility is like default visibility except that it
  22729. indicates that references within the defining module bind to
  22730. the definition in that module. That is, the declared entity
  22731. cannot be overridden by another module.
  22732. All visibilities are supported on many, but not all, ELF targets
  22733. (supported when the assembler supports the '.visibility'
  22734. pseudo-op). Default visibility is supported everywhere. Hidden
  22735. visibility is supported on Darwin targets.
  22736. The visibility attribute should be applied only to declarations
  22737. that would otherwise have external linkage. The attribute should
  22738. be applied consistently, so that the same entity should not be
  22739. declared with different settings of the attribute.
  22740. In C++, the visibility attribute applies to types as well as
  22741. functions and objects, because in C++ types have linkage. A class
  22742. must not have greater visibility than its non-static data member
  22743. types and bases, and class members default to the visibility of
  22744. their class. Also, a declaration without explicit visibility is
  22745. limited to the visibility of its type.
  22746. In C++, you can mark member functions and static member variables
  22747. of a class with the visibility attribute. This is useful if you
  22748. know a particular method or static member variable should only be
  22749. used from one shared object; then you can mark it hidden while the
  22750. rest of the class has default visibility. Care must be taken to
  22751. avoid breaking the One Definition Rule; for example, it is usually
  22752. not useful to mark an inline method as hidden without marking the
  22753. whole class as hidden.
  22754. A C++ namespace declaration can also have the visibility attribute.
  22755. namespace nspace1 __attribute__ ((visibility ("protected")))
  22756. { /* Do something. */; }
  22757. This attribute applies only to the particular namespace body, not
  22758. to other definitions of the same namespace; it is equivalent to
  22759. using '#pragma GCC visibility' before and after the namespace
  22760. definition (*note Visibility Pragmas::).
  22761. In C++, if a template argument has limited visibility, this
  22762. restriction is implicitly propagated to the template instantiation.
  22763. Otherwise, template instantiations and specializations default to
  22764. the visibility of their template.
  22765. If both the template and enclosing class have explicit visibility,
  22766. the visibility from the template is used.
  22767. 'warn_unused_result'
  22768. The 'warn_unused_result' attribute causes a warning to be emitted
  22769. if a caller of the function with this attribute does not use its
  22770. return value. This is useful for functions where not checking the
  22771. result is either a security problem or always a bug, such as
  22772. 'realloc'.
  22773. int fn () __attribute__ ((warn_unused_result));
  22774. int foo ()
  22775. {
  22776. if (fn () < 0) return -1;
  22777. fn ();
  22778. return 0;
  22779. }
  22780. results in warning on line 5.
  22781. 'weak'
  22782. The 'weak' attribute causes the declaration to be emitted as a weak
  22783. symbol rather than a global. This is primarily useful in defining
  22784. library functions that can be overridden in user code, though it
  22785. can also be used with non-function declarations. Weak symbols are
  22786. supported for ELF targets, and also for a.out targets when using
  22787. the GNU assembler and linker.
  22788. 'weakref'
  22789. 'weakref ("TARGET")'
  22790. The 'weakref' attribute marks a declaration as a weak reference.
  22791. Without arguments, it should be accompanied by an 'alias' attribute
  22792. naming the target symbol. Optionally, the TARGET may be given as
  22793. an argument to 'weakref' itself. In either case, 'weakref'
  22794. implicitly marks the declaration as 'weak'. Without a TARGET,
  22795. given as an argument to 'weakref' or to 'alias', 'weakref' is
  22796. equivalent to 'weak'.
  22797. static int x() __attribute__ ((weakref ("y")));
  22798. /* is equivalent to... */
  22799. static int x() __attribute__ ((weak, weakref, alias ("y")));
  22800. /* and to... */
  22801. static int x() __attribute__ ((weakref));
  22802. static int x() __attribute__ ((alias ("y")));
  22803. A weak reference is an alias that does not by itself require a
  22804. definition to be given for the target symbol. If the target symbol
  22805. is only referenced through weak references, then it becomes a
  22806. 'weak' undefined symbol. If it is directly referenced, however,
  22807. then such strong references prevail, and a definition is required
  22808. for the symbol, not necessarily in the same translation unit.
  22809. The effect is equivalent to moving all references to the alias to a
  22810. separate translation unit, renaming the alias to the aliased
  22811. symbol, declaring it as weak, compiling the two separate
  22812. translation units and performing a reloadable link on them.
  22813. At present, a declaration to which 'weakref' is attached can only
  22814. be 'static'.
  22815. 
  22816. File: gcc.info, Node: AArch64 Function Attributes, Next: ARC Function Attributes, Prev: Common Function Attributes, Up: Function Attributes
  22817. 6.31.2 AArch64 Function Attributes
  22818. ----------------------------------
  22819. The following target-specific function attributes are available for the
  22820. AArch64 target. For the most part, these options mirror the behavior of
  22821. similar command-line options (*note AArch64 Options::), but on a
  22822. per-function basis.
  22823. 'general-regs-only'
  22824. Indicates that no floating-point or Advanced SIMD registers should
  22825. be used when generating code for this function. If the function
  22826. explicitly uses floating-point code, then the compiler gives an
  22827. error. This is the same behavior as that of the command-line
  22828. option '-mgeneral-regs-only'.
  22829. 'fix-cortex-a53-835769'
  22830. Indicates that the workaround for the Cortex-A53 erratum 835769
  22831. should be applied to this function. To explicitly disable the
  22832. workaround for this function specify the negated form:
  22833. 'no-fix-cortex-a53-835769'. This corresponds to the behavior of
  22834. the command line options '-mfix-cortex-a53-835769' and
  22835. '-mno-fix-cortex-a53-835769'.
  22836. 'cmodel='
  22837. Indicates that code should be generated for a particular code model
  22838. for this function. The behavior and permissible arguments are the
  22839. same as for the command line option '-mcmodel='.
  22840. 'strict-align'
  22841. Indicates that the compiler should not assume that unaligned memory
  22842. references are handled by the system. The behavior is the same as
  22843. for the command-line option '-mstrict-align'.
  22844. 'omit-leaf-frame-pointer'
  22845. Indicates that the frame pointer should be omitted for a leaf
  22846. function call. To keep the frame pointer, the inverse attribute
  22847. 'no-omit-leaf-frame-pointer' can be specified. These attributes
  22848. have the same behavior as the command-line options
  22849. '-momit-leaf-frame-pointer' and '-mno-omit-leaf-frame-pointer'.
  22850. 'tls-dialect='
  22851. Specifies the TLS dialect to use for this function. The behavior
  22852. and permissible arguments are the same as for the command-line
  22853. option '-mtls-dialect='.
  22854. 'arch='
  22855. Specifies the architecture version and architectural extensions to
  22856. use for this function. The behavior and permissible arguments are
  22857. the same as for the '-march=' command-line option.
  22858. 'tune='
  22859. Specifies the core for which to tune the performance of this
  22860. function. The behavior and permissible arguments are the same as
  22861. for the '-mtune=' command-line option.
  22862. 'cpu='
  22863. Specifies the core for which to tune the performance of this
  22864. function and also whose architectural features to use. The
  22865. behavior and valid arguments are the same as for the '-mcpu='
  22866. command-line option.
  22867. 'sign-return-address'
  22868. Select the function scope on which return address signing will be
  22869. applied. The behavior and permissible arguments are the same as
  22870. for the command-line option '-msign-return-address='. The default
  22871. value is 'none'.
  22872. The above target attributes can be specified as follows:
  22873. __attribute__((target("ATTR-STRING")))
  22874. int
  22875. f (int a)
  22876. {
  22877. return a + 5;
  22878. }
  22879. where 'ATTR-STRING' is one of the attribute strings specified above.
  22880. Additionally, the architectural extension string may be specified on
  22881. its own. This can be used to turn on and off particular architectural
  22882. extensions without having to specify a particular architecture version
  22883. or core. Example:
  22884. __attribute__((target("+crc+nocrypto")))
  22885. int
  22886. foo (int a)
  22887. {
  22888. return a + 5;
  22889. }
  22890. In this example 'target("+crc+nocrypto")' enables the 'crc' extension
  22891. and disables the 'crypto' extension for the function 'foo' without
  22892. modifying an existing '-march=' or '-mcpu' option.
  22893. Multiple target function attributes can be specified by separating them
  22894. with a comma. For example:
  22895. __attribute__((target("arch=armv8-a+crc+crypto,tune=cortex-a53")))
  22896. int
  22897. foo (int a)
  22898. {
  22899. return a + 5;
  22900. }
  22901. is valid and compiles function 'foo' for ARMv8-A with 'crc' and
  22902. 'crypto' extensions and tunes it for 'cortex-a53'.
  22903. 6.31.2.1 Inlining rules
  22904. .......................
  22905. Specifying target attributes on individual functions or performing
  22906. link-time optimization across translation units compiled with different
  22907. target options can affect function inlining rules:
  22908. In particular, a caller function can inline a callee function only if
  22909. the architectural features available to the callee are a subset of the
  22910. features available to the caller. For example: A function 'foo'
  22911. compiled with '-march=armv8-a+crc', or tagged with the equivalent
  22912. 'arch=armv8-a+crc' attribute, can inline a function 'bar' compiled with
  22913. '-march=armv8-a+nocrc' because the all the architectural features that
  22914. function 'bar' requires are available to function 'foo'. Conversely,
  22915. function 'bar' cannot inline function 'foo'.
  22916. Additionally inlining a function compiled with '-mstrict-align' into a
  22917. function compiled without '-mstrict-align' is not allowed. However,
  22918. inlining a function compiled without '-mstrict-align' into a function
  22919. compiled with '-mstrict-align' is allowed.
  22920. Note that CPU tuning options and attributes such as the '-mcpu=',
  22921. '-mtune=' do not inhibit inlining unless the CPU specified by the
  22922. '-mcpu=' option or the 'cpu=' attribute conflicts with the architectural
  22923. feature rules specified above.
  22924. 
  22925. File: gcc.info, Node: ARC Function Attributes, Next: ARM Function Attributes, Prev: AArch64 Function Attributes, Up: Function Attributes
  22926. 6.31.3 ARC Function Attributes
  22927. ------------------------------
  22928. These function attributes are supported by the ARC back end:
  22929. 'interrupt'
  22930. Use this attribute to indicate that the specified function is an
  22931. interrupt handler. The compiler generates function entry and exit
  22932. sequences suitable for use in an interrupt handler when this
  22933. attribute is present.
  22934. On the ARC, you must specify the kind of interrupt to be handled in
  22935. a parameter to the interrupt attribute like this:
  22936. void f () __attribute__ ((interrupt ("ilink1")));
  22937. Permissible values for this parameter are: 'ilink1' and 'ilink2'.
  22938. 'long_call'
  22939. 'medium_call'
  22940. 'short_call'
  22941. These attributes specify how a particular function is called.
  22942. These attributes override the '-mlong-calls' and '-mmedium-calls'
  22943. (*note ARC Options::) command-line switches and '#pragma
  22944. long_calls' settings.
  22945. For ARC, a function marked with the 'long_call' attribute is always
  22946. called using register-indirect jump-and-link instructions, thereby
  22947. enabling the called function to be placed anywhere within the
  22948. 32-bit address space. A function marked with the 'medium_call'
  22949. attribute will always be close enough to be called with an
  22950. unconditional branch-and-link instruction, which has a 25-bit
  22951. offset from the call site. A function marked with the 'short_call'
  22952. attribute will always be close enough to be called with a
  22953. conditional branch-and-link instruction, which has a 21-bit offset
  22954. from the call site.
  22955. 
  22956. File: gcc.info, Node: ARM Function Attributes, Next: AVR Function Attributes, Prev: ARC Function Attributes, Up: Function Attributes
  22957. 6.31.4 ARM Function Attributes
  22958. ------------------------------
  22959. These function attributes are supported for ARM targets:
  22960. 'interrupt'
  22961. Use this attribute to indicate that the specified function is an
  22962. interrupt handler. The compiler generates function entry and exit
  22963. sequences suitable for use in an interrupt handler when this
  22964. attribute is present.
  22965. You can specify the kind of interrupt to be handled by adding an
  22966. optional parameter to the interrupt attribute like this:
  22967. void f () __attribute__ ((interrupt ("IRQ")));
  22968. Permissible values for this parameter are: 'IRQ', 'FIQ', 'SWI',
  22969. 'ABORT' and 'UNDEF'.
  22970. On ARMv7-M the interrupt type is ignored, and the attribute means
  22971. the function may be called with a word-aligned stack pointer.
  22972. 'isr'
  22973. Use this attribute on ARM to write Interrupt Service Routines.
  22974. This is an alias to the 'interrupt' attribute above.
  22975. 'long_call'
  22976. 'short_call'
  22977. These attributes specify how a particular function is called.
  22978. These attributes override the '-mlong-calls' (*note ARM Options::)
  22979. command-line switch and '#pragma long_calls' settings. For ARM,
  22980. the 'long_call' attribute indicates that the function might be far
  22981. away from the call site and require a different (more expensive)
  22982. calling sequence. The 'short_call' attribute always places the
  22983. offset to the function from the call site into the 'BL' instruction
  22984. directly.
  22985. 'naked'
  22986. This attribute allows the compiler to construct the requisite
  22987. function declaration, while allowing the body of the function to be
  22988. assembly code. The specified function will not have
  22989. prologue/epilogue sequences generated by the compiler. Only basic
  22990. 'asm' statements can safely be included in naked functions (*note
  22991. Basic Asm::). While using extended 'asm' or a mixture of basic
  22992. 'asm' and C code may appear to work, they cannot be depended upon
  22993. to work reliably and are not supported.
  22994. 'pcs'
  22995. The 'pcs' attribute can be used to control the calling convention
  22996. used for a function on ARM. The attribute takes an argument that
  22997. specifies the calling convention to use.
  22998. When compiling using the AAPCS ABI (or a variant of it) then valid
  22999. values for the argument are '"aapcs"' and '"aapcs-vfp"'. In order
  23000. to use a variant other than '"aapcs"' then the compiler must be
  23001. permitted to use the appropriate co-processor registers (i.e., the
  23002. VFP registers must be available in order to use '"aapcs-vfp"').
  23003. For example,
  23004. /* Argument passed in r0, and result returned in r0+r1. */
  23005. double f2d (float) __attribute__((pcs("aapcs")));
  23006. Variadic functions always use the '"aapcs"' calling convention and
  23007. the compiler rejects attempts to specify an alternative.
  23008. 'target (OPTIONS)'
  23009. As discussed in *note Common Function Attributes::, this attribute
  23010. allows specification of target-specific compilation options.
  23011. On ARM, the following options are allowed:
  23012. 'thumb'
  23013. Force code generation in the Thumb (T16/T32) ISA, depending on
  23014. the architecture level.
  23015. 'arm'
  23016. Force code generation in the ARM (A32) ISA.
  23017. Functions from different modes can be inlined in the caller's
  23018. mode.
  23019. 'fpu='
  23020. Specifies the fpu for which to tune the performance of this
  23021. function. The behavior and permissible arguments are the same
  23022. as for the '-mfpu=' command-line option.
  23023. 
  23024. File: gcc.info, Node: AVR Function Attributes, Next: Blackfin Function Attributes, Prev: ARM Function Attributes, Up: Function Attributes
  23025. 6.31.5 AVR Function Attributes
  23026. ------------------------------
  23027. These function attributes are supported by the AVR back end:
  23028. 'interrupt'
  23029. Use this attribute to indicate that the specified function is an
  23030. interrupt handler. The compiler generates function entry and exit
  23031. sequences suitable for use in an interrupt handler when this
  23032. attribute is present.
  23033. On the AVR, the hardware globally disables interrupts when an
  23034. interrupt is executed. The first instruction of an interrupt
  23035. handler declared with this attribute is a 'SEI' instruction to
  23036. re-enable interrupts. See also the 'signal' function attribute
  23037. that does not insert a 'SEI' instruction. If both 'signal' and
  23038. 'interrupt' are specified for the same function, 'signal' is
  23039. silently ignored.
  23040. 'naked'
  23041. This attribute allows the compiler to construct the requisite
  23042. function declaration, while allowing the body of the function to be
  23043. assembly code. The specified function will not have
  23044. prologue/epilogue sequences generated by the compiler. Only basic
  23045. 'asm' statements can safely be included in naked functions (*note
  23046. Basic Asm::). While using extended 'asm' or a mixture of basic
  23047. 'asm' and C code may appear to work, they cannot be depended upon
  23048. to work reliably and are not supported.
  23049. 'OS_main'
  23050. 'OS_task'
  23051. On AVR, functions with the 'OS_main' or 'OS_task' attribute do not
  23052. save/restore any call-saved register in their prologue/epilogue.
  23053. The 'OS_main' attribute can be used when there _is guarantee_ that
  23054. interrupts are disabled at the time when the function is entered.
  23055. This saves resources when the stack pointer has to be changed to
  23056. set up a frame for local variables.
  23057. The 'OS_task' attribute can be used when there is _no guarantee_
  23058. that interrupts are disabled at that time when the function is
  23059. entered like for, e.g. task functions in a multi-threading
  23060. operating system. In that case, changing the stack pointer
  23061. register is guarded by save/clear/restore of the global interrupt
  23062. enable flag.
  23063. The differences to the 'naked' function attribute are:
  23064. * 'naked' functions do not have a return instruction whereas
  23065. 'OS_main' and 'OS_task' functions have a 'RET' or 'RETI'
  23066. return instruction.
  23067. * 'naked' functions do not set up a frame for local variables or
  23068. a frame pointer whereas 'OS_main' and 'OS_task' do this as
  23069. needed.
  23070. 'signal'
  23071. Use this attribute on the AVR to indicate that the specified
  23072. function is an interrupt handler. The compiler generates function
  23073. entry and exit sequences suitable for use in an interrupt handler
  23074. when this attribute is present.
  23075. See also the 'interrupt' function attribute.
  23076. The AVR hardware globally disables interrupts when an interrupt is
  23077. executed. Interrupt handler functions defined with the 'signal'
  23078. attribute do not re-enable interrupts. It is save to enable
  23079. interrupts in a 'signal' handler. This "save" only applies to the
  23080. code generated by the compiler and not to the IRQ layout of the
  23081. application which is responsibility of the application.
  23082. If both 'signal' and 'interrupt' are specified for the same
  23083. function, 'signal' is silently ignored.
  23084. 
  23085. File: gcc.info, Node: Blackfin Function Attributes, Next: CR16 Function Attributes, Prev: AVR Function Attributes, Up: Function Attributes
  23086. 6.31.6 Blackfin Function Attributes
  23087. -----------------------------------
  23088. These function attributes are supported by the Blackfin back end:
  23089. 'exception_handler'
  23090. Use this attribute on the Blackfin to indicate that the specified
  23091. function is an exception handler. The compiler generates function
  23092. entry and exit sequences suitable for use in an exception handler
  23093. when this attribute is present.
  23094. 'interrupt_handler'
  23095. Use this attribute to indicate that the specified function is an
  23096. interrupt handler. The compiler generates function entry and exit
  23097. sequences suitable for use in an interrupt handler when this
  23098. attribute is present.
  23099. 'kspisusp'
  23100. When used together with 'interrupt_handler', 'exception_handler' or
  23101. 'nmi_handler', code is generated to load the stack pointer from the
  23102. USP register in the function prologue.
  23103. 'l1_text'
  23104. This attribute specifies a function to be placed into L1
  23105. Instruction SRAM. The function is put into a specific section
  23106. named '.l1.text'. With '-mfdpic', function calls with a such
  23107. function as the callee or caller uses inlined PLT.
  23108. 'l2'
  23109. This attribute specifies a function to be placed into L2 SRAM. The
  23110. function is put into a specific section named '.l2.text'. With
  23111. '-mfdpic', callers of such functions use an inlined PLT.
  23112. 'longcall'
  23113. 'shortcall'
  23114. The 'longcall' attribute indicates that the function might be far
  23115. away from the call site and require a different (more expensive)
  23116. calling sequence. The 'shortcall' attribute indicates that the
  23117. function is always close enough for the shorter calling sequence to
  23118. be used. These attributes override the '-mlongcall' switch.
  23119. 'nesting'
  23120. Use this attribute together with 'interrupt_handler',
  23121. 'exception_handler' or 'nmi_handler' to indicate that the function
  23122. entry code should enable nested interrupts or exceptions.
  23123. 'nmi_handler'
  23124. Use this attribute on the Blackfin to indicate that the specified
  23125. function is an NMI handler. The compiler generates function entry
  23126. and exit sequences suitable for use in an NMI handler when this
  23127. attribute is present.
  23128. 'saveall'
  23129. Use this attribute to indicate that all registers except the stack
  23130. pointer should be saved in the prologue regardless of whether they
  23131. are used or not.
  23132. 
  23133. File: gcc.info, Node: CR16 Function Attributes, Next: Epiphany Function Attributes, Prev: Blackfin Function Attributes, Up: Function Attributes
  23134. 6.31.7 CR16 Function Attributes
  23135. -------------------------------
  23136. These function attributes are supported by the CR16 back end:
  23137. 'interrupt'
  23138. Use this attribute to indicate that the specified function is an
  23139. interrupt handler. The compiler generates function entry and exit
  23140. sequences suitable for use in an interrupt handler when this
  23141. attribute is present.
  23142. 
  23143. File: gcc.info, Node: Epiphany Function Attributes, Next: H8/300 Function Attributes, Prev: CR16 Function Attributes, Up: Function Attributes
  23144. 6.31.8 Epiphany Function Attributes
  23145. -----------------------------------
  23146. These function attributes are supported by the Epiphany back end:
  23147. 'disinterrupt'
  23148. This attribute causes the compiler to emit instructions to disable
  23149. interrupts for the duration of the given function.
  23150. 'forwarder_section'
  23151. This attribute modifies the behavior of an interrupt handler. The
  23152. interrupt handler may be in external memory which cannot be reached
  23153. by a branch instruction, so generate a local memory trampoline to
  23154. transfer control. The single parameter identifies the section
  23155. where the trampoline is placed.
  23156. 'interrupt'
  23157. Use this attribute to indicate that the specified function is an
  23158. interrupt handler. The compiler generates function entry and exit
  23159. sequences suitable for use in an interrupt handler when this
  23160. attribute is present. It may also generate a special section with
  23161. code to initialize the interrupt vector table.
  23162. On Epiphany targets one or more optional parameters can be added
  23163. like this:
  23164. void __attribute__ ((interrupt ("dma0, dma1"))) universal_dma_handler ();
  23165. Permissible values for these parameters are: 'reset',
  23166. 'software_exception', 'page_miss', 'timer0', 'timer1', 'message',
  23167. 'dma0', 'dma1', 'wand' and 'swi'. Multiple parameters indicate
  23168. that multiple entries in the interrupt vector table should be
  23169. initialized for this function, i.e. for each parameter NAME, a jump
  23170. to the function is emitted in the section ivt_entry_NAME. The
  23171. parameter(s) may be omitted entirely, in which case no interrupt
  23172. vector table entry is provided.
  23173. Note that interrupts are enabled inside the function unless the
  23174. 'disinterrupt' attribute is also specified.
  23175. The following examples are all valid uses of these attributes on
  23176. Epiphany targets:
  23177. void __attribute__ ((interrupt)) universal_handler ();
  23178. void __attribute__ ((interrupt ("dma1"))) dma1_handler ();
  23179. void __attribute__ ((interrupt ("dma0, dma1")))
  23180. universal_dma_handler ();
  23181. void __attribute__ ((interrupt ("timer0"), disinterrupt))
  23182. fast_timer_handler ();
  23183. void __attribute__ ((interrupt ("dma0, dma1"),
  23184. forwarder_section ("tramp")))
  23185. external_dma_handler ();
  23186. 'long_call'
  23187. 'short_call'
  23188. These attributes specify how a particular function is called.
  23189. These attributes override the '-mlong-calls' (*note Adapteva
  23190. Epiphany Options::) command-line switch and '#pragma long_calls'
  23191. settings.
  23192. 
  23193. File: gcc.info, Node: H8/300 Function Attributes, Next: IA-64 Function Attributes, Prev: Epiphany Function Attributes, Up: Function Attributes
  23194. 6.31.9 H8/300 Function Attributes
  23195. ---------------------------------
  23196. These function attributes are available for H8/300 targets:
  23197. 'function_vector'
  23198. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  23199. the specified function should be called through the function
  23200. vector. Calling a function through the function vector reduces
  23201. code size; however, the function vector has a limited size (maximum
  23202. 128 entries on the H8/300 and 64 entries on the H8/300H and H8S)
  23203. and shares space with the interrupt vector.
  23204. 'interrupt_handler'
  23205. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  23206. the specified function is an interrupt handler. The compiler
  23207. generates function entry and exit sequences suitable for use in an
  23208. interrupt handler when this attribute is present.
  23209. 'saveall'
  23210. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  23211. all registers except the stack pointer should be saved in the
  23212. prologue regardless of whether they are used or not.
  23213. 
  23214. File: gcc.info, Node: IA-64 Function Attributes, Next: M32C Function Attributes, Prev: H8/300 Function Attributes, Up: Function Attributes
  23215. 6.31.10 IA-64 Function Attributes
  23216. ---------------------------------
  23217. These function attributes are supported on IA-64 targets:
  23218. 'syscall_linkage'
  23219. This attribute is used to modify the IA-64 calling convention by
  23220. marking all input registers as live at all function exits. This
  23221. makes it possible to restart a system call after an interrupt
  23222. without having to save/restore the input registers. This also
  23223. prevents kernel data from leaking into application code.
  23224. 'version_id'
  23225. This IA-64 HP-UX attribute, attached to a global variable or
  23226. function, renames a symbol to contain a version string, thus
  23227. allowing for function level versioning. HP-UX system header files
  23228. may use function level versioning for some system calls.
  23229. extern int foo () __attribute__((version_id ("20040821")));
  23230. Calls to 'foo' are mapped to calls to 'foo{20040821}'.
  23231. 
  23232. File: gcc.info, Node: M32C Function Attributes, Next: M32R/D Function Attributes, Prev: IA-64 Function Attributes, Up: Function Attributes
  23233. 6.31.11 M32C Function Attributes
  23234. --------------------------------
  23235. These function attributes are supported by the M32C back end:
  23236. 'bank_switch'
  23237. When added to an interrupt handler with the M32C port, causes the
  23238. prologue and epilogue to use bank switching to preserve the
  23239. registers rather than saving them on the stack.
  23240. 'fast_interrupt'
  23241. Use this attribute on the M32C port to indicate that the specified
  23242. function is a fast interrupt handler. This is just like the
  23243. 'interrupt' attribute, except that 'freit' is used to return
  23244. instead of 'reit'.
  23245. 'function_vector'
  23246. On M16C/M32C targets, the 'function_vector' attribute declares a
  23247. special page subroutine call function. Use of this attribute
  23248. reduces the code size by 2 bytes for each call generated to the
  23249. subroutine. The argument to the attribute is the vector number
  23250. entry from the special page vector table which contains the 16
  23251. low-order bits of the subroutine's entry address. Each vector
  23252. table has special page number (18 to 255) that is used in 'jsrs'
  23253. instructions. Jump addresses of the routines are generated by
  23254. adding 0x0F0000 (in case of M16C targets) or 0xFF0000 (in case of
  23255. M32C targets), to the 2-byte addresses set in the vector table.
  23256. Therefore you need to ensure that all the special page vector
  23257. routines should get mapped within the address range 0x0F0000 to
  23258. 0x0FFFFF (for M16C) and 0xFF0000 to 0xFFFFFF (for M32C).
  23259. In the following example 2 bytes are saved for each call to
  23260. function 'foo'.
  23261. void foo (void) __attribute__((function_vector(0x18)));
  23262. void foo (void)
  23263. {
  23264. }
  23265. void bar (void)
  23266. {
  23267. foo();
  23268. }
  23269. If functions are defined in one file and are called in another
  23270. file, then be sure to write this declaration in both files.
  23271. This attribute is ignored for R8C target.
  23272. 'interrupt'
  23273. Use this attribute to indicate that the specified function is an
  23274. interrupt handler. The compiler generates function entry and exit
  23275. sequences suitable for use in an interrupt handler when this
  23276. attribute is present.
  23277. 
  23278. File: gcc.info, Node: M32R/D Function Attributes, Next: m68k Function Attributes, Prev: M32C Function Attributes, Up: Function Attributes
  23279. 6.31.12 M32R/D Function Attributes
  23280. ----------------------------------
  23281. These function attributes are supported by the M32R/D back end:
  23282. 'interrupt'
  23283. Use this attribute to indicate that the specified function is an
  23284. interrupt handler. The compiler generates function entry and exit
  23285. sequences suitable for use in an interrupt handler when this
  23286. attribute is present.
  23287. 'model (MODEL-NAME)'
  23288. On the M32R/D, use this attribute to set the addressability of an
  23289. object, and of the code generated for a function. The identifier
  23290. MODEL-NAME is one of 'small', 'medium', or 'large', representing
  23291. each of the code models.
  23292. Small model objects live in the lower 16MB of memory (so that their
  23293. addresses can be loaded with the 'ld24' instruction), and are
  23294. callable with the 'bl' instruction.
  23295. Medium model objects may live anywhere in the 32-bit address space
  23296. (the compiler generates 'seth/add3' instructions to load their
  23297. addresses), and are callable with the 'bl' instruction.
  23298. Large model objects may live anywhere in the 32-bit address space
  23299. (the compiler generates 'seth/add3' instructions to load their
  23300. addresses), and may not be reachable with the 'bl' instruction (the
  23301. compiler generates the much slower 'seth/add3/jl' instruction
  23302. sequence).
  23303. 
  23304. File: gcc.info, Node: m68k Function Attributes, Next: MCORE Function Attributes, Prev: M32R/D Function Attributes, Up: Function Attributes
  23305. 6.31.13 m68k Function Attributes
  23306. --------------------------------
  23307. These function attributes are supported by the m68k back end:
  23308. 'interrupt'
  23309. 'interrupt_handler'
  23310. Use this attribute to indicate that the specified function is an
  23311. interrupt handler. The compiler generates function entry and exit
  23312. sequences suitable for use in an interrupt handler when this
  23313. attribute is present. Either name may be used.
  23314. 'interrupt_thread'
  23315. Use this attribute on fido, a subarchitecture of the m68k, to
  23316. indicate that the specified function is an interrupt handler that
  23317. is designed to run as a thread. The compiler omits generate
  23318. prologue/epilogue sequences and replaces the return instruction
  23319. with a 'sleep' instruction. This attribute is available only on
  23320. fido.
  23321. 
  23322. File: gcc.info, Node: MCORE Function Attributes, Next: MeP Function Attributes, Prev: m68k Function Attributes, Up: Function Attributes
  23323. 6.31.14 MCORE Function Attributes
  23324. ---------------------------------
  23325. These function attributes are supported by the MCORE back end:
  23326. 'naked'
  23327. This attribute allows the compiler to construct the requisite
  23328. function declaration, while allowing the body of the function to be
  23329. assembly code. The specified function will not have
  23330. prologue/epilogue sequences generated by the compiler. Only basic
  23331. 'asm' statements can safely be included in naked functions (*note
  23332. Basic Asm::). While using extended 'asm' or a mixture of basic
  23333. 'asm' and C code may appear to work, they cannot be depended upon
  23334. to work reliably and are not supported.
  23335. 
  23336. File: gcc.info, Node: MeP Function Attributes, Next: MicroBlaze Function Attributes, Prev: MCORE Function Attributes, Up: Function Attributes
  23337. 6.31.15 MeP Function Attributes
  23338. -------------------------------
  23339. These function attributes are supported by the MeP back end:
  23340. 'disinterrupt'
  23341. On MeP targets, this attribute causes the compiler to emit
  23342. instructions to disable interrupts for the duration of the given
  23343. function.
  23344. 'interrupt'
  23345. Use this attribute to indicate that the specified function is an
  23346. interrupt handler. The compiler generates function entry and exit
  23347. sequences suitable for use in an interrupt handler when this
  23348. attribute is present.
  23349. 'near'
  23350. This attribute causes the compiler to assume the called function is
  23351. close enough to use the normal calling convention, overriding the
  23352. '-mtf' command-line option.
  23353. 'far'
  23354. On MeP targets this causes the compiler to use a calling convention
  23355. that assumes the called function is too far away for the built-in
  23356. addressing modes.
  23357. 'vliw'
  23358. The 'vliw' attribute tells the compiler to emit instructions in
  23359. VLIW mode instead of core mode. Note that this attribute is not
  23360. allowed unless a VLIW coprocessor has been configured and enabled
  23361. through command-line options.
  23362. 
  23363. File: gcc.info, Node: MicroBlaze Function Attributes, Next: Microsoft Windows Function Attributes, Prev: MeP Function Attributes, Up: Function Attributes
  23364. 6.31.16 MicroBlaze Function Attributes
  23365. --------------------------------------
  23366. These function attributes are supported on MicroBlaze targets:
  23367. 'save_volatiles'
  23368. Use this attribute to indicate that the function is an interrupt
  23369. handler. All volatile registers (in addition to non-volatile
  23370. registers) are saved in the function prologue. If the function is
  23371. a leaf function, only volatiles used by the function are saved. A
  23372. normal function return is generated instead of a return from
  23373. interrupt.
  23374. 'break_handler'
  23375. Use this attribute to indicate that the specified function is a
  23376. break handler. The compiler generates function entry and exit
  23377. sequences suitable for use in an break handler when this attribute
  23378. is present. The return from 'break_handler' is done through the
  23379. 'rtbd' instead of 'rtsd'.
  23380. void f () __attribute__ ((break_handler));
  23381. 'interrupt_handler'
  23382. 'fast_interrupt'
  23383. These attributes indicate that the specified function is an
  23384. interrupt handler. Use the 'fast_interrupt' attribute to indicate
  23385. handlers used in low-latency interrupt mode, and
  23386. 'interrupt_handler' for interrupts that do not use low-latency
  23387. handlers. In both cases, GCC emits appropriate prologue code and
  23388. generates a return from the handler using 'rtid' instead of 'rtsd'.
  23389. 
  23390. File: gcc.info, Node: Microsoft Windows Function Attributes, Next: MIPS Function Attributes, Prev: MicroBlaze Function Attributes, Up: Function Attributes
  23391. 6.31.17 Microsoft Windows Function Attributes
  23392. ---------------------------------------------
  23393. The following attributes are available on Microsoft Windows and Symbian
  23394. OS targets.
  23395. 'dllexport'
  23396. On Microsoft Windows targets and Symbian OS targets the 'dllexport'
  23397. attribute causes the compiler to provide a global pointer to a
  23398. pointer in a DLL, so that it can be referenced with the 'dllimport'
  23399. attribute. On Microsoft Windows targets, the pointer name is
  23400. formed by combining '_imp__' and the function or variable name.
  23401. You can use '__declspec(dllexport)' as a synonym for '__attribute__
  23402. ((dllexport))' for compatibility with other compilers.
  23403. On systems that support the 'visibility' attribute, this attribute
  23404. also implies "default" visibility. It is an error to explicitly
  23405. specify any other visibility.
  23406. GCC's default behavior is to emit all inline functions with the
  23407. 'dllexport' attribute. Since this can cause object file-size
  23408. bloat, you can use '-fno-keep-inline-dllexport', which tells GCC to
  23409. ignore the attribute for inlined functions unless the
  23410. '-fkeep-inline-functions' flag is used instead.
  23411. The attribute is ignored for undefined symbols.
  23412. When applied to C++ classes, the attribute marks defined
  23413. non-inlined member functions and static data members as exports.
  23414. Static consts initialized in-class are not marked unless they are
  23415. also defined out-of-class.
  23416. For Microsoft Windows targets there are alternative methods for
  23417. including the symbol in the DLL's export table such as using a
  23418. '.def' file with an 'EXPORTS' section or, with GNU ld, using the
  23419. '--export-all' linker flag.
  23420. 'dllimport'
  23421. On Microsoft Windows and Symbian OS targets, the 'dllimport'
  23422. attribute causes the compiler to reference a function or variable
  23423. via a global pointer to a pointer that is set up by the DLL
  23424. exporting the symbol. The attribute implies 'extern'. On
  23425. Microsoft Windows targets, the pointer name is formed by combining
  23426. '_imp__' and the function or variable name.
  23427. You can use '__declspec(dllimport)' as a synonym for '__attribute__
  23428. ((dllimport))' for compatibility with other compilers.
  23429. On systems that support the 'visibility' attribute, this attribute
  23430. also implies "default" visibility. It is an error to explicitly
  23431. specify any other visibility.
  23432. Currently, the attribute is ignored for inlined functions. If the
  23433. attribute is applied to a symbol _definition_, an error is
  23434. reported. If a symbol previously declared 'dllimport' is later
  23435. defined, the attribute is ignored in subsequent references, and a
  23436. warning is emitted. The attribute is also overridden by a
  23437. subsequent declaration as 'dllexport'.
  23438. When applied to C++ classes, the attribute marks non-inlined member
  23439. functions and static data members as imports. However, the
  23440. attribute is ignored for virtual methods to allow creation of
  23441. vtables using thunks.
  23442. On the SH Symbian OS target the 'dllimport' attribute also has
  23443. another affect--it can cause the vtable and run-time type
  23444. information for a class to be exported. This happens when the
  23445. class has a dllimported constructor or a non-inline, non-pure
  23446. virtual function and, for either of those two conditions, the class
  23447. also has an inline constructor or destructor and has a key function
  23448. that is defined in the current translation unit.
  23449. For Microsoft Windows targets the use of the 'dllimport' attribute
  23450. on functions is not necessary, but provides a small performance
  23451. benefit by eliminating a thunk in the DLL. The use of the
  23452. 'dllimport' attribute on imported variables can be avoided by
  23453. passing the '--enable-auto-import' switch to the GNU linker. As
  23454. with functions, using the attribute for a variable eliminates a
  23455. thunk in the DLL.
  23456. One drawback to using this attribute is that a pointer to a
  23457. _variable_ marked as 'dllimport' cannot be used as a constant
  23458. address. However, a pointer to a _function_ with the 'dllimport'
  23459. attribute can be used as a constant initializer; in this case, the
  23460. address of a stub function in the import lib is referenced. On
  23461. Microsoft Windows targets, the attribute can be disabled for
  23462. functions by setting the '-mnop-fun-dllimport' flag.
  23463. 
  23464. File: gcc.info, Node: MIPS Function Attributes, Next: MSP430 Function Attributes, Prev: Microsoft Windows Function Attributes, Up: Function Attributes
  23465. 6.31.18 MIPS Function Attributes
  23466. --------------------------------
  23467. These function attributes are supported by the MIPS back end:
  23468. 'interrupt'
  23469. Use this attribute to indicate that the specified function is an
  23470. interrupt handler. The compiler generates function entry and exit
  23471. sequences suitable for use in an interrupt handler when this
  23472. attribute is present. An optional argument is supported for the
  23473. interrupt attribute which allows the interrupt mode to be
  23474. described. By default GCC assumes the external interrupt
  23475. controller (EIC) mode is in use, this can be explicitly set using
  23476. 'eic'. When interrupts are non-masked then the requested Interrupt
  23477. Priority Level (IPL) is copied to the current IPL which has the
  23478. effect of only enabling higher priority interrupts. To use
  23479. vectored interrupt mode use the argument
  23480. 'vector=[sw0|sw1|hw0|hw1|hw2|hw3|hw4|hw5]', this will change the
  23481. behavior of the non-masked interrupt support and GCC will arrange
  23482. to mask all interrupts from sw0 up to and including the specified
  23483. interrupt vector.
  23484. You can use the following attributes to modify the behavior of an
  23485. interrupt handler:
  23486. 'use_shadow_register_set'
  23487. Assume that the handler uses a shadow register set, instead of
  23488. the main general-purpose registers. An optional argument
  23489. 'intstack' is supported to indicate that the shadow register
  23490. set contains a valid stack pointer.
  23491. 'keep_interrupts_masked'
  23492. Keep interrupts masked for the whole function. Without this
  23493. attribute, GCC tries to reenable interrupts for as much of the
  23494. function as it can.
  23495. 'use_debug_exception_return'
  23496. Return using the 'deret' instruction. Interrupt handlers that
  23497. don't have this attribute return using 'eret' instead.
  23498. You can use any combination of these attributes, as shown below:
  23499. void __attribute__ ((interrupt)) v0 ();
  23500. void __attribute__ ((interrupt, use_shadow_register_set)) v1 ();
  23501. void __attribute__ ((interrupt, keep_interrupts_masked)) v2 ();
  23502. void __attribute__ ((interrupt, use_debug_exception_return)) v3 ();
  23503. void __attribute__ ((interrupt, use_shadow_register_set,
  23504. keep_interrupts_masked)) v4 ();
  23505. void __attribute__ ((interrupt, use_shadow_register_set,
  23506. use_debug_exception_return)) v5 ();
  23507. void __attribute__ ((interrupt, keep_interrupts_masked,
  23508. use_debug_exception_return)) v6 ();
  23509. void __attribute__ ((interrupt, use_shadow_register_set,
  23510. keep_interrupts_masked,
  23511. use_debug_exception_return)) v7 ();
  23512. void __attribute__ ((interrupt("eic"))) v8 ();
  23513. void __attribute__ ((interrupt("vector=hw3"))) v9 ();
  23514. 'long_call'
  23515. 'near'
  23516. 'far'
  23517. These attributes specify how a particular function is called on
  23518. MIPS. The attributes override the '-mlong-calls' (*note MIPS
  23519. Options::) command-line switch. The 'long_call' and 'far'
  23520. attributes are synonyms, and cause the compiler to always call the
  23521. function by first loading its address into a register, and then
  23522. using the contents of that register. The 'near' attribute has the
  23523. opposite effect; it specifies that non-PIC calls should be made
  23524. using the more efficient 'jal' instruction.
  23525. 'mips16'
  23526. 'nomips16'
  23527. On MIPS targets, you can use the 'mips16' and 'nomips16' function
  23528. attributes to locally select or turn off MIPS16 code generation. A
  23529. function with the 'mips16' attribute is emitted as MIPS16 code,
  23530. while MIPS16 code generation is disabled for functions with the
  23531. 'nomips16' attribute. These attributes override the '-mips16' and
  23532. '-mno-mips16' options on the command line (*note MIPS Options::).
  23533. When compiling files containing mixed MIPS16 and non-MIPS16 code,
  23534. the preprocessor symbol '__mips16' reflects the setting on the
  23535. command line, not that within individual functions. Mixed MIPS16
  23536. and non-MIPS16 code may interact badly with some GCC extensions
  23537. such as '__builtin_apply' (*note Constructing Calls::).
  23538. 'micromips, MIPS'
  23539. 'nomicromips, MIPS'
  23540. On MIPS targets, you can use the 'micromips' and 'nomicromips'
  23541. function attributes to locally select or turn off microMIPS code
  23542. generation. A function with the 'micromips' attribute is emitted
  23543. as microMIPS code, while microMIPS code generation is disabled for
  23544. functions with the 'nomicromips' attribute. These attributes
  23545. override the '-mmicromips' and '-mno-micromips' options on the
  23546. command line (*note MIPS Options::).
  23547. When compiling files containing mixed microMIPS and non-microMIPS
  23548. code, the preprocessor symbol '__mips_micromips' reflects the
  23549. setting on the command line, not that within individual functions.
  23550. Mixed microMIPS and non-microMIPS code may interact badly with some
  23551. GCC extensions such as '__builtin_apply' (*note Constructing
  23552. Calls::).
  23553. 'nocompression'
  23554. On MIPS targets, you can use the 'nocompression' function attribute
  23555. to locally turn off MIPS16 and microMIPS code generation. This
  23556. attribute overrides the '-mips16' and '-mmicromips' options on the
  23557. command line (*note MIPS Options::).
  23558. 
  23559. File: gcc.info, Node: MSP430 Function Attributes, Next: NDS32 Function Attributes, Prev: MIPS Function Attributes, Up: Function Attributes
  23560. 6.31.19 MSP430 Function Attributes
  23561. ----------------------------------
  23562. These function attributes are supported by the MSP430 back end:
  23563. 'critical'
  23564. Critical functions disable interrupts upon entry and restore the
  23565. previous interrupt state upon exit. Critical functions cannot also
  23566. have the 'naked' or 'reentrant' attributes. They can have the
  23567. 'interrupt' attribute.
  23568. 'interrupt'
  23569. Use this attribute to indicate that the specified function is an
  23570. interrupt handler. The compiler generates function entry and exit
  23571. sequences suitable for use in an interrupt handler when this
  23572. attribute is present.
  23573. You can provide an argument to the interrupt attribute which
  23574. specifies a name or number. If the argument is a number it
  23575. indicates the slot in the interrupt vector table (0 - 31) to which
  23576. this handler should be assigned. If the argument is a name it is
  23577. treated as a symbolic name for the vector slot. These names should
  23578. match up with appropriate entries in the linker script. By default
  23579. the names 'watchdog' for vector 26, 'nmi' for vector 30 and 'reset'
  23580. for vector 31 are recognized.
  23581. 'naked'
  23582. This attribute allows the compiler to construct the requisite
  23583. function declaration, while allowing the body of the function to be
  23584. assembly code. The specified function will not have
  23585. prologue/epilogue sequences generated by the compiler. Only basic
  23586. 'asm' statements can safely be included in naked functions (*note
  23587. Basic Asm::). While using extended 'asm' or a mixture of basic
  23588. 'asm' and C code may appear to work, they cannot be depended upon
  23589. to work reliably and are not supported.
  23590. 'reentrant'
  23591. Reentrant functions disable interrupts upon entry and enable them
  23592. upon exit. Reentrant functions cannot also have the 'naked' or
  23593. 'critical' attributes. They can have the 'interrupt' attribute.
  23594. 'wakeup'
  23595. This attribute only applies to interrupt functions. It is silently
  23596. ignored if applied to a non-interrupt function. A wakeup interrupt
  23597. function will rouse the processor from any low-power state that it
  23598. might be in when the function exits.
  23599. 'lower'
  23600. 'upper'
  23601. 'either'
  23602. On the MSP430 target these attributes can be used to specify
  23603. whether the function or variable should be placed into low memory,
  23604. high memory, or the placement should be left to the linker to
  23605. decide. The attributes are only significant if compiling for the
  23606. MSP430X architecture.
  23607. The attributes work in conjunction with a linker script that has
  23608. been augmented to specify where to place sections with a '.lower'
  23609. and a '.upper' prefix. So, for example, as well as placing the
  23610. '.data' section, the script also specifies the placement of a
  23611. '.lower.data' and a '.upper.data' section. The intention is that
  23612. 'lower' sections are placed into a small but easier to access
  23613. memory region and the upper sections are placed into a larger, but
  23614. slower to access, region.
  23615. The 'either' attribute is special. It tells the linker to place
  23616. the object into the corresponding 'lower' section if there is room
  23617. for it. If there is insufficient room then the object is placed
  23618. into the corresponding 'upper' section instead. Note that the
  23619. placement algorithm is not very sophisticated. It does not attempt
  23620. to find an optimal packing of the 'lower' sections. It just makes
  23621. one pass over the objects and does the best that it can. Using the
  23622. '-ffunction-sections' and '-fdata-sections' command-line options
  23623. can help the packing, however, since they produce smaller, easier
  23624. to pack regions.
  23625. 
  23626. File: gcc.info, Node: NDS32 Function Attributes, Next: Nios II Function Attributes, Prev: MSP430 Function Attributes, Up: Function Attributes
  23627. 6.31.20 NDS32 Function Attributes
  23628. ---------------------------------
  23629. These function attributes are supported by the NDS32 back end:
  23630. 'exception'
  23631. Use this attribute on the NDS32 target to indicate that the
  23632. specified function is an exception handler. The compiler will
  23633. generate corresponding sections for use in an exception handler.
  23634. 'interrupt'
  23635. On NDS32 target, this attribute indicates that the specified
  23636. function is an interrupt handler. The compiler generates
  23637. corresponding sections for use in an interrupt handler. You can
  23638. use the following attributes to modify the behavior:
  23639. 'nested'
  23640. This interrupt service routine is interruptible.
  23641. 'not_nested'
  23642. This interrupt service routine is not interruptible.
  23643. 'nested_ready'
  23644. This interrupt service routine is interruptible after
  23645. 'PSW.GIE' (global interrupt enable) is set. This allows
  23646. interrupt service routine to finish some short critical code
  23647. before enabling interrupts.
  23648. 'save_all'
  23649. The system will help save all registers into stack before
  23650. entering interrupt handler.
  23651. 'partial_save'
  23652. The system will help save caller registers into stack before
  23653. entering interrupt handler.
  23654. 'naked'
  23655. This attribute allows the compiler to construct the requisite
  23656. function declaration, while allowing the body of the function to be
  23657. assembly code. The specified function will not have
  23658. prologue/epilogue sequences generated by the compiler. Only basic
  23659. 'asm' statements can safely be included in naked functions (*note
  23660. Basic Asm::). While using extended 'asm' or a mixture of basic
  23661. 'asm' and C code may appear to work, they cannot be depended upon
  23662. to work reliably and are not supported.
  23663. 'reset'
  23664. Use this attribute on the NDS32 target to indicate that the
  23665. specified function is a reset handler. The compiler will generate
  23666. corresponding sections for use in a reset handler. You can use the
  23667. following attributes to provide extra exception handling:
  23668. 'nmi'
  23669. Provide a user-defined function to handle NMI exception.
  23670. 'warm'
  23671. Provide a user-defined function to handle warm reset
  23672. exception.
  23673. 
  23674. File: gcc.info, Node: Nios II Function Attributes, Next: Nvidia PTX Function Attributes, Prev: NDS32 Function Attributes, Up: Function Attributes
  23675. 6.31.21 Nios II Function Attributes
  23676. -----------------------------------
  23677. These function attributes are supported by the Nios II back end:
  23678. 'target (OPTIONS)'
  23679. As discussed in *note Common Function Attributes::, this attribute
  23680. allows specification of target-specific compilation options.
  23681. When compiling for Nios II, the following options are allowed:
  23682. 'custom-INSN=N'
  23683. 'no-custom-INSN'
  23684. Each 'custom-INSN=N' attribute locally enables use of a custom
  23685. instruction with encoding N when generating code that uses
  23686. INSN. Similarly, 'no-custom-INSN' locally inhibits use of the
  23687. custom instruction INSN. These target attributes correspond
  23688. to the '-mcustom-INSN=N' and '-mno-custom-INSN' command-line
  23689. options, and support the same set of INSN keywords. *Note
  23690. Nios II Options::, for more information.
  23691. 'custom-fpu-cfg=NAME'
  23692. This attribute corresponds to the '-mcustom-fpu-cfg=NAME'
  23693. command-line option, to select a predefined set of custom
  23694. instructions named NAME. *Note Nios II Options::, for more
  23695. information.
  23696. 
  23697. File: gcc.info, Node: Nvidia PTX Function Attributes, Next: PowerPC Function Attributes, Prev: Nios II Function Attributes, Up: Function Attributes
  23698. 6.31.22 Nvidia PTX Function Attributes
  23699. --------------------------------------
  23700. These function attributes are supported by the Nvidia PTX back end:
  23701. 'kernel'
  23702. This attribute indicates that the corresponding function should be
  23703. compiled as a kernel function, which can be invoked from the host
  23704. via the CUDA RT library. By default functions are only callable
  23705. only from other PTX functions.
  23706. Kernel functions must have 'void' return type.
  23707. 
  23708. File: gcc.info, Node: PowerPC Function Attributes, Next: RL78 Function Attributes, Prev: Nvidia PTX Function Attributes, Up: Function Attributes
  23709. 6.31.23 PowerPC Function Attributes
  23710. -----------------------------------
  23711. These function attributes are supported by the PowerPC back end:
  23712. 'longcall'
  23713. 'shortcall'
  23714. The 'longcall' attribute indicates that the function might be far
  23715. away from the call site and require a different (more expensive)
  23716. calling sequence. The 'shortcall' attribute indicates that the
  23717. function is always close enough for the shorter calling sequence to
  23718. be used. These attributes override both the '-mlongcall' switch
  23719. and the '#pragma longcall' setting.
  23720. *Note RS/6000 and PowerPC Options::, for more information on
  23721. whether long calls are necessary.
  23722. 'target (OPTIONS)'
  23723. As discussed in *note Common Function Attributes::, this attribute
  23724. allows specification of target-specific compilation options.
  23725. On the PowerPC, the following options are allowed:
  23726. 'altivec'
  23727. 'no-altivec'
  23728. Generate code that uses (does not use) AltiVec instructions.
  23729. In 32-bit code, you cannot enable AltiVec instructions unless
  23730. '-mabi=altivec' is used on the command line.
  23731. 'cmpb'
  23732. 'no-cmpb'
  23733. Generate code that uses (does not use) the compare bytes
  23734. instruction implemented on the POWER6 processor and other
  23735. processors that support the PowerPC V2.05 architecture.
  23736. 'dlmzb'
  23737. 'no-dlmzb'
  23738. Generate code that uses (does not use) the string-search
  23739. 'dlmzb' instruction on the IBM 405, 440, 464 and 476
  23740. processors. This instruction is generated by default when
  23741. targeting those processors.
  23742. 'fprnd'
  23743. 'no-fprnd'
  23744. Generate code that uses (does not use) the FP round to integer
  23745. instructions implemented on the POWER5+ processor and other
  23746. processors that support the PowerPC V2.03 architecture.
  23747. 'hard-dfp'
  23748. 'no-hard-dfp'
  23749. Generate code that uses (does not use) the decimal
  23750. floating-point instructions implemented on some POWER
  23751. processors.
  23752. 'isel'
  23753. 'no-isel'
  23754. Generate code that uses (does not use) ISEL instruction.
  23755. 'mfcrf'
  23756. 'no-mfcrf'
  23757. Generate code that uses (does not use) the move from condition
  23758. register field instruction implemented on the POWER4 processor
  23759. and other processors that support the PowerPC V2.01
  23760. architecture.
  23761. 'mfpgpr'
  23762. 'no-mfpgpr'
  23763. Generate code that uses (does not use) the FP move to/from
  23764. general purpose register instructions implemented on the
  23765. POWER6X processor and other processors that support the
  23766. extended PowerPC V2.05 architecture.
  23767. 'mulhw'
  23768. 'no-mulhw'
  23769. Generate code that uses (does not use) the half-word multiply
  23770. and multiply-accumulate instructions on the IBM 405, 440, 464
  23771. and 476 processors. These instructions are generated by
  23772. default when targeting those processors.
  23773. 'multiple'
  23774. 'no-multiple'
  23775. Generate code that uses (does not use) the load multiple word
  23776. instructions and the store multiple word instructions.
  23777. 'update'
  23778. 'no-update'
  23779. Generate code that uses (does not use) the load or store
  23780. instructions that update the base register to the address of
  23781. the calculated memory location.
  23782. 'popcntb'
  23783. 'no-popcntb'
  23784. Generate code that uses (does not use) the popcount and
  23785. double-precision FP reciprocal estimate instruction
  23786. implemented on the POWER5 processor and other processors that
  23787. support the PowerPC V2.02 architecture.
  23788. 'popcntd'
  23789. 'no-popcntd'
  23790. Generate code that uses (does not use) the popcount
  23791. instruction implemented on the POWER7 processor and other
  23792. processors that support the PowerPC V2.06 architecture.
  23793. 'powerpc-gfxopt'
  23794. 'no-powerpc-gfxopt'
  23795. Generate code that uses (does not use) the optional PowerPC
  23796. architecture instructions in the Graphics group, including
  23797. floating-point select.
  23798. 'powerpc-gpopt'
  23799. 'no-powerpc-gpopt'
  23800. Generate code that uses (does not use) the optional PowerPC
  23801. architecture instructions in the General Purpose group,
  23802. including floating-point square root.
  23803. 'recip-precision'
  23804. 'no-recip-precision'
  23805. Assume (do not assume) that the reciprocal estimate
  23806. instructions provide higher-precision estimates than is
  23807. mandated by the PowerPC ABI.
  23808. 'string'
  23809. 'no-string'
  23810. Generate code that uses (does not use) the load string
  23811. instructions and the store string word instructions to save
  23812. multiple registers and do small block moves.
  23813. 'vsx'
  23814. 'no-vsx'
  23815. Generate code that uses (does not use) vector/scalar (VSX)
  23816. instructions, and also enable the use of built-in functions
  23817. that allow more direct access to the VSX instruction set. In
  23818. 32-bit code, you cannot enable VSX or AltiVec instructions
  23819. unless '-mabi=altivec' is used on the command line.
  23820. 'friz'
  23821. 'no-friz'
  23822. Generate (do not generate) the 'friz' instruction when the
  23823. '-funsafe-math-optimizations' option is used to optimize
  23824. rounding a floating-point value to 64-bit integer and back to
  23825. floating point. The 'friz' instruction does not return the
  23826. same value if the floating-point number is too large to fit in
  23827. an integer.
  23828. 'avoid-indexed-addresses'
  23829. 'no-avoid-indexed-addresses'
  23830. Generate code that tries to avoid (not avoid) the use of
  23831. indexed load or store instructions.
  23832. 'paired'
  23833. 'no-paired'
  23834. Generate code that uses (does not use) the generation of
  23835. PAIRED simd instructions.
  23836. 'longcall'
  23837. 'no-longcall'
  23838. Generate code that assumes (does not assume) that all calls
  23839. are far away so that a longer more expensive calling sequence
  23840. is required.
  23841. 'cpu=CPU'
  23842. Specify the architecture to generate code for when compiling
  23843. the function. If you select the 'target("cpu=power7")'
  23844. attribute when generating 32-bit code, VSX and AltiVec
  23845. instructions are not generated unless you use the
  23846. '-mabi=altivec' option on the command line.
  23847. 'tune=TUNE'
  23848. Specify the architecture to tune for when compiling the
  23849. function. If you do not specify the 'target("tune=TUNE")'
  23850. attribute and you do specify the 'target("cpu=CPU")'
  23851. attribute, compilation tunes for the CPU architecture, and not
  23852. the default tuning specified on the command line.
  23853. On the PowerPC, the inliner does not inline a function that has
  23854. different target options than the caller, unless the callee has a
  23855. subset of the target options of the caller.
  23856. 
  23857. File: gcc.info, Node: RL78 Function Attributes, Next: RX Function Attributes, Prev: PowerPC Function Attributes, Up: Function Attributes
  23858. 6.31.24 RL78 Function Attributes
  23859. --------------------------------
  23860. These function attributes are supported by the RL78 back end:
  23861. 'interrupt'
  23862. 'brk_interrupt'
  23863. These attributes indicate that the specified function is an
  23864. interrupt handler. The compiler generates function entry and exit
  23865. sequences suitable for use in an interrupt handler when this
  23866. attribute is present.
  23867. Use 'brk_interrupt' instead of 'interrupt' for handlers intended to
  23868. be used with the 'BRK' opcode (i.e. those that must end with 'RETB'
  23869. instead of 'RETI').
  23870. 'naked'
  23871. This attribute allows the compiler to construct the requisite
  23872. function declaration, while allowing the body of the function to be
  23873. assembly code. The specified function will not have
  23874. prologue/epilogue sequences generated by the compiler. Only basic
  23875. 'asm' statements can safely be included in naked functions (*note
  23876. Basic Asm::). While using extended 'asm' or a mixture of basic
  23877. 'asm' and C code may appear to work, they cannot be depended upon
  23878. to work reliably and are not supported.
  23879. 
  23880. File: gcc.info, Node: RX Function Attributes, Next: S/390 Function Attributes, Prev: RL78 Function Attributes, Up: Function Attributes
  23881. 6.31.25 RX Function Attributes
  23882. ------------------------------
  23883. These function attributes are supported by the RX back end:
  23884. 'fast_interrupt'
  23885. Use this attribute on the RX port to indicate that the specified
  23886. function is a fast interrupt handler. This is just like the
  23887. 'interrupt' attribute, except that 'freit' is used to return
  23888. instead of 'reit'.
  23889. 'interrupt'
  23890. Use this attribute to indicate that the specified function is an
  23891. interrupt handler. The compiler generates function entry and exit
  23892. sequences suitable for use in an interrupt handler when this
  23893. attribute is present.
  23894. On RX targets, you may specify one or more vector numbers as
  23895. arguments to the attribute, as well as naming an alternate table
  23896. name. Parameters are handled sequentially, so one handler can be
  23897. assigned to multiple entries in multiple tables. One may also pass
  23898. the magic string '"$default"' which causes the function to be used
  23899. for any unfilled slots in the current table.
  23900. This example shows a simple assignment of a function to one vector
  23901. in the default table (note that preprocessor macros may be used for
  23902. chip-specific symbolic vector names):
  23903. void __attribute__ ((interrupt (5))) txd1_handler ();
  23904. This example assigns a function to two slots in the default table
  23905. (using preprocessor macros defined elsewhere) and makes it the
  23906. default for the 'dct' table:
  23907. void __attribute__ ((interrupt (RXD1_VECT,RXD2_VECT,"dct","$default")))
  23908. txd1_handler ();
  23909. 'naked'
  23910. This attribute allows the compiler to construct the requisite
  23911. function declaration, while allowing the body of the function to be
  23912. assembly code. The specified function will not have
  23913. prologue/epilogue sequences generated by the compiler. Only basic
  23914. 'asm' statements can safely be included in naked functions (*note
  23915. Basic Asm::). While using extended 'asm' or a mixture of basic
  23916. 'asm' and C code may appear to work, they cannot be depended upon
  23917. to work reliably and are not supported.
  23918. 'vector'
  23919. This RX attribute is similar to the 'interrupt' attribute,
  23920. including its parameters, but does not make the function an
  23921. interrupt-handler type function (i.e. it retains the normal C
  23922. function calling ABI). See the 'interrupt' attribute for a
  23923. description of its arguments.
  23924. 
  23925. File: gcc.info, Node: S/390 Function Attributes, Next: SH Function Attributes, Prev: RX Function Attributes, Up: Function Attributes
  23926. 6.31.26 S/390 Function Attributes
  23927. ---------------------------------
  23928. These function attributes are supported on the S/390:
  23929. 'hotpatch (HALFWORDS-BEFORE-FUNCTION-LABEL,HALFWORDS-AFTER-FUNCTION-LABEL)'
  23930. On S/390 System z targets, you can use this function attribute to
  23931. make GCC generate a "hot-patching" function prologue. If the
  23932. '-mhotpatch=' command-line option is used at the same time, the
  23933. 'hotpatch' attribute takes precedence. The first of the two
  23934. arguments specifies the number of halfwords to be added before the
  23935. function label. A second argument can be used to specify the
  23936. number of halfwords to be added after the function label. For both
  23937. arguments the maximum allowed value is 1000000.
  23938. If both arguments are zero, hotpatching is disabled.
  23939. 'target (OPTIONS)'
  23940. As discussed in *note Common Function Attributes::, this attribute
  23941. allows specification of target-specific compilation options.
  23942. On S/390, the following options are supported:
  23943. 'arch='
  23944. 'tune='
  23945. 'stack-guard='
  23946. 'stack-size='
  23947. 'branch-cost='
  23948. 'warn-framesize='
  23949. 'backchain'
  23950. 'no-backchain'
  23951. 'hard-dfp'
  23952. 'no-hard-dfp'
  23953. 'hard-float'
  23954. 'soft-float'
  23955. 'htm'
  23956. 'no-htm'
  23957. 'vx'
  23958. 'no-vx'
  23959. 'packed-stack'
  23960. 'no-packed-stack'
  23961. 'small-exec'
  23962. 'no-small-exec'
  23963. 'mvcle'
  23964. 'no-mvcle'
  23965. 'warn-dynamicstack'
  23966. 'no-warn-dynamicstack'
  23967. The options work exactly like the S/390 specific command line
  23968. options (without the prefix '-m') except that they do not change
  23969. any feature macros. For example,
  23970. target("no-vx")
  23971. does not undefine the '__VEC__' macro.
  23972. 
  23973. File: gcc.info, Node: SH Function Attributes, Next: SPU Function Attributes, Prev: S/390 Function Attributes, Up: Function Attributes
  23974. 6.31.27 SH Function Attributes
  23975. ------------------------------
  23976. These function attributes are supported on the SH family of processors:
  23977. 'function_vector'
  23978. On SH2A targets, this attribute declares a function to be called
  23979. using the TBR relative addressing mode. The argument to this
  23980. attribute is the entry number of the same function in a vector
  23981. table containing all the TBR relative addressable functions. For
  23982. correct operation the TBR must be setup accordingly to point to the
  23983. start of the vector table before any functions with this attribute
  23984. are invoked. Usually a good place to do the initialization is the
  23985. startup routine. The TBR relative vector table can have at max 256
  23986. function entries. The jumps to these functions are generated using
  23987. a SH2A specific, non delayed branch instruction JSR/N @(disp8,TBR).
  23988. You must use GAS and GLD from GNU binutils version 2.7 or later for
  23989. this attribute to work correctly.
  23990. In an application, for a function being called once, this attribute
  23991. saves at least 8 bytes of code; and if other successive calls are
  23992. being made to the same function, it saves 2 bytes of code per each
  23993. of these calls.
  23994. 'interrupt_handler'
  23995. Use this attribute to indicate that the specified function is an
  23996. interrupt handler. The compiler generates function entry and exit
  23997. sequences suitable for use in an interrupt handler when this
  23998. attribute is present.
  23999. 'nosave_low_regs'
  24000. Use this attribute on SH targets to indicate that an
  24001. 'interrupt_handler' function should not save and restore registers
  24002. R0..R7. This can be used on SH3* and SH4* targets that have a
  24003. second R0..R7 register bank for non-reentrant interrupt handlers.
  24004. 'renesas'
  24005. On SH targets this attribute specifies that the function or struct
  24006. follows the Renesas ABI.
  24007. 'resbank'
  24008. On the SH2A target, this attribute enables the high-speed register
  24009. saving and restoration using a register bank for
  24010. 'interrupt_handler' routines. Saving to the bank is performed
  24011. automatically after the CPU accepts an interrupt that uses a
  24012. register bank.
  24013. The nineteen 32-bit registers comprising general register R0 to
  24014. R14, control register GBR, and system registers MACH, MACL, and PR
  24015. and the vector table address offset are saved into a register bank.
  24016. Register banks are stacked in first-in last-out (FILO) sequence.
  24017. Restoration from the bank is executed by issuing a RESBANK
  24018. instruction.
  24019. 'sp_switch'
  24020. Use this attribute on the SH to indicate an 'interrupt_handler'
  24021. function should switch to an alternate stack. It expects a string
  24022. argument that names a global variable holding the address of the
  24023. alternate stack.
  24024. void *alt_stack;
  24025. void f () __attribute__ ((interrupt_handler,
  24026. sp_switch ("alt_stack")));
  24027. 'trap_exit'
  24028. Use this attribute on the SH for an 'interrupt_handler' to return
  24029. using 'trapa' instead of 'rte'. This attribute expects an integer
  24030. argument specifying the trap number to be used.
  24031. 'trapa_handler'
  24032. On SH targets this function attribute is similar to
  24033. 'interrupt_handler' but it does not save and restore all registers.
  24034. 
  24035. File: gcc.info, Node: SPU Function Attributes, Next: Symbian OS Function Attributes, Prev: SH Function Attributes, Up: Function Attributes
  24036. 6.31.28 SPU Function Attributes
  24037. -------------------------------
  24038. These function attributes are supported by the SPU back end:
  24039. 'naked'
  24040. This attribute allows the compiler to construct the requisite
  24041. function declaration, while allowing the body of the function to be
  24042. assembly code. The specified function will not have
  24043. prologue/epilogue sequences generated by the compiler. Only basic
  24044. 'asm' statements can safely be included in naked functions (*note
  24045. Basic Asm::). While using extended 'asm' or a mixture of basic
  24046. 'asm' and C code may appear to work, they cannot be depended upon
  24047. to work reliably and are not supported.
  24048. 
  24049. File: gcc.info, Node: Symbian OS Function Attributes, Next: V850 Function Attributes, Prev: SPU Function Attributes, Up: Function Attributes
  24050. 6.31.29 Symbian OS Function Attributes
  24051. --------------------------------------
  24052. *Note Microsoft Windows Function Attributes::, for discussion of the
  24053. 'dllexport' and 'dllimport' attributes.
  24054. 
  24055. File: gcc.info, Node: V850 Function Attributes, Next: Visium Function Attributes, Prev: Symbian OS Function Attributes, Up: Function Attributes
  24056. 6.31.30 V850 Function Attributes
  24057. --------------------------------
  24058. The V850 back end supports these function attributes:
  24059. 'interrupt'
  24060. 'interrupt_handler'
  24061. Use these attributes to indicate that the specified function is an
  24062. interrupt handler. The compiler generates function entry and exit
  24063. sequences suitable for use in an interrupt handler when either
  24064. attribute is present.
  24065. 
  24066. File: gcc.info, Node: Visium Function Attributes, Next: x86 Function Attributes, Prev: V850 Function Attributes, Up: Function Attributes
  24067. 6.31.31 Visium Function Attributes
  24068. ----------------------------------
  24069. These function attributes are supported by the Visium back end:
  24070. 'interrupt'
  24071. Use this attribute to indicate that the specified function is an
  24072. interrupt handler. The compiler generates function entry and exit
  24073. sequences suitable for use in an interrupt handler when this
  24074. attribute is present.
  24075. 
  24076. File: gcc.info, Node: x86 Function Attributes, Next: Xstormy16 Function Attributes, Prev: Visium Function Attributes, Up: Function Attributes
  24077. 6.31.32 x86 Function Attributes
  24078. -------------------------------
  24079. These function attributes are supported by the x86 back end:
  24080. 'cdecl'
  24081. On the x86-32 targets, the 'cdecl' attribute causes the compiler to
  24082. assume that the calling function pops off the stack space used to
  24083. pass arguments. This is useful to override the effects of the
  24084. '-mrtd' switch.
  24085. 'fastcall'
  24086. On x86-32 targets, the 'fastcall' attribute causes the compiler to
  24087. pass the first argument (if of integral type) in the register ECX
  24088. and the second argument (if of integral type) in the register EDX.
  24089. Subsequent and other typed arguments are passed on the stack. The
  24090. called function pops the arguments off the stack. If the number of
  24091. arguments is variable all arguments are pushed on the stack.
  24092. 'thiscall'
  24093. On x86-32 targets, the 'thiscall' attribute causes the compiler to
  24094. pass the first argument (if of integral type) in the register ECX.
  24095. Subsequent and other typed arguments are passed on the stack. The
  24096. called function pops the arguments off the stack. If the number of
  24097. arguments is variable all arguments are pushed on the stack. The
  24098. 'thiscall' attribute is intended for C++ non-static member
  24099. functions. As a GCC extension, this calling convention can be used
  24100. for C functions and for static member methods.
  24101. 'ms_abi'
  24102. 'sysv_abi'
  24103. On 32-bit and 64-bit x86 targets, you can use an ABI attribute to
  24104. indicate which calling convention should be used for a function.
  24105. The 'ms_abi' attribute tells the compiler to use the Microsoft ABI,
  24106. while the 'sysv_abi' attribute tells the compiler to use the ABI
  24107. used on GNU/Linux and other systems. The default is to use the
  24108. Microsoft ABI when targeting Windows. On all other systems, the
  24109. default is the x86/AMD ABI.
  24110. Note, the 'ms_abi' attribute for Microsoft Windows 64-bit targets
  24111. currently requires the '-maccumulate-outgoing-args' option.
  24112. 'callee_pop_aggregate_return (NUMBER)'
  24113. On x86-32 targets, you can use this attribute to control how
  24114. aggregates are returned in memory. If the caller is responsible
  24115. for popping the hidden pointer together with the rest of the
  24116. arguments, specify NUMBER equal to zero. If callee is responsible
  24117. for popping the hidden pointer, specify NUMBER equal to one.
  24118. The default x86-32 ABI assumes that the callee pops the stack for
  24119. hidden pointer. However, on x86-32 Microsoft Windows targets, the
  24120. compiler assumes that the caller pops the stack for hidden pointer.
  24121. 'ms_hook_prologue'
  24122. On 32-bit and 64-bit x86 targets, you can use this function
  24123. attribute to make GCC generate the "hot-patching" function prologue
  24124. used in Win32 API functions in Microsoft Windows XP Service Pack 2
  24125. and newer.
  24126. 'regparm (NUMBER)'
  24127. On x86-32 targets, the 'regparm' attribute causes the compiler to
  24128. pass arguments number one to NUMBER if they are of integral type in
  24129. registers EAX, EDX, and ECX instead of on the stack. Functions
  24130. that take a variable number of arguments continue to be passed all
  24131. of their arguments on the stack.
  24132. Beware that on some ELF systems this attribute is unsuitable for
  24133. global functions in shared libraries with lazy binding (which is
  24134. the default). Lazy binding sends the first call via resolving code
  24135. in the loader, which might assume EAX, EDX and ECX can be
  24136. clobbered, as per the standard calling conventions. Solaris 8 is
  24137. affected by this. Systems with the GNU C Library version 2.1 or
  24138. higher and FreeBSD are believed to be safe since the loaders there
  24139. save EAX, EDX and ECX. (Lazy binding can be disabled with the
  24140. linker or the loader if desired, to avoid the problem.)
  24141. 'sseregparm'
  24142. On x86-32 targets with SSE support, the 'sseregparm' attribute
  24143. causes the compiler to pass up to 3 floating-point arguments in SSE
  24144. registers instead of on the stack. Functions that take a variable
  24145. number of arguments continue to pass all of their floating-point
  24146. arguments on the stack.
  24147. 'force_align_arg_pointer'
  24148. On x86 targets, the 'force_align_arg_pointer' attribute may be
  24149. applied to individual function definitions, generating an alternate
  24150. prologue and epilogue that realigns the run-time stack if
  24151. necessary. This supports mixing legacy codes that run with a
  24152. 4-byte aligned stack with modern codes that keep a 16-byte stack
  24153. for SSE compatibility.
  24154. 'stdcall'
  24155. On x86-32 targets, the 'stdcall' attribute causes the compiler to
  24156. assume that the called function pops off the stack space used to
  24157. pass arguments, unless it takes a variable number of arguments.
  24158. 'no_caller_saved_registers'
  24159. Use this attribute to indicate that the specified function has no
  24160. caller-saved registers. That is, all registers are callee-saved.
  24161. For example, this attribute can be used for a function called from
  24162. an interrupt handler. The compiler generates proper function entry
  24163. and exit sequences to save and restore any modified registers,
  24164. except for the EFLAGS register. Since GCC doesn't preserve MPX,
  24165. SSE, MMX nor x87 states, the GCC option '-mgeneral-regs-only'
  24166. should be used to compile functions with
  24167. 'no_caller_saved_registers' attribute.
  24168. 'interrupt'
  24169. Use this attribute to indicate that the specified function is an
  24170. interrupt handler or an exception handler (depending on parameters
  24171. passed to the function, explained further). The compiler generates
  24172. function entry and exit sequences suitable for use in an interrupt
  24173. handler when this attribute is present. The 'IRET' instruction,
  24174. instead of the 'RET' instruction, is used to return from interrupt
  24175. handlers. All registers, except for the EFLAGS register which is
  24176. restored by the 'IRET' instruction, are preserved by the compiler.
  24177. Since GCC doesn't preserve MPX, SSE, MMX nor x87 states, the GCC
  24178. option '-mgeneral-regs-only' should be used to compile interrupt
  24179. and exception handlers.
  24180. Any interruptible-without-stack-switch code must be compiled with
  24181. '-mno-red-zone' since interrupt handlers can and will, because of
  24182. the hardware design, touch the red zone.
  24183. An interrupt handler must be declared with a mandatory pointer
  24184. argument:
  24185. struct interrupt_frame;
  24186. __attribute__ ((interrupt))
  24187. void
  24188. f (struct interrupt_frame *frame)
  24189. {
  24190. }
  24191. and you must define 'struct interrupt_frame' as described in the
  24192. processor's manual.
  24193. Exception handlers differ from interrupt handlers because the
  24194. system pushes an error code on the stack. An exception handler
  24195. declaration is similar to that for an interrupt handler, but with a
  24196. different mandatory function signature. The compiler arranges to
  24197. pop the error code off the stack before the 'IRET' instruction.
  24198. #ifdef __x86_64__
  24199. typedef unsigned long long int uword_t;
  24200. #else
  24201. typedef unsigned int uword_t;
  24202. #endif
  24203. struct interrupt_frame;
  24204. __attribute__ ((interrupt))
  24205. void
  24206. f (struct interrupt_frame *frame, uword_t error_code)
  24207. {
  24208. ...
  24209. }
  24210. Exception handlers should only be used for exceptions that push an
  24211. error code; you should use an interrupt handler in other cases.
  24212. The system will crash if the wrong kind of handler is used.
  24213. 'target (OPTIONS)'
  24214. As discussed in *note Common Function Attributes::, this attribute
  24215. allows specification of target-specific compilation options.
  24216. On the x86, the following options are allowed:
  24217. 'abm'
  24218. 'no-abm'
  24219. Enable/disable the generation of the advanced bit
  24220. instructions.
  24221. 'aes'
  24222. 'no-aes'
  24223. Enable/disable the generation of the AES instructions.
  24224. 'default'
  24225. *Note Function Multiversioning::, where it is used to specify
  24226. the default function version.
  24227. 'mmx'
  24228. 'no-mmx'
  24229. Enable/disable the generation of the MMX instructions.
  24230. 'pclmul'
  24231. 'no-pclmul'
  24232. Enable/disable the generation of the PCLMUL instructions.
  24233. 'popcnt'
  24234. 'no-popcnt'
  24235. Enable/disable the generation of the POPCNT instruction.
  24236. 'sse'
  24237. 'no-sse'
  24238. Enable/disable the generation of the SSE instructions.
  24239. 'sse2'
  24240. 'no-sse2'
  24241. Enable/disable the generation of the SSE2 instructions.
  24242. 'sse3'
  24243. 'no-sse3'
  24244. Enable/disable the generation of the SSE3 instructions.
  24245. 'sse4'
  24246. 'no-sse4'
  24247. Enable/disable the generation of the SSE4 instructions (both
  24248. SSE4.1 and SSE4.2).
  24249. 'sse4.1'
  24250. 'no-sse4.1'
  24251. Enable/disable the generation of the sse4.1 instructions.
  24252. 'sse4.2'
  24253. 'no-sse4.2'
  24254. Enable/disable the generation of the sse4.2 instructions.
  24255. 'sse4a'
  24256. 'no-sse4a'
  24257. Enable/disable the generation of the SSE4A instructions.
  24258. 'fma4'
  24259. 'no-fma4'
  24260. Enable/disable the generation of the FMA4 instructions.
  24261. 'xop'
  24262. 'no-xop'
  24263. Enable/disable the generation of the XOP instructions.
  24264. 'lwp'
  24265. 'no-lwp'
  24266. Enable/disable the generation of the LWP instructions.
  24267. 'ssse3'
  24268. 'no-ssse3'
  24269. Enable/disable the generation of the SSSE3 instructions.
  24270. 'cld'
  24271. 'no-cld'
  24272. Enable/disable the generation of the CLD before string moves.
  24273. 'fancy-math-387'
  24274. 'no-fancy-math-387'
  24275. Enable/disable the generation of the 'sin', 'cos', and 'sqrt'
  24276. instructions on the 387 floating-point unit.
  24277. 'ieee-fp'
  24278. 'no-ieee-fp'
  24279. Enable/disable the generation of floating point that depends
  24280. on IEEE arithmetic.
  24281. 'inline-all-stringops'
  24282. 'no-inline-all-stringops'
  24283. Enable/disable inlining of string operations.
  24284. 'inline-stringops-dynamically'
  24285. 'no-inline-stringops-dynamically'
  24286. Enable/disable the generation of the inline code to do small
  24287. string operations and calling the library routines for large
  24288. operations.
  24289. 'align-stringops'
  24290. 'no-align-stringops'
  24291. Do/do not align destination of inlined string operations.
  24292. 'recip'
  24293. 'no-recip'
  24294. Enable/disable the generation of RCPSS, RCPPS, RSQRTSS and
  24295. RSQRTPS instructions followed an additional Newton-Raphson
  24296. step instead of doing a floating-point division.
  24297. 'arch=ARCH'
  24298. Specify the architecture to generate code for in compiling the
  24299. function.
  24300. 'tune=TUNE'
  24301. Specify the architecture to tune for in compiling the
  24302. function.
  24303. 'fpmath=FPMATH'
  24304. Specify which floating-point unit to use. You must specify
  24305. the 'target("fpmath=sse,387")' option as
  24306. 'target("fpmath=sse+387")' because the comma would separate
  24307. different options.
  24308. 'indirect_branch("CHOICE")'
  24309. On x86 targets, the 'indirect_branch' attribute causes the
  24310. compiler to convert indirect call and jump with CHOICE.
  24311. 'keep' keeps indirect call and jump unmodified. 'thunk'
  24312. converts indirect call and jump to call and return thunk.
  24313. 'thunk-inline' converts indirect call and jump to inlined call
  24314. and return thunk. 'thunk-extern' converts indirect call and
  24315. jump to external call and return thunk provided in a separate
  24316. object file.
  24317. 'function_return("CHOICE")'
  24318. On x86 targets, the 'function_return' attribute causes the
  24319. compiler to convert function return with CHOICE. 'keep' keeps
  24320. function return unmodified. 'thunk' converts function return
  24321. to call and return thunk. 'thunk-inline' converts function
  24322. return to inlined call and return thunk. 'thunk-extern'
  24323. converts function return to external call and return thunk
  24324. provided in a separate object file.
  24325. On the x86, the inliner does not inline a function that has
  24326. different target options than the caller, unless the callee has a
  24327. subset of the target options of the caller. For example a function
  24328. declared with 'target("sse3")' can inline a function with
  24329. 'target("sse2")', since '-msse3' implies '-msse2'.
  24330. 
  24331. File: gcc.info, Node: Xstormy16 Function Attributes, Prev: x86 Function Attributes, Up: Function Attributes
  24332. 6.31.33 Xstormy16 Function Attributes
  24333. -------------------------------------
  24334. These function attributes are supported by the Xstormy16 back end:
  24335. 'interrupt'
  24336. Use this attribute to indicate that the specified function is an
  24337. interrupt handler. The compiler generates function entry and exit
  24338. sequences suitable for use in an interrupt handler when this
  24339. attribute is present.
  24340. 
  24341. File: gcc.info, Node: Variable Attributes, Next: Type Attributes, Prev: Function Attributes, Up: C Extensions
  24342. 6.32 Specifying Attributes of Variables
  24343. =======================================
  24344. The keyword '__attribute__' allows you to specify special attributes of
  24345. variables or structure fields. This keyword is followed by an attribute
  24346. specification inside double parentheses. Some attributes are currently
  24347. defined generically for variables. Other attributes are defined for
  24348. variables on particular target systems. Other attributes are available
  24349. for functions (*note Function Attributes::), labels (*note Label
  24350. Attributes::), enumerators (*note Enumerator Attributes::), statements
  24351. (*note Statement Attributes::), and for types (*note Type Attributes::).
  24352. Other front ends might define more attributes (*note Extensions to the
  24353. C++ Language: C++ Extensions.).
  24354. *Note Attribute Syntax::, for details of the exact syntax for using
  24355. attributes.
  24356. * Menu:
  24357. * Common Variable Attributes::
  24358. * AVR Variable Attributes::
  24359. * Blackfin Variable Attributes::
  24360. * H8/300 Variable Attributes::
  24361. * IA-64 Variable Attributes::
  24362. * M32R/D Variable Attributes::
  24363. * MeP Variable Attributes::
  24364. * Microsoft Windows Variable Attributes::
  24365. * MSP430 Variable Attributes::
  24366. * Nvidia PTX Variable Attributes::
  24367. * PowerPC Variable Attributes::
  24368. * RL78 Variable Attributes::
  24369. * SPU Variable Attributes::
  24370. * V850 Variable Attributes::
  24371. * x86 Variable Attributes::
  24372. * Xstormy16 Variable Attributes::
  24373. 
  24374. File: gcc.info, Node: Common Variable Attributes, Next: AVR Variable Attributes, Up: Variable Attributes
  24375. 6.32.1 Common Variable Attributes
  24376. ---------------------------------
  24377. The following attributes are supported on most targets.
  24378. 'aligned (ALIGNMENT)'
  24379. This attribute specifies a minimum alignment for the variable or
  24380. structure field, measured in bytes. For example, the declaration:
  24381. int x __attribute__ ((aligned (16))) = 0;
  24382. causes the compiler to allocate the global variable 'x' on a
  24383. 16-byte boundary. On a 68040, this could be used in conjunction
  24384. with an 'asm' expression to access the 'move16' instruction which
  24385. requires 16-byte aligned operands.
  24386. You can also specify the alignment of structure fields. For
  24387. example, to create a double-word aligned 'int' pair, you could
  24388. write:
  24389. struct foo { int x[2] __attribute__ ((aligned (8))); };
  24390. This is an alternative to creating a union with a 'double' member,
  24391. which forces the union to be double-word aligned.
  24392. As in the preceding examples, you can explicitly specify the
  24393. alignment (in bytes) that you wish the compiler to use for a given
  24394. variable or structure field. Alternatively, you can leave out the
  24395. alignment factor and just ask the compiler to align a variable or
  24396. field to the default alignment for the target architecture you are
  24397. compiling for. The default alignment is sufficient for all scalar
  24398. types, but may not be enough for all vector types on a target that
  24399. supports vector operations. The default alignment is fixed for a
  24400. particular target ABI.
  24401. GCC also provides a target specific macro '__BIGGEST_ALIGNMENT__',
  24402. which is the largest alignment ever used for any data type on the
  24403. target machine you are compiling for. For example, you could
  24404. write:
  24405. short array[3] __attribute__ ((aligned (__BIGGEST_ALIGNMENT__)));
  24406. The compiler automatically sets the alignment for the declared
  24407. variable or field to '__BIGGEST_ALIGNMENT__'. Doing this can often
  24408. make copy operations more efficient, because the compiler can use
  24409. whatever instructions copy the biggest chunks of memory when
  24410. performing copies to or from the variables or fields that you have
  24411. aligned this way. Note that the value of '__BIGGEST_ALIGNMENT__'
  24412. may change depending on command-line options.
  24413. When used on a struct, or struct member, the 'aligned' attribute
  24414. can only increase the alignment; in order to decrease it, the
  24415. 'packed' attribute must be specified as well. When used as part of
  24416. a typedef, the 'aligned' attribute can both increase and decrease
  24417. alignment, and specifying the 'packed' attribute generates a
  24418. warning.
  24419. Note that the effectiveness of 'aligned' attributes may be limited
  24420. by inherent limitations in your linker. On many systems, the
  24421. linker is only able to arrange for variables to be aligned up to a
  24422. certain maximum alignment. (For some linkers, the maximum
  24423. supported alignment may be very very small.) If your linker is
  24424. only able to align variables up to a maximum of 8-byte alignment,
  24425. then specifying 'aligned(16)' in an '__attribute__' still only
  24426. provides you with 8-byte alignment. See your linker documentation
  24427. for further information.
  24428. The 'aligned' attribute can also be used for functions (*note
  24429. Common Function Attributes::.)
  24430. 'cleanup (CLEANUP_FUNCTION)'
  24431. The 'cleanup' attribute runs a function when the variable goes out
  24432. of scope. This attribute can only be applied to auto function
  24433. scope variables; it may not be applied to parameters or variables
  24434. with static storage duration. The function must take one
  24435. parameter, a pointer to a type compatible with the variable. The
  24436. return value of the function (if any) is ignored.
  24437. If '-fexceptions' is enabled, then CLEANUP_FUNCTION is run during
  24438. the stack unwinding that happens during the processing of the
  24439. exception. Note that the 'cleanup' attribute does not allow the
  24440. exception to be caught, only to perform an action. It is undefined
  24441. what happens if CLEANUP_FUNCTION does not return normally.
  24442. 'common'
  24443. 'nocommon'
  24444. The 'common' attribute requests GCC to place a variable in "common"
  24445. storage. The 'nocommon' attribute requests the opposite--to
  24446. allocate space for it directly.
  24447. These attributes override the default chosen by the '-fno-common'
  24448. and '-fcommon' flags respectively.
  24449. 'deprecated'
  24450. 'deprecated (MSG)'
  24451. The 'deprecated' attribute results in a warning if the variable is
  24452. used anywhere in the source file. This is useful when identifying
  24453. variables that are expected to be removed in a future version of a
  24454. program. The warning also includes the location of the declaration
  24455. of the deprecated variable, to enable users to easily find further
  24456. information about why the variable is deprecated, or what they
  24457. should do instead. Note that the warning only occurs for uses:
  24458. extern int old_var __attribute__ ((deprecated));
  24459. extern int old_var;
  24460. int new_fn () { return old_var; }
  24461. results in a warning on line 3 but not line 2. The optional MSG
  24462. argument, which must be a string, is printed in the warning if
  24463. present.
  24464. The 'deprecated' attribute can also be used for functions and types
  24465. (*note Common Function Attributes::, *note Common Type
  24466. Attributes::).
  24467. 'mode (MODE)'
  24468. This attribute specifies the data type for the
  24469. declaration--whichever type corresponds to the mode MODE. This in
  24470. effect lets you request an integer or floating-point type according
  24471. to its width.
  24472. *Note (gccint)Machine Modes::, for a list of the possible keywords
  24473. for MODE. You may also specify a mode of 'byte' or '__byte__' to
  24474. indicate the mode corresponding to a one-byte integer, 'word' or
  24475. '__word__' for the mode of a one-word integer, and 'pointer' or
  24476. '__pointer__' for the mode used to represent pointers.
  24477. 'packed'
  24478. The 'packed' attribute specifies that a variable or structure field
  24479. should have the smallest possible alignment--one byte for a
  24480. variable, and one bit for a field, unless you specify a larger
  24481. value with the 'aligned' attribute.
  24482. Here is a structure in which the field 'x' is packed, so that it
  24483. immediately follows 'a':
  24484. struct foo
  24485. {
  24486. char a;
  24487. int x[2] __attribute__ ((packed));
  24488. };
  24489. _Note:_ The 4.1, 4.2 and 4.3 series of GCC ignore the 'packed'
  24490. attribute on bit-fields of type 'char'. This has been fixed in GCC
  24491. 4.4 but the change can lead to differences in the structure layout.
  24492. See the documentation of '-Wpacked-bitfield-compat' for more
  24493. information.
  24494. 'section ("SECTION-NAME")'
  24495. Normally, the compiler places the objects it generates in sections
  24496. like 'data' and 'bss'. Sometimes, however, you need additional
  24497. sections, or you need certain particular variables to appear in
  24498. special sections, for example to map to special hardware. The
  24499. 'section' attribute specifies that a variable (or function) lives
  24500. in a particular section. For example, this small program uses
  24501. several specific section names:
  24502. struct duart a __attribute__ ((section ("DUART_A"))) = { 0 };
  24503. struct duart b __attribute__ ((section ("DUART_B"))) = { 0 };
  24504. char stack[10000] __attribute__ ((section ("STACK"))) = { 0 };
  24505. int init_data __attribute__ ((section ("INITDATA")));
  24506. main()
  24507. {
  24508. /* Initialize stack pointer */
  24509. init_sp (stack + sizeof (stack));
  24510. /* Initialize initialized data */
  24511. memcpy (&init_data, &data, &edata - &data);
  24512. /* Turn on the serial ports */
  24513. init_duart (&a);
  24514. init_duart (&b);
  24515. }
  24516. Use the 'section' attribute with _global_ variables and not _local_
  24517. variables, as shown in the example.
  24518. You may use the 'section' attribute with initialized or
  24519. uninitialized global variables but the linker requires each object
  24520. be defined once, with the exception that uninitialized variables
  24521. tentatively go in the 'common' (or 'bss') section and can be
  24522. multiply "defined". Using the 'section' attribute changes what
  24523. section the variable goes into and may cause the linker to issue an
  24524. error if an uninitialized variable has multiple definitions. You
  24525. can force a variable to be initialized with the '-fno-common' flag
  24526. or the 'nocommon' attribute.
  24527. Some file formats do not support arbitrary sections so the
  24528. 'section' attribute is not available on all platforms. If you need
  24529. to map the entire contents of a module to a particular section,
  24530. consider using the facilities of the linker instead.
  24531. 'tls_model ("TLS_MODEL")'
  24532. The 'tls_model' attribute sets thread-local storage model (*note
  24533. Thread-Local::) of a particular '__thread' variable, overriding
  24534. '-ftls-model=' command-line switch on a per-variable basis. The
  24535. TLS_MODEL argument should be one of 'global-dynamic',
  24536. 'local-dynamic', 'initial-exec' or 'local-exec'.
  24537. Not all targets support this attribute.
  24538. 'unused'
  24539. This attribute, attached to a variable, means that the variable is
  24540. meant to be possibly unused. GCC does not produce a warning for
  24541. this variable.
  24542. 'used'
  24543. This attribute, attached to a variable with static storage, means
  24544. that the variable must be emitted even if it appears that the
  24545. variable is not referenced.
  24546. When applied to a static data member of a C++ class template, the
  24547. attribute also means that the member is instantiated if the class
  24548. itself is instantiated.
  24549. 'vector_size (BYTES)'
  24550. This attribute specifies the vector size for the variable, measured
  24551. in bytes. For example, the declaration:
  24552. int foo __attribute__ ((vector_size (16)));
  24553. causes the compiler to set the mode for 'foo', to be 16 bytes,
  24554. divided into 'int' sized units. Assuming a 32-bit int (a vector of
  24555. 4 units of 4 bytes), the corresponding mode of 'foo' is V4SI.
  24556. This attribute is only applicable to integral and float scalars,
  24557. although arrays, pointers, and function return values are allowed
  24558. in conjunction with this construct.
  24559. Aggregates with this attribute are invalid, even if they are of the
  24560. same size as a corresponding scalar. For example, the declaration:
  24561. struct S { int a; };
  24562. struct S __attribute__ ((vector_size (16))) foo;
  24563. is invalid even if the size of the structure is the same as the
  24564. size of the 'int'.
  24565. 'visibility ("VISIBILITY_TYPE")'
  24566. This attribute affects the linkage of the declaration to which it
  24567. is attached. The 'visibility' attribute is described in *note
  24568. Common Function Attributes::.
  24569. 'weak'
  24570. The 'weak' attribute is described in *note Common Function
  24571. Attributes::.
  24572. 
  24573. File: gcc.info, Node: AVR Variable Attributes, Next: Blackfin Variable Attributes, Prev: Common Variable Attributes, Up: Variable Attributes
  24574. 6.32.2 AVR Variable Attributes
  24575. ------------------------------
  24576. 'progmem'
  24577. The 'progmem' attribute is used on the AVR to place read-only data
  24578. in the non-volatile program memory (flash). The 'progmem'
  24579. attribute accomplishes this by putting respective variables into a
  24580. section whose name starts with '.progmem'.
  24581. This attribute works similar to the 'section' attribute but adds
  24582. additional checking.
  24583. * Ordinary AVR cores with 32 general purpose registers:
  24584. 'progmem' affects the location of the data but not how this
  24585. data is accessed. In order to read data located with the
  24586. 'progmem' attribute (inline) assembler must be used.
  24587. /* Use custom macros from AVR-LibC (http://nongnu.org/avr-libc/user-manual/) */
  24588. #include <avr/pgmspace.h>
  24589. /* Locate var in flash memory */
  24590. const int var[2] PROGMEM = { 1, 2 };
  24591. int read_var (int i)
  24592. {
  24593. /* Access var[] by accessor macro from avr/pgmspace.h */
  24594. return (int) pgm_read_word (& var[i]);
  24595. }
  24596. AVR is a Harvard architecture processor and data and read-only
  24597. data normally resides in the data memory (RAM).
  24598. See also the *note AVR Named Address Spaces:: section for an
  24599. alternate way to locate and access data in flash memory.
  24600. * Reduced AVR Tiny cores like ATtiny40:
  24601. The compiler adds '0x4000' to the addresses of objects and
  24602. declarations in 'progmem' and locates the objects in flash
  24603. memory, namely in section '.progmem.data'. The offset is
  24604. needed because the flash memory is visible in the RAM address
  24605. space starting at address '0x4000'.
  24606. Data in 'progmem' can be accessed by means of ordinary C code,
  24607. no special functions or macros are needed.
  24608. /* var is located in flash memory */
  24609. extern const int var[2] __attribute__((progmem));
  24610. int read_var (int i)
  24611. {
  24612. return var[i];
  24613. }
  24614. Please notice that on these devices, there is no need for
  24615. 'progmem' at all. Just use an appropriate linker description
  24616. file like outlined below.
  24617. .text :
  24618. { ...
  24619. } > text
  24620. /* Leave .rodata in flash and add an offset of 0x4000 to all
  24621. addresses so that respective objects can be accessed by
  24622. LD instructions and open coded C/C++. This means there
  24623. is no need for progmem in the source and no overhead by
  24624. read-only data in RAM. */
  24625. .rodata ADDR(.text) + SIZEOF (.text) + 0x4000 :
  24626. {
  24627. *(.rodata)
  24628. *(.rodata*)
  24629. *(.gnu.linkonce.r*)
  24630. } AT> text
  24631. /* No more need to put .rodata into .data:
  24632. Removed all .rodata entries from .data. */
  24633. .data :
  24634. { ...
  24635. 'io'
  24636. 'io (ADDR)'
  24637. Variables with the 'io' attribute are used to address memory-mapped
  24638. peripherals in the io address range. If an address is specified,
  24639. the variable is assigned that address, and the value is interpreted
  24640. as an address in the data address space. Example:
  24641. volatile int porta __attribute__((io (0x22)));
  24642. The address specified in the address in the data address range.
  24643. Otherwise, the variable it is not assigned an address, but the
  24644. compiler will still use in/out instructions where applicable,
  24645. assuming some other module assigns an address in the io address
  24646. range. Example:
  24647. extern volatile int porta __attribute__((io));
  24648. 'io_low'
  24649. 'io_low (ADDR)'
  24650. This is like the 'io' attribute, but additionally it informs the
  24651. compiler that the object lies in the lower half of the I/O area,
  24652. allowing the use of 'cbi', 'sbi', 'sbic' and 'sbis' instructions.
  24653. 'address'
  24654. 'address (ADDR)'
  24655. Variables with the 'address' attribute are used to address
  24656. memory-mapped peripherals that may lie outside the io address
  24657. range.
  24658. volatile int porta __attribute__((address (0x600)));
  24659. 'absdata'
  24660. Variables in static storage and with the 'absdata' attribute can be
  24661. accessed by the 'LDS' and 'STS' instructions which take absolute
  24662. addresses.
  24663. * This attribute is only supported for the reduced AVR Tiny core
  24664. like ATtiny40.
  24665. * You must make sure that respective data is located in the
  24666. address range '0x40'...'0xbf' accessible by 'LDS' and 'STS'.
  24667. One way to achieve this as an appropriate linker description
  24668. file.
  24669. * If the location does not fit the address range of 'LDS' and
  24670. 'STS', there is currently (Binutils 2.26) just an unspecific
  24671. warning like
  24672. 'module.c:(.text+0x1c): warning: internal error: out of
  24673. range error'
  24674. See also the '-mabsdata' *note command-line option: AVR Options.
  24675. 
  24676. File: gcc.info, Node: Blackfin Variable Attributes, Next: H8/300 Variable Attributes, Prev: AVR Variable Attributes, Up: Variable Attributes
  24677. 6.32.3 Blackfin Variable Attributes
  24678. -----------------------------------
  24679. Three attributes are currently defined for the Blackfin.
  24680. 'l1_data'
  24681. 'l1_data_A'
  24682. 'l1_data_B'
  24683. Use these attributes on the Blackfin to place the variable into L1
  24684. Data SRAM. Variables with 'l1_data' attribute are put into the
  24685. specific section named '.l1.data'. Those with 'l1_data_A'
  24686. attribute are put into the specific section named '.l1.data.A'.
  24687. Those with 'l1_data_B' attribute are put into the specific section
  24688. named '.l1.data.B'.
  24689. 'l2'
  24690. Use this attribute on the Blackfin to place the variable into L2
  24691. SRAM. Variables with 'l2' attribute are put into the specific
  24692. section named '.l2.data'.
  24693. 
  24694. File: gcc.info, Node: H8/300 Variable Attributes, Next: IA-64 Variable Attributes, Prev: Blackfin Variable Attributes, Up: Variable Attributes
  24695. 6.32.4 H8/300 Variable Attributes
  24696. ---------------------------------
  24697. These variable attributes are available for H8/300 targets:
  24698. 'eightbit_data'
  24699. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  24700. the specified variable should be placed into the eight-bit data
  24701. section. The compiler generates more efficient code for certain
  24702. operations on data in the eight-bit data area. Note the eight-bit
  24703. data area is limited to 256 bytes of data.
  24704. You must use GAS and GLD from GNU binutils version 2.7 or later for
  24705. this attribute to work correctly.
  24706. 'tiny_data'
  24707. Use this attribute on the H8/300H and H8S to indicate that the
  24708. specified variable should be placed into the tiny data section.
  24709. The compiler generates more efficient code for loads and stores on
  24710. data in the tiny data section. Note the tiny data area is limited
  24711. to slightly under 32KB of data.
  24712. 
  24713. File: gcc.info, Node: IA-64 Variable Attributes, Next: M32R/D Variable Attributes, Prev: H8/300 Variable Attributes, Up: Variable Attributes
  24714. 6.32.5 IA-64 Variable Attributes
  24715. --------------------------------
  24716. The IA-64 back end supports the following variable attribute:
  24717. 'model (MODEL-NAME)'
  24718. On IA-64, use this attribute to set the addressability of an
  24719. object. At present, the only supported identifier for MODEL-NAME
  24720. is 'small', indicating addressability via "small" (22-bit)
  24721. addresses (so that their addresses can be loaded with the 'addl'
  24722. instruction). Caveat: such addressing is by definition not
  24723. position independent and hence this attribute must not be used for
  24724. objects defined by shared libraries.
  24725. 
  24726. File: gcc.info, Node: M32R/D Variable Attributes, Next: MeP Variable Attributes, Prev: IA-64 Variable Attributes, Up: Variable Attributes
  24727. 6.32.6 M32R/D Variable Attributes
  24728. ---------------------------------
  24729. One attribute is currently defined for the M32R/D.
  24730. 'model (MODEL-NAME)'
  24731. Use this attribute on the M32R/D to set the addressability of an
  24732. object. The identifier MODEL-NAME is one of 'small', 'medium', or
  24733. 'large', representing each of the code models.
  24734. Small model objects live in the lower 16MB of memory (so that their
  24735. addresses can be loaded with the 'ld24' instruction).
  24736. Medium and large model objects may live anywhere in the 32-bit
  24737. address space (the compiler generates 'seth/add3' instructions to
  24738. load their addresses).
  24739. 
  24740. File: gcc.info, Node: MeP Variable Attributes, Next: Microsoft Windows Variable Attributes, Prev: M32R/D Variable Attributes, Up: Variable Attributes
  24741. 6.32.7 MeP Variable Attributes
  24742. ------------------------------
  24743. The MeP target has a number of addressing modes and busses. The 'near'
  24744. space spans the standard memory space's first 16 megabytes (24 bits).
  24745. The 'far' space spans the entire 32-bit memory space. The 'based' space
  24746. is a 128-byte region in the memory space that is addressed relative to
  24747. the '$tp' register. The 'tiny' space is a 65536-byte region relative to
  24748. the '$gp' register. In addition to these memory regions, the MeP target
  24749. has a separate 16-bit control bus which is specified with 'cb'
  24750. attributes.
  24751. 'based'
  24752. Any variable with the 'based' attribute is assigned to the '.based'
  24753. section, and is accessed with relative to the '$tp' register.
  24754. 'tiny'
  24755. Likewise, the 'tiny' attribute assigned variables to the '.tiny'
  24756. section, relative to the '$gp' register.
  24757. 'near'
  24758. Variables with the 'near' attribute are assumed to have addresses
  24759. that fit in a 24-bit addressing mode. This is the default for
  24760. large variables ('-mtiny=4' is the default) but this attribute can
  24761. override '-mtiny=' for small variables, or override '-ml'.
  24762. 'far'
  24763. Variables with the 'far' attribute are addressed using a full
  24764. 32-bit address. Since this covers the entire memory space, this
  24765. allows modules to make no assumptions about where variables might
  24766. be stored.
  24767. 'io'
  24768. 'io (ADDR)'
  24769. Variables with the 'io' attribute are used to address memory-mapped
  24770. peripherals. If an address is specified, the variable is assigned
  24771. that address, else it is not assigned an address (it is assumed
  24772. some other module assigns an address). Example:
  24773. int timer_count __attribute__((io(0x123)));
  24774. 'cb'
  24775. 'cb (ADDR)'
  24776. Variables with the 'cb' attribute are used to access the control
  24777. bus, using special instructions. 'addr' indicates the control bus
  24778. address. Example:
  24779. int cpu_clock __attribute__((cb(0x123)));
  24780. 
  24781. File: gcc.info, Node: Microsoft Windows Variable Attributes, Next: MSP430 Variable Attributes, Prev: MeP Variable Attributes, Up: Variable Attributes
  24782. 6.32.8 Microsoft Windows Variable Attributes
  24783. --------------------------------------------
  24784. You can use these attributes on Microsoft Windows targets. *note x86
  24785. Variable Attributes:: for additional Windows compatibility attributes
  24786. available on all x86 targets.
  24787. 'dllimport'
  24788. 'dllexport'
  24789. The 'dllimport' and 'dllexport' attributes are described in *note
  24790. Microsoft Windows Function Attributes::.
  24791. 'selectany'
  24792. The 'selectany' attribute causes an initialized global variable to
  24793. have link-once semantics. When multiple definitions of the
  24794. variable are encountered by the linker, the first is selected and
  24795. the remainder are discarded. Following usage by the Microsoft
  24796. compiler, the linker is told _not_ to warn about size or content
  24797. differences of the multiple definitions.
  24798. Although the primary usage of this attribute is for POD types, the
  24799. attribute can also be applied to global C++ objects that are
  24800. initialized by a constructor. In this case, the static
  24801. initialization and destruction code for the object is emitted in
  24802. each translation defining the object, but the calls to the
  24803. constructor and destructor are protected by a link-once guard
  24804. variable.
  24805. The 'selectany' attribute is only available on Microsoft Windows
  24806. targets. You can use '__declspec (selectany)' as a synonym for
  24807. '__attribute__ ((selectany))' for compatibility with other
  24808. compilers.
  24809. 'shared'
  24810. On Microsoft Windows, in addition to putting variable definitions
  24811. in a named section, the section can also be shared among all
  24812. running copies of an executable or DLL. For example, this small
  24813. program defines shared data by putting it in a named section
  24814. 'shared' and marking the section shareable:
  24815. int foo __attribute__((section ("shared"), shared)) = 0;
  24816. int
  24817. main()
  24818. {
  24819. /* Read and write foo. All running
  24820. copies see the same value. */
  24821. return 0;
  24822. }
  24823. You may only use the 'shared' attribute along with 'section'
  24824. attribute with a fully-initialized global definition because of the
  24825. way linkers work. See 'section' attribute for more information.
  24826. The 'shared' attribute is only available on Microsoft Windows.
  24827. 
  24828. File: gcc.info, Node: MSP430 Variable Attributes, Next: Nvidia PTX Variable Attributes, Prev: Microsoft Windows Variable Attributes, Up: Variable Attributes
  24829. 6.32.9 MSP430 Variable Attributes
  24830. ---------------------------------
  24831. 'noinit'
  24832. Any data with the 'noinit' attribute will not be initialised by the
  24833. C runtime startup code, or the program loader. Not initialising
  24834. data in this way can reduce program startup times.
  24835. 'persistent'
  24836. Any variable with the 'persistent' attribute will not be
  24837. initialised by the C runtime startup code. Instead its value will
  24838. be set once, when the application is loaded, and then never
  24839. initialised again, even if the processor is reset or the program
  24840. restarts. Persistent data is intended to be placed into FLASH RAM,
  24841. where its value will be retained across resets. The linker script
  24842. being used to create the application should ensure that persistent
  24843. data is correctly placed.
  24844. 'lower'
  24845. 'upper'
  24846. 'either'
  24847. These attributes are the same as the MSP430 function attributes of
  24848. the same name (*note MSP430 Function Attributes::). These
  24849. attributes can be applied to both functions and variables.
  24850. 
  24851. File: gcc.info, Node: Nvidia PTX Variable Attributes, Next: PowerPC Variable Attributes, Prev: MSP430 Variable Attributes, Up: Variable Attributes
  24852. 6.32.10 Nvidia PTX Variable Attributes
  24853. --------------------------------------
  24854. These variable attributes are supported by the Nvidia PTX back end:
  24855. 'shared'
  24856. Use this attribute to place a variable in the '.shared' memory
  24857. space. This memory space is private to each cooperative thread
  24858. array; only threads within one thread block refer to the same
  24859. instance of the variable. The runtime does not initialize
  24860. variables in this memory space.
  24861. 
  24862. File: gcc.info, Node: PowerPC Variable Attributes, Next: RL78 Variable Attributes, Prev: Nvidia PTX Variable Attributes, Up: Variable Attributes
  24863. 6.32.11 PowerPC Variable Attributes
  24864. -----------------------------------
  24865. Three attributes currently are defined for PowerPC configurations:
  24866. 'altivec', 'ms_struct' and 'gcc_struct'.
  24867. For full documentation of the struct attributes please see the
  24868. documentation in *note x86 Variable Attributes::.
  24869. For documentation of 'altivec' attribute please see the documentation
  24870. in *note PowerPC Type Attributes::.
  24871. 
  24872. File: gcc.info, Node: RL78 Variable Attributes, Next: SPU Variable Attributes, Prev: PowerPC Variable Attributes, Up: Variable Attributes
  24873. 6.32.12 RL78 Variable Attributes
  24874. --------------------------------
  24875. The RL78 back end supports the 'saddr' variable attribute. This
  24876. specifies placement of the corresponding variable in the SADDR area,
  24877. which can be accessed more efficiently than the default memory region.
  24878. 
  24879. File: gcc.info, Node: SPU Variable Attributes, Next: V850 Variable Attributes, Prev: RL78 Variable Attributes, Up: Variable Attributes
  24880. 6.32.13 SPU Variable Attributes
  24881. -------------------------------
  24882. The SPU supports the 'spu_vector' attribute for variables. For
  24883. documentation of this attribute please see the documentation in *note
  24884. SPU Type Attributes::.
  24885. 
  24886. File: gcc.info, Node: V850 Variable Attributes, Next: x86 Variable Attributes, Prev: SPU Variable Attributes, Up: Variable Attributes
  24887. 6.32.14 V850 Variable Attributes
  24888. --------------------------------
  24889. These variable attributes are supported by the V850 back end:
  24890. 'sda'
  24891. Use this attribute to explicitly place a variable in the small data
  24892. area, which can hold up to 64 kilobytes.
  24893. 'tda'
  24894. Use this attribute to explicitly place a variable in the tiny data
  24895. area, which can hold up to 256 bytes in total.
  24896. 'zda'
  24897. Use this attribute to explicitly place a variable in the first 32
  24898. kilobytes of memory.
  24899. 
  24900. File: gcc.info, Node: x86 Variable Attributes, Next: Xstormy16 Variable Attributes, Prev: V850 Variable Attributes, Up: Variable Attributes
  24901. 6.32.15 x86 Variable Attributes
  24902. -------------------------------
  24903. Two attributes are currently defined for x86 configurations: 'ms_struct'
  24904. and 'gcc_struct'.
  24905. 'ms_struct'
  24906. 'gcc_struct'
  24907. If 'packed' is used on a structure, or if bit-fields are used, it
  24908. may be that the Microsoft ABI lays out the structure differently
  24909. than the way GCC normally does. Particularly when moving packed
  24910. data between functions compiled with GCC and the native Microsoft
  24911. compiler (either via function call or as data in a file), it may be
  24912. necessary to access either format.
  24913. The 'ms_struct' and 'gcc_struct' attributes correspond to the
  24914. '-mms-bitfields' and '-mno-ms-bitfields' command-line options,
  24915. respectively; see *note x86 Options::, for details of how structure
  24916. layout is affected. *Note x86 Type Attributes::, for information
  24917. about the corresponding attributes on types.
  24918. 
  24919. File: gcc.info, Node: Xstormy16 Variable Attributes, Prev: x86 Variable Attributes, Up: Variable Attributes
  24920. 6.32.16 Xstormy16 Variable Attributes
  24921. -------------------------------------
  24922. One attribute is currently defined for xstormy16 configurations:
  24923. 'below100'.
  24924. 'below100'
  24925. If a variable has the 'below100' attribute ('BELOW100' is allowed
  24926. also), GCC places the variable in the first 0x100 bytes of memory
  24927. and use special opcodes to access it. Such variables are placed in
  24928. either the '.bss_below100' section or the '.data_below100' section.
  24929. 
  24930. File: gcc.info, Node: Type Attributes, Next: Label Attributes, Prev: Variable Attributes, Up: C Extensions
  24931. 6.33 Specifying Attributes of Types
  24932. ===================================
  24933. The keyword '__attribute__' allows you to specify special attributes of
  24934. types. Some type attributes apply only to 'struct' and 'union' types,
  24935. while others can apply to any type defined via a 'typedef' declaration.
  24936. Other attributes are defined for functions (*note Function
  24937. Attributes::), labels (*note Label Attributes::), enumerators (*note
  24938. Enumerator Attributes::), statements (*note Statement Attributes::), and
  24939. for variables (*note Variable Attributes::).
  24940. The '__attribute__' keyword is followed by an attribute specification
  24941. inside double parentheses.
  24942. You may specify type attributes in an enum, struct or union type
  24943. declaration or definition by placing them immediately after the
  24944. 'struct', 'union' or 'enum' keyword. A less preferred syntax is to
  24945. place them just past the closing curly brace of the definition.
  24946. You can also include type attributes in a 'typedef' declaration. *Note
  24947. Attribute Syntax::, for details of the exact syntax for using
  24948. attributes.
  24949. * Menu:
  24950. * Common Type Attributes::
  24951. * ARM Type Attributes::
  24952. * MeP Type Attributes::
  24953. * PowerPC Type Attributes::
  24954. * SPU Type Attributes::
  24955. * x86 Type Attributes::
  24956. 
  24957. File: gcc.info, Node: Common Type Attributes, Next: ARM Type Attributes, Up: Type Attributes
  24958. 6.33.1 Common Type Attributes
  24959. -----------------------------
  24960. The following type attributes are supported on most targets.
  24961. 'aligned (ALIGNMENT)'
  24962. This attribute specifies a minimum alignment (in bytes) for
  24963. variables of the specified type. For example, the declarations:
  24964. struct S { short f[3]; } __attribute__ ((aligned (8)));
  24965. typedef int more_aligned_int __attribute__ ((aligned (8)));
  24966. force the compiler to ensure (as far as it can) that each variable
  24967. whose type is 'struct S' or 'more_aligned_int' is allocated and
  24968. aligned _at least_ on a 8-byte boundary. On a SPARC, having all
  24969. variables of type 'struct S' aligned to 8-byte boundaries allows
  24970. the compiler to use the 'ldd' and 'std' (doubleword load and store)
  24971. instructions when copying one variable of type 'struct S' to
  24972. another, thus improving run-time efficiency.
  24973. Note that the alignment of any given 'struct' or 'union' type is
  24974. required by the ISO C standard to be at least a perfect multiple of
  24975. the lowest common multiple of the alignments of all of the members
  24976. of the 'struct' or 'union' in question. This means that you _can_
  24977. effectively adjust the alignment of a 'struct' or 'union' type by
  24978. attaching an 'aligned' attribute to any one of the members of such
  24979. a type, but the notation illustrated in the example above is a more
  24980. obvious, intuitive, and readable way to request the compiler to
  24981. adjust the alignment of an entire 'struct' or 'union' type.
  24982. As in the preceding example, you can explicitly specify the
  24983. alignment (in bytes) that you wish the compiler to use for a given
  24984. 'struct' or 'union' type. Alternatively, you can leave out the
  24985. alignment factor and just ask the compiler to align a type to the
  24986. maximum useful alignment for the target machine you are compiling
  24987. for. For example, you could write:
  24988. struct S { short f[3]; } __attribute__ ((aligned));
  24989. Whenever you leave out the alignment factor in an 'aligned'
  24990. attribute specification, the compiler automatically sets the
  24991. alignment for the type to the largest alignment that is ever used
  24992. for any data type on the target machine you are compiling for.
  24993. Doing this can often make copy operations more efficient, because
  24994. the compiler can use whatever instructions copy the biggest chunks
  24995. of memory when performing copies to or from the variables that have
  24996. types that you have aligned this way.
  24997. In the example above, if the size of each 'short' is 2 bytes, then
  24998. the size of the entire 'struct S' type is 6 bytes. The smallest
  24999. power of two that is greater than or equal to that is 8, so the
  25000. compiler sets the alignment for the entire 'struct S' type to 8
  25001. bytes.
  25002. Note that although you can ask the compiler to select a
  25003. time-efficient alignment for a given type and then declare only
  25004. individual stand-alone objects of that type, the compiler's ability
  25005. to select a time-efficient alignment is primarily useful only when
  25006. you plan to create arrays of variables having the relevant
  25007. (efficiently aligned) type. If you declare or use arrays of
  25008. variables of an efficiently-aligned type, then it is likely that
  25009. your program also does pointer arithmetic (or subscripting, which
  25010. amounts to the same thing) on pointers to the relevant type, and
  25011. the code that the compiler generates for these pointer arithmetic
  25012. operations is often more efficient for efficiently-aligned types
  25013. than for other types.
  25014. Note that the effectiveness of 'aligned' attributes may be limited
  25015. by inherent limitations in your linker. On many systems, the
  25016. linker is only able to arrange for variables to be aligned up to a
  25017. certain maximum alignment. (For some linkers, the maximum
  25018. supported alignment may be very very small.) If your linker is
  25019. only able to align variables up to a maximum of 8-byte alignment,
  25020. then specifying 'aligned(16)' in an '__attribute__' still only
  25021. provides you with 8-byte alignment. See your linker documentation
  25022. for further information.
  25023. The 'aligned' attribute can only increase alignment. Alignment can
  25024. be decreased by specifying the 'packed' attribute. See below.
  25025. 'bnd_variable_size'
  25026. When applied to a structure field, this attribute tells Pointer
  25027. Bounds Checker that the size of this field should not be computed
  25028. using static type information. It may be used to mark
  25029. variably-sized static array fields placed at the end of a
  25030. structure.
  25031. struct S
  25032. {
  25033. int size;
  25034. char data[1];
  25035. }
  25036. S *p = (S *)malloc (sizeof(S) + 100);
  25037. p->data[10] = 0; //Bounds violation
  25038. By using an attribute for the field we may avoid unwanted bound
  25039. violation checks:
  25040. struct S
  25041. {
  25042. int size;
  25043. char data[1] __attribute__((bnd_variable_size));
  25044. }
  25045. S *p = (S *)malloc (sizeof(S) + 100);
  25046. p->data[10] = 0; //OK
  25047. 'deprecated'
  25048. 'deprecated (MSG)'
  25049. The 'deprecated' attribute results in a warning if the type is used
  25050. anywhere in the source file. This is useful when identifying types
  25051. that are expected to be removed in a future version of a program.
  25052. If possible, the warning also includes the location of the
  25053. declaration of the deprecated type, to enable users to easily find
  25054. further information about why the type is deprecated, or what they
  25055. should do instead. Note that the warnings only occur for uses and
  25056. then only if the type is being applied to an identifier that itself
  25057. is not being declared as deprecated.
  25058. typedef int T1 __attribute__ ((deprecated));
  25059. T1 x;
  25060. typedef T1 T2;
  25061. T2 y;
  25062. typedef T1 T3 __attribute__ ((deprecated));
  25063. T3 z __attribute__ ((deprecated));
  25064. results in a warning on line 2 and 3 but not lines 4, 5, or 6. No
  25065. warning is issued for line 4 because T2 is not explicitly
  25066. deprecated. Line 5 has no warning because T3 is explicitly
  25067. deprecated. Similarly for line 6. The optional MSG argument,
  25068. which must be a string, is printed in the warning if present.
  25069. The 'deprecated' attribute can also be used for functions and
  25070. variables (*note Function Attributes::, *note Variable
  25071. Attributes::.)
  25072. 'designated_init'
  25073. This attribute may only be applied to structure types. It
  25074. indicates that any initialization of an object of this type must
  25075. use designated initializers rather than positional initializers.
  25076. The intent of this attribute is to allow the programmer to indicate
  25077. that a structure's layout may change, and that therefore relying on
  25078. positional initialization will result in future breakage.
  25079. GCC emits warnings based on this attribute by default; use
  25080. '-Wno-designated-init' to suppress them.
  25081. 'may_alias'
  25082. Accesses through pointers to types with this attribute are not
  25083. subject to type-based alias analysis, but are instead assumed to be
  25084. able to alias any other type of objects. In the context of section
  25085. 6.5 paragraph 7 of the C99 standard, an lvalue expression
  25086. dereferencing such a pointer is treated like having a character
  25087. type. See '-fstrict-aliasing' for more information on aliasing
  25088. issues. This extension exists to support some vector APIs, in
  25089. which pointers to one vector type are permitted to alias pointers
  25090. to a different vector type.
  25091. Note that an object of a type with this attribute does not have any
  25092. special semantics.
  25093. Example of use:
  25094. typedef short __attribute__((__may_alias__)) short_a;
  25095. int
  25096. main (void)
  25097. {
  25098. int a = 0x12345678;
  25099. short_a *b = (short_a *) &a;
  25100. b[1] = 0;
  25101. if (a == 0x12345678)
  25102. abort();
  25103. exit(0);
  25104. }
  25105. If you replaced 'short_a' with 'short' in the variable declaration,
  25106. the above program would abort when compiled with
  25107. '-fstrict-aliasing', which is on by default at '-O2' or above.
  25108. 'packed'
  25109. This attribute, attached to 'struct' or 'union' type definition,
  25110. specifies that each member (other than zero-width bit-fields) of
  25111. the structure or union is placed to minimize the memory required.
  25112. When attached to an 'enum' definition, it indicates that the
  25113. smallest integral type should be used.
  25114. Specifying the 'packed' attribute for 'struct' and 'union' types is
  25115. equivalent to specifying the 'packed' attribute on each of the
  25116. structure or union members. Specifying the '-fshort-enums' flag on
  25117. the command line is equivalent to specifying the 'packed' attribute
  25118. on all 'enum' definitions.
  25119. In the following example 'struct my_packed_struct''s members are
  25120. packed closely together, but the internal layout of its 's' member
  25121. is not packed--to do that, 'struct my_unpacked_struct' needs to be
  25122. packed too.
  25123. struct my_unpacked_struct
  25124. {
  25125. char c;
  25126. int i;
  25127. };
  25128. struct __attribute__ ((__packed__)) my_packed_struct
  25129. {
  25130. char c;
  25131. int i;
  25132. struct my_unpacked_struct s;
  25133. };
  25134. You may only specify the 'packed' attribute attribute on the
  25135. definition of an 'enum', 'struct' or 'union', not on a 'typedef'
  25136. that does not also define the enumerated type, structure or union.
  25137. 'scalar_storage_order ("ENDIANNESS")'
  25138. When attached to a 'union' or a 'struct', this attribute sets the
  25139. storage order, aka endianness, of the scalar fields of the type, as
  25140. well as the array fields whose component is scalar. The supported
  25141. endiannesses are 'big-endian' and 'little-endian'. The attribute
  25142. has no effects on fields which are themselves a 'union', a 'struct'
  25143. or an array whose component is a 'union' or a 'struct', and it is
  25144. possible for these fields to have a different scalar storage order
  25145. than the enclosing type.
  25146. This attribute is supported only for targets that use a uniform
  25147. default scalar storage order (fortunately, most of them), i.e.
  25148. targets that store the scalars either all in big-endian or all in
  25149. little-endian.
  25150. Additional restrictions are enforced for types with the reverse
  25151. scalar storage order with regard to the scalar storage order of the
  25152. target:
  25153. * Taking the address of a scalar field of a 'union' or a
  25154. 'struct' with reverse scalar storage order is not permitted
  25155. and yields an error.
  25156. * Taking the address of an array field, whose component is
  25157. scalar, of a 'union' or a 'struct' with reverse scalar storage
  25158. order is permitted but yields a warning, unless
  25159. '-Wno-scalar-storage-order' is specified.
  25160. * Taking the address of a 'union' or a 'struct' with reverse
  25161. scalar storage order is permitted.
  25162. These restrictions exist because the storage order attribute is
  25163. lost when the address of a scalar or the address of an array with
  25164. scalar component is taken, so storing indirectly through this
  25165. address generally does not work. The second case is nevertheless
  25166. allowed to be able to perform a block copy from or to the array.
  25167. Moreover, the use of type punning or aliasing to toggle the storage
  25168. order is not supported; that is to say, a given scalar object
  25169. cannot be accessed through distinct types that assign a different
  25170. storage order to it.
  25171. 'transparent_union'
  25172. This attribute, attached to a 'union' type definition, indicates
  25173. that any function parameter having that union type causes calls to
  25174. that function to be treated in a special way.
  25175. First, the argument corresponding to a transparent union type can
  25176. be of any type in the union; no cast is required. Also, if the
  25177. union contains a pointer type, the corresponding argument can be a
  25178. null pointer constant or a void pointer expression; and if the
  25179. union contains a void pointer type, the corresponding argument can
  25180. be any pointer expression. If the union member type is a pointer,
  25181. qualifiers like 'const' on the referenced type must be respected,
  25182. just as with normal pointer conversions.
  25183. Second, the argument is passed to the function using the calling
  25184. conventions of the first member of the transparent union, not the
  25185. calling conventions of the union itself. All members of the union
  25186. must have the same machine representation; this is necessary for
  25187. this argument passing to work properly.
  25188. Transparent unions are designed for library functions that have
  25189. multiple interfaces for compatibility reasons. For example,
  25190. suppose the 'wait' function must accept either a value of type 'int
  25191. *' to comply with POSIX, or a value of type 'union wait *' to
  25192. comply with the 4.1BSD interface. If 'wait''s parameter were 'void
  25193. *', 'wait' would accept both kinds of arguments, but it would also
  25194. accept any other pointer type and this would make argument type
  25195. checking less useful. Instead, '<sys/wait.h>' might define the
  25196. interface as follows:
  25197. typedef union __attribute__ ((__transparent_union__))
  25198. {
  25199. int *__ip;
  25200. union wait *__up;
  25201. } wait_status_ptr_t;
  25202. pid_t wait (wait_status_ptr_t);
  25203. This interface allows either 'int *' or 'union wait *' arguments to
  25204. be passed, using the 'int *' calling convention. The program can
  25205. call 'wait' with arguments of either type:
  25206. int w1 () { int w; return wait (&w); }
  25207. int w2 () { union wait w; return wait (&w); }
  25208. With this interface, 'wait''s implementation might look like this:
  25209. pid_t wait (wait_status_ptr_t p)
  25210. {
  25211. return waitpid (-1, p.__ip, 0);
  25212. }
  25213. 'unused'
  25214. When attached to a type (including a 'union' or a 'struct'), this
  25215. attribute means that variables of that type are meant to appear
  25216. possibly unused. GCC does not produce a warning for any variables
  25217. of that type, even if the variable appears to do nothing. This is
  25218. often the case with lock or thread classes, which are usually
  25219. defined and then not referenced, but contain constructors and
  25220. destructors that have nontrivial bookkeeping functions.
  25221. 'visibility'
  25222. In C++, attribute visibility (*note Function Attributes::) can also
  25223. be applied to class, struct, union and enum types. Unlike other
  25224. type attributes, the attribute must appear between the initial
  25225. keyword and the name of the type; it cannot appear after the body
  25226. of the type.
  25227. Note that the type visibility is applied to vague linkage entities
  25228. associated with the class (vtable, typeinfo node, etc.). In
  25229. particular, if a class is thrown as an exception in one shared
  25230. object and caught in another, the class must have default
  25231. visibility. Otherwise the two shared objects are unable to use the
  25232. same typeinfo node and exception handling will break.
  25233. To specify multiple attributes, separate them by commas within the
  25234. double parentheses: for example, '__attribute__ ((aligned (16),
  25235. packed))'.
  25236. 
  25237. File: gcc.info, Node: ARM Type Attributes, Next: MeP Type Attributes, Prev: Common Type Attributes, Up: Type Attributes
  25238. 6.33.2 ARM Type Attributes
  25239. --------------------------
  25240. On those ARM targets that support 'dllimport' (such as Symbian OS), you
  25241. can use the 'notshared' attribute to indicate that the virtual table and
  25242. other similar data for a class should not be exported from a DLL. For
  25243. example:
  25244. class __declspec(notshared) C {
  25245. public:
  25246. __declspec(dllimport) C();
  25247. virtual void f();
  25248. }
  25249. __declspec(dllexport)
  25250. C::C() {}
  25251. In this code, 'C::C' is exported from the current DLL, but the virtual
  25252. table for 'C' is not exported. (You can use '__attribute__' instead of
  25253. '__declspec' if you prefer, but most Symbian OS code uses '__declspec'.)
  25254. 
  25255. File: gcc.info, Node: MeP Type Attributes, Next: PowerPC Type Attributes, Prev: ARM Type Attributes, Up: Type Attributes
  25256. 6.33.3 MeP Type Attributes
  25257. --------------------------
  25258. Many of the MeP variable attributes may be applied to types as well.
  25259. Specifically, the 'based', 'tiny', 'near', and 'far' attributes may be
  25260. applied to either. The 'io' and 'cb' attributes may not be applied to
  25261. types.
  25262. 
  25263. File: gcc.info, Node: PowerPC Type Attributes, Next: SPU Type Attributes, Prev: MeP Type Attributes, Up: Type Attributes
  25264. 6.33.4 PowerPC Type Attributes
  25265. ------------------------------
  25266. Three attributes currently are defined for PowerPC configurations:
  25267. 'altivec', 'ms_struct' and 'gcc_struct'.
  25268. For full documentation of the 'ms_struct' and 'gcc_struct' attributes
  25269. please see the documentation in *note x86 Type Attributes::.
  25270. The 'altivec' attribute allows one to declare AltiVec vector data types
  25271. supported by the AltiVec Programming Interface Manual. The attribute
  25272. requires an argument to specify one of three vector types: 'vector__',
  25273. 'pixel__' (always followed by unsigned short), and 'bool__' (always
  25274. followed by unsigned).
  25275. __attribute__((altivec(vector__)))
  25276. __attribute__((altivec(pixel__))) unsigned short
  25277. __attribute__((altivec(bool__))) unsigned
  25278. These attributes mainly are intended to support the '__vector',
  25279. '__pixel', and '__bool' AltiVec keywords.
  25280. 
  25281. File: gcc.info, Node: SPU Type Attributes, Next: x86 Type Attributes, Prev: PowerPC Type Attributes, Up: Type Attributes
  25282. 6.33.5 SPU Type Attributes
  25283. --------------------------
  25284. The SPU supports the 'spu_vector' attribute for types. This attribute
  25285. allows one to declare vector data types supported by the
  25286. Sony/Toshiba/IBM SPU Language Extensions Specification. It is intended
  25287. to support the '__vector' keyword.
  25288. 
  25289. File: gcc.info, Node: x86 Type Attributes, Prev: SPU Type Attributes, Up: Type Attributes
  25290. 6.33.6 x86 Type Attributes
  25291. --------------------------
  25292. Two attributes are currently defined for x86 configurations: 'ms_struct'
  25293. and 'gcc_struct'.
  25294. 'ms_struct'
  25295. 'gcc_struct'
  25296. If 'packed' is used on a structure, or if bit-fields are used it
  25297. may be that the Microsoft ABI packs them differently than GCC
  25298. normally packs them. Particularly when moving packed data between
  25299. functions compiled with GCC and the native Microsoft compiler
  25300. (either via function call or as data in a file), it may be
  25301. necessary to access either format.
  25302. The 'ms_struct' and 'gcc_struct' attributes correspond to the
  25303. '-mms-bitfields' and '-mno-ms-bitfields' command-line options,
  25304. respectively; see *note x86 Options::, for details of how structure
  25305. layout is affected. *Note x86 Variable Attributes::, for
  25306. information about the corresponding attributes on variables.
  25307. 
  25308. File: gcc.info, Node: Label Attributes, Next: Enumerator Attributes, Prev: Type Attributes, Up: C Extensions
  25309. 6.34 Label Attributes
  25310. =====================
  25311. GCC allows attributes to be set on C labels. *Note Attribute Syntax::,
  25312. for details of the exact syntax for using attributes. Other attributes
  25313. are available for functions (*note Function Attributes::), variables
  25314. (*note Variable Attributes::), enumerators (*note Enumerator
  25315. Attributes::), statements (*note Statement Attributes::), and for types
  25316. (*note Type Attributes::).
  25317. This example uses the 'cold' label attribute to indicate the
  25318. 'ErrorHandling' branch is unlikely to be taken and that the
  25319. 'ErrorHandling' label is unused:
  25320. asm goto ("some asm" : : : : NoError);
  25321. /* This branch (the fall-through from the asm) is less commonly used */
  25322. ErrorHandling:
  25323. __attribute__((cold, unused)); /* Semi-colon is required here */
  25324. printf("error\n");
  25325. return 0;
  25326. NoError:
  25327. printf("no error\n");
  25328. return 1;
  25329. 'unused'
  25330. This feature is intended for program-generated code that may
  25331. contain unused labels, but which is compiled with '-Wall'. It is
  25332. not normally appropriate to use in it human-written code, though it
  25333. could be useful in cases where the code that jumps to the label is
  25334. contained within an '#ifdef' conditional.
  25335. 'hot'
  25336. The 'hot' attribute on a label is used to inform the compiler that
  25337. the path following the label is more likely than paths that are not
  25338. so annotated. This attribute is used in cases where
  25339. '__builtin_expect' cannot be used, for instance with computed goto
  25340. or 'asm goto'.
  25341. 'cold'
  25342. The 'cold' attribute on labels is used to inform the compiler that
  25343. the path following the label is unlikely to be executed. This
  25344. attribute is used in cases where '__builtin_expect' cannot be used,
  25345. for instance with computed goto or 'asm goto'.
  25346. 
  25347. File: gcc.info, Node: Enumerator Attributes, Next: Statement Attributes, Prev: Label Attributes, Up: C Extensions
  25348. 6.35 Enumerator Attributes
  25349. ==========================
  25350. GCC allows attributes to be set on enumerators. *Note Attribute
  25351. Syntax::, for details of the exact syntax for using attributes. Other
  25352. attributes are available for functions (*note Function Attributes::),
  25353. variables (*note Variable Attributes::), labels (*note Label
  25354. Attributes::), statements (*note Statement Attributes::), and for types
  25355. (*note Type Attributes::).
  25356. This example uses the 'deprecated' enumerator attribute to indicate the
  25357. 'oldval' enumerator is deprecated:
  25358. enum E {
  25359. oldval __attribute__((deprecated)),
  25360. newval
  25361. };
  25362. int
  25363. fn (void)
  25364. {
  25365. return oldval;
  25366. }
  25367. 'deprecated'
  25368. The 'deprecated' attribute results in a warning if the enumerator
  25369. is used anywhere in the source file. This is useful when
  25370. identifying enumerators that are expected to be removed in a future
  25371. version of a program. The warning also includes the location of
  25372. the declaration of the deprecated enumerator, to enable users to
  25373. easily find further information about why the enumerator is
  25374. deprecated, or what they should do instead. Note that the warnings
  25375. only occurs for uses.
  25376. 
  25377. File: gcc.info, Node: Statement Attributes, Next: Attribute Syntax, Prev: Enumerator Attributes, Up: C Extensions
  25378. 6.36 Statement Attributes
  25379. =========================
  25380. GCC allows attributes to be set on null statements. *Note Attribute
  25381. Syntax::, for details of the exact syntax for using attributes. Other
  25382. attributes are available for functions (*note Function Attributes::),
  25383. variables (*note Variable Attributes::), labels (*note Label
  25384. Attributes::), enumerators (*note Enumerator Attributes::), and for
  25385. types (*note Type Attributes::).
  25386. This example uses the 'fallthrough' statement attribute to indicate
  25387. that the '-Wimplicit-fallthrough' warning should not be emitted:
  25388. switch (cond)
  25389. {
  25390. case 1:
  25391. bar (1);
  25392. __attribute__((fallthrough));
  25393. case 2:
  25394. ...
  25395. }
  25396. 'fallthrough'
  25397. The 'fallthrough' attribute with a null statement serves as a
  25398. fallthrough statement. It hints to the compiler that a statement
  25399. that falls through to another case label, or user-defined label in
  25400. a switch statement is intentional and thus the
  25401. '-Wimplicit-fallthrough' warning must not trigger. The fallthrough
  25402. attribute may appear at most once in each attribute list, and may
  25403. not be mixed with other attributes. It can only be used in a
  25404. switch statement (the compiler will issue an error otherwise),
  25405. after a preceding statement and before a logically succeeding case
  25406. label, or user-defined label.
  25407. 
  25408. File: gcc.info, Node: Attribute Syntax, Next: Function Prototypes, Prev: Statement Attributes, Up: C Extensions
  25409. 6.37 Attribute Syntax
  25410. =====================
  25411. This section describes the syntax with which '__attribute__' may be
  25412. used, and the constructs to which attribute specifiers bind, for the C
  25413. language. Some details may vary for C++ and Objective-C. Because of
  25414. infelicities in the grammar for attributes, some forms described here
  25415. may not be successfully parsed in all cases.
  25416. There are some problems with the semantics of attributes in C++. For
  25417. example, there are no manglings for attributes, although they may affect
  25418. code generation, so problems may arise when attributed types are used in
  25419. conjunction with templates or overloading. Similarly, 'typeid' does not
  25420. distinguish between types with different attributes. Support for
  25421. attributes in C++ may be restricted in future to attributes on
  25422. declarations only, but not on nested declarators.
  25423. *Note Function Attributes::, for details of the semantics of attributes
  25424. applying to functions. *Note Variable Attributes::, for details of the
  25425. semantics of attributes applying to variables. *Note Type Attributes::,
  25426. for details of the semantics of attributes applying to structure, union
  25427. and enumerated types. *Note Label Attributes::, for details of the
  25428. semantics of attributes applying to labels. *Note Enumerator
  25429. Attributes::, for details of the semantics of attributes applying to
  25430. enumerators. *Note Statement Attributes::, for details of the semantics
  25431. of attributes applying to statements.
  25432. An "attribute specifier" is of the form '__attribute__
  25433. ((ATTRIBUTE-LIST))'. An "attribute list" is a possibly empty
  25434. comma-separated sequence of "attributes", where each attribute is one of
  25435. the following:
  25436. * Empty. Empty attributes are ignored.
  25437. * An attribute name (which may be an identifier such as 'unused', or
  25438. a reserved word such as 'const').
  25439. * An attribute name followed by a parenthesized list of parameters
  25440. for the attribute. These parameters take one of the following
  25441. forms:
  25442. * An identifier. For example, 'mode' attributes use this form.
  25443. * An identifier followed by a comma and a non-empty
  25444. comma-separated list of expressions. For example, 'format'
  25445. attributes use this form.
  25446. * A possibly empty comma-separated list of expressions. For
  25447. example, 'format_arg' attributes use this form with the list
  25448. being a single integer constant expression, and 'alias'
  25449. attributes use this form with the list being a single string
  25450. constant.
  25451. An "attribute specifier list" is a sequence of one or more attribute
  25452. specifiers, not separated by any other tokens.
  25453. You may optionally specify attribute names with '__' preceding and
  25454. following the name. This allows you to use them in header files without
  25455. being concerned about a possible macro of the same name. For example,
  25456. you may use the attribute name '__noreturn__' instead of 'noreturn'.
  25457. Label Attributes
  25458. ................
  25459. In GNU C, an attribute specifier list may appear after the colon
  25460. following a label, other than a 'case' or 'default' label. GNU C++ only
  25461. permits attributes on labels if the attribute specifier is immediately
  25462. followed by a semicolon (i.e., the label applies to an empty statement).
  25463. If the semicolon is missing, C++ label attributes are ambiguous, as it
  25464. is permissible for a declaration, which could begin with an attribute
  25465. list, to be labelled in C++. Declarations cannot be labelled in C90 or
  25466. C99, so the ambiguity does not arise there.
  25467. Enumerator Attributes
  25468. .....................
  25469. In GNU C, an attribute specifier list may appear as part of an
  25470. enumerator. The attribute goes after the enumeration constant, before
  25471. '=', if present. The optional attribute in the enumerator appertains to
  25472. the enumeration constant. It is not possible to place the attribute
  25473. after the constant expression, if present.
  25474. Statement Attributes
  25475. ....................
  25476. In GNU C, an attribute specifier list may appear as part of a null
  25477. statement. The attribute goes before the semicolon.
  25478. Type Attributes
  25479. ...............
  25480. An attribute specifier list may appear as part of a 'struct', 'union' or
  25481. 'enum' specifier. It may go either immediately after the 'struct',
  25482. 'union' or 'enum' keyword, or after the closing brace. The former
  25483. syntax is preferred. Where attribute specifiers follow the closing
  25484. brace, they are considered to relate to the structure, union or
  25485. enumerated type defined, not to any enclosing declaration the type
  25486. specifier appears in, and the type defined is not complete until after
  25487. the attribute specifiers.
  25488. All other attributes
  25489. ....................
  25490. Otherwise, an attribute specifier appears as part of a declaration,
  25491. counting declarations of unnamed parameters and type names, and relates
  25492. to that declaration (which may be nested in another declaration, for
  25493. example in the case of a parameter declaration), or to a particular
  25494. declarator within a declaration. Where an attribute specifier is
  25495. applied to a parameter declared as a function or an array, it should
  25496. apply to the function or array rather than the pointer to which the
  25497. parameter is implicitly converted, but this is not yet correctly
  25498. implemented.
  25499. Any list of specifiers and qualifiers at the start of a declaration may
  25500. contain attribute specifiers, whether or not such a list may in that
  25501. context contain storage class specifiers. (Some attributes, however,
  25502. are essentially in the nature of storage class specifiers, and only make
  25503. sense where storage class specifiers may be used; for example,
  25504. 'section'.) There is one necessary limitation to this syntax: the first
  25505. old-style parameter declaration in a function definition cannot begin
  25506. with an attribute specifier, because such an attribute applies to the
  25507. function instead by syntax described below (which, however, is not yet
  25508. implemented in this case). In some other cases, attribute specifiers
  25509. are permitted by this grammar but not yet supported by the compiler.
  25510. All attribute specifiers in this place relate to the declaration as a
  25511. whole. In the obsolescent usage where a type of 'int' is implied by the
  25512. absence of type specifiers, such a list of specifiers and qualifiers may
  25513. be an attribute specifier list with no other specifiers or qualifiers.
  25514. At present, the first parameter in a function prototype must have some
  25515. type specifier that is not an attribute specifier; this resolves an
  25516. ambiguity in the interpretation of 'void f(int (__attribute__((foo))
  25517. x))', but is subject to change. At present, if the parentheses of a
  25518. function declarator contain only attributes then those attributes are
  25519. ignored, rather than yielding an error or warning or implying a single
  25520. parameter of type int, but this is subject to change.
  25521. An attribute specifier list may appear immediately before a declarator
  25522. (other than the first) in a comma-separated list of declarators in a
  25523. declaration of more than one identifier using a single list of
  25524. specifiers and qualifiers. Such attribute specifiers apply only to the
  25525. identifier before whose declarator they appear. For example, in
  25526. __attribute__((noreturn)) void d0 (void),
  25527. __attribute__((format(printf, 1, 2))) d1 (const char *, ...),
  25528. d2 (void);
  25529. the 'noreturn' attribute applies to all the functions declared; the
  25530. 'format' attribute only applies to 'd1'.
  25531. An attribute specifier list may appear immediately before the comma,
  25532. '=' or semicolon terminating the declaration of an identifier other than
  25533. a function definition. Such attribute specifiers apply to the declared
  25534. object or function. Where an assembler name for an object or function
  25535. is specified (*note Asm Labels::), the attribute must follow the 'asm'
  25536. specification.
  25537. An attribute specifier list may, in future, be permitted to appear
  25538. after the declarator in a function definition (before any old-style
  25539. parameter declarations or the function body).
  25540. Attribute specifiers may be mixed with type qualifiers appearing inside
  25541. the '[]' of a parameter array declarator, in the C99 construct by which
  25542. such qualifiers are applied to the pointer to which the array is
  25543. implicitly converted. Such attribute specifiers apply to the pointer,
  25544. not to the array, but at present this is not implemented and they are
  25545. ignored.
  25546. An attribute specifier list may appear at the start of a nested
  25547. declarator. At present, there are some limitations in this usage: the
  25548. attributes correctly apply to the declarator, but for most individual
  25549. attributes the semantics this implies are not implemented. When
  25550. attribute specifiers follow the '*' of a pointer declarator, they may be
  25551. mixed with any type qualifiers present. The following describes the
  25552. formal semantics of this syntax. It makes the most sense if you are
  25553. familiar with the formal specification of declarators in the ISO C
  25554. standard.
  25555. Consider (as in C99 subclause 6.7.5 paragraph 4) a declaration 'T D1',
  25556. where 'T' contains declaration specifiers that specify a type TYPE (such
  25557. as 'int') and 'D1' is a declarator that contains an identifier IDENT.
  25558. The type specified for IDENT for derived declarators whose type does not
  25559. include an attribute specifier is as in the ISO C standard.
  25560. If 'D1' has the form '( ATTRIBUTE-SPECIFIER-LIST D )', and the
  25561. declaration 'T D' specifies the type "DERIVED-DECLARATOR-TYPE-LIST TYPE"
  25562. for IDENT, then 'T D1' specifies the type "DERIVED-DECLARATOR-TYPE-LIST
  25563. ATTRIBUTE-SPECIFIER-LIST TYPE" for IDENT.
  25564. If 'D1' has the form '* TYPE-QUALIFIER-AND-ATTRIBUTE-SPECIFIER-LIST D',
  25565. and the declaration 'T D' specifies the type
  25566. "DERIVED-DECLARATOR-TYPE-LIST TYPE" for IDENT, then 'T D1' specifies the
  25567. type "DERIVED-DECLARATOR-TYPE-LIST
  25568. TYPE-QUALIFIER-AND-ATTRIBUTE-SPECIFIER-LIST pointer to TYPE" for IDENT.
  25569. For example,
  25570. void (__attribute__((noreturn)) ****f) (void);
  25571. specifies the type "pointer to pointer to pointer to pointer to
  25572. non-returning function returning 'void'". As another example,
  25573. char *__attribute__((aligned(8))) *f;
  25574. specifies the type "pointer to 8-byte-aligned pointer to 'char'". Note
  25575. again that this does not work with most attributes; for example, the
  25576. usage of 'aligned' and 'noreturn' attributes given above is not yet
  25577. supported.
  25578. For compatibility with existing code written for compiler versions that
  25579. did not implement attributes on nested declarators, some laxity is
  25580. allowed in the placing of attributes. If an attribute that only applies
  25581. to types is applied to a declaration, it is treated as applying to the
  25582. type of that declaration. If an attribute that only applies to
  25583. declarations is applied to the type of a declaration, it is treated as
  25584. applying to that declaration; and, for compatibility with code placing
  25585. the attributes immediately before the identifier declared, such an
  25586. attribute applied to a function return type is treated as applying to
  25587. the function type, and such an attribute applied to an array element
  25588. type is treated as applying to the array type. If an attribute that
  25589. only applies to function types is applied to a pointer-to-function type,
  25590. it is treated as applying to the pointer target type; if such an
  25591. attribute is applied to a function return type that is not a
  25592. pointer-to-function type, it is treated as applying to the function
  25593. type.
  25594. 
  25595. File: gcc.info, Node: Function Prototypes, Next: C++ Comments, Prev: Attribute Syntax, Up: C Extensions
  25596. 6.38 Prototypes and Old-Style Function Definitions
  25597. ==================================================
  25598. GNU C extends ISO C to allow a function prototype to override a later
  25599. old-style non-prototype definition. Consider the following example:
  25600. /* Use prototypes unless the compiler is old-fashioned. */
  25601. #ifdef __STDC__
  25602. #define P(x) x
  25603. #else
  25604. #define P(x) ()
  25605. #endif
  25606. /* Prototype function declaration. */
  25607. int isroot P((uid_t));
  25608. /* Old-style function definition. */
  25609. int
  25610. isroot (x) /* ??? lossage here ??? */
  25611. uid_t x;
  25612. {
  25613. return x == 0;
  25614. }
  25615. Suppose the type 'uid_t' happens to be 'short'. ISO C does not allow
  25616. this example, because subword arguments in old-style non-prototype
  25617. definitions are promoted. Therefore in this example the function
  25618. definition's argument is really an 'int', which does not match the
  25619. prototype argument type of 'short'.
  25620. This restriction of ISO C makes it hard to write code that is portable
  25621. to traditional C compilers, because the programmer does not know whether
  25622. the 'uid_t' type is 'short', 'int', or 'long'. Therefore, in cases like
  25623. these GNU C allows a prototype to override a later old-style definition.
  25624. More precisely, in GNU C, a function prototype argument type overrides
  25625. the argument type specified by a later old-style definition if the
  25626. former type is the same as the latter type before promotion. Thus in
  25627. GNU C the above example is equivalent to the following:
  25628. int isroot (uid_t);
  25629. int
  25630. isroot (uid_t x)
  25631. {
  25632. return x == 0;
  25633. }
  25634. GNU C++ does not support old-style function definitions, so this
  25635. extension is irrelevant.
  25636. 
  25637. File: gcc.info, Node: C++ Comments, Next: Dollar Signs, Prev: Function Prototypes, Up: C Extensions
  25638. 6.39 C++ Style Comments
  25639. =======================
  25640. In GNU C, you may use C++ style comments, which start with '//' and
  25641. continue until the end of the line. Many other C implementations allow
  25642. such comments, and they are included in the 1999 C standard. However,
  25643. C++ style comments are not recognized if you specify an '-std' option
  25644. specifying a version of ISO C before C99, or '-ansi' (equivalent to
  25645. '-std=c90').
  25646. 
  25647. File: gcc.info, Node: Dollar Signs, Next: Character Escapes, Prev: C++ Comments, Up: C Extensions
  25648. 6.40 Dollar Signs in Identifier Names
  25649. =====================================
  25650. In GNU C, you may normally use dollar signs in identifier names. This
  25651. is because many traditional C implementations allow such identifiers.
  25652. However, dollar signs in identifiers are not supported on a few target
  25653. machines, typically because the target assembler does not allow them.
  25654. 
  25655. File: gcc.info, Node: Character Escapes, Next: Alignment, Prev: Dollar Signs, Up: C Extensions
  25656. 6.41 The Character <ESC> in Constants
  25657. =====================================
  25658. You can use the sequence '\e' in a string or character constant to stand
  25659. for the ASCII character <ESC>.
  25660. 
  25661. File: gcc.info, Node: Alignment, Next: Inline, Prev: Character Escapes, Up: C Extensions
  25662. 6.42 Inquiring on Alignment of Types or Variables
  25663. =================================================
  25664. The keyword '__alignof__' allows you to inquire about how an object is
  25665. aligned, or the minimum alignment usually required by a type. Its
  25666. syntax is just like 'sizeof'.
  25667. For example, if the target machine requires a 'double' value to be
  25668. aligned on an 8-byte boundary, then '__alignof__ (double)' is 8. This
  25669. is true on many RISC machines. On more traditional machine designs,
  25670. '__alignof__ (double)' is 4 or even 2.
  25671. Some machines never actually require alignment; they allow reference to
  25672. any data type even at an odd address. For these machines, '__alignof__'
  25673. reports the smallest alignment that GCC gives the data type, usually as
  25674. mandated by the target ABI.
  25675. If the operand of '__alignof__' is an lvalue rather than a type, its
  25676. value is the required alignment for its type, taking into account any
  25677. minimum alignment specified with GCC's '__attribute__' extension (*note
  25678. Variable Attributes::). For example, after this declaration:
  25679. struct foo { int x; char y; } foo1;
  25680. the value of '__alignof__ (foo1.y)' is 1, even though its actual
  25681. alignment is probably 2 or 4, the same as '__alignof__ (int)'.
  25682. It is an error to ask for the alignment of an incomplete type.
  25683. 
  25684. File: gcc.info, Node: Inline, Next: Volatiles, Prev: Alignment, Up: C Extensions
  25685. 6.43 An Inline Function is As Fast As a Macro
  25686. =============================================
  25687. By declaring a function inline, you can direct GCC to make calls to that
  25688. function faster. One way GCC can achieve this is to integrate that
  25689. function's code into the code for its callers. This makes execution
  25690. faster by eliminating the function-call overhead; in addition, if any of
  25691. the actual argument values are constant, their known values may permit
  25692. simplifications at compile time so that not all of the inline function's
  25693. code needs to be included. The effect on code size is less predictable;
  25694. object code may be larger or smaller with function inlining, depending
  25695. on the particular case. You can also direct GCC to try to integrate all
  25696. "simple enough" functions into their callers with the option
  25697. '-finline-functions'.
  25698. GCC implements three different semantics of declaring a function
  25699. inline. One is available with '-std=gnu89' or '-fgnu89-inline' or when
  25700. 'gnu_inline' attribute is present on all inline declarations, another
  25701. when '-std=c99', '-std=c11', '-std=gnu99' or '-std=gnu11' (without
  25702. '-fgnu89-inline'), and the third is used when compiling C++.
  25703. To declare a function inline, use the 'inline' keyword in its
  25704. declaration, like this:
  25705. static inline int
  25706. inc (int *a)
  25707. {
  25708. return (*a)++;
  25709. }
  25710. If you are writing a header file to be included in ISO C90 programs,
  25711. write '__inline__' instead of 'inline'. *Note Alternate Keywords::.
  25712. The three types of inlining behave similarly in two important cases:
  25713. when the 'inline' keyword is used on a 'static' function, like the
  25714. example above, and when a function is first declared without using the
  25715. 'inline' keyword and then is defined with 'inline', like this:
  25716. extern int inc (int *a);
  25717. inline int
  25718. inc (int *a)
  25719. {
  25720. return (*a)++;
  25721. }
  25722. In both of these common cases, the program behaves the same as if you
  25723. had not used the 'inline' keyword, except for its speed.
  25724. When a function is both inline and 'static', if all calls to the
  25725. function are integrated into the caller, and the function's address is
  25726. never used, then the function's own assembler code is never referenced.
  25727. In this case, GCC does not actually output assembler code for the
  25728. function, unless you specify the option '-fkeep-inline-functions'. If
  25729. there is a nonintegrated call, then the function is compiled to
  25730. assembler code as usual. The function must also be compiled as usual if
  25731. the program refers to its address, because that cannot be inlined.
  25732. Note that certain usages in a function definition can make it
  25733. unsuitable for inline substitution. Among these usages are: variadic
  25734. functions, use of 'alloca', use of computed goto (*note Labels as
  25735. Values::), use of nonlocal goto, use of nested functions, use of
  25736. 'setjmp', use of '__builtin_longjmp' and use of '__builtin_return' or
  25737. '__builtin_apply_args'. Using '-Winline' warns when a function marked
  25738. 'inline' could not be substituted, and gives the reason for the failure.
  25739. As required by ISO C++, GCC considers member functions defined within
  25740. the body of a class to be marked inline even if they are not explicitly
  25741. declared with the 'inline' keyword. You can override this with
  25742. '-fno-default-inline'; *note Options Controlling C++ Dialect: C++
  25743. Dialect Options.
  25744. GCC does not inline any functions when not optimizing unless you
  25745. specify the 'always_inline' attribute for the function, like this:
  25746. /* Prototype. */
  25747. inline void foo (const char) __attribute__((always_inline));
  25748. The remainder of this section is specific to GNU C90 inlining.
  25749. When an inline function is not 'static', then the compiler must assume
  25750. that there may be calls from other source files; since a global symbol
  25751. can be defined only once in any program, the function must not be
  25752. defined in the other source files, so the calls therein cannot be
  25753. integrated. Therefore, a non-'static' inline function is always
  25754. compiled on its own in the usual fashion.
  25755. If you specify both 'inline' and 'extern' in the function definition,
  25756. then the definition is used only for inlining. In no case is the
  25757. function compiled on its own, not even if you refer to its address
  25758. explicitly. Such an address becomes an external reference, as if you
  25759. had only declared the function, and had not defined it.
  25760. This combination of 'inline' and 'extern' has almost the effect of a
  25761. macro. The way to use it is to put a function definition in a header
  25762. file with these keywords, and put another copy of the definition
  25763. (lacking 'inline' and 'extern') in a library file. The definition in
  25764. the header file causes most calls to the function to be inlined. If any
  25765. uses of the function remain, they refer to the single copy in the
  25766. library.
  25767. 
  25768. File: gcc.info, Node: Volatiles, Next: Using Assembly Language with C, Prev: Inline, Up: C Extensions
  25769. 6.44 When is a Volatile Object Accessed?
  25770. ========================================
  25771. C has the concept of volatile objects. These are normally accessed by
  25772. pointers and used for accessing hardware or inter-thread communication.
  25773. The standard encourages compilers to refrain from optimizations
  25774. concerning accesses to volatile objects, but leaves it implementation
  25775. defined as to what constitutes a volatile access. The minimum
  25776. requirement is that at a sequence point all previous accesses to
  25777. volatile objects have stabilized and no subsequent accesses have
  25778. occurred. Thus an implementation is free to reorder and combine
  25779. volatile accesses that occur between sequence points, but cannot do so
  25780. for accesses across a sequence point. The use of volatile does not
  25781. allow you to violate the restriction on updating objects multiple times
  25782. between two sequence points.
  25783. Accesses to non-volatile objects are not ordered with respect to
  25784. volatile accesses. You cannot use a volatile object as a memory barrier
  25785. to order a sequence of writes to non-volatile memory. For instance:
  25786. int *ptr = SOMETHING;
  25787. volatile int vobj;
  25788. *ptr = SOMETHING;
  25789. vobj = 1;
  25790. Unless *PTR and VOBJ can be aliased, it is not guaranteed that the write
  25791. to *PTR occurs by the time the update of VOBJ happens. If you need this
  25792. guarantee, you must use a stronger memory barrier such as:
  25793. int *ptr = SOMETHING;
  25794. volatile int vobj;
  25795. *ptr = SOMETHING;
  25796. asm volatile ("" : : : "memory");
  25797. vobj = 1;
  25798. A scalar volatile object is read when it is accessed in a void context:
  25799. volatile int *src = SOMEVALUE;
  25800. *src;
  25801. Such expressions are rvalues, and GCC implements this as a read of the
  25802. volatile object being pointed to.
  25803. Assignments are also expressions and have an rvalue. However when
  25804. assigning to a scalar volatile, the volatile object is not reread,
  25805. regardless of whether the assignment expression's rvalue is used or not.
  25806. If the assignment's rvalue is used, the value is that assigned to the
  25807. volatile object. For instance, there is no read of VOBJ in all the
  25808. following cases:
  25809. int obj;
  25810. volatile int vobj;
  25811. vobj = SOMETHING;
  25812. obj = vobj = SOMETHING;
  25813. obj ? vobj = ONETHING : vobj = ANOTHERTHING;
  25814. obj = (SOMETHING, vobj = ANOTHERTHING);
  25815. If you need to read the volatile object after an assignment has
  25816. occurred, you must use a separate expression with an intervening
  25817. sequence point.
  25818. As bit-fields are not individually addressable, volatile bit-fields may
  25819. be implicitly read when written to, or when adjacent bit-fields are
  25820. accessed. Bit-field operations may be optimized such that adjacent
  25821. bit-fields are only partially accessed, if they straddle a storage unit
  25822. boundary. For these reasons it is unwise to use volatile bit-fields to
  25823. access hardware.
  25824. 
  25825. File: gcc.info, Node: Using Assembly Language with C, Next: Alternate Keywords, Prev: Volatiles, Up: C Extensions
  25826. 6.45 How to Use Inline Assembly Language in C Code
  25827. ==================================================
  25828. The 'asm' keyword allows you to embed assembler instructions within C
  25829. code. GCC provides two forms of inline 'asm' statements. A "basic
  25830. 'asm'" statement is one with no operands (*note Basic Asm::), while an
  25831. "extended 'asm'" statement (*note Extended Asm::) includes one or more
  25832. operands. The extended form is preferred for mixing C and assembly
  25833. language within a function, but to include assembly language at top
  25834. level you must use basic 'asm'.
  25835. You can also use the 'asm' keyword to override the assembler name for a
  25836. C symbol, or to place a C variable in a specific register.
  25837. * Menu:
  25838. * Basic Asm:: Inline assembler without operands.
  25839. * Extended Asm:: Inline assembler with operands.
  25840. * Constraints:: Constraints for 'asm' operands
  25841. * Asm Labels:: Specifying the assembler name to use for a C symbol.
  25842. * Explicit Register Variables:: Defining variables residing in specified
  25843. registers.
  25844. * Size of an asm:: How GCC calculates the size of an 'asm' block.
  25845. 
  25846. File: gcc.info, Node: Basic Asm, Next: Extended Asm, Up: Using Assembly Language with C
  25847. 6.45.1 Basic Asm -- Assembler Instructions Without Operands
  25848. -----------------------------------------------------------
  25849. A basic 'asm' statement has the following syntax:
  25850. asm ASM-QUALIFIERS ( ASSEMBLERINSTRUCTIONS )
  25851. The 'asm' keyword is a GNU extension. When writing code that can be
  25852. compiled with '-ansi' and the various '-std' options, use '__asm__'
  25853. instead of 'asm' (*note Alternate Keywords::).
  25854. Qualifiers
  25855. ..........
  25856. 'volatile'
  25857. The optional 'volatile' qualifier has no effect. All basic 'asm'
  25858. blocks are implicitly volatile.
  25859. 'inline'
  25860. If you use the 'inline' qualifier, then for inlining purposes the
  25861. size of the asm is taken as the smallest size possible (*note Size
  25862. of an asm::).
  25863. Parameters
  25864. ..........
  25865. ASSEMBLERINSTRUCTIONS
  25866. This is a literal string that specifies the assembler code. The
  25867. string can contain any instructions recognized by the assembler,
  25868. including directives. GCC does not parse the assembler
  25869. instructions themselves and does not know what they mean or even
  25870. whether they are valid assembler input.
  25871. You may place multiple assembler instructions together in a single
  25872. 'asm' string, separated by the characters normally used in assembly
  25873. code for the system. A combination that works in most places is a
  25874. newline to break the line, plus a tab character (written as
  25875. '\n\t'). Some assemblers allow semicolons as a line separator.
  25876. However, note that some assembler dialects use semicolons to start
  25877. a comment.
  25878. Remarks
  25879. .......
  25880. Using extended 'asm' (*note Extended Asm::) typically produces smaller,
  25881. safer, and more efficient code, and in most cases it is a better
  25882. solution than basic 'asm'. However, there are two situations where only
  25883. basic 'asm' can be used:
  25884. * Extended 'asm' statements have to be inside a C function, so to
  25885. write inline assembly language at file scope ("top-level"), outside
  25886. of C functions, you must use basic 'asm'. You can use this
  25887. technique to emit assembler directives, define assembly language
  25888. macros that can be invoked elsewhere in the file, or write entire
  25889. functions in assembly language.
  25890. * Functions declared with the 'naked' attribute also require basic
  25891. 'asm' (*note Function Attributes::).
  25892. Safely accessing C data and calling functions from basic 'asm' is more
  25893. complex than it may appear. To access C data, it is better to use
  25894. extended 'asm'.
  25895. Do not expect a sequence of 'asm' statements to remain perfectly
  25896. consecutive after compilation. If certain instructions need to remain
  25897. consecutive in the output, put them in a single multi-instruction 'asm'
  25898. statement. Note that GCC's optimizers can move 'asm' statements
  25899. relative to other code, including across jumps.
  25900. 'asm' statements may not perform jumps into other 'asm' statements.
  25901. GCC does not know about these jumps, and therefore cannot take account
  25902. of them when deciding how to optimize. Jumps from 'asm' to C labels are
  25903. only supported in extended 'asm'.
  25904. Under certain circumstances, GCC may duplicate (or remove duplicates
  25905. of) your assembly code when optimizing. This can lead to unexpected
  25906. duplicate symbol errors during compilation if your assembly code defines
  25907. symbols or labels.
  25908. *Warning:* The C standards do not specify semantics for 'asm', making
  25909. it a potential source of incompatibilities between compilers. These
  25910. incompatibilities may not produce compiler warnings/errors.
  25911. GCC does not parse basic 'asm''s ASSEMBLERINSTRUCTIONS, which means
  25912. there is no way to communicate to the compiler what is happening inside
  25913. them. GCC has no visibility of symbols in the 'asm' and may discard
  25914. them as unreferenced. It also does not know about side effects of the
  25915. assembler code, such as modifications to memory or registers. Unlike
  25916. some compilers, GCC assumes that no changes to general purpose registers
  25917. occur. This assumption may change in a future release.
  25918. To avoid complications from future changes to the semantics and the
  25919. compatibility issues between compilers, consider replacing basic 'asm'
  25920. with extended 'asm'. See How to convert from basic asm to extended asm
  25921. (https://gcc.gnu.org/wiki/ConvertBasicAsmToExtended) for information
  25922. about how to perform this conversion.
  25923. The compiler copies the assembler instructions in a basic 'asm'
  25924. verbatim to the assembly language output file, without processing
  25925. dialects or any of the '%' operators that are available with extended
  25926. 'asm'. This results in minor differences between basic 'asm' strings
  25927. and extended 'asm' templates. For example, to refer to registers you
  25928. might use '%eax' in basic 'asm' and '%%eax' in extended 'asm'.
  25929. On targets such as x86 that support multiple assembler dialects, all
  25930. basic 'asm' blocks use the assembler dialect specified by the '-masm'
  25931. command-line option (*note x86 Options::). Basic 'asm' provides no
  25932. mechanism to provide different assembler strings for different dialects.
  25933. For basic 'asm' with non-empty assembler string GCC assumes the
  25934. assembler block does not change any general purpose registers, but it
  25935. may read or write any globally accessible variable.
  25936. Here is an example of basic 'asm' for i386:
  25937. /* Note that this code will not compile with -masm=intel */
  25938. #define DebugBreak() asm("int $3")
  25939. 
  25940. File: gcc.info, Node: Extended Asm, Next: Constraints, Prev: Basic Asm, Up: Using Assembly Language with C
  25941. 6.45.2 Extended Asm - Assembler Instructions with C Expression Operands
  25942. -----------------------------------------------------------------------
  25943. With extended 'asm' you can read and write C variables from assembler
  25944. and perform jumps from assembler code to C labels. Extended 'asm'
  25945. syntax uses colons (':') to delimit the operand parameters after the
  25946. assembler template:
  25947. asm ASM-QUALIFIERS ( ASSEMBLERTEMPLATE
  25948. : OUTPUTOPERANDS
  25949. [ : INPUTOPERANDS
  25950. [ : CLOBBERS ] ])
  25951. asm ASM-QUALIFIERS ( ASSEMBLERTEMPLATE
  25952. :
  25953. : INPUTOPERANDS
  25954. : CLOBBERS
  25955. : GOTOLABELS)
  25956. where in the last form, ASM-QUALIFIERS contains 'goto' (and in the
  25957. first form, not).
  25958. The 'asm' keyword is a GNU extension. When writing code that can be
  25959. compiled with '-ansi' and the various '-std' options, use '__asm__'
  25960. instead of 'asm' (*note Alternate Keywords::).
  25961. Qualifiers
  25962. ..........
  25963. 'volatile'
  25964. The typical use of extended 'asm' statements is to manipulate input
  25965. values to produce output values. However, your 'asm' statements
  25966. may also produce side effects. If so, you may need to use the
  25967. 'volatile' qualifier to disable certain optimizations. *Note
  25968. Volatile::.
  25969. 'inline'
  25970. If you use the 'inline' qualifier, then for inlining purposes the
  25971. size of the asm is taken as the smallest size possible (*note Size
  25972. of an asm::).
  25973. 'goto'
  25974. This qualifier informs the compiler that the 'asm' statement may
  25975. perform a jump to one of the labels listed in the GOTOLABELS.
  25976. *Note GotoLabels::.
  25977. Parameters
  25978. ..........
  25979. ASSEMBLERTEMPLATE
  25980. This is a literal string that is the template for the assembler
  25981. code. It is a combination of fixed text and tokens that refer to
  25982. the input, output, and goto parameters. *Note AssemblerTemplate::.
  25983. OUTPUTOPERANDS
  25984. A comma-separated list of the C variables modified by the
  25985. instructions in the ASSEMBLERTEMPLATE. An empty list is permitted.
  25986. *Note OutputOperands::.
  25987. INPUTOPERANDS
  25988. A comma-separated list of C expressions read by the instructions in
  25989. the ASSEMBLERTEMPLATE. An empty list is permitted. *Note
  25990. InputOperands::.
  25991. CLOBBERS
  25992. A comma-separated list of registers or other values changed by the
  25993. ASSEMBLERTEMPLATE, beyond those listed as outputs. An empty list
  25994. is permitted. *Note Clobbers::.
  25995. GOTOLABELS
  25996. When you are using the 'goto' form of 'asm', this section contains
  25997. the list of all C labels to which the code in the ASSEMBLERTEMPLATE
  25998. may jump. *Note GotoLabels::.
  25999. 'asm' statements may not perform jumps into other 'asm' statements,
  26000. only to the listed GOTOLABELS. GCC's optimizers do not know about
  26001. other jumps; therefore they cannot take account of them when
  26002. deciding how to optimize.
  26003. The total number of input + output + goto operands is limited to 30.
  26004. Remarks
  26005. .......
  26006. The 'asm' statement allows you to include assembly instructions directly
  26007. within C code. This may help you to maximize performance in
  26008. time-sensitive code or to access assembly instructions that are not
  26009. readily available to C programs.
  26010. Note that extended 'asm' statements must be inside a function. Only
  26011. basic 'asm' may be outside functions (*note Basic Asm::). Functions
  26012. declared with the 'naked' attribute also require basic 'asm' (*note
  26013. Function Attributes::).
  26014. While the uses of 'asm' are many and varied, it may help to think of an
  26015. 'asm' statement as a series of low-level instructions that convert input
  26016. parameters to output parameters. So a simple (if not particularly
  26017. useful) example for i386 using 'asm' might look like this:
  26018. int src = 1;
  26019. int dst;
  26020. asm ("mov %1, %0\n\t"
  26021. "add $1, %0"
  26022. : "=r" (dst)
  26023. : "r" (src));
  26024. printf("%d\n", dst);
  26025. This code copies 'src' to 'dst' and add 1 to 'dst'.
  26026. 6.45.2.1 Volatile
  26027. .................
  26028. GCC's optimizers sometimes discard 'asm' statements if they determine
  26029. there is no need for the output variables. Also, the optimizers may
  26030. move code out of loops if they believe that the code will always return
  26031. the same result (i.e. none of its input values change between calls).
  26032. Using the 'volatile' qualifier disables these optimizations. 'asm'
  26033. statements that have no output operands, including 'asm goto'
  26034. statements, are implicitly volatile.
  26035. This i386 code demonstrates a case that does not use (or require) the
  26036. 'volatile' qualifier. If it is performing assertion checking, this code
  26037. uses 'asm' to perform the validation. Otherwise, 'dwRes' is
  26038. unreferenced by any code. As a result, the optimizers can discard the
  26039. 'asm' statement, which in turn removes the need for the entire 'DoCheck'
  26040. routine. By omitting the 'volatile' qualifier when it isn't needed you
  26041. allow the optimizers to produce the most efficient code possible.
  26042. void DoCheck(uint32_t dwSomeValue)
  26043. {
  26044. uint32_t dwRes;
  26045. // Assumes dwSomeValue is not zero.
  26046. asm ("bsfl %1,%0"
  26047. : "=r" (dwRes)
  26048. : "r" (dwSomeValue)
  26049. : "cc");
  26050. assert(dwRes > 3);
  26051. }
  26052. The next example shows a case where the optimizers can recognize that
  26053. the input ('dwSomeValue') never changes during the execution of the
  26054. function and can therefore move the 'asm' outside the loop to produce
  26055. more efficient code. Again, using 'volatile' disables this type of
  26056. optimization.
  26057. void do_print(uint32_t dwSomeValue)
  26058. {
  26059. uint32_t dwRes;
  26060. for (uint32_t x=0; x < 5; x++)
  26061. {
  26062. // Assumes dwSomeValue is not zero.
  26063. asm ("bsfl %1,%0"
  26064. : "=r" (dwRes)
  26065. : "r" (dwSomeValue)
  26066. : "cc");
  26067. printf("%u: %u %u\n", x, dwSomeValue, dwRes);
  26068. }
  26069. }
  26070. The following example demonstrates a case where you need to use the
  26071. 'volatile' qualifier. It uses the x86 'rdtsc' instruction, which reads
  26072. the computer's time-stamp counter. Without the 'volatile' qualifier,
  26073. the optimizers might assume that the 'asm' block will always return the
  26074. same value and therefore optimize away the second call.
  26075. uint64_t msr;
  26076. asm volatile ( "rdtsc\n\t" // Returns the time in EDX:EAX.
  26077. "shl $32, %%rdx\n\t" // Shift the upper bits left.
  26078. "or %%rdx, %0" // 'Or' in the lower bits.
  26079. : "=a" (msr)
  26080. :
  26081. : "rdx");
  26082. printf("msr: %llx\n", msr);
  26083. // Do other work...
  26084. // Reprint the timestamp
  26085. asm volatile ( "rdtsc\n\t" // Returns the time in EDX:EAX.
  26086. "shl $32, %%rdx\n\t" // Shift the upper bits left.
  26087. "or %%rdx, %0" // 'Or' in the lower bits.
  26088. : "=a" (msr)
  26089. :
  26090. : "rdx");
  26091. printf("msr: %llx\n", msr);
  26092. GCC's optimizers do not treat this code like the non-volatile code in
  26093. the earlier examples. They do not move it out of loops or omit it on
  26094. the assumption that the result from a previous call is still valid.
  26095. Note that the compiler can move even volatile 'asm' instructions
  26096. relative to other code, including across jump instructions. For
  26097. example, on many targets there is a system register that controls the
  26098. rounding mode of floating-point operations. Setting it with a volatile
  26099. 'asm', as in the following PowerPC example, does not work reliably.
  26100. asm volatile("mtfsf 255, %0" : : "f" (fpenv));
  26101. sum = x + y;
  26102. The compiler may move the addition back before the volatile 'asm'. To
  26103. make it work as expected, add an artificial dependency to the 'asm' by
  26104. referencing a variable in the subsequent code, for example:
  26105. asm volatile ("mtfsf 255,%1" : "=X" (sum) : "f" (fpenv));
  26106. sum = x + y;
  26107. Under certain circumstances, GCC may duplicate (or remove duplicates
  26108. of) your assembly code when optimizing. This can lead to unexpected
  26109. duplicate symbol errors during compilation if your asm code defines
  26110. symbols or labels. Using '%=' (*note AssemblerTemplate::) may help
  26111. resolve this problem.
  26112. 6.45.2.2 Assembler Template
  26113. ...........................
  26114. An assembler template is a literal string containing assembler
  26115. instructions. The compiler replaces tokens in the template that refer
  26116. to inputs, outputs, and goto labels, and then outputs the resulting
  26117. string to the assembler. The string can contain any instructions
  26118. recognized by the assembler, including directives. GCC does not parse
  26119. the assembler instructions themselves and does not know what they mean
  26120. or even whether they are valid assembler input. However, it does count
  26121. the statements (*note Size of an asm::).
  26122. You may place multiple assembler instructions together in a single
  26123. 'asm' string, separated by the characters normally used in assembly code
  26124. for the system. A combination that works in most places is a newline to
  26125. break the line, plus a tab character to move to the instruction field
  26126. (written as '\n\t'). Some assemblers allow semicolons as a line
  26127. separator. However, note that some assembler dialects use semicolons to
  26128. start a comment.
  26129. Do not expect a sequence of 'asm' statements to remain perfectly
  26130. consecutive after compilation, even when you are using the 'volatile'
  26131. qualifier. If certain instructions need to remain consecutive in the
  26132. output, put them in a single multi-instruction asm statement.
  26133. Accessing data from C programs without using input/output operands
  26134. (such as by using global symbols directly from the assembler template)
  26135. may not work as expected. Similarly, calling functions directly from an
  26136. assembler template requires a detailed understanding of the target
  26137. assembler and ABI.
  26138. Since GCC does not parse the assembler template, it has no visibility
  26139. of any symbols it references. This may result in GCC discarding those
  26140. symbols as unreferenced unless they are also listed as input, output, or
  26141. goto operands.
  26142. Special format strings
  26143. ......................
  26144. In addition to the tokens described by the input, output, and goto
  26145. operands, these tokens have special meanings in the assembler template:
  26146. '%%'
  26147. Outputs a single '%' into the assembler code.
  26148. '%='
  26149. Outputs a number that is unique to each instance of the 'asm'
  26150. statement in the entire compilation. This option is useful when
  26151. creating local labels and referring to them multiple times in a
  26152. single template that generates multiple assembler instructions.
  26153. '%{'
  26154. '%|'
  26155. '%}'
  26156. Outputs '{', '|', and '}' characters (respectively) into the
  26157. assembler code. When unescaped, these characters have special
  26158. meaning to indicate multiple assembler dialects, as described
  26159. below.
  26160. Multiple assembler dialects in 'asm' templates
  26161. ..............................................
  26162. On targets such as x86, GCC supports multiple assembler dialects. The
  26163. '-masm' option controls which dialect GCC uses as its default for inline
  26164. assembler. The target-specific documentation for the '-masm' option
  26165. contains the list of supported dialects, as well as the default dialect
  26166. if the option is not specified. This information may be important to
  26167. understand, since assembler code that works correctly when compiled
  26168. using one dialect will likely fail if compiled using another. *Note x86
  26169. Options::.
  26170. If your code needs to support multiple assembler dialects (for example,
  26171. if you are writing public headers that need to support a variety of
  26172. compilation options), use constructs of this form:
  26173. { dialect0 | dialect1 | dialect2... }
  26174. This construct outputs 'dialect0' when using dialect #0 to compile the
  26175. code, 'dialect1' for dialect #1, etc. If there are fewer alternatives
  26176. within the braces than the number of dialects the compiler supports, the
  26177. construct outputs nothing.
  26178. For example, if an x86 compiler supports two dialects ('att', 'intel'),
  26179. an assembler template such as this:
  26180. "bt{l %[Offset],%[Base] | %[Base],%[Offset]}; jc %l2"
  26181. is equivalent to one of
  26182. "btl %[Offset],%[Base] ; jc %l2" /* att dialect */
  26183. "bt %[Base],%[Offset]; jc %l2" /* intel dialect */
  26184. Using that same compiler, this code:
  26185. "xchg{l}\t{%%}ebx, %1"
  26186. corresponds to either
  26187. "xchgl\t%%ebx, %1" /* att dialect */
  26188. "xchg\tebx, %1" /* intel dialect */
  26189. There is no support for nesting dialect alternatives.
  26190. 6.45.2.3 Output Operands
  26191. ........................
  26192. An 'asm' statement has zero or more output operands indicating the names
  26193. of C variables modified by the assembler code.
  26194. In this i386 example, 'old' (referred to in the template string as
  26195. '%0') and '*Base' (as '%1') are outputs and 'Offset' ('%2') is an input:
  26196. bool old;
  26197. __asm__ ("btsl %2,%1\n\t" // Turn on zero-based bit #Offset in Base.
  26198. "sbb %0,%0" // Use the CF to calculate old.
  26199. : "=r" (old), "+rm" (*Base)
  26200. : "Ir" (Offset)
  26201. : "cc");
  26202. return old;
  26203. Operands are separated by commas. Each operand has this format:
  26204. [ [ASMSYMBOLICNAME] ] CONSTRAINT (CVARIABLENAME)
  26205. ASMSYMBOLICNAME
  26206. Specifies a symbolic name for the operand. Reference the name in
  26207. the assembler template by enclosing it in square brackets (i.e.
  26208. '%[Value]'). The scope of the name is the 'asm' statement that
  26209. contains the definition. Any valid C variable name is acceptable,
  26210. including names already defined in the surrounding code. No two
  26211. operands within the same 'asm' statement can use the same symbolic
  26212. name.
  26213. When not using an ASMSYMBOLICNAME, use the (zero-based) position of
  26214. the operand in the list of operands in the assembler template. For
  26215. example if there are three output operands, use '%0' in the
  26216. template to refer to the first, '%1' for the second, and '%2' for
  26217. the third.
  26218. CONSTRAINT
  26219. A string constant specifying constraints on the placement of the
  26220. operand; *Note Constraints::, for details.
  26221. Output constraints must begin with either '=' (a variable
  26222. overwriting an existing value) or '+' (when reading and writing).
  26223. When using '=', do not assume the location contains the existing
  26224. value on entry to the 'asm', except when the operand is tied to an
  26225. input; *note Input Operands: InputOperands.
  26226. After the prefix, there must be one or more additional constraints
  26227. (*note Constraints::) that describe where the value resides.
  26228. Common constraints include 'r' for register and 'm' for memory.
  26229. When you list more than one possible location (for example,
  26230. '"=rm"'), the compiler chooses the most efficient one based on the
  26231. current context. If you list as many alternates as the 'asm'
  26232. statement allows, you permit the optimizers to produce the best
  26233. possible code. If you must use a specific register, but your
  26234. Machine Constraints do not provide sufficient control to select the
  26235. specific register you want, local register variables may provide a
  26236. solution (*note Local Register Variables::).
  26237. CVARIABLENAME
  26238. Specifies a C lvalue expression to hold the output, typically a
  26239. variable name. The enclosing parentheses are a required part of
  26240. the syntax.
  26241. When the compiler selects the registers to use to represent the output
  26242. operands, it does not use any of the clobbered registers (*note
  26243. Clobbers::).
  26244. Output operand expressions must be lvalues. The compiler cannot check
  26245. whether the operands have data types that are reasonable for the
  26246. instruction being executed. For output expressions that are not
  26247. directly addressable (for example a bit-field), the constraint must
  26248. allow a register. In that case, GCC uses the register as the output of
  26249. the 'asm', and then stores that register into the output.
  26250. Operands using the '+' constraint modifier count as two operands (that
  26251. is, both as input and output) towards the total maximum of 30 operands
  26252. per 'asm' statement.
  26253. Use the '&' constraint modifier (*note Modifiers::) on all output
  26254. operands that must not overlap an input. Otherwise, GCC may allocate
  26255. the output operand in the same register as an unrelated input operand,
  26256. on the assumption that the assembler code consumes its inputs before
  26257. producing outputs. This assumption may be false if the assembler code
  26258. actually consists of more than one instruction.
  26259. The same problem can occur if one output parameter (A) allows a
  26260. register constraint and another output parameter (B) allows a memory
  26261. constraint. The code generated by GCC to access the memory address in B
  26262. can contain registers which _might_ be shared by A, and GCC considers
  26263. those registers to be inputs to the asm. As above, GCC assumes that
  26264. such input registers are consumed before any outputs are written. This
  26265. assumption may result in incorrect behavior if the asm writes to A
  26266. before using B. Combining the '&' modifier with the register constraint
  26267. on A ensures that modifying A does not affect the address referenced by
  26268. B. Otherwise, the location of B is undefined if A is modified before
  26269. using B.
  26270. 'asm' supports operand modifiers on operands (for example '%k2' instead
  26271. of simply '%2'). Typically these qualifiers are hardware dependent.
  26272. The list of supported modifiers for x86 is found at *note x86 Operand
  26273. modifiers: x86Operandmodifiers.
  26274. If the C code that follows the 'asm' makes no use of any of the output
  26275. operands, use 'volatile' for the 'asm' statement to prevent the
  26276. optimizers from discarding the 'asm' statement as unneeded (see *note
  26277. Volatile::).
  26278. This code makes no use of the optional ASMSYMBOLICNAME. Therefore it
  26279. references the first output operand as '%0' (were there a second, it
  26280. would be '%1', etc). The number of the first input operand is one
  26281. greater than that of the last output operand. In this i386 example,
  26282. that makes 'Mask' referenced as '%1':
  26283. uint32_t Mask = 1234;
  26284. uint32_t Index;
  26285. asm ("bsfl %1, %0"
  26286. : "=r" (Index)
  26287. : "r" (Mask)
  26288. : "cc");
  26289. That code overwrites the variable 'Index' ('='), placing the value in a
  26290. register ('r'). Using the generic 'r' constraint instead of a
  26291. constraint for a specific register allows the compiler to pick the
  26292. register to use, which can result in more efficient code. This may not
  26293. be possible if an assembler instruction requires a specific register.
  26294. The following i386 example uses the ASMSYMBOLICNAME syntax. It
  26295. produces the same result as the code above, but some may consider it
  26296. more readable or more maintainable since reordering index numbers is not
  26297. necessary when adding or removing operands. The names 'aIndex' and
  26298. 'aMask' are only used in this example to emphasize which names get used
  26299. where. It is acceptable to reuse the names 'Index' and 'Mask'.
  26300. uint32_t Mask = 1234;
  26301. uint32_t Index;
  26302. asm ("bsfl %[aMask], %[aIndex]"
  26303. : [aIndex] "=r" (Index)
  26304. : [aMask] "r" (Mask)
  26305. : "cc");
  26306. Here are some more examples of output operands.
  26307. uint32_t c = 1;
  26308. uint32_t d;
  26309. uint32_t *e = &c;
  26310. asm ("mov %[e], %[d]"
  26311. : [d] "=rm" (d)
  26312. : [e] "rm" (*e));
  26313. Here, 'd' may either be in a register or in memory. Since the compiler
  26314. might already have the current value of the 'uint32_t' location pointed
  26315. to by 'e' in a register, you can enable it to choose the best location
  26316. for 'd' by specifying both constraints.
  26317. 6.45.2.4 Flag Output Operands
  26318. .............................
  26319. Some targets have a special register that holds the "flags" for the
  26320. result of an operation or comparison. Normally, the contents of that
  26321. register are either unmodifed by the asm, or the asm is considered to
  26322. clobber the contents.
  26323. On some targets, a special form of output operand exists by which
  26324. conditions in the flags register may be outputs of the asm. The set of
  26325. conditions supported are target specific, but the general rule is that
  26326. the output variable must be a scalar integer, and the value is boolean.
  26327. When supported, the target defines the preprocessor symbol
  26328. '__GCC_ASM_FLAG_OUTPUTS__'.
  26329. Because of the special nature of the flag output operands, the
  26330. constraint may not include alternatives.
  26331. Most often, the target has only one flags register, and thus is an
  26332. implied operand of many instructions. In this case, the operand should
  26333. not be referenced within the assembler template via '%0' etc, as there's
  26334. no corresponding text in the assembly language.
  26335. x86 family
  26336. The flag output constraints for the x86 family are of the form
  26337. '=@ccCOND' where COND is one of the standard conditions defined in
  26338. the ISA manual for 'jCC' or 'setCC'.
  26339. 'a'
  26340. "above" or unsigned greater than
  26341. 'ae'
  26342. "above or equal" or unsigned greater than or equal
  26343. 'b'
  26344. "below" or unsigned less than
  26345. 'be'
  26346. "below or equal" or unsigned less than or equal
  26347. 'c'
  26348. carry flag set
  26349. 'e'
  26350. 'z'
  26351. "equal" or zero flag set
  26352. 'g'
  26353. signed greater than
  26354. 'ge'
  26355. signed greater than or equal
  26356. 'l'
  26357. signed less than
  26358. 'le'
  26359. signed less than or equal
  26360. 'o'
  26361. overflow flag set
  26362. 'p'
  26363. parity flag set
  26364. 's'
  26365. sign flag set
  26366. 'na'
  26367. 'nae'
  26368. 'nb'
  26369. 'nbe'
  26370. 'nc'
  26371. 'ne'
  26372. 'ng'
  26373. 'nge'
  26374. 'nl'
  26375. 'nle'
  26376. 'no'
  26377. 'np'
  26378. 'ns'
  26379. 'nz'
  26380. "not" FLAG, or inverted versions of those above
  26381. 6.45.2.5 Input Operands
  26382. .......................
  26383. Input operands make values from C variables and expressions available to
  26384. the assembly code.
  26385. Operands are separated by commas. Each operand has this format:
  26386. [ [ASMSYMBOLICNAME] ] CONSTRAINT (CEXPRESSION)
  26387. ASMSYMBOLICNAME
  26388. Specifies a symbolic name for the operand. Reference the name in
  26389. the assembler template by enclosing it in square brackets (i.e.
  26390. '%[Value]'). The scope of the name is the 'asm' statement that
  26391. contains the definition. Any valid C variable name is acceptable,
  26392. including names already defined in the surrounding code. No two
  26393. operands within the same 'asm' statement can use the same symbolic
  26394. name.
  26395. When not using an ASMSYMBOLICNAME, use the (zero-based) position of
  26396. the operand in the list of operands in the assembler template. For
  26397. example if there are two output operands and three inputs, use '%2'
  26398. in the template to refer to the first input operand, '%3' for the
  26399. second, and '%4' for the third.
  26400. CONSTRAINT
  26401. A string constant specifying constraints on the placement of the
  26402. operand; *Note Constraints::, for details.
  26403. Input constraint strings may not begin with either '=' or '+'.
  26404. When you list more than one possible location (for example,
  26405. '"irm"'), the compiler chooses the most efficient one based on the
  26406. current context. If you must use a specific register, but your
  26407. Machine Constraints do not provide sufficient control to select the
  26408. specific register you want, local register variables may provide a
  26409. solution (*note Local Register Variables::).
  26410. Input constraints can also be digits (for example, '"0"'). This
  26411. indicates that the specified input must be in the same place as the
  26412. output constraint at the (zero-based) index in the output
  26413. constraint list. When using ASMSYMBOLICNAME syntax for the output
  26414. operands, you may use these names (enclosed in brackets '[]')
  26415. instead of digits.
  26416. CEXPRESSION
  26417. This is the C variable or expression being passed to the 'asm'
  26418. statement as input. The enclosing parentheses are a required part
  26419. of the syntax.
  26420. When the compiler selects the registers to use to represent the input
  26421. operands, it does not use any of the clobbered registers (*note
  26422. Clobbers::).
  26423. If there are no output operands but there are input operands, place two
  26424. consecutive colons where the output operands would go:
  26425. __asm__ ("some instructions"
  26426. : /* No outputs. */
  26427. : "r" (Offset / 8));
  26428. *Warning:* Do _not_ modify the contents of input-only operands (except
  26429. for inputs tied to outputs). The compiler assumes that on exit from the
  26430. 'asm' statement these operands contain the same values as they had
  26431. before executing the statement. It is _not_ possible to use clobbers to
  26432. inform the compiler that the values in these inputs are changing. One
  26433. common work-around is to tie the changing input variable to an output
  26434. variable that never gets used. Note, however, that if the code that
  26435. follows the 'asm' statement makes no use of any of the output operands,
  26436. the GCC optimizers may discard the 'asm' statement as unneeded (see
  26437. *note Volatile::).
  26438. 'asm' supports operand modifiers on operands (for example '%k2' instead
  26439. of simply '%2'). Typically these qualifiers are hardware dependent.
  26440. The list of supported modifiers for x86 is found at *note x86 Operand
  26441. modifiers: x86Operandmodifiers.
  26442. In this example using the fictitious 'combine' instruction, the
  26443. constraint '"0"' for input operand 1 says that it must occupy the same
  26444. location as output operand 0. Only input operands may use numbers in
  26445. constraints, and they must each refer to an output operand. Only a
  26446. number (or the symbolic assembler name) in the constraint can guarantee
  26447. that one operand is in the same place as another. The mere fact that
  26448. 'foo' is the value of both operands is not enough to guarantee that they
  26449. are in the same place in the generated assembler code.
  26450. asm ("combine %2, %0"
  26451. : "=r" (foo)
  26452. : "0" (foo), "g" (bar));
  26453. Here is an example using symbolic names.
  26454. asm ("cmoveq %1, %2, %[result]"
  26455. : [result] "=r"(result)
  26456. : "r" (test), "r" (new), "[result]" (old));
  26457. 6.45.2.6 Clobbers
  26458. .................
  26459. While the compiler is aware of changes to entries listed in the output
  26460. operands, the inline 'asm' code may modify more than just the outputs.
  26461. For example, calculations may require additional registers, or the
  26462. processor may overwrite a register as a side effect of a particular
  26463. assembler instruction. In order to inform the compiler of these
  26464. changes, list them in the clobber list. Clobber list items are either
  26465. register names or the special clobbers (listed below). Each clobber
  26466. list item is a string constant enclosed in double quotes and separated
  26467. by commas.
  26468. Clobber descriptions may not in any way overlap with an input or output
  26469. operand. For example, you may not have an operand describing a register
  26470. class with one member when listing that register in the clobber list.
  26471. Variables declared to live in specific registers (*note Explicit
  26472. Register Variables::) and used as 'asm' input or output operands must
  26473. have no part mentioned in the clobber description. In particular, there
  26474. is no way to specify that input operands get modified without also
  26475. specifying them as output operands.
  26476. When the compiler selects which registers to use to represent input and
  26477. output operands, it does not use any of the clobbered registers. As a
  26478. result, clobbered registers are available for any use in the assembler
  26479. code.
  26480. Here is a realistic example for the VAX showing the use of clobbered
  26481. registers:
  26482. asm volatile ("movc3 %0, %1, %2"
  26483. : /* No outputs. */
  26484. : "g" (from), "g" (to), "g" (count)
  26485. : "r0", "r1", "r2", "r3", "r4", "r5");
  26486. Also, there are two special clobber arguments:
  26487. '"cc"'
  26488. The '"cc"' clobber indicates that the assembler code modifies the
  26489. flags register. On some machines, GCC represents the condition
  26490. codes as a specific hardware register; '"cc"' serves to name this
  26491. register. On other machines, condition code handling is different,
  26492. and specifying '"cc"' has no effect. But it is valid no matter
  26493. what the target.
  26494. '"memory"'
  26495. The '"memory"' clobber tells the compiler that the assembly code
  26496. performs memory reads or writes to items other than those listed in
  26497. the input and output operands (for example, accessing the memory
  26498. pointed to by one of the input parameters). To ensure memory
  26499. contains correct values, GCC may need to flush specific register
  26500. values to memory before executing the 'asm'. Further, the compiler
  26501. does not assume that any values read from memory before an 'asm'
  26502. remain unchanged after that 'asm'; it reloads them as needed.
  26503. Using the '"memory"' clobber effectively forms a read/write memory
  26504. barrier for the compiler.
  26505. Note that this clobber does not prevent the _processor_ from doing
  26506. speculative reads past the 'asm' statement. To prevent that, you
  26507. need processor-specific fence instructions.
  26508. Flushing registers to memory has performance implications and may
  26509. be an issue for time-sensitive code. You can use a trick to avoid
  26510. this if the size of the memory being accessed is known at compile
  26511. time. For example, if accessing ten bytes of a string, use a
  26512. memory input like:
  26513. '{"m"( ({ struct { char x[10]; } *p = (void *)ptr ; *p; }) )}'.
  26514. 6.45.2.7 Goto Labels
  26515. ....................
  26516. 'asm goto' allows assembly code to jump to one or more C labels. The
  26517. GOTOLABELS section in an 'asm goto' statement contains a comma-separated
  26518. list of all C labels to which the assembler code may jump. GCC assumes
  26519. that 'asm' execution falls through to the next statement (if this is not
  26520. the case, consider using the '__builtin_unreachable' intrinsic after the
  26521. 'asm' statement). Optimization of 'asm goto' may be improved by using
  26522. the 'hot' and 'cold' label attributes (*note Label Attributes::).
  26523. An 'asm goto' statement cannot have outputs. This is due to an
  26524. internal restriction of the compiler: control transfer instructions
  26525. cannot have outputs. If the assembler code does modify anything, use
  26526. the '"memory"' clobber to force the optimizers to flush all register
  26527. values to memory and reload them if necessary after the 'asm' statement.
  26528. Also note that an 'asm goto' statement is always implicitly considered
  26529. volatile.
  26530. To reference a label in the assembler template, prefix it with '%l'
  26531. (lowercase 'L') followed by its (zero-based) position in GOTOLABELS plus
  26532. the number of input operands. For example, if the 'asm' has three
  26533. inputs and references two labels, refer to the first label as '%l3' and
  26534. the second as '%l4').
  26535. Alternately, you can reference labels using the actual C label name
  26536. enclosed in brackets. For example, to reference a label named 'carry',
  26537. you can use '%l[carry]'. The label must still be listed in the
  26538. GOTOLABELS section when using this approach.
  26539. Here is an example of 'asm goto' for i386:
  26540. asm goto (
  26541. "btl %1, %0\n\t"
  26542. "jc %l2"
  26543. : /* No outputs. */
  26544. : "r" (p1), "r" (p2)
  26545. : "cc"
  26546. : carry);
  26547. return 0;
  26548. carry:
  26549. return 1;
  26550. The following example shows an 'asm goto' that uses a memory clobber.
  26551. int frob(int x)
  26552. {
  26553. int y;
  26554. asm goto ("frob %%r5, %1; jc %l[error]; mov (%2), %%r5"
  26555. : /* No outputs. */
  26556. : "r"(x), "r"(&y)
  26557. : "r5", "memory"
  26558. : error);
  26559. return y;
  26560. error:
  26561. return -1;
  26562. }
  26563. 6.45.2.8 x86 Operand Modifiers
  26564. ..............................
  26565. References to input, output, and goto operands in the assembler template
  26566. of extended 'asm' statements can use modifiers to affect the way the
  26567. operands are formatted in the code output to the assembler. For
  26568. example, the following code uses the 'h' and 'b' modifiers for x86:
  26569. uint16_t num;
  26570. asm volatile ("xchg %h0, %b0" : "+a" (num) );
  26571. These modifiers generate this assembler code:
  26572. xchg %ah, %al
  26573. The rest of this discussion uses the following code for illustrative
  26574. purposes.
  26575. int main()
  26576. {
  26577. int iInt = 1;
  26578. top:
  26579. asm volatile goto ("some assembler instructions here"
  26580. : /* No outputs. */
  26581. : "q" (iInt), "X" (sizeof(unsigned char) + 1)
  26582. : /* No clobbers. */
  26583. : top);
  26584. }
  26585. With no modifiers, this is what the output from the operands would be
  26586. for the 'att' and 'intel' dialects of assembler:
  26587. Operand 'att' 'intel'
  26588. -----------------------------------
  26589. '%0' '%eax' 'eax'
  26590. '%1' '$2' '2'
  26591. '%2' '$.L2' 'OFFSET
  26592. FLAT:.L2'
  26593. The table below shows the list of supported modifiers and their
  26594. effects.
  26595. Modifier Description Operand 'att' 'intel'
  26596. ------------------------------------------------------------------------------------
  26597. 'z' Print the opcode suffix for the size of '%z0' 'l'
  26598. the current integer operand (one of
  26599. 'b'/'w'/'l'/'q').
  26600. 'b' Print the QImode name of the register. '%b0' '%al' 'al'
  26601. 'h' Print the QImode name for a "high" '%h0' '%ah' 'ah'
  26602. register.
  26603. 'w' Print the HImode name of the register. '%w0' '%ax' 'ax'
  26604. 'k' Print the SImode name of the register. '%k0' '%eax' 'eax'
  26605. 'q' Print the DImode name of the register. '%q0' '%rax' 'rax'
  26606. 'l' Print the label name with no punctuation. '%l2' '.L2' '.L2'
  26607. 'c' Require a constant operand and print the '%c1' '2' '2'
  26608. constant expression with no punctuation.
  26609. 'V' is a special modifier which prints the name of the full integer
  26610. register without '%'.
  26611. 6.45.2.9 x86 Floating-Point 'asm' Operands
  26612. ..........................................
  26613. On x86 targets, there are several rules on the usage of stack-like
  26614. registers in the operands of an 'asm'. These rules apply only to the
  26615. operands that are stack-like registers:
  26616. 1. Given a set of input registers that die in an 'asm', it is
  26617. necessary to know which are implicitly popped by the 'asm', and
  26618. which must be explicitly popped by GCC.
  26619. An input register that is implicitly popped by the 'asm' must be
  26620. explicitly clobbered, unless it is constrained to match an output
  26621. operand.
  26622. 2. For any input register that is implicitly popped by an 'asm', it is
  26623. necessary to know how to adjust the stack to compensate for the
  26624. pop. If any non-popped input is closer to the top of the reg-stack
  26625. than the implicitly popped register, it would not be possible to
  26626. know what the stack looked like--it's not clear how the rest of the
  26627. stack "slides up".
  26628. All implicitly popped input registers must be closer to the top of
  26629. the reg-stack than any input that is not implicitly popped.
  26630. It is possible that if an input dies in an 'asm', the compiler
  26631. might use the input register for an output reload. Consider this
  26632. example:
  26633. asm ("foo" : "=t" (a) : "f" (b));
  26634. This code says that input 'b' is not popped by the 'asm', and that
  26635. the 'asm' pushes a result onto the reg-stack, i.e., the stack is
  26636. one deeper after the 'asm' than it was before. But, it is possible
  26637. that reload may think that it can use the same register for both
  26638. the input and the output.
  26639. To prevent this from happening, if any input operand uses the 'f'
  26640. constraint, all output register constraints must use the '&'
  26641. early-clobber modifier.
  26642. The example above is correctly written as:
  26643. asm ("foo" : "=&t" (a) : "f" (b));
  26644. 3. Some operands need to be in particular places on the stack. All
  26645. output operands fall in this category--GCC has no other way to know
  26646. which registers the outputs appear in unless you indicate this in
  26647. the constraints.
  26648. Output operands must specifically indicate which register an output
  26649. appears in after an 'asm'. '=f' is not allowed: the operand
  26650. constraints must select a class with a single register.
  26651. 4. Output operands may not be "inserted" between existing stack
  26652. registers. Since no 387 opcode uses a read/write operand, all
  26653. output operands are dead before the 'asm', and are pushed by the
  26654. 'asm'. It makes no sense to push anywhere but the top of the
  26655. reg-stack.
  26656. Output operands must start at the top of the reg-stack: output
  26657. operands may not "skip" a register.
  26658. 5. Some 'asm' statements may need extra stack space for internal
  26659. calculations. This can be guaranteed by clobbering stack registers
  26660. unrelated to the inputs and outputs.
  26661. This 'asm' takes one input, which is internally popped, and produces
  26662. two outputs.
  26663. asm ("fsincos" : "=t" (cos), "=u" (sin) : "0" (inp));
  26664. This 'asm' takes two inputs, which are popped by the 'fyl2xp1' opcode,
  26665. and replaces them with one output. The 'st(1)' clobber is necessary for
  26666. the compiler to know that 'fyl2xp1' pops both inputs.
  26667. asm ("fyl2xp1" : "=t" (result) : "0" (x), "u" (y) : "st(1)");
  26668. 
  26669. File: gcc.info, Node: Constraints, Next: Asm Labels, Prev: Extended Asm, Up: Using Assembly Language with C
  26670. 6.45.3 Constraints for 'asm' Operands
  26671. -------------------------------------
  26672. Here are specific details on what constraint letters you can use with
  26673. 'asm' operands. Constraints can say whether an operand may be in a
  26674. register, and which kinds of register; whether the operand can be a
  26675. memory reference, and which kinds of address; whether the operand may be
  26676. an immediate constant, and which possible values it may have.
  26677. Constraints can also require two operands to match. Side-effects aren't
  26678. allowed in operands of inline 'asm', unless '<' or '>' constraints are
  26679. used, because there is no guarantee that the side-effects will happen
  26680. exactly once in an instruction that can update the addressing register.
  26681. * Menu:
  26682. * Simple Constraints:: Basic use of constraints.
  26683. * Multi-Alternative:: When an insn has two alternative constraint-patterns.
  26684. * Modifiers:: More precise control over effects of constraints.
  26685. * Machine Constraints:: Special constraints for some particular machines.
  26686. 
  26687. File: gcc.info, Node: Simple Constraints, Next: Multi-Alternative, Up: Constraints
  26688. 6.45.3.1 Simple Constraints
  26689. ...........................
  26690. The simplest kind of constraint is a string full of letters, each of
  26691. which describes one kind of operand that is permitted. Here are the
  26692. letters that are allowed:
  26693. whitespace
  26694. Whitespace characters are ignored and can be inserted at any
  26695. position except the first. This enables each alternative for
  26696. different operands to be visually aligned in the machine
  26697. description even if they have different number of constraints and
  26698. modifiers.
  26699. 'm'
  26700. A memory operand is allowed, with any kind of address that the
  26701. machine supports in general. Note that the letter used for the
  26702. general memory constraint can be re-defined by a back end using the
  26703. 'TARGET_MEM_CONSTRAINT' macro.
  26704. 'o'
  26705. A memory operand is allowed, but only if the address is
  26706. "offsettable". This means that adding a small integer (actually,
  26707. the width in bytes of the operand, as determined by its machine
  26708. mode) may be added to the address and the result is also a valid
  26709. memory address.
  26710. For example, an address which is constant is offsettable; so is an
  26711. address that is the sum of a register and a constant (as long as a
  26712. slightly larger constant is also within the range of
  26713. address-offsets supported by the machine); but an autoincrement or
  26714. autodecrement address is not offsettable. More complicated
  26715. indirect/indexed addresses may or may not be offsettable depending
  26716. on the other addressing modes that the machine supports.
  26717. Note that in an output operand which can be matched by another
  26718. operand, the constraint letter 'o' is valid only when accompanied
  26719. by both '<' (if the target machine has predecrement addressing) and
  26720. '>' (if the target machine has preincrement addressing).
  26721. 'V'
  26722. A memory operand that is not offsettable. In other words, anything
  26723. that would fit the 'm' constraint but not the 'o' constraint.
  26724. '<'
  26725. A memory operand with autodecrement addressing (either predecrement
  26726. or postdecrement) is allowed. In inline 'asm' this constraint is
  26727. only allowed if the operand is used exactly once in an instruction
  26728. that can handle the side-effects. Not using an operand with '<' in
  26729. constraint string in the inline 'asm' pattern at all or using it in
  26730. multiple instructions isn't valid, because the side-effects
  26731. wouldn't be performed or would be performed more than once.
  26732. Furthermore, on some targets the operand with '<' in constraint
  26733. string must be accompanied by special instruction suffixes like
  26734. '%U0' instruction suffix on PowerPC or '%P0' on IA-64.
  26735. '>'
  26736. A memory operand with autoincrement addressing (either preincrement
  26737. or postincrement) is allowed. In inline 'asm' the same
  26738. restrictions as for '<' apply.
  26739. 'r'
  26740. A register operand is allowed provided that it is in a general
  26741. register.
  26742. 'i'
  26743. An immediate integer operand (one with constant value) is allowed.
  26744. This includes symbolic constants whose values will be known only at
  26745. assembly time or later.
  26746. 'n'
  26747. An immediate integer operand with a known numeric value is allowed.
  26748. Many systems cannot support assembly-time constants for operands
  26749. less than a word wide. Constraints for these operands should use
  26750. 'n' rather than 'i'.
  26751. 'I', 'J', 'K', ... 'P'
  26752. Other letters in the range 'I' through 'P' may be defined in a
  26753. machine-dependent fashion to permit immediate integer operands with
  26754. explicit integer values in specified ranges. For example, on the
  26755. 68000, 'I' is defined to stand for the range of values 1 to 8.
  26756. This is the range permitted as a shift count in the shift
  26757. instructions.
  26758. 'E'
  26759. An immediate floating operand (expression code 'const_double') is
  26760. allowed, but only if the target floating point format is the same
  26761. as that of the host machine (on which the compiler is running).
  26762. 'F'
  26763. An immediate floating operand (expression code 'const_double' or
  26764. 'const_vector') is allowed.
  26765. 'G', 'H'
  26766. 'G' and 'H' may be defined in a machine-dependent fashion to permit
  26767. immediate floating operands in particular ranges of values.
  26768. 's'
  26769. An immediate integer operand whose value is not an explicit integer
  26770. is allowed.
  26771. This might appear strange; if an insn allows a constant operand
  26772. with a value not known at compile time, it certainly must allow any
  26773. known value. So why use 's' instead of 'i'? Sometimes it allows
  26774. better code to be generated.
  26775. For example, on the 68000 in a fullword instruction it is possible
  26776. to use an immediate operand; but if the immediate value is between
  26777. -128 and 127, better code results from loading the value into a
  26778. register and using the register. This is because the load into the
  26779. register can be done with a 'moveq' instruction. We arrange for
  26780. this to happen by defining the letter 'K' to mean "any integer
  26781. outside the range -128 to 127", and then specifying 'Ks' in the
  26782. operand constraints.
  26783. 'g'
  26784. Any register, memory or immediate integer operand is allowed,
  26785. except for registers that are not general registers.
  26786. 'X'
  26787. Any operand whatsoever is allowed.
  26788. '0', '1', '2', ... '9'
  26789. An operand that matches the specified operand number is allowed.
  26790. If a digit is used together with letters within the same
  26791. alternative, the digit should come last.
  26792. This number is allowed to be more than a single digit. If multiple
  26793. digits are encountered consecutively, they are interpreted as a
  26794. single decimal integer. There is scant chance for ambiguity, since
  26795. to-date it has never been desirable that '10' be interpreted as
  26796. matching either operand 1 _or_ operand 0. Should this be desired,
  26797. one can use multiple alternatives instead.
  26798. This is called a "matching constraint" and what it really means is
  26799. that the assembler has only a single operand that fills two roles
  26800. which 'asm' distinguishes. For example, an add instruction uses
  26801. two input operands and an output operand, but on most CISC machines
  26802. an add instruction really has only two operands, one of them an
  26803. input-output operand:
  26804. addl #35,r12
  26805. Matching constraints are used in these circumstances. More
  26806. precisely, the two operands that match must include one input-only
  26807. operand and one output-only operand. Moreover, the digit must be a
  26808. smaller number than the number of the operand that uses it in the
  26809. constraint.
  26810. 'p'
  26811. An operand that is a valid memory address is allowed. This is for
  26812. "load address" and "push address" instructions.
  26813. 'p' in the constraint must be accompanied by 'address_operand' as
  26814. the predicate in the 'match_operand'. This predicate interprets
  26815. the mode specified in the 'match_operand' as the mode of the memory
  26816. reference for which the address would be valid.
  26817. OTHER-LETTERS
  26818. Other letters can be defined in machine-dependent fashion to stand
  26819. for particular classes of registers or other arbitrary operand
  26820. types. 'd', 'a' and 'f' are defined on the 68000/68020 to stand
  26821. for data, address and floating point registers.
  26822. 
  26823. File: gcc.info, Node: Multi-Alternative, Next: Modifiers, Prev: Simple Constraints, Up: Constraints
  26824. 6.45.3.2 Multiple Alternative Constraints
  26825. .........................................
  26826. Sometimes a single instruction has multiple alternative sets of possible
  26827. operands. For example, on the 68000, a logical-or instruction can
  26828. combine register or an immediate value into memory, or it can combine
  26829. any kind of operand into a register; but it cannot combine one memory
  26830. location into another.
  26831. These constraints are represented as multiple alternatives. An
  26832. alternative can be described by a series of letters for each operand.
  26833. The overall constraint for an operand is made from the letters for this
  26834. operand from the first alternative, a comma, the letters for this
  26835. operand from the second alternative, a comma, and so on until the last
  26836. alternative. All operands for a single instruction must have the same
  26837. number of alternatives.
  26838. So the first alternative for the 68000's logical-or could be written as
  26839. '"+m" (output) : "ir" (input)'. The second could be '"+r" (output):
  26840. "irm" (input)'. However, the fact that two memory locations cannot be
  26841. used in a single instruction prevents simply using '"+rm" (output) :
  26842. "irm" (input)'. Using multi-alternatives, this might be written as
  26843. '"+m,r" (output) : "ir,irm" (input)'. This describes all the available
  26844. alternatives to the compiler, allowing it to choose the most efficient
  26845. one for the current conditions.
  26846. There is no way within the template to determine which alternative was
  26847. chosen. However you may be able to wrap your 'asm' statements with
  26848. builtins such as '__builtin_constant_p' to achieve the desired results.
  26849. 
  26850. File: gcc.info, Node: Modifiers, Next: Machine Constraints, Prev: Multi-Alternative, Up: Constraints
  26851. 6.45.3.3 Constraint Modifier Characters
  26852. .......................................
  26853. Here are constraint modifier characters.
  26854. '='
  26855. Means that this operand is written to by this instruction: the
  26856. previous value is discarded and replaced by new data.
  26857. '+'
  26858. Means that this operand is both read and written by the
  26859. instruction.
  26860. When the compiler fixes up the operands to satisfy the constraints,
  26861. it needs to know which operands are read by the instruction and
  26862. which are written by it. '=' identifies an operand which is only
  26863. written; '+' identifies an operand that is both read and written;
  26864. all other operands are assumed to only be read.
  26865. If you specify '=' or '+' in a constraint, you put it in the first
  26866. character of the constraint string.
  26867. '&'
  26868. Means (in a particular alternative) that this operand is an
  26869. "earlyclobber" operand, which is written before the instruction is
  26870. finished using the input operands. Therefore, this operand may not
  26871. lie in a register that is read by the instruction or as part of any
  26872. memory address.
  26873. '&' applies only to the alternative in which it is written. In
  26874. constraints with multiple alternatives, sometimes one alternative
  26875. requires '&' while others do not. See, for example, the 'movdf'
  26876. insn of the 68000.
  26877. A operand which is read by the instruction can be tied to an
  26878. earlyclobber operand if its only use as an input occurs before the
  26879. early result is written. Adding alternatives of this form often
  26880. allows GCC to produce better code when only some of the read
  26881. operands can be affected by the earlyclobber. See, for example,
  26882. the 'mulsi3' insn of the ARM.
  26883. Furthermore, if the "earlyclobber" operand is also a read/write
  26884. operand, then that operand is written only after it's used.
  26885. '&' does not obviate the need to write '=' or '+'. As
  26886. "earlyclobber" operands are always written, a read-only
  26887. "earlyclobber" operand is ill-formed and will be rejected by the
  26888. compiler.
  26889. '%'
  26890. Declares the instruction to be commutative for this operand and the
  26891. following operand. This means that the compiler may interchange
  26892. the two operands if that is the cheapest way to make all operands
  26893. fit the constraints. '%' applies to all alternatives and must
  26894. appear as the first character in the constraint. Only read-only
  26895. operands can use '%'.
  26896. GCC can only handle one commutative pair in an asm; if you use
  26897. more, the compiler may fail. Note that you need not use the
  26898. modifier if the two alternatives are strictly identical; this would
  26899. only waste time in the reload pass.
  26900. 
  26901. File: gcc.info, Node: Machine Constraints, Prev: Modifiers, Up: Constraints
  26902. 6.45.3.4 Constraints for Particular Machines
  26903. ............................................
  26904. Whenever possible, you should use the general-purpose constraint letters
  26905. in 'asm' arguments, since they will convey meaning more readily to
  26906. people reading your code. Failing that, use the constraint letters that
  26907. usually have very similar meanings across architectures. The most
  26908. commonly used constraints are 'm' and 'r' (for memory and
  26909. general-purpose registers respectively; *note Simple Constraints::), and
  26910. 'I', usually the letter indicating the most common immediate-constant
  26911. format.
  26912. Each architecture defines additional constraints. These constraints
  26913. are used by the compiler itself for instruction generation, as well as
  26914. for 'asm' statements; therefore, some of the constraints are not
  26915. particularly useful for 'asm'. Here is a summary of some of the
  26916. machine-dependent constraints available on some particular machines; it
  26917. includes both constraints that are useful for 'asm' and constraints that
  26918. aren't. The compiler source file mentioned in the table heading for
  26919. each architecture is the definitive reference for the meanings of that
  26920. architecture's constraints.
  26921. _AArch64 family--'config/aarch64/constraints.md'_
  26922. 'k'
  26923. The stack pointer register ('SP')
  26924. 'w'
  26925. Floating point or SIMD vector register
  26926. 'I'
  26927. Integer constant that is valid as an immediate operand in an
  26928. 'ADD' instruction
  26929. 'J'
  26930. Integer constant that is valid as an immediate operand in a
  26931. 'SUB' instruction (once negated)
  26932. 'K'
  26933. Integer constant that can be used with a 32-bit logical
  26934. instruction
  26935. 'L'
  26936. Integer constant that can be used with a 64-bit logical
  26937. instruction
  26938. 'M'
  26939. Integer constant that is valid as an immediate operand in a
  26940. 32-bit 'MOV' pseudo instruction. The 'MOV' may be assembled
  26941. to one of several different machine instructions depending on
  26942. the value
  26943. 'N'
  26944. Integer constant that is valid as an immediate operand in a
  26945. 64-bit 'MOV' pseudo instruction
  26946. 'S'
  26947. An absolute symbolic address or a label reference
  26948. 'Y'
  26949. Floating point constant zero
  26950. 'Z'
  26951. Integer constant zero
  26952. 'Ush'
  26953. The high part (bits 12 and upwards) of the pc-relative address
  26954. of a symbol within 4GB of the instruction
  26955. 'Q'
  26956. A memory address which uses a single base register with no
  26957. offset
  26958. 'Ump'
  26959. A memory address suitable for a load/store pair instruction in
  26960. SI, DI, SF and DF modes
  26961. _ARC --'config/arc/constraints.md'_
  26962. 'q'
  26963. Registers usable in ARCompact 16-bit instructions: 'r0'-'r3',
  26964. 'r12'-'r15'. This constraint can only match when the '-mq'
  26965. option is in effect.
  26966. 'e'
  26967. Registers usable as base-regs of memory addresses in ARCompact
  26968. 16-bit memory instructions: 'r0'-'r3', 'r12'-'r15', 'sp'.
  26969. This constraint can only match when the '-mq' option is in
  26970. effect.
  26971. 'D'
  26972. ARC FPX (dpfp) 64-bit registers. 'D0', 'D1'.
  26973. 'I'
  26974. A signed 12-bit integer constant.
  26975. 'Cal'
  26976. constant for arithmetic/logical operations. This might be any
  26977. constant that can be put into a long immediate by the assmbler
  26978. or linker without involving a PIC relocation.
  26979. 'K'
  26980. A 3-bit unsigned integer constant.
  26981. 'L'
  26982. A 6-bit unsigned integer constant.
  26983. 'CnL'
  26984. One's complement of a 6-bit unsigned integer constant.
  26985. 'CmL'
  26986. Two's complement of a 6-bit unsigned integer constant.
  26987. 'M'
  26988. A 5-bit unsigned integer constant.
  26989. 'O'
  26990. A 7-bit unsigned integer constant.
  26991. 'P'
  26992. A 8-bit unsigned integer constant.
  26993. 'H'
  26994. Any const_double value.
  26995. _ARM family--'config/arm/constraints.md'_
  26996. 'h'
  26997. In Thumb state, the core registers 'r8'-'r15'.
  26998. 'k'
  26999. The stack pointer register.
  27000. 'l'
  27001. In Thumb State the core registers 'r0'-'r7'. In ARM state
  27002. this is an alias for the 'r' constraint.
  27003. 't'
  27004. VFP floating-point registers 's0'-'s31'. Used for 32 bit
  27005. values.
  27006. 'w'
  27007. VFP floating-point registers 'd0'-'d31' and the appropriate
  27008. subset 'd0'-'d15' based on command line options. Used for 64
  27009. bit values only. Not valid for Thumb1.
  27010. 'y'
  27011. The iWMMX co-processor registers.
  27012. 'z'
  27013. The iWMMX GR registers.
  27014. 'G'
  27015. The floating-point constant 0.0
  27016. 'I'
  27017. Integer that is valid as an immediate operand in a data
  27018. processing instruction. That is, an integer in the range 0 to
  27019. 255 rotated by a multiple of 2
  27020. 'J'
  27021. Integer in the range -4095 to 4095
  27022. 'K'
  27023. Integer that satisfies constraint 'I' when inverted (ones
  27024. complement)
  27025. 'L'
  27026. Integer that satisfies constraint 'I' when negated (twos
  27027. complement)
  27028. 'M'
  27029. Integer in the range 0 to 32
  27030. 'Q'
  27031. A memory reference where the exact address is in a single
  27032. register (''m'' is preferable for 'asm' statements)
  27033. 'R'
  27034. An item in the constant pool
  27035. 'S'
  27036. A symbol in the text segment of the current file
  27037. 'Uv'
  27038. A memory reference suitable for VFP load/store insns
  27039. (reg+constant offset)
  27040. 'Uy'
  27041. A memory reference suitable for iWMMXt load/store
  27042. instructions.
  27043. 'Uq'
  27044. A memory reference suitable for the ARMv4 ldrsb instruction.
  27045. _AVR family--'config/avr/constraints.md'_
  27046. 'l'
  27047. Registers from r0 to r15
  27048. 'a'
  27049. Registers from r16 to r23
  27050. 'd'
  27051. Registers from r16 to r31
  27052. 'w'
  27053. Registers from r24 to r31. These registers can be used in
  27054. 'adiw' command
  27055. 'e'
  27056. Pointer register (r26-r31)
  27057. 'b'
  27058. Base pointer register (r28-r31)
  27059. 'q'
  27060. Stack pointer register (SPH:SPL)
  27061. 't'
  27062. Temporary register r0
  27063. 'x'
  27064. Register pair X (r27:r26)
  27065. 'y'
  27066. Register pair Y (r29:r28)
  27067. 'z'
  27068. Register pair Z (r31:r30)
  27069. 'I'
  27070. Constant greater than -1, less than 64
  27071. 'J'
  27072. Constant greater than -64, less than 1
  27073. 'K'
  27074. Constant integer 2
  27075. 'L'
  27076. Constant integer 0
  27077. 'M'
  27078. Constant that fits in 8 bits
  27079. 'N'
  27080. Constant integer -1
  27081. 'O'
  27082. Constant integer 8, 16, or 24
  27083. 'P'
  27084. Constant integer 1
  27085. 'G'
  27086. A floating point constant 0.0
  27087. 'Q'
  27088. A memory address based on Y or Z pointer with displacement.
  27089. _Blackfin family--'config/bfin/constraints.md'_
  27090. 'a'
  27091. P register
  27092. 'd'
  27093. D register
  27094. 'z'
  27095. A call clobbered P register.
  27096. 'qN'
  27097. A single register. If N is in the range 0 to 7, the
  27098. corresponding D register. If it is 'A', then the register P0.
  27099. 'D'
  27100. Even-numbered D register
  27101. 'W'
  27102. Odd-numbered D register
  27103. 'e'
  27104. Accumulator register.
  27105. 'A'
  27106. Even-numbered accumulator register.
  27107. 'B'
  27108. Odd-numbered accumulator register.
  27109. 'b'
  27110. I register
  27111. 'v'
  27112. B register
  27113. 'f'
  27114. M register
  27115. 'c'
  27116. Registers used for circular buffering, i.e. I, B, or L
  27117. registers.
  27118. 'C'
  27119. The CC register.
  27120. 't'
  27121. LT0 or LT1.
  27122. 'k'
  27123. LC0 or LC1.
  27124. 'u'
  27125. LB0 or LB1.
  27126. 'x'
  27127. Any D, P, B, M, I or L register.
  27128. 'y'
  27129. Additional registers typically used only in prologues and
  27130. epilogues: RETS, RETN, RETI, RETX, RETE, ASTAT, SEQSTAT and
  27131. USP.
  27132. 'w'
  27133. Any register except accumulators or CC.
  27134. 'Ksh'
  27135. Signed 16 bit integer (in the range -32768 to 32767)
  27136. 'Kuh'
  27137. Unsigned 16 bit integer (in the range 0 to 65535)
  27138. 'Ks7'
  27139. Signed 7 bit integer (in the range -64 to 63)
  27140. 'Ku7'
  27141. Unsigned 7 bit integer (in the range 0 to 127)
  27142. 'Ku5'
  27143. Unsigned 5 bit integer (in the range 0 to 31)
  27144. 'Ks4'
  27145. Signed 4 bit integer (in the range -8 to 7)
  27146. 'Ks3'
  27147. Signed 3 bit integer (in the range -3 to 4)
  27148. 'Ku3'
  27149. Unsigned 3 bit integer (in the range 0 to 7)
  27150. 'PN'
  27151. Constant N, where N is a single-digit constant in the range 0
  27152. to 4.
  27153. 'PA'
  27154. An integer equal to one of the MACFLAG_XXX constants that is
  27155. suitable for use with either accumulator.
  27156. 'PB'
  27157. An integer equal to one of the MACFLAG_XXX constants that is
  27158. suitable for use only with accumulator A1.
  27159. 'M1'
  27160. Constant 255.
  27161. 'M2'
  27162. Constant 65535.
  27163. 'J'
  27164. An integer constant with exactly a single bit set.
  27165. 'L'
  27166. An integer constant with all bits set except exactly one.
  27167. 'H'
  27168. 'Q'
  27169. Any SYMBOL_REF.
  27170. _CR16 Architecture--'config/cr16/cr16.h'_
  27171. 'b'
  27172. Registers from r0 to r14 (registers without stack pointer)
  27173. 't'
  27174. Register from r0 to r11 (all 16-bit registers)
  27175. 'p'
  27176. Register from r12 to r15 (all 32-bit registers)
  27177. 'I'
  27178. Signed constant that fits in 4 bits
  27179. 'J'
  27180. Signed constant that fits in 5 bits
  27181. 'K'
  27182. Signed constant that fits in 6 bits
  27183. 'L'
  27184. Unsigned constant that fits in 4 bits
  27185. 'M'
  27186. Signed constant that fits in 32 bits
  27187. 'N'
  27188. Check for 64 bits wide constants for add/sub instructions
  27189. 'G'
  27190. Floating point constant that is legal for store immediate
  27191. _Epiphany--'config/epiphany/constraints.md'_
  27192. 'U16'
  27193. An unsigned 16-bit constant.
  27194. 'K'
  27195. An unsigned 5-bit constant.
  27196. 'L'
  27197. A signed 11-bit constant.
  27198. 'Cm1'
  27199. A signed 11-bit constant added to -1. Can only match when the
  27200. '-m1reg-REG' option is active.
  27201. 'Cl1'
  27202. Left-shift of -1, i.e., a bit mask with a block of leading
  27203. ones, the rest being a block of trailing zeroes. Can only
  27204. match when the '-m1reg-REG' option is active.
  27205. 'Cr1'
  27206. Right-shift of -1, i.e., a bit mask with a trailing block of
  27207. ones, the rest being zeroes. Or to put it another way, one
  27208. less than a power of two. Can only match when the
  27209. '-m1reg-REG' option is active.
  27210. 'Cal'
  27211. Constant for arithmetic/logical operations. This is like 'i',
  27212. except that for position independent code, no symbols /
  27213. expressions needing relocations are allowed.
  27214. 'Csy'
  27215. Symbolic constant for call/jump instruction.
  27216. 'Rcs'
  27217. The register class usable in short insns. This is a register
  27218. class constraint, and can thus drive register allocation.
  27219. This constraint won't match unless '-mprefer-short-insn-regs'
  27220. is in effect.
  27221. 'Rsc'
  27222. The the register class of registers that can be used to hold a
  27223. sibcall call address. I.e., a caller-saved register.
  27224. 'Rct'
  27225. Core control register class.
  27226. 'Rgs'
  27227. The register group usable in short insns. This constraint
  27228. does not use a register class, so that it only passively
  27229. matches suitable registers, and doesn't drive register
  27230. allocation.
  27231. 'Rra'
  27232. Matches the return address if it can be replaced with the link
  27233. register.
  27234. 'Rcc'
  27235. Matches the integer condition code register.
  27236. 'Sra'
  27237. Matches the return address if it is in a stack slot.
  27238. 'Cfm'
  27239. Matches control register values to switch fp mode, which are
  27240. encapsulated in 'UNSPEC_FP_MODE'.
  27241. _FRV--'config/frv/frv.h'_
  27242. 'a'
  27243. Register in the class 'ACC_REGS' ('acc0' to 'acc7').
  27244. 'b'
  27245. Register in the class 'EVEN_ACC_REGS' ('acc0' to 'acc7').
  27246. 'c'
  27247. Register in the class 'CC_REGS' ('fcc0' to 'fcc3' and 'icc0'
  27248. to 'icc3').
  27249. 'd'
  27250. Register in the class 'GPR_REGS' ('gr0' to 'gr63').
  27251. 'e'
  27252. Register in the class 'EVEN_REGS' ('gr0' to 'gr63'). Odd
  27253. registers are excluded not in the class but through the use of
  27254. a machine mode larger than 4 bytes.
  27255. 'f'
  27256. Register in the class 'FPR_REGS' ('fr0' to 'fr63').
  27257. 'h'
  27258. Register in the class 'FEVEN_REGS' ('fr0' to 'fr63'). Odd
  27259. registers are excluded not in the class but through the use of
  27260. a machine mode larger than 4 bytes.
  27261. 'l'
  27262. Register in the class 'LR_REG' (the 'lr' register).
  27263. 'q'
  27264. Register in the class 'QUAD_REGS' ('gr2' to 'gr63'). Register
  27265. numbers not divisible by 4 are excluded not in the class but
  27266. through the use of a machine mode larger than 8 bytes.
  27267. 't'
  27268. Register in the class 'ICC_REGS' ('icc0' to 'icc3').
  27269. 'u'
  27270. Register in the class 'FCC_REGS' ('fcc0' to 'fcc3').
  27271. 'v'
  27272. Register in the class 'ICR_REGS' ('cc4' to 'cc7').
  27273. 'w'
  27274. Register in the class 'FCR_REGS' ('cc0' to 'cc3').
  27275. 'x'
  27276. Register in the class 'QUAD_FPR_REGS' ('fr0' to 'fr63').
  27277. Register numbers not divisible by 4 are excluded not in the
  27278. class but through the use of a machine mode larger than 8
  27279. bytes.
  27280. 'z'
  27281. Register in the class 'SPR_REGS' ('lcr' and 'lr').
  27282. 'A'
  27283. Register in the class 'QUAD_ACC_REGS' ('acc0' to 'acc7').
  27284. 'B'
  27285. Register in the class 'ACCG_REGS' ('accg0' to 'accg7').
  27286. 'C'
  27287. Register in the class 'CR_REGS' ('cc0' to 'cc7').
  27288. 'G'
  27289. Floating point constant zero
  27290. 'I'
  27291. 6-bit signed integer constant
  27292. 'J'
  27293. 10-bit signed integer constant
  27294. 'L'
  27295. 16-bit signed integer constant
  27296. 'M'
  27297. 16-bit unsigned integer constant
  27298. 'N'
  27299. 12-bit signed integer constant that is negative--i.e. in the
  27300. range of -2048 to -1
  27301. 'O'
  27302. Constant zero
  27303. 'P'
  27304. 12-bit signed integer constant that is greater than zero--i.e.
  27305. in the range of 1 to 2047.
  27306. _FT32--'config/ft32/constraints.md'_
  27307. 'A'
  27308. An absolute address
  27309. 'B'
  27310. An offset address
  27311. 'W'
  27312. A register indirect memory operand
  27313. 'e'
  27314. An offset address.
  27315. 'f'
  27316. An offset address.
  27317. 'O'
  27318. The constant zero or one
  27319. 'I'
  27320. A 16-bit signed constant (-32768 ... 32767)
  27321. 'w'
  27322. A bitfield mask suitable for bext or bins
  27323. 'x'
  27324. An inverted bitfield mask suitable for bext or bins
  27325. 'L'
  27326. A 16-bit unsigned constant, multiple of 4 (0 ... 65532)
  27327. 'S'
  27328. A 20-bit signed constant (-524288 ... 524287)
  27329. 'b'
  27330. A constant for a bitfield width (1 ... 16)
  27331. 'KA'
  27332. A 10-bit signed constant (-512 ... 511)
  27333. _Hewlett-Packard PA-RISC--'config/pa/pa.h'_
  27334. 'a'
  27335. General register 1
  27336. 'f'
  27337. Floating point register
  27338. 'q'
  27339. Shift amount register
  27340. 'x'
  27341. Floating point register (deprecated)
  27342. 'y'
  27343. Upper floating point register (32-bit), floating point
  27344. register (64-bit)
  27345. 'Z'
  27346. Any register
  27347. 'I'
  27348. Signed 11-bit integer constant
  27349. 'J'
  27350. Signed 14-bit integer constant
  27351. 'K'
  27352. Integer constant that can be deposited with a 'zdepi'
  27353. instruction
  27354. 'L'
  27355. Signed 5-bit integer constant
  27356. 'M'
  27357. Integer constant 0
  27358. 'N'
  27359. Integer constant that can be loaded with a 'ldil' instruction
  27360. 'O'
  27361. Integer constant whose value plus one is a power of 2
  27362. 'P'
  27363. Integer constant that can be used for 'and' operations in
  27364. 'depi' and 'extru' instructions
  27365. 'S'
  27366. Integer constant 31
  27367. 'U'
  27368. Integer constant 63
  27369. 'G'
  27370. Floating-point constant 0.0
  27371. 'A'
  27372. A 'lo_sum' data-linkage-table memory operand
  27373. 'Q'
  27374. A memory operand that can be used as the destination operand
  27375. of an integer store instruction
  27376. 'R'
  27377. A scaled or unscaled indexed memory operand
  27378. 'T'
  27379. A memory operand for floating-point loads and stores
  27380. 'W'
  27381. A register indirect memory operand
  27382. _Intel IA-64--'config/ia64/ia64.h'_
  27383. 'a'
  27384. General register 'r0' to 'r3' for 'addl' instruction
  27385. 'b'
  27386. Branch register
  27387. 'c'
  27388. Predicate register ('c' as in "conditional")
  27389. 'd'
  27390. Application register residing in M-unit
  27391. 'e'
  27392. Application register residing in I-unit
  27393. 'f'
  27394. Floating-point register
  27395. 'm'
  27396. Memory operand. If used together with '<' or '>', the operand
  27397. can have postincrement and postdecrement which require
  27398. printing with '%Pn' on IA-64.
  27399. 'G'
  27400. Floating-point constant 0.0 or 1.0
  27401. 'I'
  27402. 14-bit signed integer constant
  27403. 'J'
  27404. 22-bit signed integer constant
  27405. 'K'
  27406. 8-bit signed integer constant for logical instructions
  27407. 'L'
  27408. 8-bit adjusted signed integer constant for compare pseudo-ops
  27409. 'M'
  27410. 6-bit unsigned integer constant for shift counts
  27411. 'N'
  27412. 9-bit signed integer constant for load and store
  27413. postincrements
  27414. 'O'
  27415. The constant zero
  27416. 'P'
  27417. 0 or -1 for 'dep' instruction
  27418. 'Q'
  27419. Non-volatile memory for floating-point loads and stores
  27420. 'R'
  27421. Integer constant in the range 1 to 4 for 'shladd' instruction
  27422. 'S'
  27423. Memory operand except postincrement and postdecrement. This
  27424. is now roughly the same as 'm' when not used together with '<'
  27425. or '>'.
  27426. _M32C--'config/m32c/m32c.c'_
  27427. 'Rsp'
  27428. 'Rfb'
  27429. 'Rsb'
  27430. '$sp', '$fb', '$sb'.
  27431. 'Rcr'
  27432. Any control register, when they're 16 bits wide (nothing if
  27433. control registers are 24 bits wide)
  27434. 'Rcl'
  27435. Any control register, when they're 24 bits wide.
  27436. 'R0w'
  27437. 'R1w'
  27438. 'R2w'
  27439. 'R3w'
  27440. $r0, $r1, $r2, $r3.
  27441. 'R02'
  27442. $r0 or $r2, or $r2r0 for 32 bit values.
  27443. 'R13'
  27444. $r1 or $r3, or $r3r1 for 32 bit values.
  27445. 'Rdi'
  27446. A register that can hold a 64 bit value.
  27447. 'Rhl'
  27448. $r0 or $r1 (registers with addressable high/low bytes)
  27449. 'R23'
  27450. $r2 or $r3
  27451. 'Raa'
  27452. Address registers
  27453. 'Raw'
  27454. Address registers when they're 16 bits wide.
  27455. 'Ral'
  27456. Address registers when they're 24 bits wide.
  27457. 'Rqi'
  27458. Registers that can hold QI values.
  27459. 'Rad'
  27460. Registers that can be used with displacements ($a0, $a1, $sb).
  27461. 'Rsi'
  27462. Registers that can hold 32 bit values.
  27463. 'Rhi'
  27464. Registers that can hold 16 bit values.
  27465. 'Rhc'
  27466. Registers chat can hold 16 bit values, including all control
  27467. registers.
  27468. 'Rra'
  27469. $r0 through R1, plus $a0 and $a1.
  27470. 'Rfl'
  27471. The flags register.
  27472. 'Rmm'
  27473. The memory-based pseudo-registers $mem0 through $mem15.
  27474. 'Rpi'
  27475. Registers that can hold pointers (16 bit registers for r8c,
  27476. m16c; 24 bit registers for m32cm, m32c).
  27477. 'Rpa'
  27478. Matches multiple registers in a PARALLEL to form a larger
  27479. register. Used to match function return values.
  27480. 'Is3'
  27481. -8 ... 7
  27482. 'IS1'
  27483. -128 ... 127
  27484. 'IS2'
  27485. -32768 ... 32767
  27486. 'IU2'
  27487. 0 ... 65535
  27488. 'In4'
  27489. -8 ... -1 or 1 ... 8
  27490. 'In5'
  27491. -16 ... -1 or 1 ... 16
  27492. 'In6'
  27493. -32 ... -1 or 1 ... 32
  27494. 'IM2'
  27495. -65536 ... -1
  27496. 'Ilb'
  27497. An 8 bit value with exactly one bit set.
  27498. 'Ilw'
  27499. A 16 bit value with exactly one bit set.
  27500. 'Sd'
  27501. The common src/dest memory addressing modes.
  27502. 'Sa'
  27503. Memory addressed using $a0 or $a1.
  27504. 'Si'
  27505. Memory addressed with immediate addresses.
  27506. 'Ss'
  27507. Memory addressed using the stack pointer ($sp).
  27508. 'Sf'
  27509. Memory addressed using the frame base register ($fb).
  27510. 'Ss'
  27511. Memory addressed using the small base register ($sb).
  27512. 'S1'
  27513. $r1h
  27514. _MicroBlaze--'config/microblaze/constraints.md'_
  27515. 'd'
  27516. A general register ('r0' to 'r31').
  27517. 'z'
  27518. A status register ('rmsr', '$fcc1' to '$fcc7').
  27519. _MIPS--'config/mips/constraints.md'_
  27520. 'd'
  27521. A general-purpose register. This is equivalent to 'r' unless
  27522. generating MIPS16 code, in which case the MIPS16 register set
  27523. is used.
  27524. 'f'
  27525. A floating-point register (if available).
  27526. 'h'
  27527. Formerly the 'hi' register. This constraint is no longer
  27528. supported.
  27529. 'l'
  27530. The 'lo' register. Use this register to store values that are
  27531. no bigger than a word.
  27532. 'x'
  27533. The concatenated 'hi' and 'lo' registers. Use this register
  27534. to store doubleword values.
  27535. 'c'
  27536. A register suitable for use in an indirect jump. This will
  27537. always be '$25' for '-mabicalls'.
  27538. 'v'
  27539. Register '$3'. Do not use this constraint in new code; it is
  27540. retained only for compatibility with glibc.
  27541. 'y'
  27542. Equivalent to 'r'; retained for backwards compatibility.
  27543. 'z'
  27544. A floating-point condition code register.
  27545. 'I'
  27546. A signed 16-bit constant (for arithmetic instructions).
  27547. 'J'
  27548. Integer zero.
  27549. 'K'
  27550. An unsigned 16-bit constant (for logic instructions).
  27551. 'L'
  27552. A signed 32-bit constant in which the lower 16 bits are zero.
  27553. Such constants can be loaded using 'lui'.
  27554. 'M'
  27555. A constant that cannot be loaded using 'lui', 'addiu' or
  27556. 'ori'.
  27557. 'N'
  27558. A constant in the range -65535 to -1 (inclusive).
  27559. 'O'
  27560. A signed 15-bit constant.
  27561. 'P'
  27562. A constant in the range 1 to 65535 (inclusive).
  27563. 'G'
  27564. Floating-point zero.
  27565. 'R'
  27566. An address that can be used in a non-macro load or store.
  27567. 'ZC'
  27568. A memory operand whose address is formed by a base register
  27569. and offset that is suitable for use in instructions with the
  27570. same addressing mode as 'll' and 'sc'.
  27571. 'ZD'
  27572. An address suitable for a 'prefetch' instruction, or for any
  27573. other instruction with the same addressing mode as 'prefetch'.
  27574. _Motorola 680x0--'config/m68k/constraints.md'_
  27575. 'a'
  27576. Address register
  27577. 'd'
  27578. Data register
  27579. 'f'
  27580. 68881 floating-point register, if available
  27581. 'I'
  27582. Integer in the range 1 to 8
  27583. 'J'
  27584. 16-bit signed number
  27585. 'K'
  27586. Signed number whose magnitude is greater than 0x80
  27587. 'L'
  27588. Integer in the range -8 to -1
  27589. 'M'
  27590. Signed number whose magnitude is greater than 0x100
  27591. 'N'
  27592. Range 24 to 31, rotatert:SI 8 to 1 expressed as rotate
  27593. 'O'
  27594. 16 (for rotate using swap)
  27595. 'P'
  27596. Range 8 to 15, rotatert:HI 8 to 1 expressed as rotate
  27597. 'R'
  27598. Numbers that mov3q can handle
  27599. 'G'
  27600. Floating point constant that is not a 68881 constant
  27601. 'S'
  27602. Operands that satisfy 'm' when -mpcrel is in effect
  27603. 'T'
  27604. Operands that satisfy 's' when -mpcrel is not in effect
  27605. 'Q'
  27606. Address register indirect addressing mode
  27607. 'U'
  27608. Register offset addressing
  27609. 'W'
  27610. const_call_operand
  27611. 'Cs'
  27612. symbol_ref or const
  27613. 'Ci'
  27614. const_int
  27615. 'C0'
  27616. const_int 0
  27617. 'Cj'
  27618. Range of signed numbers that don't fit in 16 bits
  27619. 'Cmvq'
  27620. Integers valid for mvq
  27621. 'Capsw'
  27622. Integers valid for a moveq followed by a swap
  27623. 'Cmvz'
  27624. Integers valid for mvz
  27625. 'Cmvs'
  27626. Integers valid for mvs
  27627. 'Ap'
  27628. push_operand
  27629. 'Ac'
  27630. Non-register operands allowed in clr
  27631. _Moxie--'config/moxie/constraints.md'_
  27632. 'A'
  27633. An absolute address
  27634. 'B'
  27635. An offset address
  27636. 'W'
  27637. A register indirect memory operand
  27638. 'I'
  27639. A constant in the range of 0 to 255.
  27640. 'N'
  27641. A constant in the range of 0 to -255.
  27642. _MSP430-'config/msp430/constraints.md'_
  27643. 'R12'
  27644. Register R12.
  27645. 'R13'
  27646. Register R13.
  27647. 'K'
  27648. Integer constant 1.
  27649. 'L'
  27650. Integer constant -1^20..1^19.
  27651. 'M'
  27652. Integer constant 1-4.
  27653. 'Ya'
  27654. Memory references which do not require an extended MOVX
  27655. instruction.
  27656. 'Yl'
  27657. Memory reference, labels only.
  27658. 'Ys'
  27659. Memory reference, stack only.
  27660. _NDS32--'config/nds32/constraints.md'_
  27661. 'w'
  27662. LOW register class $r0 to $r7 constraint for V3/V3M ISA.
  27663. 'l'
  27664. LOW register class $r0 to $r7.
  27665. 'd'
  27666. MIDDLE register class $r0 to $r11, $r16 to $r19.
  27667. 'h'
  27668. HIGH register class $r12 to $r14, $r20 to $r31.
  27669. 't'
  27670. Temporary assist register $ta (i.e. $r15).
  27671. 'k'
  27672. Stack register $sp.
  27673. 'Iu03'
  27674. Unsigned immediate 3-bit value.
  27675. 'In03'
  27676. Negative immediate 3-bit value in the range of -7-0.
  27677. 'Iu04'
  27678. Unsigned immediate 4-bit value.
  27679. 'Is05'
  27680. Signed immediate 5-bit value.
  27681. 'Iu05'
  27682. Unsigned immediate 5-bit value.
  27683. 'In05'
  27684. Negative immediate 5-bit value in the range of -31-0.
  27685. 'Ip05'
  27686. Unsigned immediate 5-bit value for movpi45 instruction with
  27687. range 16-47.
  27688. 'Iu06'
  27689. Unsigned immediate 6-bit value constraint for addri36.sp
  27690. instruction.
  27691. 'Iu08'
  27692. Unsigned immediate 8-bit value.
  27693. 'Iu09'
  27694. Unsigned immediate 9-bit value.
  27695. 'Is10'
  27696. Signed immediate 10-bit value.
  27697. 'Is11'
  27698. Signed immediate 11-bit value.
  27699. 'Is15'
  27700. Signed immediate 15-bit value.
  27701. 'Iu15'
  27702. Unsigned immediate 15-bit value.
  27703. 'Ic15'
  27704. A constant which is not in the range of imm15u but ok for bclr
  27705. instruction.
  27706. 'Ie15'
  27707. A constant which is not in the range of imm15u but ok for bset
  27708. instruction.
  27709. 'It15'
  27710. A constant which is not in the range of imm15u but ok for btgl
  27711. instruction.
  27712. 'Ii15'
  27713. A constant whose compliment value is in the range of imm15u
  27714. and ok for bitci instruction.
  27715. 'Is16'
  27716. Signed immediate 16-bit value.
  27717. 'Is17'
  27718. Signed immediate 17-bit value.
  27719. 'Is19'
  27720. Signed immediate 19-bit value.
  27721. 'Is20'
  27722. Signed immediate 20-bit value.
  27723. 'Ihig'
  27724. The immediate value that can be simply set high 20-bit.
  27725. 'Izeb'
  27726. The immediate value 0xff.
  27727. 'Izeh'
  27728. The immediate value 0xffff.
  27729. 'Ixls'
  27730. The immediate value 0x01.
  27731. 'Ix11'
  27732. The immediate value 0x7ff.
  27733. 'Ibms'
  27734. The immediate value with power of 2.
  27735. 'Ifex'
  27736. The immediate value with power of 2 minus 1.
  27737. 'U33'
  27738. Memory constraint for 333 format.
  27739. 'U45'
  27740. Memory constraint for 45 format.
  27741. 'U37'
  27742. Memory constraint for 37 format.
  27743. _Nios II family--'config/nios2/constraints.md'_
  27744. 'I'
  27745. Integer that is valid as an immediate operand in an
  27746. instruction taking a signed 16-bit number. Range -32768 to
  27747. 32767.
  27748. 'J'
  27749. Integer that is valid as an immediate operand in an
  27750. instruction taking an unsigned 16-bit number. Range 0 to
  27751. 65535.
  27752. 'K'
  27753. Integer that is valid as an immediate operand in an
  27754. instruction taking only the upper 16-bits of a 32-bit number.
  27755. Range 32-bit numbers with the lower 16-bits being 0.
  27756. 'L'
  27757. Integer that is valid as an immediate operand for a shift
  27758. instruction. Range 0 to 31.
  27759. 'M'
  27760. Integer that is valid as an immediate operand for only the
  27761. value 0. Can be used in conjunction with the format modifier
  27762. 'z' to use 'r0' instead of '0' in the assembly output.
  27763. 'N'
  27764. Integer that is valid as an immediate operand for a custom
  27765. instruction opcode. Range 0 to 255.
  27766. 'P'
  27767. An immediate operand for R2 andchi/andci instructions.
  27768. 'S'
  27769. Matches immediates which are addresses in the small data
  27770. section and therefore can be added to 'gp' as a 16-bit
  27771. immediate to re-create their 32-bit value.
  27772. 'U'
  27773. Matches constants suitable as an operand for the rdprs and
  27774. cache instructions.
  27775. 'v'
  27776. A memory operand suitable for Nios II R2 load/store exclusive
  27777. instructions.
  27778. 'w'
  27779. A memory operand suitable for load/store IO and cache
  27780. instructions.
  27781. _PDP-11--'config/pdp11/constraints.md'_
  27782. 'a'
  27783. Floating point registers AC0 through AC3. These can be loaded
  27784. from/to memory with a single instruction.
  27785. 'd'
  27786. Odd numbered general registers (R1, R3, R5). These are used
  27787. for 16-bit multiply operations.
  27788. 'f'
  27789. Any of the floating point registers (AC0 through AC5).
  27790. 'G'
  27791. Floating point constant 0.
  27792. 'I'
  27793. An integer constant that fits in 16 bits.
  27794. 'J'
  27795. An integer constant whose low order 16 bits are zero.
  27796. 'K'
  27797. An integer constant that does not meet the constraints for
  27798. codes 'I' or 'J'.
  27799. 'L'
  27800. The integer constant 1.
  27801. 'M'
  27802. The integer constant -1.
  27803. 'N'
  27804. The integer constant 0.
  27805. 'O'
  27806. Integer constants -4 through -1 and 1 through 4; shifts by
  27807. these amounts are handled as multiple single-bit shifts rather
  27808. than a single variable-length shift.
  27809. 'Q'
  27810. A memory reference which requires an additional word (address
  27811. or offset) after the opcode.
  27812. 'R'
  27813. A memory reference that is encoded within the opcode.
  27814. _PowerPC and IBM RS6000--'config/rs6000/constraints.md'_
  27815. 'b'
  27816. Address base register
  27817. 'd'
  27818. Floating point register (containing 64-bit value)
  27819. 'f'
  27820. Floating point register (containing 32-bit value)
  27821. 'v'
  27822. Altivec vector register
  27823. 'wa'
  27824. Any VSX register if the '-mvsx' option was used or NO_REGS.
  27825. When using any of the register constraints ('wa', 'wd', 'wf',
  27826. 'wg', 'wh', 'wi', 'wj', 'wk', 'wl', 'wm', 'wo', 'wp', 'wq',
  27827. 'ws', 'wt', 'wu', 'wv', 'ww', or 'wy') that take VSX
  27828. registers, you must use '%x<n>' in the template so that the
  27829. correct register is used. Otherwise the register number
  27830. output in the assembly file will be incorrect if an Altivec
  27831. register is an operand of a VSX instruction that expects VSX
  27832. register numbering.
  27833. asm ("xvadddp %x0,%x1,%x2"
  27834. : "=wa" (v1)
  27835. : "wa" (v2), "wa" (v3));
  27836. is correct, but:
  27837. asm ("xvadddp %0,%1,%2"
  27838. : "=wa" (v1)
  27839. : "wa" (v2), "wa" (v3));
  27840. is not correct.
  27841. If an instruction only takes Altivec registers, you do not
  27842. want to use '%x<n>'.
  27843. asm ("xsaddqp %0,%1,%2"
  27844. : "=v" (v1)
  27845. : "v" (v2), "v" (v3));
  27846. is correct because the 'xsaddqp' instruction only takes
  27847. Altivec registers, while:
  27848. asm ("xsaddqp %x0,%x1,%x2"
  27849. : "=v" (v1)
  27850. : "v" (v2), "v" (v3));
  27851. is incorrect.
  27852. 'wb'
  27853. Altivec register if '-mcpu=power9' is used or NO_REGS.
  27854. 'wd'
  27855. VSX vector register to hold vector double data or NO_REGS.
  27856. 'we'
  27857. VSX register if the '-mcpu=power9' and '-m64' options were
  27858. used or NO_REGS.
  27859. 'wf'
  27860. VSX vector register to hold vector float data or NO_REGS.
  27861. 'wg'
  27862. If '-mmfpgpr' was used, a floating point register or NO_REGS.
  27863. 'wh'
  27864. Floating point register if direct moves are available, or
  27865. NO_REGS.
  27866. 'wi'
  27867. FP or VSX register to hold 64-bit integers for VSX insns or
  27868. NO_REGS.
  27869. 'wj'
  27870. FP or VSX register to hold 64-bit integers for direct moves or
  27871. NO_REGS.
  27872. 'wk'
  27873. FP or VSX register to hold 64-bit doubles for direct moves or
  27874. NO_REGS.
  27875. 'wl'
  27876. Floating point register if the LFIWAX instruction is enabled
  27877. or NO_REGS.
  27878. 'wm'
  27879. VSX register if direct move instructions are enabled, or
  27880. NO_REGS.
  27881. 'wn'
  27882. No register (NO_REGS).
  27883. 'wo'
  27884. VSX register to use for ISA 3.0 vector instructions, or
  27885. NO_REGS.
  27886. 'wp'
  27887. VSX register to use for IEEE 128-bit floating point TFmode, or
  27888. NO_REGS.
  27889. 'wq'
  27890. VSX register to use for IEEE 128-bit floating point, or
  27891. NO_REGS.
  27892. 'wr'
  27893. General purpose register if 64-bit instructions are enabled or
  27894. NO_REGS.
  27895. 'ws'
  27896. VSX vector register to hold scalar double values or NO_REGS.
  27897. 'wt'
  27898. VSX vector register to hold 128 bit integer or NO_REGS.
  27899. 'wu'
  27900. Altivec register to use for float/32-bit int loads/stores or
  27901. NO_REGS.
  27902. 'wv'
  27903. Altivec register to use for double loads/stores or NO_REGS.
  27904. 'ww'
  27905. FP or VSX register to perform float operations under '-mvsx'
  27906. or NO_REGS.
  27907. 'wx'
  27908. Floating point register if the STFIWX instruction is enabled
  27909. or NO_REGS.
  27910. 'wy'
  27911. FP or VSX register to perform ISA 2.07 float ops or NO_REGS.
  27912. 'wz'
  27913. Floating point register if the LFIWZX instruction is enabled
  27914. or NO_REGS.
  27915. 'wA'
  27916. Address base register if 64-bit instructions are enabled or
  27917. NO_REGS.
  27918. 'wB'
  27919. Signed 5-bit constant integer that can be loaded into an
  27920. altivec register.
  27921. 'wD'
  27922. Int constant that is the element number of the 64-bit scalar
  27923. in a vector.
  27924. 'wE'
  27925. Vector constant that can be loaded with the XXSPLTIB
  27926. instruction.
  27927. 'wF'
  27928. Memory operand suitable for power9 fusion load/stores.
  27929. 'wG'
  27930. Memory operand suitable for TOC fusion memory references.
  27931. 'wH'
  27932. Altivec register if '-mvsx-small-integer'.
  27933. 'wI'
  27934. Floating point register if '-mvsx-small-integer'.
  27935. 'wJ'
  27936. FP register if '-mvsx-small-integer' and '-mpower9-vector'.
  27937. 'wK'
  27938. Altivec register if '-mvsx-small-integer' and
  27939. '-mpower9-vector'.
  27940. 'wL'
  27941. Int constant that is the element number that the MFVSRLD
  27942. instruction. targets.
  27943. 'wM'
  27944. Match vector constant with all 1's if the XXLORC instruction
  27945. is available.
  27946. 'wO'
  27947. A memory operand suitable for the ISA 3.0 vector d-form
  27948. instructions.
  27949. 'wQ'
  27950. A memory address that will work with the 'lq' and 'stq'
  27951. instructions.
  27952. 'wS'
  27953. Vector constant that can be loaded with XXSPLTIB & sign
  27954. extension.
  27955. 'h'
  27956. 'MQ', 'CTR', or 'LINK' register
  27957. 'c'
  27958. 'CTR' register
  27959. 'l'
  27960. 'LINK' register
  27961. 'x'
  27962. 'CR' register (condition register) number 0
  27963. 'y'
  27964. 'CR' register (condition register)
  27965. 'z'
  27966. 'XER[CA]' carry bit (part of the XER register)
  27967. 'I'
  27968. Signed 16-bit constant
  27969. 'J'
  27970. Unsigned 16-bit constant shifted left 16 bits (use 'L' instead
  27971. for 'SImode' constants)
  27972. 'K'
  27973. Unsigned 16-bit constant
  27974. 'L'
  27975. Signed 16-bit constant shifted left 16 bits
  27976. 'M'
  27977. Constant larger than 31
  27978. 'N'
  27979. Exact power of 2
  27980. 'O'
  27981. Zero
  27982. 'P'
  27983. Constant whose negation is a signed 16-bit constant
  27984. 'G'
  27985. Floating point constant that can be loaded into a register
  27986. with one instruction per word
  27987. 'H'
  27988. Integer/Floating point constant that can be loaded into a
  27989. register using three instructions
  27990. 'm'
  27991. Memory operand. Normally, 'm' does not allow addresses that
  27992. update the base register. If '<' or '>' constraint is also
  27993. used, they are allowed and therefore on PowerPC targets in
  27994. that case it is only safe to use 'm<>' in an 'asm' statement
  27995. if that 'asm' statement accesses the operand exactly once.
  27996. The 'asm' statement must also use '%U<OPNO>' as a placeholder
  27997. for the "update" flag in the corresponding load or store
  27998. instruction. For example:
  27999. asm ("st%U0 %1,%0" : "=m<>" (mem) : "r" (val));
  28000. is correct but:
  28001. asm ("st %1,%0" : "=m<>" (mem) : "r" (val));
  28002. is not.
  28003. 'es'
  28004. A "stable" memory operand; that is, one which does not include
  28005. any automodification of the base register. This used to be
  28006. useful when 'm' allowed automodification of the base register,
  28007. but as those are now only allowed when '<' or '>' is used,
  28008. 'es' is basically the same as 'm' without '<' and '>'.
  28009. 'Q'
  28010. Memory operand that is an offset from a register (it is
  28011. usually better to use 'm' or 'es' in 'asm' statements)
  28012. 'Z'
  28013. Memory operand that is an indexed or indirect from a register
  28014. (it is usually better to use 'm' or 'es' in 'asm' statements)
  28015. 'R'
  28016. AIX TOC entry
  28017. 'a'
  28018. Address operand that is an indexed or indirect from a register
  28019. ('p' is preferable for 'asm' statements)
  28020. 'U'
  28021. System V Release 4 small data area reference
  28022. 'W'
  28023. Vector constant that does not require memory
  28024. 'j'
  28025. Vector constant that is all zeros.
  28026. _RL78--'config/rl78/constraints.md'_
  28027. 'Int3'
  28028. An integer constant in the range 1 ... 7.
  28029. 'Int8'
  28030. An integer constant in the range 0 ... 255.
  28031. 'J'
  28032. An integer constant in the range -255 ... 0
  28033. 'K'
  28034. The integer constant 1.
  28035. 'L'
  28036. The integer constant -1.
  28037. 'M'
  28038. The integer constant 0.
  28039. 'N'
  28040. The integer constant 2.
  28041. 'O'
  28042. The integer constant -2.
  28043. 'P'
  28044. An integer constant in the range 1 ... 15.
  28045. 'Qbi'
  28046. The built-in compare types-eq, ne, gtu, ltu, geu, and leu.
  28047. 'Qsc'
  28048. The synthetic compare types-gt, lt, ge, and le.
  28049. 'Wab'
  28050. A memory reference with an absolute address.
  28051. 'Wbc'
  28052. A memory reference using 'BC' as a base register, with an
  28053. optional offset.
  28054. 'Wca'
  28055. A memory reference using 'AX', 'BC', 'DE', or 'HL' for the
  28056. address, for calls.
  28057. 'Wcv'
  28058. A memory reference using any 16-bit register pair for the
  28059. address, for calls.
  28060. 'Wd2'
  28061. A memory reference using 'DE' as a base register, with an
  28062. optional offset.
  28063. 'Wde'
  28064. A memory reference using 'DE' as a base register, without any
  28065. offset.
  28066. 'Wfr'
  28067. Any memory reference to an address in the far address space.
  28068. 'Wh1'
  28069. A memory reference using 'HL' as a base register, with an
  28070. optional one-byte offset.
  28071. 'Whb'
  28072. A memory reference using 'HL' as a base register, with 'B' or
  28073. 'C' as the index register.
  28074. 'Whl'
  28075. A memory reference using 'HL' as a base register, without any
  28076. offset.
  28077. 'Ws1'
  28078. A memory reference using 'SP' as a base register, with an
  28079. optional one-byte offset.
  28080. 'Y'
  28081. Any memory reference to an address in the near address space.
  28082. 'A'
  28083. The 'AX' register.
  28084. 'B'
  28085. The 'BC' register.
  28086. 'D'
  28087. The 'DE' register.
  28088. 'R'
  28089. 'A' through 'L' registers.
  28090. 'S'
  28091. The 'SP' register.
  28092. 'T'
  28093. The 'HL' register.
  28094. 'Z08W'
  28095. The 16-bit 'R8' register.
  28096. 'Z10W'
  28097. The 16-bit 'R10' register.
  28098. 'Zint'
  28099. The registers reserved for interrupts ('R24' to 'R31').
  28100. 'a'
  28101. The 'A' register.
  28102. 'b'
  28103. The 'B' register.
  28104. 'c'
  28105. The 'C' register.
  28106. 'd'
  28107. The 'D' register.
  28108. 'e'
  28109. The 'E' register.
  28110. 'h'
  28111. The 'H' register.
  28112. 'l'
  28113. The 'L' register.
  28114. 'v'
  28115. The virtual registers.
  28116. 'w'
  28117. The 'PSW' register.
  28118. 'x'
  28119. The 'X' register.
  28120. _RISC-V--'config/riscv/constraints.md'_
  28121. 'f'
  28122. A floating-point register (if availiable).
  28123. 'I'
  28124. An I-type 12-bit signed immediate.
  28125. 'J'
  28126. Integer zero.
  28127. 'K'
  28128. A 5-bit unsigned immediate for CSR access instructions.
  28129. 'A'
  28130. An address that is held in a general-purpose register.
  28131. _RX--'config/rx/constraints.md'_
  28132. 'Q'
  28133. An address which does not involve register indirect addressing
  28134. or pre/post increment/decrement addressing.
  28135. 'Symbol'
  28136. A symbol reference.
  28137. 'Int08'
  28138. A constant in the range -256 to 255, inclusive.
  28139. 'Sint08'
  28140. A constant in the range -128 to 127, inclusive.
  28141. 'Sint16'
  28142. A constant in the range -32768 to 32767, inclusive.
  28143. 'Sint24'
  28144. A constant in the range -8388608 to 8388607, inclusive.
  28145. 'Uint04'
  28146. A constant in the range 0 to 15, inclusive.
  28147. _S/390 and zSeries--'config/s390/s390.h'_
  28148. 'a'
  28149. Address register (general purpose register except r0)
  28150. 'c'
  28151. Condition code register
  28152. 'd'
  28153. Data register (arbitrary general purpose register)
  28154. 'f'
  28155. Floating-point register
  28156. 'I'
  28157. Unsigned 8-bit constant (0-255)
  28158. 'J'
  28159. Unsigned 12-bit constant (0-4095)
  28160. 'K'
  28161. Signed 16-bit constant (-32768-32767)
  28162. 'L'
  28163. Value appropriate as displacement.
  28164. '(0..4095)'
  28165. for short displacement
  28166. '(-524288..524287)'
  28167. for long displacement
  28168. 'M'
  28169. Constant integer with a value of 0x7fffffff.
  28170. 'N'
  28171. Multiple letter constraint followed by 4 parameter letters.
  28172. '0..9:'
  28173. number of the part counting from most to least
  28174. significant
  28175. 'H,Q:'
  28176. mode of the part
  28177. 'D,S,H:'
  28178. mode of the containing operand
  28179. '0,F:'
  28180. value of the other parts (F--all bits set)
  28181. The constraint matches if the specified part of a constant has
  28182. a value different from its other parts.
  28183. 'Q'
  28184. Memory reference without index register and with short
  28185. displacement.
  28186. 'R'
  28187. Memory reference with index register and short displacement.
  28188. 'S'
  28189. Memory reference without index register but with long
  28190. displacement.
  28191. 'T'
  28192. Memory reference with index register and long displacement.
  28193. 'U'
  28194. Pointer with short displacement.
  28195. 'W'
  28196. Pointer with long displacement.
  28197. 'Y'
  28198. Shift count operand.
  28199. _SPARC--'config/sparc/sparc.h'_
  28200. 'f'
  28201. Floating-point register on the SPARC-V8 architecture and lower
  28202. floating-point register on the SPARC-V9 architecture.
  28203. 'e'
  28204. Floating-point register. It is equivalent to 'f' on the
  28205. SPARC-V8 architecture and contains both lower and upper
  28206. floating-point registers on the SPARC-V9 architecture.
  28207. 'c'
  28208. Floating-point condition code register.
  28209. 'd'
  28210. Lower floating-point register. It is only valid on the
  28211. SPARC-V9 architecture when the Visual Instruction Set is
  28212. available.
  28213. 'b'
  28214. Floating-point register. It is only valid on the SPARC-V9
  28215. architecture when the Visual Instruction Set is available.
  28216. 'h'
  28217. 64-bit global or out register for the SPARC-V8+ architecture.
  28218. 'C'
  28219. The constant all-ones, for floating-point.
  28220. 'A'
  28221. Signed 5-bit constant
  28222. 'D'
  28223. A vector constant
  28224. 'I'
  28225. Signed 13-bit constant
  28226. 'J'
  28227. Zero
  28228. 'K'
  28229. 32-bit constant with the low 12 bits clear (a constant that
  28230. can be loaded with the 'sethi' instruction)
  28231. 'L'
  28232. A constant in the range supported by 'movcc' instructions
  28233. (11-bit signed immediate)
  28234. 'M'
  28235. A constant in the range supported by 'movrcc' instructions
  28236. (10-bit signed immediate)
  28237. 'N'
  28238. Same as 'K', except that it verifies that bits that are not in
  28239. the lower 32-bit range are all zero. Must be used instead of
  28240. 'K' for modes wider than 'SImode'
  28241. 'O'
  28242. The constant 4096
  28243. 'G'
  28244. Floating-point zero
  28245. 'H'
  28246. Signed 13-bit constant, sign-extended to 32 or 64 bits
  28247. 'P'
  28248. The constant -1
  28249. 'Q'
  28250. Floating-point constant whose integral representation can be
  28251. moved into an integer register using a single sethi
  28252. instruction
  28253. 'R'
  28254. Floating-point constant whose integral representation can be
  28255. moved into an integer register using a single mov instruction
  28256. 'S'
  28257. Floating-point constant whose integral representation can be
  28258. moved into an integer register using a high/lo_sum instruction
  28259. sequence
  28260. 'T'
  28261. Memory address aligned to an 8-byte boundary
  28262. 'U'
  28263. Even register
  28264. 'W'
  28265. Memory address for 'e' constraint registers
  28266. 'w'
  28267. Memory address with only a base register
  28268. 'Y'
  28269. Vector zero
  28270. _SPU--'config/spu/spu.h'_
  28271. 'a'
  28272. An immediate which can be loaded with the il/ila/ilh/ilhu
  28273. instructions. const_int is treated as a 64 bit value.
  28274. 'c'
  28275. An immediate for and/xor/or instructions. const_int is
  28276. treated as a 64 bit value.
  28277. 'd'
  28278. An immediate for the 'iohl' instruction. const_int is treated
  28279. as a 64 bit value.
  28280. 'f'
  28281. An immediate which can be loaded with 'fsmbi'.
  28282. 'A'
  28283. An immediate which can be loaded with the il/ila/ilh/ilhu
  28284. instructions. const_int is treated as a 32 bit value.
  28285. 'B'
  28286. An immediate for most arithmetic instructions. const_int is
  28287. treated as a 32 bit value.
  28288. 'C'
  28289. An immediate for and/xor/or instructions. const_int is
  28290. treated as a 32 bit value.
  28291. 'D'
  28292. An immediate for the 'iohl' instruction. const_int is treated
  28293. as a 32 bit value.
  28294. 'I'
  28295. A constant in the range [-64, 63] for shift/rotate
  28296. instructions.
  28297. 'J'
  28298. An unsigned 7-bit constant for conversion/nop/channel
  28299. instructions.
  28300. 'K'
  28301. A signed 10-bit constant for most arithmetic instructions.
  28302. 'M'
  28303. A signed 16 bit immediate for 'stop'.
  28304. 'N'
  28305. An unsigned 16-bit constant for 'iohl' and 'fsmbi'.
  28306. 'O'
  28307. An unsigned 7-bit constant whose 3 least significant bits are
  28308. 0.
  28309. 'P'
  28310. An unsigned 3-bit constant for 16-byte rotates and shifts
  28311. 'R'
  28312. Call operand, reg, for indirect calls
  28313. 'S'
  28314. Call operand, symbol, for relative calls.
  28315. 'T'
  28316. Call operand, const_int, for absolute calls.
  28317. 'U'
  28318. An immediate which can be loaded with the il/ila/ilh/ilhu
  28319. instructions. const_int is sign extended to 128 bit.
  28320. 'W'
  28321. An immediate for shift and rotate instructions. const_int is
  28322. treated as a 32 bit value.
  28323. 'Y'
  28324. An immediate for and/xor/or instructions. const_int is sign
  28325. extended as a 128 bit.
  28326. 'Z'
  28327. An immediate for the 'iohl' instruction. const_int is sign
  28328. extended to 128 bit.
  28329. _TI C6X family--'config/c6x/constraints.md'_
  28330. 'a'
  28331. Register file A (A0-A31).
  28332. 'b'
  28333. Register file B (B0-B31).
  28334. 'A'
  28335. Predicate registers in register file A (A0-A2 on C64X and
  28336. higher, A1 and A2 otherwise).
  28337. 'B'
  28338. Predicate registers in register file B (B0-B2).
  28339. 'C'
  28340. A call-used register in register file B (B0-B9, B16-B31).
  28341. 'Da'
  28342. Register file A, excluding predicate registers (A3-A31, plus
  28343. A0 if not C64X or higher).
  28344. 'Db'
  28345. Register file B, excluding predicate registers (B3-B31).
  28346. 'Iu4'
  28347. Integer constant in the range 0 ... 15.
  28348. 'Iu5'
  28349. Integer constant in the range 0 ... 31.
  28350. 'In5'
  28351. Integer constant in the range -31 ... 0.
  28352. 'Is5'
  28353. Integer constant in the range -16 ... 15.
  28354. 'I5x'
  28355. Integer constant that can be the operand of an ADDA or a SUBA
  28356. insn.
  28357. 'IuB'
  28358. Integer constant in the range 0 ... 65535.
  28359. 'IsB'
  28360. Integer constant in the range -32768 ... 32767.
  28361. 'IsC'
  28362. Integer constant in the range -2^{20} ... 2^{20} - 1.
  28363. 'Jc'
  28364. Integer constant that is a valid mask for the clr instruction.
  28365. 'Js'
  28366. Integer constant that is a valid mask for the set instruction.
  28367. 'Q'
  28368. Memory location with A base register.
  28369. 'R'
  28370. Memory location with B base register.
  28371. 'Z'
  28372. Register B14 (aka DP).
  28373. _TILE-Gx--'config/tilegx/constraints.md'_
  28374. 'R00'
  28375. 'R01'
  28376. 'R02'
  28377. 'R03'
  28378. 'R04'
  28379. 'R05'
  28380. 'R06'
  28381. 'R07'
  28382. 'R08'
  28383. 'R09'
  28384. 'R10'
  28385. Each of these represents a register constraint for an
  28386. individual register, from r0 to r10.
  28387. 'I'
  28388. Signed 8-bit integer constant.
  28389. 'J'
  28390. Signed 16-bit integer constant.
  28391. 'K'
  28392. Unsigned 16-bit integer constant.
  28393. 'L'
  28394. Integer constant that fits in one signed byte when incremented
  28395. by one (-129 ... 126).
  28396. 'm'
  28397. Memory operand. If used together with '<' or '>', the operand
  28398. can have postincrement which requires printing with '%In' and
  28399. '%in' on TILE-Gx. For example:
  28400. asm ("st_add %I0,%1,%i0" : "=m<>" (*mem) : "r" (val));
  28401. 'M'
  28402. A bit mask suitable for the BFINS instruction.
  28403. 'N'
  28404. Integer constant that is a byte tiled out eight times.
  28405. 'O'
  28406. The integer zero constant.
  28407. 'P'
  28408. Integer constant that is a sign-extended byte tiled out as
  28409. four shorts.
  28410. 'Q'
  28411. Integer constant that fits in one signed byte when incremented
  28412. (-129 ... 126), but excluding -1.
  28413. 'S'
  28414. Integer constant that has all 1 bits consecutive and starting
  28415. at bit 0.
  28416. 'T'
  28417. A 16-bit fragment of a got, tls, or pc-relative reference.
  28418. 'U'
  28419. Memory operand except postincrement. This is roughly the same
  28420. as 'm' when not used together with '<' or '>'.
  28421. 'W'
  28422. An 8-element vector constant with identical elements.
  28423. 'Y'
  28424. A 4-element vector constant with identical elements.
  28425. 'Z0'
  28426. The integer constant 0xffffffff.
  28427. 'Z1'
  28428. The integer constant 0xffffffff00000000.
  28429. _TILEPro--'config/tilepro/constraints.md'_
  28430. 'R00'
  28431. 'R01'
  28432. 'R02'
  28433. 'R03'
  28434. 'R04'
  28435. 'R05'
  28436. 'R06'
  28437. 'R07'
  28438. 'R08'
  28439. 'R09'
  28440. 'R10'
  28441. Each of these represents a register constraint for an
  28442. individual register, from r0 to r10.
  28443. 'I'
  28444. Signed 8-bit integer constant.
  28445. 'J'
  28446. Signed 16-bit integer constant.
  28447. 'K'
  28448. Nonzero integer constant with low 16 bits zero.
  28449. 'L'
  28450. Integer constant that fits in one signed byte when incremented
  28451. by one (-129 ... 126).
  28452. 'm'
  28453. Memory operand. If used together with '<' or '>', the operand
  28454. can have postincrement which requires printing with '%In' and
  28455. '%in' on TILEPro. For example:
  28456. asm ("swadd %I0,%1,%i0" : "=m<>" (mem) : "r" (val));
  28457. 'M'
  28458. A bit mask suitable for the MM instruction.
  28459. 'N'
  28460. Integer constant that is a byte tiled out four times.
  28461. 'O'
  28462. The integer zero constant.
  28463. 'P'
  28464. Integer constant that is a sign-extended byte tiled out as two
  28465. shorts.
  28466. 'Q'
  28467. Integer constant that fits in one signed byte when incremented
  28468. (-129 ... 126), but excluding -1.
  28469. 'T'
  28470. A symbolic operand, or a 16-bit fragment of a got, tls, or
  28471. pc-relative reference.
  28472. 'U'
  28473. Memory operand except postincrement. This is roughly the same
  28474. as 'm' when not used together with '<' or '>'.
  28475. 'W'
  28476. A 4-element vector constant with identical elements.
  28477. 'Y'
  28478. A 2-element vector constant with identical elements.
  28479. _Visium--'config/visium/constraints.md'_
  28480. 'b'
  28481. EAM register 'mdb'
  28482. 'c'
  28483. EAM register 'mdc'
  28484. 'f'
  28485. Floating point register
  28486. 'l'
  28487. General register, but not 'r29', 'r30' and 'r31'
  28488. 't'
  28489. Register 'r1'
  28490. 'u'
  28491. Register 'r2'
  28492. 'v'
  28493. Register 'r3'
  28494. 'G'
  28495. Floating-point constant 0.0
  28496. 'J'
  28497. Integer constant in the range 0 .. 65535 (16-bit immediate)
  28498. 'K'
  28499. Integer constant in the range 1 .. 31 (5-bit immediate)
  28500. 'L'
  28501. Integer constant in the range -65535 .. -1 (16-bit negative
  28502. immediate)
  28503. 'M'
  28504. Integer constant -1
  28505. 'O'
  28506. Integer constant 0
  28507. 'P'
  28508. Integer constant 32
  28509. _x86 family--'config/i386/constraints.md'_
  28510. 'R'
  28511. Legacy register--the eight integer registers available on all
  28512. i386 processors ('a', 'b', 'c', 'd', 'si', 'di', 'bp', 'sp').
  28513. 'q'
  28514. Any register accessible as 'Rl'. In 32-bit mode, 'a', 'b',
  28515. 'c', and 'd'; in 64-bit mode, any integer register.
  28516. 'Q'
  28517. Any register accessible as 'Rh': 'a', 'b', 'c', and 'd'.
  28518. 'a'
  28519. The 'a' register.
  28520. 'b'
  28521. The 'b' register.
  28522. 'c'
  28523. The 'c' register.
  28524. 'd'
  28525. The 'd' register.
  28526. 'S'
  28527. The 'si' register.
  28528. 'D'
  28529. The 'di' register.
  28530. 'A'
  28531. The 'a' and 'd' registers. This class is used for
  28532. instructions that return double word results in the 'ax:dx'
  28533. register pair. Single word values will be allocated either in
  28534. 'ax' or 'dx'. For example on i386 the following implements
  28535. 'rdtsc':
  28536. unsigned long long rdtsc (void)
  28537. {
  28538. unsigned long long tick;
  28539. __asm__ __volatile__("rdtsc":"=A"(tick));
  28540. return tick;
  28541. }
  28542. This is not correct on x86-64 as it would allocate tick in
  28543. either 'ax' or 'dx'. You have to use the following variant
  28544. instead:
  28545. unsigned long long rdtsc (void)
  28546. {
  28547. unsigned int tickl, tickh;
  28548. __asm__ __volatile__("rdtsc":"=a"(tickl),"=d"(tickh));
  28549. return ((unsigned long long)tickh << 32)|tickl;
  28550. }
  28551. 'f'
  28552. Any 80387 floating-point (stack) register.
  28553. 't'
  28554. Top of 80387 floating-point stack ('%st(0)').
  28555. 'u'
  28556. Second from top of 80387 floating-point stack ('%st(1)').
  28557. 'y'
  28558. Any MMX register.
  28559. 'x'
  28560. Any SSE register.
  28561. 'Yz'
  28562. First SSE register ('%xmm0').
  28563. 'I'
  28564. Integer constant in the range 0 ... 31, for 32-bit shifts.
  28565. 'J'
  28566. Integer constant in the range 0 ... 63, for 64-bit shifts.
  28567. 'K'
  28568. Signed 8-bit integer constant.
  28569. 'L'
  28570. '0xFF' or '0xFFFF', for andsi as a zero-extending move.
  28571. 'M'
  28572. 0, 1, 2, or 3 (shifts for the 'lea' instruction).
  28573. 'N'
  28574. Unsigned 8-bit integer constant (for 'in' and 'out'
  28575. instructions).
  28576. 'G'
  28577. Standard 80387 floating point constant.
  28578. 'C'
  28579. SSE constant zero operand.
  28580. 'e'
  28581. 32-bit signed integer constant, or a symbolic reference known
  28582. to fit that range (for immediate operands in sign-extending
  28583. x86-64 instructions).
  28584. 'Z'
  28585. 32-bit unsigned integer constant, or a symbolic reference
  28586. known to fit that range (for immediate operands in
  28587. zero-extending x86-64 instructions).
  28588. _Xstormy16--'config/stormy16/stormy16.h'_
  28589. 'a'
  28590. Register r0.
  28591. 'b'
  28592. Register r1.
  28593. 'c'
  28594. Register r2.
  28595. 'd'
  28596. Register r8.
  28597. 'e'
  28598. Registers r0 through r7.
  28599. 't'
  28600. Registers r0 and r1.
  28601. 'y'
  28602. The carry register.
  28603. 'z'
  28604. Registers r8 and r9.
  28605. 'I'
  28606. A constant between 0 and 3 inclusive.
  28607. 'J'
  28608. A constant that has exactly one bit set.
  28609. 'K'
  28610. A constant that has exactly one bit clear.
  28611. 'L'
  28612. A constant between 0 and 255 inclusive.
  28613. 'M'
  28614. A constant between -255 and 0 inclusive.
  28615. 'N'
  28616. A constant between -3 and 0 inclusive.
  28617. 'O'
  28618. A constant between 1 and 4 inclusive.
  28619. 'P'
  28620. A constant between -4 and -1 inclusive.
  28621. 'Q'
  28622. A memory reference that is a stack push.
  28623. 'R'
  28624. A memory reference that is a stack pop.
  28625. 'S'
  28626. A memory reference that refers to a constant address of known
  28627. value.
  28628. 'T'
  28629. The register indicated by Rx (not implemented yet).
  28630. 'U'
  28631. A constant that is not between 2 and 15 inclusive.
  28632. 'Z'
  28633. The constant 0.
  28634. _Xtensa--'config/xtensa/constraints.md'_
  28635. 'a'
  28636. General-purpose 32-bit register
  28637. 'b'
  28638. One-bit boolean register
  28639. 'A'
  28640. MAC16 40-bit accumulator register
  28641. 'I'
  28642. Signed 12-bit integer constant, for use in MOVI instructions
  28643. 'J'
  28644. Signed 8-bit integer constant, for use in ADDI instructions
  28645. 'K'
  28646. Integer constant valid for BccI instructions
  28647. 'L'
  28648. Unsigned constant valid for BccUI instructions
  28649. 
  28650. File: gcc.info, Node: Asm Labels, Next: Explicit Register Variables, Prev: Constraints, Up: Using Assembly Language with C
  28651. 6.45.4 Controlling Names Used in Assembler Code
  28652. -----------------------------------------------
  28653. You can specify the name to be used in the assembler code for a C
  28654. function or variable by writing the 'asm' (or '__asm__') keyword after
  28655. the declarator. It is up to you to make sure that the assembler names
  28656. you choose do not conflict with any other assembler symbols, or
  28657. reference registers.
  28658. Assembler names for data:
  28659. .........................
  28660. This sample shows how to specify the assembler name for data:
  28661. int foo asm ("myfoo") = 2;
  28662. This specifies that the name to be used for the variable 'foo' in the
  28663. assembler code should be 'myfoo' rather than the usual '_foo'.
  28664. On systems where an underscore is normally prepended to the name of a C
  28665. variable, this feature allows you to define names for the linker that do
  28666. not start with an underscore.
  28667. GCC does not support using this feature with a non-static local
  28668. variable since such variables do not have assembler names. If you are
  28669. trying to put the variable in a particular register, see *note Explicit
  28670. Register Variables::.
  28671. Assembler names for functions:
  28672. ..............................
  28673. To specify the assembler name for functions, write a declaration for the
  28674. function before its definition and put 'asm' there, like this:
  28675. int func (int x, int y) asm ("MYFUNC");
  28676. int func (int x, int y)
  28677. {
  28678. /* ... */
  28679. This specifies that the name to be used for the function 'func' in the
  28680. assembler code should be 'MYFUNC'.
  28681. 
  28682. File: gcc.info, Node: Explicit Register Variables, Next: Size of an asm, Prev: Asm Labels, Up: Using Assembly Language with C
  28683. 6.45.5 Variables in Specified Registers
  28684. ---------------------------------------
  28685. GNU C allows you to associate specific hardware registers with C
  28686. variables. In almost all cases, allowing the compiler to assign
  28687. registers produces the best code. However under certain unusual
  28688. circumstances, more precise control over the variable storage is
  28689. required.
  28690. Both global and local variables can be associated with a register. The
  28691. consequences of performing this association are very different between
  28692. the two, as explained in the sections below.
  28693. * Menu:
  28694. * Global Register Variables:: Variables declared at global scope.
  28695. * Local Register Variables:: Variables declared within a function.
  28696. 
  28697. File: gcc.info, Node: Global Register Variables, Next: Local Register Variables, Up: Explicit Register Variables
  28698. 6.45.5.1 Defining Global Register Variables
  28699. ...........................................
  28700. You can define a global register variable and associate it with a
  28701. specified register like this:
  28702. register int *foo asm ("r12");
  28703. Here 'r12' is the name of the register that should be used. Note that
  28704. this is the same syntax used for defining local register variables, but
  28705. for a global variable the declaration appears outside a function. The
  28706. 'register' keyword is required, and cannot be combined with 'static'.
  28707. The register name must be a valid register name for the target platform.
  28708. Registers are a scarce resource on most systems and allowing the
  28709. compiler to manage their usage usually results in the best code.
  28710. However, under special circumstances it can make sense to reserve some
  28711. globally. For example this may be useful in programs such as
  28712. programming language interpreters that have a couple of global variables
  28713. that are accessed very often.
  28714. After defining a global register variable, for the current compilation
  28715. unit:
  28716. * The register is reserved entirely for this use, and will not be
  28717. allocated for any other purpose.
  28718. * The register is not saved and restored by any functions.
  28719. * Stores into this register are never deleted even if they appear to
  28720. be dead, but references may be deleted, moved or simplified.
  28721. Note that these points _only_ apply to code that is compiled with the
  28722. definition. The behavior of code that is merely linked in (for example
  28723. code from libraries) is not affected.
  28724. If you want to recompile source files that do not actually use your
  28725. global register variable so they do not use the specified register for
  28726. any other purpose, you need not actually add the global register
  28727. declaration to their source code. It suffices to specify the compiler
  28728. option '-ffixed-REG' (*note Code Gen Options::) to reserve the register.
  28729. Declaring the variable
  28730. ......................
  28731. Global register variables can not have initial values, because an
  28732. executable file has no means to supply initial contents for a register.
  28733. When selecting a register, choose one that is normally saved and
  28734. restored by function calls on your machine. This ensures that code
  28735. which is unaware of this reservation (such as library routines) will
  28736. restore it before returning.
  28737. On machines with register windows, be sure to choose a global register
  28738. that is not affected magically by the function call mechanism.
  28739. Using the variable
  28740. ..................
  28741. When calling routines that are not aware of the reservation, be cautious
  28742. if those routines call back into code which uses them. As an example,
  28743. if you call the system library version of 'qsort', it may clobber your
  28744. registers during execution, but (if you have selected appropriate
  28745. registers) it will restore them before returning. However it will _not_
  28746. restore them before calling 'qsort''s comparison function. As a result,
  28747. global values will not reliably be available to the comparison function
  28748. unless the 'qsort' function itself is rebuilt.
  28749. Similarly, it is not safe to access the global register variables from
  28750. signal handlers or from more than one thread of control. Unless you
  28751. recompile them specially for the task at hand, the system library
  28752. routines may temporarily use the register for other things.
  28753. On most machines, 'longjmp' restores to each global register variable
  28754. the value it had at the time of the 'setjmp'. On some machines,
  28755. however, 'longjmp' does not change the value of global register
  28756. variables. To be portable, the function that called 'setjmp' should
  28757. make other arrangements to save the values of the global register
  28758. variables, and to restore them in a 'longjmp'. This way, the same thing
  28759. happens regardless of what 'longjmp' does.
  28760. Eventually there may be a way of asking the compiler to choose a
  28761. register automatically, but first we need to figure out how it should
  28762. choose and how to enable you to guide the choice. No solution is
  28763. evident.
  28764. 
  28765. File: gcc.info, Node: Local Register Variables, Prev: Global Register Variables, Up: Explicit Register Variables
  28766. 6.45.5.2 Specifying Registers for Local Variables
  28767. .................................................
  28768. You can define a local register variable and associate it with a
  28769. specified register like this:
  28770. register int *foo asm ("r12");
  28771. Here 'r12' is the name of the register that should be used. Note that
  28772. this is the same syntax used for defining global register variables, but
  28773. for a local variable the declaration appears within a function. The
  28774. 'register' keyword is required, and cannot be combined with 'static'.
  28775. The register name must be a valid register name for the target platform.
  28776. As with global register variables, it is recommended that you choose a
  28777. register that is normally saved and restored by function calls on your
  28778. machine, so that calls to library routines will not clobber it.
  28779. The only supported use for this feature is to specify registers for
  28780. input and output operands when calling Extended 'asm' (*note Extended
  28781. Asm::). This may be necessary if the constraints for a particular
  28782. machine don't provide sufficient control to select the desired register.
  28783. To force an operand into a register, create a local variable and specify
  28784. the register name after the variable's declaration. Then use the local
  28785. variable for the 'asm' operand and specify any constraint letter that
  28786. matches the register:
  28787. register int *p1 asm ("r0") = ...;
  28788. register int *p2 asm ("r1") = ...;
  28789. register int *result asm ("r0");
  28790. asm ("sysint" : "=r" (result) : "0" (p1), "r" (p2));
  28791. _Warning:_ In the above example, be aware that a register (for example
  28792. 'r0') can be call-clobbered by subsequent code, including function calls
  28793. and library calls for arithmetic operators on other variables (for
  28794. example the initialization of 'p2'). In this case, use temporary
  28795. variables for expressions between the register assignments:
  28796. int t1 = ...;
  28797. register int *p1 asm ("r0") = ...;
  28798. register int *p2 asm ("r1") = t1;
  28799. register int *result asm ("r0");
  28800. asm ("sysint" : "=r" (result) : "0" (p1), "r" (p2));
  28801. Defining a register variable does not reserve the register. Other than
  28802. when invoking the Extended 'asm', the contents of the specified register
  28803. are not guaranteed. For this reason, the following uses are explicitly
  28804. _not_ supported. If they appear to work, it is only happenstance, and
  28805. may stop working as intended due to (seemingly) unrelated changes in
  28806. surrounding code, or even minor changes in the optimization of a future
  28807. version of gcc:
  28808. * Passing parameters to or from Basic 'asm'
  28809. * Passing parameters to or from Extended 'asm' without using input or
  28810. output operands.
  28811. * Passing parameters to or from routines written in assembler (or
  28812. other languages) using non-standard calling conventions.
  28813. Some developers use Local Register Variables in an attempt to improve
  28814. gcc's allocation of registers, especially in large functions. In this
  28815. case the register name is essentially a hint to the register allocator.
  28816. While in some instances this can generate better code, improvements are
  28817. subject to the whims of the allocator/optimizers. Since there are no
  28818. guarantees that your improvements won't be lost, this usage of Local
  28819. Register Variables is discouraged.
  28820. On the MIPS platform, there is related use for local register variables
  28821. with slightly different characteristics (*note Defining coprocessor
  28822. specifics for MIPS targets: (gccint)MIPS Coprocessors.).
  28823. 
  28824. File: gcc.info, Node: Size of an asm, Prev: Explicit Register Variables, Up: Using Assembly Language with C
  28825. 6.45.6 Size of an 'asm'
  28826. -----------------------
  28827. Some targets require that GCC track the size of each instruction used in
  28828. order to generate correct code. Because the final length of the code
  28829. produced by an 'asm' statement is only known by the assembler, GCC must
  28830. make an estimate as to how big it will be. It does this by counting the
  28831. number of instructions in the pattern of the 'asm' and multiplying that
  28832. by the length of the longest instruction supported by that processor.
  28833. (When working out the number of instructions, it assumes that any
  28834. occurrence of a newline or of whatever statement separator character is
  28835. supported by the assembler -- typically ';' -- indicates the end of an
  28836. instruction.)
  28837. Normally, GCC's estimate is adequate to ensure that correct code is
  28838. generated, but it is possible to confuse the compiler if you use pseudo
  28839. instructions or assembler macros that expand into multiple real
  28840. instructions, or if you use assembler directives that expand to more
  28841. space in the object file than is needed for a single instruction. If
  28842. this happens then the assembler may produce a diagnostic saying that a
  28843. label is unreachable.
  28844. This size is also used for inlining decisions. If you use 'asm inline'
  28845. instead of just 'asm', then for inlining purposes the size of the asm is
  28846. taken as the minimum size, ignoring how many instructions GCC thinks it
  28847. is.
  28848. 
  28849. File: gcc.info, Node: Alternate Keywords, Next: Incomplete Enums, Prev: Using Assembly Language with C, Up: C Extensions
  28850. 6.46 Alternate Keywords
  28851. =======================
  28852. '-ansi' and the various '-std' options disable certain keywords. This
  28853. causes trouble when you want to use GNU C extensions, or a
  28854. general-purpose header file that should be usable by all programs,
  28855. including ISO C programs. The keywords 'asm', 'typeof' and 'inline' are
  28856. not available in programs compiled with '-ansi' or '-std' (although
  28857. 'inline' can be used in a program compiled with '-std=c99' or
  28858. '-std=c11'). The ISO C99 keyword 'restrict' is only available when
  28859. '-std=gnu99' (which will eventually be the default) or '-std=c99' (or
  28860. the equivalent '-std=iso9899:1999'), or an option for a later standard
  28861. version, is used.
  28862. The way to solve these problems is to put '__' at the beginning and end
  28863. of each problematical keyword. For example, use '__asm__' instead of
  28864. 'asm', and '__inline__' instead of 'inline'.
  28865. Other C compilers won't accept these alternative keywords; if you want
  28866. to compile with another compiler, you can define the alternate keywords
  28867. as macros to replace them with the customary keywords. It looks like
  28868. this:
  28869. #ifndef __GNUC__
  28870. #define __asm__ asm
  28871. #endif
  28872. '-pedantic' and other options cause warnings for many GNU C extensions.
  28873. You can prevent such warnings within one expression by writing
  28874. '__extension__' before the expression. '__extension__' has no effect
  28875. aside from this.
  28876. 
  28877. File: gcc.info, Node: Incomplete Enums, Next: Function Names, Prev: Alternate Keywords, Up: C Extensions
  28878. 6.47 Incomplete 'enum' Types
  28879. ============================
  28880. You can define an 'enum' tag without specifying its possible values.
  28881. This results in an incomplete type, much like what you get if you write
  28882. 'struct foo' without describing the elements. A later declaration that
  28883. does specify the possible values completes the type.
  28884. You cannot allocate variables or storage using the type while it is
  28885. incomplete. However, you can work with pointers to that type.
  28886. This extension may not be very useful, but it makes the handling of
  28887. 'enum' more consistent with the way 'struct' and 'union' are handled.
  28888. This extension is not supported by GNU C++.
  28889. 
  28890. File: gcc.info, Node: Function Names, Next: Return Address, Prev: Incomplete Enums, Up: C Extensions
  28891. 6.48 Function Names as Strings
  28892. ==============================
  28893. GCC provides three magic constants that hold the name of the current
  28894. function as a string. In C++11 and later modes, all three are treated
  28895. as constant expressions and can be used in 'constexpr' constexts. The
  28896. first of these constants is '__func__', which is part of the C99
  28897. standard:
  28898. The identifier '__func__' is implicitly declared by the translator as
  28899. if, immediately following the opening brace of each function definition,
  28900. the declaration
  28901. static const char __func__[] = "function-name";
  28902. appeared, where function-name is the name of the lexically-enclosing
  28903. function. This name is the unadorned name of the function. As an
  28904. extension, at file (or, in C++, namespace scope), '__func__' evaluates
  28905. to the empty string.
  28906. '__FUNCTION__' is another name for '__func__', provided for backward
  28907. compatibility with old versions of GCC.
  28908. In C, '__PRETTY_FUNCTION__' is yet another name for '__func__', except
  28909. that at file (or, in C++, namespace scope), it evaluates to the string
  28910. '"top level"'. In addition, in C++, '__PRETTY_FUNCTION__' contains the
  28911. signature of the function as well as its bare name. For example, this
  28912. program:
  28913. extern "C" int printf (const char *, ...);
  28914. class a {
  28915. public:
  28916. void sub (int i)
  28917. {
  28918. printf ("__FUNCTION__ = %s\n", __FUNCTION__);
  28919. printf ("__PRETTY_FUNCTION__ = %s\n", __PRETTY_FUNCTION__);
  28920. }
  28921. };
  28922. int
  28923. main (void)
  28924. {
  28925. a ax;
  28926. ax.sub (0);
  28927. return 0;
  28928. }
  28929. gives this output:
  28930. __FUNCTION__ = sub
  28931. __PRETTY_FUNCTION__ = void a::sub(int)
  28932. These identifiers are variables, not preprocessor macros, and may not
  28933. be used to initialize 'char' arrays or be concatenated with string
  28934. literals.
  28935. 
  28936. File: gcc.info, Node: Return Address, Next: Vector Extensions, Prev: Function Names, Up: C Extensions
  28937. 6.49 Getting the Return or Frame Address of a Function
  28938. ======================================================
  28939. These functions may be used to get information about the callers of a
  28940. function.
  28941. -- Built-in Function: void * __builtin_return_address (unsigned int
  28942. LEVEL)
  28943. This function returns the return address of the current function,
  28944. or of one of its callers. The LEVEL argument is number of frames
  28945. to scan up the call stack. A value of '0' yields the return
  28946. address of the current function, a value of '1' yields the return
  28947. address of the caller of the current function, and so forth. When
  28948. inlining the expected behavior is that the function returns the
  28949. address of the function that is returned to. To work around this
  28950. behavior use the 'noinline' function attribute.
  28951. The LEVEL argument must be a constant integer.
  28952. On some machines it may be impossible to determine the return
  28953. address of any function other than the current one; in such cases,
  28954. or when the top of the stack has been reached, this function
  28955. returns '0' or a random value. In addition,
  28956. '__builtin_frame_address' may be used to determine if the top of
  28957. the stack has been reached.
  28958. Additional post-processing of the returned value may be needed, see
  28959. '__builtin_extract_return_addr'.
  28960. Calling this function with a nonzero argument can have
  28961. unpredictable effects, including crashing the calling program. As
  28962. a result, calls that are considered unsafe are diagnosed when the
  28963. '-Wframe-address' option is in effect. Such calls should only be
  28964. made in debugging situations.
  28965. -- Built-in Function: void * __builtin_extract_return_addr (void *ADDR)
  28966. The address as returned by '__builtin_return_address' may have to
  28967. be fed through this function to get the actual encoded address.
  28968. For example, on the 31-bit S/390 platform the highest bit has to be
  28969. masked out, or on SPARC platforms an offset has to be added for the
  28970. true next instruction to be executed.
  28971. If no fixup is needed, this function simply passes through ADDR.
  28972. -- Built-in Function: void * __builtin_frob_return_address (void *ADDR)
  28973. This function does the reverse of '__builtin_extract_return_addr'.
  28974. -- Built-in Function: void * __builtin_frame_address (unsigned int
  28975. LEVEL)
  28976. This function is similar to '__builtin_return_address', but it
  28977. returns the address of the function frame rather than the return
  28978. address of the function. Calling '__builtin_frame_address' with a
  28979. value of '0' yields the frame address of the current function, a
  28980. value of '1' yields the frame address of the caller of the current
  28981. function, and so forth.
  28982. The frame is the area on the stack that holds local variables and
  28983. saved registers. The frame address is normally the address of the
  28984. first word pushed on to the stack by the function. However, the
  28985. exact definition depends upon the processor and the calling
  28986. convention. If the processor has a dedicated frame pointer
  28987. register, and the function has a frame, then
  28988. '__builtin_frame_address' returns the value of the frame pointer
  28989. register.
  28990. On some machines it may be impossible to determine the frame
  28991. address of any function other than the current one; in such cases,
  28992. or when the top of the stack has been reached, this function
  28993. returns '0' if the first frame pointer is properly initialized by
  28994. the startup code.
  28995. Calling this function with a nonzero argument can have
  28996. unpredictable effects, including crashing the calling program. As
  28997. a result, calls that are considered unsafe are diagnosed when the
  28998. '-Wframe-address' option is in effect. Such calls should only be
  28999. made in debugging situations.
  29000. 
  29001. File: gcc.info, Node: Vector Extensions, Next: Offsetof, Prev: Return Address, Up: C Extensions
  29002. 6.50 Using Vector Instructions through Built-in Functions
  29003. =========================================================
  29004. On some targets, the instruction set contains SIMD vector instructions
  29005. which operate on multiple values contained in one large register at the
  29006. same time. For example, on the x86 the MMX, 3DNow! and SSE extensions
  29007. can be used this way.
  29008. The first step in using these extensions is to provide the necessary
  29009. data types. This should be done using an appropriate 'typedef':
  29010. typedef int v4si __attribute__ ((vector_size (16)));
  29011. The 'int' type specifies the base type, while the attribute specifies
  29012. the vector size for the variable, measured in bytes. For example, the
  29013. declaration above causes the compiler to set the mode for the 'v4si'
  29014. type to be 16 bytes wide and divided into 'int' sized units. For a
  29015. 32-bit 'int' this means a vector of 4 units of 4 bytes, and the
  29016. corresponding mode of 'foo' is V4SI.
  29017. The 'vector_size' attribute is only applicable to integral and float
  29018. scalars, although arrays, pointers, and function return values are
  29019. allowed in conjunction with this construct. Only sizes that are a power
  29020. of two are currently allowed.
  29021. All the basic integer types can be used as base types, both as signed
  29022. and as unsigned: 'char', 'short', 'int', 'long', 'long long'. In
  29023. addition, 'float' and 'double' can be used to build floating-point
  29024. vector types.
  29025. Specifying a combination that is not valid for the current architecture
  29026. causes GCC to synthesize the instructions using a narrower mode. For
  29027. example, if you specify a variable of type 'V4SI' and your architecture
  29028. does not allow for this specific SIMD type, GCC produces code that uses
  29029. 4 'SIs'.
  29030. The types defined in this manner can be used with a subset of normal C
  29031. operations. Currently, GCC allows using the following operators on
  29032. these types: '+, -, *, /, unary minus, ^, |, &, ~, %'.
  29033. The operations behave like C++ 'valarrays'. Addition is defined as the
  29034. addition of the corresponding elements of the operands. For example, in
  29035. the code below, each of the 4 elements in A is added to the
  29036. corresponding 4 elements in B and the resulting vector is stored in C.
  29037. typedef int v4si __attribute__ ((vector_size (16)));
  29038. v4si a, b, c;
  29039. c = a + b;
  29040. Subtraction, multiplication, division, and the logical operations
  29041. operate in a similar manner. Likewise, the result of using the unary
  29042. minus or complement operators on a vector type is a vector whose
  29043. elements are the negative or complemented values of the corresponding
  29044. elements in the operand.
  29045. It is possible to use shifting operators '<<', '>>' on integer-type
  29046. vectors. The operation is defined as following: '{a0, a1, ..., an} >>
  29047. {b0, b1, ..., bn} == {a0 >> b0, a1 >> b1, ..., an >> bn}'. Vector
  29048. operands must have the same number of elements.
  29049. For convenience, it is allowed to use a binary vector operation where
  29050. one operand is a scalar. In that case the compiler transforms the
  29051. scalar operand into a vector where each element is the scalar from the
  29052. operation. The transformation happens only if the scalar could be
  29053. safely converted to the vector-element type. Consider the following
  29054. code.
  29055. typedef int v4si __attribute__ ((vector_size (16)));
  29056. v4si a, b, c;
  29057. long l;
  29058. a = b + 1; /* a = b + {1,1,1,1}; */
  29059. a = 2 * b; /* a = {2,2,2,2} * b; */
  29060. a = l + a; /* Error, cannot convert long to int. */
  29061. Vectors can be subscripted as if the vector were an array with the same
  29062. number of elements and base type. Out of bound accesses invoke
  29063. undefined behavior at run time. Warnings for out of bound accesses for
  29064. vector subscription can be enabled with '-Warray-bounds'.
  29065. Vector comparison is supported with standard comparison operators: '==,
  29066. !=, <, <=, >, >='. Comparison operands can be vector expressions of
  29067. integer-type or real-type. Comparison between integer-type vectors and
  29068. real-type vectors are not supported. The result of the comparison is a
  29069. vector of the same width and number of elements as the comparison
  29070. operands with a signed integral element type.
  29071. Vectors are compared element-wise producing 0 when comparison is false
  29072. and -1 (constant of the appropriate type where all bits are set)
  29073. otherwise. Consider the following example.
  29074. typedef int v4si __attribute__ ((vector_size (16)));
  29075. v4si a = {1,2,3,4};
  29076. v4si b = {3,2,1,4};
  29077. v4si c;
  29078. c = a > b; /* The result would be {0, 0,-1, 0} */
  29079. c = a == b; /* The result would be {0,-1, 0,-1} */
  29080. In C++, the ternary operator '?:' is available. 'a?b:c', where 'b' and
  29081. 'c' are vectors of the same type and 'a' is an integer vector with the
  29082. same number of elements of the same size as 'b' and 'c', computes all
  29083. three arguments and creates a vector '{a[0]?b[0]:c[0], a[1]?b[1]:c[1],
  29084. ...}'. Note that unlike in OpenCL, 'a' is thus interpreted as 'a != 0'
  29085. and not 'a < 0'. As in the case of binary operations, this syntax is
  29086. also accepted when one of 'b' or 'c' is a scalar that is then
  29087. transformed into a vector. If both 'b' and 'c' are scalars and the type
  29088. of 'true?b:c' has the same size as the element type of 'a', then 'b' and
  29089. 'c' are converted to a vector type whose elements have this type and
  29090. with the same number of elements as 'a'.
  29091. In C++, the logic operators '!, &&, ||' are available for vectors.
  29092. '!v' is equivalent to 'v == 0', 'a && b' is equivalent to 'a!=0 & b!=0'
  29093. and 'a || b' is equivalent to 'a!=0 | b!=0'. For mixed operations
  29094. between a scalar 's' and a vector 'v', 's && v' is equivalent to
  29095. 's?v!=0:0' (the evaluation is short-circuit) and 'v && s' is equivalent
  29096. to 'v!=0 & (s?-1:0)'.
  29097. Vector shuffling is available using functions '__builtin_shuffle (vec,
  29098. mask)' and '__builtin_shuffle (vec0, vec1, mask)'. Both functions
  29099. construct a permutation of elements from one or two vectors and return a
  29100. vector of the same type as the input vector(s). The MASK is an integral
  29101. vector with the same width (W) and element count (N) as the output
  29102. vector.
  29103. The elements of the input vectors are numbered in memory ordering of
  29104. VEC0 beginning at 0 and VEC1 beginning at N. The elements of MASK are
  29105. considered modulo N in the single-operand case and modulo 2*N in the
  29106. two-operand case.
  29107. Consider the following example,
  29108. typedef int v4si __attribute__ ((vector_size (16)));
  29109. v4si a = {1,2,3,4};
  29110. v4si b = {5,6,7,8};
  29111. v4si mask1 = {0,1,1,3};
  29112. v4si mask2 = {0,4,2,5};
  29113. v4si res;
  29114. res = __builtin_shuffle (a, mask1); /* res is {1,2,2,4} */
  29115. res = __builtin_shuffle (a, b, mask2); /* res is {1,5,3,6} */
  29116. Note that '__builtin_shuffle' is intentionally semantically compatible
  29117. with the OpenCL 'shuffle' and 'shuffle2' functions.
  29118. You can declare variables and use them in function calls and returns,
  29119. as well as in assignments and some casts. You can specify a vector type
  29120. as a return type for a function. Vector types can also be used as
  29121. function arguments. It is possible to cast from one vector type to
  29122. another, provided they are of the same size (in fact, you can also cast
  29123. vectors to and from other datatypes of the same size).
  29124. You cannot operate between vectors of different lengths or different
  29125. signedness without a cast.
  29126. 
  29127. File: gcc.info, Node: Offsetof, Next: __sync Builtins, Prev: Vector Extensions, Up: C Extensions
  29128. 6.51 Support for 'offsetof'
  29129. ===========================
  29130. GCC implements for both C and C++ a syntactic extension to implement the
  29131. 'offsetof' macro.
  29132. primary:
  29133. "__builtin_offsetof" "(" typename "," offsetof_member_designator ")"
  29134. offsetof_member_designator:
  29135. identifier
  29136. | offsetof_member_designator "." identifier
  29137. | offsetof_member_designator "[" expr "]"
  29138. This extension is sufficient such that
  29139. #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
  29140. is a suitable definition of the 'offsetof' macro. In C++, TYPE may be
  29141. dependent. In either case, MEMBER may consist of a single identifier,
  29142. or a sequence of member accesses and array references.
  29143. 
  29144. File: gcc.info, Node: __sync Builtins, Next: __atomic Builtins, Prev: Offsetof, Up: C Extensions
  29145. 6.52 Legacy '__sync' Built-in Functions for Atomic Memory Access
  29146. ================================================================
  29147. The following built-in functions are intended to be compatible with
  29148. those described in the 'Intel Itanium Processor-specific Application
  29149. Binary Interface', section 7.4. As such, they depart from normal GCC
  29150. practice by not using the '__builtin_' prefix and also by being
  29151. overloaded so that they work on multiple types.
  29152. The definition given in the Intel documentation allows only for the use
  29153. of the types 'int', 'long', 'long long' or their unsigned counterparts.
  29154. GCC allows any scalar type that is 1, 2, 4 or 8 bytes in size other than
  29155. the C type '_Bool' or the C++ type 'bool'. Operations on pointer
  29156. arguments are performed as if the operands were of the 'uintptr_t' type.
  29157. That is, they are not scaled by the size of the type to which the
  29158. pointer points.
  29159. These functions are implemented in terms of the '__atomic' builtins
  29160. (*note __atomic Builtins::). They should not be used for new code which
  29161. should use the '__atomic' builtins instead.
  29162. Not all operations are supported by all target processors. If a
  29163. particular operation cannot be implemented on the target processor, a
  29164. warning is generated and a call to an external function is generated.
  29165. The external function carries the same name as the built-in version,
  29166. with an additional suffix '_N' where N is the size of the data type.
  29167. In most cases, these built-in functions are considered a "full
  29168. barrier". That is, no memory operand is moved across the operation,
  29169. either forward or backward. Further, instructions are issued as
  29170. necessary to prevent the processor from speculating loads across the
  29171. operation and from queuing stores after the operation.
  29172. All of the routines are described in the Intel documentation to take
  29173. "an optional list of variables protected by the memory barrier". It's
  29174. not clear what is meant by that; it could mean that _only_ the listed
  29175. variables are protected, or it could mean a list of additional variables
  29176. to be protected. The list is ignored by GCC which treats it as empty.
  29177. GCC interprets an empty list as meaning that all globally accessible
  29178. variables should be protected.
  29179. 'TYPE __sync_fetch_and_add (TYPE *ptr, TYPE value, ...)'
  29180. 'TYPE __sync_fetch_and_sub (TYPE *ptr, TYPE value, ...)'
  29181. 'TYPE __sync_fetch_and_or (TYPE *ptr, TYPE value, ...)'
  29182. 'TYPE __sync_fetch_and_and (TYPE *ptr, TYPE value, ...)'
  29183. 'TYPE __sync_fetch_and_xor (TYPE *ptr, TYPE value, ...)'
  29184. 'TYPE __sync_fetch_and_nand (TYPE *ptr, TYPE value, ...)'
  29185. These built-in functions perform the operation suggested by the
  29186. name, and returns the value that had previously been in memory.
  29187. That is, operations on integer operands have the following
  29188. semantics. Operations on pointer arguments are performed as if the
  29189. operands were of the 'uintptr_t' type. That is, they are not
  29190. scaled by the size of the type to which the pointer points.
  29191. { tmp = *ptr; *ptr OP= value; return tmp; }
  29192. { tmp = *ptr; *ptr = ~(tmp & value); return tmp; } // nand
  29193. The object pointed to by the first argument must be of integer or
  29194. pointer type. It must not be a boolean type.
  29195. _Note:_ GCC 4.4 and later implement '__sync_fetch_and_nand' as
  29196. '*ptr = ~(tmp & value)' instead of '*ptr = ~tmp & value'.
  29197. 'TYPE __sync_add_and_fetch (TYPE *ptr, TYPE value, ...)'
  29198. 'TYPE __sync_sub_and_fetch (TYPE *ptr, TYPE value, ...)'
  29199. 'TYPE __sync_or_and_fetch (TYPE *ptr, TYPE value, ...)'
  29200. 'TYPE __sync_and_and_fetch (TYPE *ptr, TYPE value, ...)'
  29201. 'TYPE __sync_xor_and_fetch (TYPE *ptr, TYPE value, ...)'
  29202. 'TYPE __sync_nand_and_fetch (TYPE *ptr, TYPE value, ...)'
  29203. These built-in functions perform the operation suggested by the
  29204. name, and return the new value. That is, operations on integer
  29205. operands have the following semantics. Operations on pointer
  29206. operands are performed as if the operand's type were 'uintptr_t'.
  29207. { *ptr OP= value; return *ptr; }
  29208. { *ptr = ~(*ptr & value); return *ptr; } // nand
  29209. The same constraints on arguments apply as for the corresponding
  29210. '__sync_op_and_fetch' built-in functions.
  29211. _Note:_ GCC 4.4 and later implement '__sync_nand_and_fetch' as
  29212. '*ptr = ~(*ptr & value)' instead of '*ptr = ~*ptr & value'.
  29213. 'bool __sync_bool_compare_and_swap (TYPE *ptr, TYPE oldval, TYPE newval, ...)'
  29214. 'TYPE __sync_val_compare_and_swap (TYPE *ptr, TYPE oldval, TYPE newval, ...)'
  29215. These built-in functions perform an atomic compare and swap. That
  29216. is, if the current value of '*PTR' is OLDVAL, then write NEWVAL
  29217. into '*PTR'.
  29218. The "bool" version returns true if the comparison is successful and
  29219. NEWVAL is written. The "val" version returns the contents of
  29220. '*PTR' before the operation.
  29221. '__sync_synchronize (...)'
  29222. This built-in function issues a full memory barrier.
  29223. 'TYPE __sync_lock_test_and_set (TYPE *ptr, TYPE value, ...)'
  29224. This built-in function, as described by Intel, is not a traditional
  29225. test-and-set operation, but rather an atomic exchange operation.
  29226. It writes VALUE into '*PTR', and returns the previous contents of
  29227. '*PTR'.
  29228. Many targets have only minimal support for such locks, and do not
  29229. support a full exchange operation. In this case, a target may
  29230. support reduced functionality here by which the _only_ valid value
  29231. to store is the immediate constant 1. The exact value actually
  29232. stored in '*PTR' is implementation defined.
  29233. This built-in function is not a full barrier, but rather an
  29234. "acquire barrier". This means that references after the operation
  29235. cannot move to (or be speculated to) before the operation, but
  29236. previous memory stores may not be globally visible yet, and
  29237. previous memory loads may not yet be satisfied.
  29238. 'void __sync_lock_release (TYPE *ptr, ...)'
  29239. This built-in function releases the lock acquired by
  29240. '__sync_lock_test_and_set'. Normally this means writing the
  29241. constant 0 to '*PTR'.
  29242. This built-in function is not a full barrier, but rather a "release
  29243. barrier". This means that all previous memory stores are globally
  29244. visible, and all previous memory loads have been satisfied, but
  29245. following memory reads are not prevented from being speculated to
  29246. before the barrier.
  29247. 
  29248. File: gcc.info, Node: __atomic Builtins, Next: Integer Overflow Builtins, Prev: __sync Builtins, Up: C Extensions
  29249. 6.53 Built-in Functions for Memory Model Aware Atomic Operations
  29250. ================================================================
  29251. The following built-in functions approximately match the requirements
  29252. for the C++11 memory model. They are all identified by being prefixed
  29253. with '__atomic' and most are overloaded so that they work with multiple
  29254. types.
  29255. These functions are intended to replace the legacy '__sync' builtins.
  29256. The main difference is that the memory order that is requested is a
  29257. parameter to the functions. New code should always use the '__atomic'
  29258. builtins rather than the '__sync' builtins.
  29259. Note that the '__atomic' builtins assume that programs will conform to
  29260. the C++11 memory model. In particular, they assume that programs are
  29261. free of data races. See the C++11 standard for detailed requirements.
  29262. The '__atomic' builtins can be used with any integral scalar or pointer
  29263. type that is 1, 2, 4, or 8 bytes in length. 16-byte integral types are
  29264. also allowed if '__int128' (*note __int128::) is supported by the
  29265. architecture.
  29266. The four non-arithmetic functions (load, store, exchange, and
  29267. compare_exchange) all have a generic version as well. This generic
  29268. version works on any data type. It uses the lock-free built-in function
  29269. if the specific data type size makes that possible; otherwise, an
  29270. external call is left to be resolved at run time. This external call is
  29271. the same format with the addition of a 'size_t' parameter inserted as
  29272. the first parameter indicating the size of the object being pointed to.
  29273. All objects must be the same size.
  29274. There are 6 different memory orders that can be specified. These map
  29275. to the C++11 memory orders with the same names, see the C++11 standard
  29276. or the GCC wiki on atomic synchronization
  29277. (http://gcc.gnu.org/wiki/Atomic/GCCMM/AtomicSync) for detailed
  29278. definitions. Individual targets may also support additional memory
  29279. orders for use on specific architectures. Refer to the target
  29280. documentation for details of these.
  29281. An atomic operation can both constrain code motion and be mapped to
  29282. hardware instructions for synchronization between threads (e.g., a
  29283. fence). To which extent this happens is controlled by the memory
  29284. orders, which are listed here in approximately ascending order of
  29285. strength. The description of each memory order is only meant to roughly
  29286. illustrate the effects and is not a specification; see the C++11 memory
  29287. model for precise semantics.
  29288. '__ATOMIC_RELAXED'
  29289. Implies no inter-thread ordering constraints.
  29290. '__ATOMIC_CONSUME'
  29291. This is currently implemented using the stronger '__ATOMIC_ACQUIRE'
  29292. memory order because of a deficiency in C++11's semantics for
  29293. 'memory_order_consume'.
  29294. '__ATOMIC_ACQUIRE'
  29295. Creates an inter-thread happens-before constraint from the release
  29296. (or stronger) semantic store to this acquire load. Can prevent
  29297. hoisting of code to before the operation.
  29298. '__ATOMIC_RELEASE'
  29299. Creates an inter-thread happens-before constraint to acquire (or
  29300. stronger) semantic loads that read from this release store. Can
  29301. prevent sinking of code to after the operation.
  29302. '__ATOMIC_ACQ_REL'
  29303. Combines the effects of both '__ATOMIC_ACQUIRE' and
  29304. '__ATOMIC_RELEASE'.
  29305. '__ATOMIC_SEQ_CST'
  29306. Enforces total ordering with all other '__ATOMIC_SEQ_CST'
  29307. operations.
  29308. Note that in the C++11 memory model, _fences_ (e.g.,
  29309. '__atomic_thread_fence') take effect in combination with other atomic
  29310. operations on specific memory locations (e.g., atomic loads); operations
  29311. on specific memory locations do not necessarily affect other operations
  29312. in the same way.
  29313. Target architectures are encouraged to provide their own patterns for
  29314. each of the atomic built-in functions. If no target is provided, the
  29315. original non-memory model set of '__sync' atomic built-in functions are
  29316. used, along with any required synchronization fences surrounding it in
  29317. order to achieve the proper behavior. Execution in this case is subject
  29318. to the same restrictions as those built-in functions.
  29319. If there is no pattern or mechanism to provide a lock-free instruction
  29320. sequence, a call is made to an external routine with the same parameters
  29321. to be resolved at run time.
  29322. When implementing patterns for these built-in functions, the memory
  29323. order parameter can be ignored as long as the pattern implements the
  29324. most restrictive '__ATOMIC_SEQ_CST' memory order. Any of the other
  29325. memory orders execute correctly with this memory order but they may not
  29326. execute as efficiently as they could with a more appropriate
  29327. implementation of the relaxed requirements.
  29328. Note that the C++11 standard allows for the memory order parameter to
  29329. be determined at run time rather than at compile time. These built-in
  29330. functions map any run-time value to '__ATOMIC_SEQ_CST' rather than
  29331. invoke a runtime library call or inline a switch statement. This is
  29332. standard compliant, safe, and the simplest approach for now.
  29333. The memory order parameter is a signed int, but only the lower 16 bits
  29334. are reserved for the memory order. The remainder of the signed int is
  29335. reserved for target use and should be 0. Use of the predefined atomic
  29336. values ensures proper usage.
  29337. -- Built-in Function: TYPE __atomic_load_n (TYPE *ptr, int memorder)
  29338. This built-in function implements an atomic load operation. It
  29339. returns the contents of '*PTR'.
  29340. The valid memory order variants are '__ATOMIC_RELAXED',
  29341. '__ATOMIC_SEQ_CST', '__ATOMIC_ACQUIRE', and '__ATOMIC_CONSUME'.
  29342. -- Built-in Function: void __atomic_load (TYPE *ptr, TYPE *ret, int
  29343. memorder)
  29344. This is the generic version of an atomic load. It returns the
  29345. contents of '*PTR' in '*RET'.
  29346. -- Built-in Function: void __atomic_store_n (TYPE *ptr, TYPE val, int
  29347. memorder)
  29348. This built-in function implements an atomic store operation. It
  29349. writes 'VAL' into '*PTR'.
  29350. The valid memory order variants are '__ATOMIC_RELAXED',
  29351. '__ATOMIC_SEQ_CST', and '__ATOMIC_RELEASE'.
  29352. -- Built-in Function: void __atomic_store (TYPE *ptr, TYPE *val, int
  29353. memorder)
  29354. This is the generic version of an atomic store. It stores the
  29355. value of '*VAL' into '*PTR'.
  29356. -- Built-in Function: TYPE __atomic_exchange_n (TYPE *ptr, TYPE val,
  29357. int memorder)
  29358. This built-in function implements an atomic exchange operation. It
  29359. writes VAL into '*PTR', and returns the previous contents of
  29360. '*PTR'.
  29361. The valid memory order variants are '__ATOMIC_RELAXED',
  29362. '__ATOMIC_SEQ_CST', '__ATOMIC_ACQUIRE', '__ATOMIC_RELEASE', and
  29363. '__ATOMIC_ACQ_REL'.
  29364. -- Built-in Function: void __atomic_exchange (TYPE *ptr, TYPE *val,
  29365. TYPE *ret, int memorder)
  29366. This is the generic version of an atomic exchange. It stores the
  29367. contents of '*VAL' into '*PTR'. The original value of '*PTR' is
  29368. copied into '*RET'.
  29369. -- Built-in Function: bool __atomic_compare_exchange_n (TYPE *ptr, TYPE
  29370. *expected, TYPE desired, bool weak, int success_memorder, int
  29371. failure_memorder)
  29372. This built-in function implements an atomic compare and exchange
  29373. operation. This compares the contents of '*PTR' with the contents
  29374. of '*EXPECTED'. If equal, the operation is a _read-modify-write_
  29375. operation that writes DESIRED into '*PTR'. If they are not equal,
  29376. the operation is a _read_ and the current contents of '*PTR' are
  29377. written into '*EXPECTED'. WEAK is true for weak compare_exchange,
  29378. which may fail spuriously, and false for the strong variation,
  29379. which never fails spuriously. Many targets only offer the strong
  29380. variation and ignore the parameter. When in doubt, use the strong
  29381. variation.
  29382. If DESIRED is written into '*PTR' then true is returned and memory
  29383. is affected according to the memory order specified by
  29384. SUCCESS_MEMORDER. There are no restrictions on what memory order
  29385. can be used here.
  29386. Otherwise, false is returned and memory is affected according to
  29387. FAILURE_MEMORDER. This memory order cannot be '__ATOMIC_RELEASE'
  29388. nor '__ATOMIC_ACQ_REL'. It also cannot be a stronger order than
  29389. that specified by SUCCESS_MEMORDER.
  29390. -- Built-in Function: bool __atomic_compare_exchange (TYPE *ptr, TYPE
  29391. *expected, TYPE *desired, bool weak, int success_memorder, int
  29392. failure_memorder)
  29393. This built-in function implements the generic version of
  29394. '__atomic_compare_exchange'. The function is virtually identical
  29395. to '__atomic_compare_exchange_n', except the desired value is also
  29396. a pointer.
  29397. -- Built-in Function: TYPE __atomic_add_fetch (TYPE *ptr, TYPE val, int
  29398. memorder)
  29399. -- Built-in Function: TYPE __atomic_sub_fetch (TYPE *ptr, TYPE val, int
  29400. memorder)
  29401. -- Built-in Function: TYPE __atomic_and_fetch (TYPE *ptr, TYPE val, int
  29402. memorder)
  29403. -- Built-in Function: TYPE __atomic_xor_fetch (TYPE *ptr, TYPE val, int
  29404. memorder)
  29405. -- Built-in Function: TYPE __atomic_or_fetch (TYPE *ptr, TYPE val, int
  29406. memorder)
  29407. -- Built-in Function: TYPE __atomic_nand_fetch (TYPE *ptr, TYPE val,
  29408. int memorder)
  29409. These built-in functions perform the operation suggested by the
  29410. name, and return the result of the operation. Operations on
  29411. pointer arguments are performed as if the operands were of the
  29412. 'uintptr_t' type. That is, they are not scaled by the size of the
  29413. type to which the pointer points.
  29414. { *ptr OP= val; return *ptr; }
  29415. The object pointed to by the first argument must be of integer or
  29416. pointer type. It must not be a boolean type. All memory orders
  29417. are valid.
  29418. -- Built-in Function: TYPE __atomic_fetch_add (TYPE *ptr, TYPE val, int
  29419. memorder)
  29420. -- Built-in Function: TYPE __atomic_fetch_sub (TYPE *ptr, TYPE val, int
  29421. memorder)
  29422. -- Built-in Function: TYPE __atomic_fetch_and (TYPE *ptr, TYPE val, int
  29423. memorder)
  29424. -- Built-in Function: TYPE __atomic_fetch_xor (TYPE *ptr, TYPE val, int
  29425. memorder)
  29426. -- Built-in Function: TYPE __atomic_fetch_or (TYPE *ptr, TYPE val, int
  29427. memorder)
  29428. -- Built-in Function: TYPE __atomic_fetch_nand (TYPE *ptr, TYPE val,
  29429. int memorder)
  29430. These built-in functions perform the operation suggested by the
  29431. name, and return the value that had previously been in '*PTR'.
  29432. Operations on pointer arguments are performed as if the operands
  29433. were of the 'uintptr_t' type. That is, they are not scaled by the
  29434. size of the type to which the pointer points.
  29435. { tmp = *ptr; *ptr OP= val; return tmp; }
  29436. The same constraints on arguments apply as for the corresponding
  29437. '__atomic_op_fetch' built-in functions. All memory orders are
  29438. valid.
  29439. -- Built-in Function: bool __atomic_test_and_set (void *ptr, int
  29440. memorder)
  29441. This built-in function performs an atomic test-and-set operation on
  29442. the byte at '*PTR'. The byte is set to some implementation defined
  29443. nonzero "set" value and the return value is 'true' if and only if
  29444. the previous contents were "set". It should be only used for
  29445. operands of type 'bool' or 'char'. For other types only part of
  29446. the value may be set.
  29447. All memory orders are valid.
  29448. -- Built-in Function: void __atomic_clear (bool *ptr, int memorder)
  29449. This built-in function performs an atomic clear operation on
  29450. '*PTR'. After the operation, '*PTR' contains 0. It should be only
  29451. used for operands of type 'bool' or 'char' and in conjunction with
  29452. '__atomic_test_and_set'. For other types it may only clear
  29453. partially. If the type is not 'bool' prefer using
  29454. '__atomic_store'.
  29455. The valid memory order variants are '__ATOMIC_RELAXED',
  29456. '__ATOMIC_SEQ_CST', and '__ATOMIC_RELEASE'.
  29457. -- Built-in Function: void __atomic_thread_fence (int memorder)
  29458. This built-in function acts as a synchronization fence between
  29459. threads based on the specified memory order.
  29460. All memory orders are valid.
  29461. -- Built-in Function: void __atomic_signal_fence (int memorder)
  29462. This built-in function acts as a synchronization fence between a
  29463. thread and signal handlers based in the same thread.
  29464. All memory orders are valid.
  29465. -- Built-in Function: bool __atomic_always_lock_free (size_t size, void
  29466. *ptr)
  29467. This built-in function returns true if objects of SIZE bytes always
  29468. generate lock-free atomic instructions for the target architecture.
  29469. SIZE must resolve to a compile-time constant and the result also
  29470. resolves to a compile-time constant.
  29471. PTR is an optional pointer to the object that may be used to
  29472. determine alignment. A value of 0 indicates typical alignment
  29473. should be used. The compiler may also ignore this parameter.
  29474. if (__atomic_always_lock_free (sizeof (long long), 0))
  29475. -- Built-in Function: bool __atomic_is_lock_free (size_t size, void
  29476. *ptr)
  29477. This built-in function returns true if objects of SIZE bytes always
  29478. generate lock-free atomic instructions for the target architecture.
  29479. If the built-in function is not known to be lock-free, a call is
  29480. made to a runtime routine named '__atomic_is_lock_free'.
  29481. PTR is an optional pointer to the object that may be used to
  29482. determine alignment. A value of 0 indicates typical alignment
  29483. should be used. The compiler may also ignore this parameter.
  29484. 
  29485. File: gcc.info, Node: Integer Overflow Builtins, Next: x86 specific memory model extensions for transactional memory, Prev: __atomic Builtins, Up: C Extensions
  29486. 6.54 Built-in Functions to Perform Arithmetic with Overflow Checking
  29487. ====================================================================
  29488. The following built-in functions allow performing simple arithmetic
  29489. operations together with checking whether the operations overflowed.
  29490. -- Built-in Function: bool __builtin_add_overflow (TYPE1 a, TYPE2 b,
  29491. TYPE3 *res)
  29492. -- Built-in Function: bool __builtin_sadd_overflow (int a, int b, int
  29493. *res)
  29494. -- Built-in Function: bool __builtin_saddl_overflow (long int a, long
  29495. int b, long int *res)
  29496. -- Built-in Function: bool __builtin_saddll_overflow (long long int a,
  29497. long long int b, long long int *res)
  29498. -- Built-in Function: bool __builtin_uadd_overflow (unsigned int a,
  29499. unsigned int b, unsigned int *res)
  29500. -- Built-in Function: bool __builtin_uaddl_overflow (unsigned long int
  29501. a, unsigned long int b, unsigned long int *res)
  29502. -- Built-in Function: bool __builtin_uaddll_overflow (unsigned long
  29503. long int a, unsigned long long int b, unsigned long long int
  29504. *res)
  29505. These built-in functions promote the first two operands into
  29506. infinite precision signed type and perform addition on those
  29507. promoted operands. The result is then cast to the type the third
  29508. pointer argument points to and stored there. If the stored result
  29509. is equal to the infinite precision result, the built-in functions
  29510. return false, otherwise they return true. As the addition is
  29511. performed in infinite signed precision, these built-in functions
  29512. have fully defined behavior for all argument values.
  29513. The first built-in function allows arbitrary integral types for
  29514. operands and the result type must be pointer to some integral type
  29515. other than enumerated or boolean type, the rest of the built-in
  29516. functions have explicit integer types.
  29517. The compiler will attempt to use hardware instructions to implement
  29518. these built-in functions where possible, like conditional jump on
  29519. overflow after addition, conditional jump on carry etc.
  29520. -- Built-in Function: bool __builtin_sub_overflow (TYPE1 a, TYPE2 b,
  29521. TYPE3 *res)
  29522. -- Built-in Function: bool __builtin_ssub_overflow (int a, int b, int
  29523. *res)
  29524. -- Built-in Function: bool __builtin_ssubl_overflow (long int a, long
  29525. int b, long int *res)
  29526. -- Built-in Function: bool __builtin_ssubll_overflow (long long int a,
  29527. long long int b, long long int *res)
  29528. -- Built-in Function: bool __builtin_usub_overflow (unsigned int a,
  29529. unsigned int b, unsigned int *res)
  29530. -- Built-in Function: bool __builtin_usubl_overflow (unsigned long int
  29531. a, unsigned long int b, unsigned long int *res)
  29532. -- Built-in Function: bool __builtin_usubll_overflow (unsigned long
  29533. long int a, unsigned long long int b, unsigned long long int
  29534. *res)
  29535. These built-in functions are similar to the add overflow checking
  29536. built-in functions above, except they perform subtraction, subtract
  29537. the second argument from the first one, instead of addition.
  29538. -- Built-in Function: bool __builtin_mul_overflow (TYPE1 a, TYPE2 b,
  29539. TYPE3 *res)
  29540. -- Built-in Function: bool __builtin_smul_overflow (int a, int b, int
  29541. *res)
  29542. -- Built-in Function: bool __builtin_smull_overflow (long int a, long
  29543. int b, long int *res)
  29544. -- Built-in Function: bool __builtin_smulll_overflow (long long int a,
  29545. long long int b, long long int *res)
  29546. -- Built-in Function: bool __builtin_umul_overflow (unsigned int a,
  29547. unsigned int b, unsigned int *res)
  29548. -- Built-in Function: bool __builtin_umull_overflow (unsigned long int
  29549. a, unsigned long int b, unsigned long int *res)
  29550. -- Built-in Function: bool __builtin_umulll_overflow (unsigned long
  29551. long int a, unsigned long long int b, unsigned long long int
  29552. *res)
  29553. These built-in functions are similar to the add overflow checking
  29554. built-in functions above, except they perform multiplication,
  29555. instead of addition.
  29556. The following built-in functions allow checking if simple arithmetic
  29557. operation would overflow.
  29558. -- Built-in Function: bool __builtin_add_overflow_p (TYPE1 a, TYPE2 b,
  29559. TYPE3 c)
  29560. -- Built-in Function: bool __builtin_sub_overflow_p (TYPE1 a, TYPE2 b,
  29561. TYPE3 c)
  29562. -- Built-in Function: bool __builtin_mul_overflow_p (TYPE1 a, TYPE2 b,
  29563. TYPE3 c)
  29564. These built-in functions are similar to '__builtin_add_overflow',
  29565. '__builtin_sub_overflow', or '__builtin_mul_overflow', except that
  29566. they don't store the result of the arithmetic operation anywhere
  29567. and the last argument is not a pointer, but some expression with
  29568. integral type other than enumerated or boolean type.
  29569. The built-in functions promote the first two operands into infinite
  29570. precision signed type and perform addition on those promoted
  29571. operands. The result is then cast to the type of the third
  29572. argument. If the cast result is equal to the infinite precision
  29573. result, the built-in functions return false, otherwise they return
  29574. true. The value of the third argument is ignored, just the
  29575. side-effects in the third argument are evaluated, and no integral
  29576. argument promotions are performed on the last argument. If the
  29577. third argument is a bit-field, the type used for the result cast
  29578. has the precision and signedness of the given bit-field, rather
  29579. than precision and signedness of the underlying type.
  29580. For example, the following macro can be used to portably check, at
  29581. compile-time, whether or not adding two constant integers will
  29582. overflow, and perform the addition only when it is known to be safe
  29583. and not to trigger a '-Woverflow' warning.
  29584. #define INT_ADD_OVERFLOW_P(a, b) \
  29585. __builtin_add_overflow_p (a, b, (__typeof__ ((a) + (b))) 0)
  29586. enum {
  29587. A = INT_MAX, B = 3,
  29588. C = INT_ADD_OVERFLOW_P (A, B) ? 0 : A + B,
  29589. D = __builtin_add_overflow_p (1, SCHAR_MAX, (signed char) 0)
  29590. };
  29591. The compiler will attempt to use hardware instructions to implement
  29592. these built-in functions where possible, like conditional jump on
  29593. overflow after addition, conditional jump on carry etc.
  29594. 
  29595. File: gcc.info, Node: x86 specific memory model extensions for transactional memory, Next: Object Size Checking, Prev: Integer Overflow Builtins, Up: C Extensions
  29596. 6.55 x86-Specific Memory Model Extensions for Transactional Memory
  29597. ==================================================================
  29598. The x86 architecture supports additional memory ordering flags to mark
  29599. critical sections for hardware lock elision. These must be specified in
  29600. addition to an existing memory order to atomic intrinsics.
  29601. '__ATOMIC_HLE_ACQUIRE'
  29602. Start lock elision on a lock variable. Memory order must be
  29603. '__ATOMIC_ACQUIRE' or stronger.
  29604. '__ATOMIC_HLE_RELEASE'
  29605. End lock elision on a lock variable. Memory order must be
  29606. '__ATOMIC_RELEASE' or stronger.
  29607. When a lock acquire fails, it is required for good performance to abort
  29608. the transaction quickly. This can be done with a '_mm_pause'.
  29609. #include <immintrin.h> // For _mm_pause
  29610. int lockvar;
  29611. /* Acquire lock with lock elision */
  29612. while (__atomic_exchange_n(&lockvar, 1, __ATOMIC_ACQUIRE|__ATOMIC_HLE_ACQUIRE))
  29613. _mm_pause(); /* Abort failed transaction */
  29614. ...
  29615. /* Free lock with lock elision */
  29616. __atomic_store_n(&lockvar, 0, __ATOMIC_RELEASE|__ATOMIC_HLE_RELEASE);
  29617. 
  29618. File: gcc.info, Node: Object Size Checking, Next: Pointer Bounds Checker builtins, Prev: x86 specific memory model extensions for transactional memory, Up: C Extensions
  29619. 6.56 Object Size Checking Built-in Functions
  29620. ============================================
  29621. GCC implements a limited buffer overflow protection mechanism that can
  29622. prevent some buffer overflow attacks by determining the sizes of objects
  29623. into which data is about to be written and preventing the writes when
  29624. the size isn't sufficient. The built-in functions described below yield
  29625. the best results when used together and when optimization is enabled.
  29626. For example, to detect object sizes across function boundaries or to
  29627. follow pointer assignments through non-trivial control flow they rely on
  29628. various optimization passes enabled with '-O2'. However, to a limited
  29629. extent, they can be used without optimization as well.
  29630. -- Built-in Function: size_t __builtin_object_size (const void * PTR,
  29631. int TYPE)
  29632. is a built-in construct that returns a constant number of bytes
  29633. from PTR to the end of the object PTR pointer points to (if known
  29634. at compile time). '__builtin_object_size' never evaluates its
  29635. arguments for side-effects. If there are any side-effects in them,
  29636. it returns '(size_t) -1' for TYPE 0 or 1 and '(size_t) 0' for TYPE
  29637. 2 or 3. If there are multiple objects PTR can point to and all of
  29638. them are known at compile time, the returned number is the maximum
  29639. of remaining byte counts in those objects if TYPE & 2 is 0 and
  29640. minimum if nonzero. If it is not possible to determine which
  29641. objects PTR points to at compile time, '__builtin_object_size'
  29642. should return '(size_t) -1' for TYPE 0 or 1 and '(size_t) 0' for
  29643. TYPE 2 or 3.
  29644. TYPE is an integer constant from 0 to 3. If the least significant
  29645. bit is clear, objects are whole variables, if it is set, a closest
  29646. surrounding subobject is considered the object a pointer points to.
  29647. The second bit determines if maximum or minimum of remaining bytes
  29648. is computed.
  29649. struct V { char buf1[10]; int b; char buf2[10]; } var;
  29650. char *p = &var.buf1[1], *q = &var.b;
  29651. /* Here the object p points to is var. */
  29652. assert (__builtin_object_size (p, 0) == sizeof (var) - 1);
  29653. /* The subobject p points to is var.buf1. */
  29654. assert (__builtin_object_size (p, 1) == sizeof (var.buf1) - 1);
  29655. /* The object q points to is var. */
  29656. assert (__builtin_object_size (q, 0)
  29657. == (char *) (&var + 1) - (char *) &var.b);
  29658. /* The subobject q points to is var.b. */
  29659. assert (__builtin_object_size (q, 1) == sizeof (var.b));
  29660. There are built-in functions added for many common string operation
  29661. functions, e.g., for 'memcpy' '__builtin___memcpy_chk' built-in is
  29662. provided. This built-in has an additional last argument, which is the
  29663. number of bytes remaining in object the DEST argument points to or
  29664. '(size_t) -1' if the size is not known.
  29665. The built-in functions are optimized into the normal string functions
  29666. like 'memcpy' if the last argument is '(size_t) -1' or if it is known at
  29667. compile time that the destination object will not be overflown. If the
  29668. compiler can determine at compile time the object will be always
  29669. overflown, it issues a warning.
  29670. The intended use can be e.g.
  29671. #undef memcpy
  29672. #define bos0(dest) __builtin_object_size (dest, 0)
  29673. #define memcpy(dest, src, n) \
  29674. __builtin___memcpy_chk (dest, src, n, bos0 (dest))
  29675. char *volatile p;
  29676. char buf[10];
  29677. /* It is unknown what object p points to, so this is optimized
  29678. into plain memcpy - no checking is possible. */
  29679. memcpy (p, "abcde", n);
  29680. /* Destination is known and length too. It is known at compile
  29681. time there will be no overflow. */
  29682. memcpy (&buf[5], "abcde", 5);
  29683. /* Destination is known, but the length is not known at compile time.
  29684. This will result in __memcpy_chk call that can check for overflow
  29685. at run time. */
  29686. memcpy (&buf[5], "abcde", n);
  29687. /* Destination is known and it is known at compile time there will
  29688. be overflow. There will be a warning and __memcpy_chk call that
  29689. will abort the program at run time. */
  29690. memcpy (&buf[6], "abcde", 5);
  29691. Such built-in functions are provided for 'memcpy', 'mempcpy',
  29692. 'memmove', 'memset', 'strcpy', 'stpcpy', 'strncpy', 'strcat' and
  29693. 'strncat'.
  29694. There are also checking built-in functions for formatted output
  29695. functions.
  29696. int __builtin___sprintf_chk (char *s, int flag, size_t os, const char *fmt, ...);
  29697. int __builtin___snprintf_chk (char *s, size_t maxlen, int flag, size_t os,
  29698. const char *fmt, ...);
  29699. int __builtin___vsprintf_chk (char *s, int flag, size_t os, const char *fmt,
  29700. va_list ap);
  29701. int __builtin___vsnprintf_chk (char *s, size_t maxlen, int flag, size_t os,
  29702. const char *fmt, va_list ap);
  29703. The added FLAG argument is passed unchanged to '__sprintf_chk' etc.
  29704. functions and can contain implementation specific flags on what
  29705. additional security measures the checking function might take, such as
  29706. handling '%n' differently.
  29707. The OS argument is the object size S points to, like in the other
  29708. built-in functions. There is a small difference in the behavior though,
  29709. if OS is '(size_t) -1', the built-in functions are optimized into the
  29710. non-checking functions only if FLAG is 0, otherwise the checking
  29711. function is called with OS argument set to '(size_t) -1'.
  29712. In addition to this, there are checking built-in functions
  29713. '__builtin___printf_chk', '__builtin___vprintf_chk',
  29714. '__builtin___fprintf_chk' and '__builtin___vfprintf_chk'. These have
  29715. just one additional argument, FLAG, right before format string FMT. If
  29716. the compiler is able to optimize them to 'fputc' etc. functions, it
  29717. does, otherwise the checking function is called and the FLAG argument
  29718. passed to it.
  29719. 
  29720. File: gcc.info, Node: Pointer Bounds Checker builtins, Next: Cilk Plus Builtins, Prev: Object Size Checking, Up: C Extensions
  29721. 6.57 Pointer Bounds Checker Built-in Functions
  29722. ==============================================
  29723. GCC provides a set of built-in functions to control Pointer Bounds
  29724. Checker instrumentation. Note that all Pointer Bounds Checker builtins
  29725. can be used even if you compile with Pointer Bounds Checker off
  29726. ('-fno-check-pointer-bounds'). The behavior may differ in such case as
  29727. documented below.
  29728. -- Built-in Function: void * __builtin___bnd_set_ptr_bounds (const void
  29729. *Q, size_t SIZE)
  29730. This built-in function returns a new pointer with the value of Q,
  29731. and associate it with the bounds [Q, Q+SIZE-1]. With Pointer
  29732. Bounds Checker off, the built-in function just returns the first
  29733. argument.
  29734. extern void *__wrap_malloc (size_t n)
  29735. {
  29736. void *p = (void *)__real_malloc (n);
  29737. if (!p) return __builtin___bnd_null_ptr_bounds (p);
  29738. return __builtin___bnd_set_ptr_bounds (p, n);
  29739. }
  29740. -- Built-in Function: void * __builtin___bnd_narrow_ptr_bounds (const
  29741. void *P, const void *Q, size_t SIZE)
  29742. This built-in function returns a new pointer with the value of P
  29743. and associates it with the narrowed bounds formed by the
  29744. intersection of bounds associated with Q and the bounds [P, P +
  29745. SIZE - 1]. With Pointer Bounds Checker off, the built-in function
  29746. just returns the first argument.
  29747. void init_objects (object *objs, size_t size)
  29748. {
  29749. size_t i;
  29750. /* Initialize objects one-by-one passing pointers with bounds of
  29751. an object, not the full array of objects. */
  29752. for (i = 0; i < size; i++)
  29753. init_object (__builtin___bnd_narrow_ptr_bounds (objs + i, objs,
  29754. sizeof(object)));
  29755. }
  29756. -- Built-in Function: void * __builtin___bnd_copy_ptr_bounds (const
  29757. void *Q, const void *R)
  29758. This built-in function returns a new pointer with the value of Q,
  29759. and associates it with the bounds already associated with pointer
  29760. R. With Pointer Bounds Checker off, the built-in function just
  29761. returns the first argument.
  29762. /* Here is a way to get pointer to object's field but
  29763. still with the full object's bounds. */
  29764. int *field_ptr = __builtin___bnd_copy_ptr_bounds (&objptr->int_field,
  29765. objptr);
  29766. -- Built-in Function: void * __builtin___bnd_init_ptr_bounds (const
  29767. void *Q)
  29768. This built-in function returns a new pointer with the value of Q,
  29769. and associates it with INIT (allowing full memory access) bounds.
  29770. With Pointer Bounds Checker off, the built-in function just returns
  29771. the first argument.
  29772. -- Built-in Function: void * __builtin___bnd_null_ptr_bounds (const
  29773. void *Q)
  29774. This built-in function returns a new pointer with the value of Q,
  29775. and associates it with NULL (allowing no memory access) bounds.
  29776. With Pointer Bounds Checker off, the built-in function just returns
  29777. the first argument.
  29778. -- Built-in Function: void __builtin___bnd_store_ptr_bounds (const void
  29779. **PTR_ADDR, const void *PTR_VAL)
  29780. This built-in function stores the bounds associated with pointer
  29781. PTR_VAL and location PTR_ADDR into Bounds Table. This can be
  29782. useful to propagate bounds from legacy code without touching the
  29783. associated pointer's memory when pointers are copied as integers.
  29784. With Pointer Bounds Checker off, the built-in function call is
  29785. ignored.
  29786. -- Built-in Function: void __builtin___bnd_chk_ptr_lbounds (const void
  29787. *Q)
  29788. This built-in function checks if the pointer Q is within the lower
  29789. bound of its associated bounds. With Pointer Bounds Checker off,
  29790. the built-in function call is ignored.
  29791. extern void *__wrap_memset (void *dst, int c, size_t len)
  29792. {
  29793. if (len > 0)
  29794. {
  29795. __builtin___bnd_chk_ptr_lbounds (dst);
  29796. __builtin___bnd_chk_ptr_ubounds ((char *)dst + len - 1);
  29797. __real_memset (dst, c, len);
  29798. }
  29799. return dst;
  29800. }
  29801. -- Built-in Function: void __builtin___bnd_chk_ptr_ubounds (const void
  29802. *Q)
  29803. This built-in function checks if the pointer Q is within the upper
  29804. bound of its associated bounds. With Pointer Bounds Checker off,
  29805. the built-in function call is ignored.
  29806. -- Built-in Function: void __builtin___bnd_chk_ptr_bounds (const void
  29807. *Q, size_t SIZE)
  29808. This built-in function checks if [Q, Q + SIZE - 1] is within the
  29809. lower and upper bounds associated with Q. With Pointer Bounds
  29810. Checker off, the built-in function call is ignored.
  29811. extern void *__wrap_memcpy (void *dst, const void *src, size_t n)
  29812. {
  29813. if (n > 0)
  29814. {
  29815. __bnd_chk_ptr_bounds (dst, n);
  29816. __bnd_chk_ptr_bounds (src, n);
  29817. __real_memcpy (dst, src, n);
  29818. }
  29819. return dst;
  29820. }
  29821. -- Built-in Function: const void * __builtin___bnd_get_ptr_lbound
  29822. (const void *Q)
  29823. This built-in function returns the lower bound associated with the
  29824. pointer Q, as a pointer value. This is useful for debugging using
  29825. 'printf'. With Pointer Bounds Checker off, the built-in function
  29826. returns 0.
  29827. void *lb = __builtin___bnd_get_ptr_lbound (q);
  29828. void *ub = __builtin___bnd_get_ptr_ubound (q);
  29829. printf ("q = %p lb(q) = %p ub(q) = %p", q, lb, ub);
  29830. -- Built-in Function: const void * __builtin___bnd_get_ptr_ubound
  29831. (const void *Q)
  29832. This built-in function returns the upper bound (which is a pointer)
  29833. associated with the pointer Q. With Pointer Bounds Checker off,
  29834. the built-in function returns -1.
  29835. 
  29836. File: gcc.info, Node: Cilk Plus Builtins, Next: Other Builtins, Prev: Pointer Bounds Checker builtins, Up: C Extensions
  29837. 6.58 Cilk Plus C/C++ Language Extension Built-in Functions
  29838. ==========================================================
  29839. GCC provides support for the following built-in reduction functions if
  29840. Cilk Plus is enabled. Cilk Plus can be enabled using the '-fcilkplus'
  29841. flag.
  29842. * '__sec_implicit_index'
  29843. * '__sec_reduce'
  29844. * '__sec_reduce_add'
  29845. * '__sec_reduce_all_nonzero'
  29846. * '__sec_reduce_all_zero'
  29847. * '__sec_reduce_any_nonzero'
  29848. * '__sec_reduce_any_zero'
  29849. * '__sec_reduce_max'
  29850. * '__sec_reduce_min'
  29851. * '__sec_reduce_max_ind'
  29852. * '__sec_reduce_min_ind'
  29853. * '__sec_reduce_mul'
  29854. * '__sec_reduce_mutating'
  29855. Further details and examples about these built-in functions are
  29856. described in the Cilk Plus language manual which can be found at
  29857. <https://www.cilkplus.org>.
  29858. 
  29859. File: gcc.info, Node: Other Builtins, Next: Target Builtins, Prev: Cilk Plus Builtins, Up: C Extensions
  29860. 6.59 Other Built-in Functions Provided by GCC
  29861. =============================================
  29862. GCC provides a large number of built-in functions other than the ones
  29863. mentioned above. Some of these are for internal use in the processing
  29864. of exceptions or variable-length argument lists and are not documented
  29865. here because they may change from time to time; we do not recommend
  29866. general use of these functions.
  29867. The remaining functions are provided for optimization purposes.
  29868. With the exception of built-ins that have library equivalents such as
  29869. the standard C library functions discussed below, or that expand to
  29870. library calls, GCC built-in functions are always expanded inline and
  29871. thus do not have corresponding entry points and their address cannot be
  29872. obtained. Attempting to use them in an expression other than a function
  29873. call results in a compile-time error.
  29874. GCC includes built-in versions of many of the functions in the standard
  29875. C library. These functions come in two forms: one whose names start
  29876. with the '__builtin_' prefix, and the other without. Both forms have
  29877. the same type (including prototype), the same address (when their
  29878. address is taken), and the same meaning as the C library functions even
  29879. if you specify the '-fno-builtin' option *note C Dialect Options::).
  29880. Many of these functions are only optimized in certain cases; if they are
  29881. not optimized in a particular case, a call to the library function is
  29882. emitted.
  29883. Outside strict ISO C mode ('-ansi', '-std=c90', '-std=c99' or
  29884. '-std=c11'), the functions '_exit', 'alloca', 'bcmp', 'bzero',
  29885. 'dcgettext', 'dgettext', 'dremf', 'dreml', 'drem', 'exp10f', 'exp10l',
  29886. 'exp10', 'ffsll', 'ffsl', 'ffs', 'fprintf_unlocked', 'fputs_unlocked',
  29887. 'gammaf', 'gammal', 'gamma', 'gammaf_r', 'gammal_r', 'gamma_r',
  29888. 'gettext', 'index', 'isascii', 'j0f', 'j0l', 'j0', 'j1f', 'j1l', 'j1',
  29889. 'jnf', 'jnl', 'jn', 'lgammaf_r', 'lgammal_r', 'lgamma_r', 'mempcpy',
  29890. 'pow10f', 'pow10l', 'pow10', 'printf_unlocked', 'rindex', 'scalbf',
  29891. 'scalbl', 'scalb', 'signbit', 'signbitf', 'signbitl', 'signbitd32',
  29892. 'signbitd64', 'signbitd128', 'significandf', 'significandl',
  29893. 'significand', 'sincosf', 'sincosl', 'sincos', 'stpcpy', 'stpncpy',
  29894. 'strcasecmp', 'strdup', 'strfmon', 'strncasecmp', 'strndup', 'toascii',
  29895. 'y0f', 'y0l', 'y0', 'y1f', 'y1l', 'y1', 'ynf', 'ynl' and 'yn' may be
  29896. handled as built-in functions. All these functions have corresponding
  29897. versions prefixed with '__builtin_', which may be used even in strict
  29898. C90 mode.
  29899. The ISO C99 functions '_Exit', 'acoshf', 'acoshl', 'acosh', 'asinhf',
  29900. 'asinhl', 'asinh', 'atanhf', 'atanhl', 'atanh', 'cabsf', 'cabsl',
  29901. 'cabs', 'cacosf', 'cacoshf', 'cacoshl', 'cacosh', 'cacosl', 'cacos',
  29902. 'cargf', 'cargl', 'carg', 'casinf', 'casinhf', 'casinhl', 'casinh',
  29903. 'casinl', 'casin', 'catanf', 'catanhf', 'catanhl', 'catanh', 'catanl',
  29904. 'catan', 'cbrtf', 'cbrtl', 'cbrt', 'ccosf', 'ccoshf', 'ccoshl', 'ccosh',
  29905. 'ccosl', 'ccos', 'cexpf', 'cexpl', 'cexp', 'cimagf', 'cimagl', 'cimag',
  29906. 'clogf', 'clogl', 'clog', 'conjf', 'conjl', 'conj', 'copysignf',
  29907. 'copysignl', 'copysign', 'cpowf', 'cpowl', 'cpow', 'cprojf', 'cprojl',
  29908. 'cproj', 'crealf', 'creall', 'creal', 'csinf', 'csinhf', 'csinhl',
  29909. 'csinh', 'csinl', 'csin', 'csqrtf', 'csqrtl', 'csqrt', 'ctanf',
  29910. 'ctanhf', 'ctanhl', 'ctanh', 'ctanl', 'ctan', 'erfcf', 'erfcl', 'erfc',
  29911. 'erff', 'erfl', 'erf', 'exp2f', 'exp2l', 'exp2', 'expm1f', 'expm1l',
  29912. 'expm1', 'fdimf', 'fdiml', 'fdim', 'fmaf', 'fmal', 'fmaxf', 'fmaxl',
  29913. 'fmax', 'fma', 'fminf', 'fminl', 'fmin', 'hypotf', 'hypotl', 'hypot',
  29914. 'ilogbf', 'ilogbl', 'ilogb', 'imaxabs', 'isblank', 'iswblank',
  29915. 'lgammaf', 'lgammal', 'lgamma', 'llabs', 'llrintf', 'llrintl', 'llrint',
  29916. 'llroundf', 'llroundl', 'llround', 'log1pf', 'log1pl', 'log1p', 'log2f',
  29917. 'log2l', 'log2', 'logbf', 'logbl', 'logb', 'lrintf', 'lrintl', 'lrint',
  29918. 'lroundf', 'lroundl', 'lround', 'nearbyintf', 'nearbyintl', 'nearbyint',
  29919. 'nextafterf', 'nextafterl', 'nextafter', 'nexttowardf', 'nexttowardl',
  29920. 'nexttoward', 'remainderf', 'remainderl', 'remainder', 'remquof',
  29921. 'remquol', 'remquo', 'rintf', 'rintl', 'rint', 'roundf', 'roundl',
  29922. 'round', 'scalblnf', 'scalblnl', 'scalbln', 'scalbnf', 'scalbnl',
  29923. 'scalbn', 'snprintf', 'tgammaf', 'tgammal', 'tgamma', 'truncf',
  29924. 'truncl', 'trunc', 'vfscanf', 'vscanf', 'vsnprintf' and 'vsscanf' are
  29925. handled as built-in functions except in strict ISO C90 mode ('-ansi' or
  29926. '-std=c90').
  29927. There are also built-in versions of the ISO C99 functions 'acosf',
  29928. 'acosl', 'asinf', 'asinl', 'atan2f', 'atan2l', 'atanf', 'atanl',
  29929. 'ceilf', 'ceill', 'cosf', 'coshf', 'coshl', 'cosl', 'expf', 'expl',
  29930. 'fabsf', 'fabsl', 'floorf', 'floorl', 'fmodf', 'fmodl', 'frexpf',
  29931. 'frexpl', 'ldexpf', 'ldexpl', 'log10f', 'log10l', 'logf', 'logl',
  29932. 'modfl', 'modf', 'powf', 'powl', 'sinf', 'sinhf', 'sinhl', 'sinl',
  29933. 'sqrtf', 'sqrtl', 'tanf', 'tanhf', 'tanhl' and 'tanl' that are
  29934. recognized in any mode since ISO C90 reserves these names for the
  29935. purpose to which ISO C99 puts them. All these functions have
  29936. corresponding versions prefixed with '__builtin_'.
  29937. There are also built-in functions '__builtin_fabsfN',
  29938. '__builtin_fabsfNx', '__builtin_copysignfN' and '__builtin_copysignfNx',
  29939. corresponding to the TS 18661-3 functions 'fabsfN', 'fabsfNx',
  29940. 'copysignfN' and 'copysignfNx', for supported types '_FloatN' and
  29941. '_FloatNx'.
  29942. There are also GNU extension functions 'clog10', 'clog10f' and
  29943. 'clog10l' which names are reserved by ISO C99 for future use. All these
  29944. functions have versions prefixed with '__builtin_'.
  29945. The ISO C94 functions 'iswalnum', 'iswalpha', 'iswcntrl', 'iswdigit',
  29946. 'iswgraph', 'iswlower', 'iswprint', 'iswpunct', 'iswspace', 'iswupper',
  29947. 'iswxdigit', 'towlower' and 'towupper' are handled as built-in functions
  29948. except in strict ISO C90 mode ('-ansi' or '-std=c90').
  29949. The ISO C90 functions 'abort', 'abs', 'acos', 'asin', 'atan2', 'atan',
  29950. 'calloc', 'ceil', 'cosh', 'cos', 'exit', 'exp', 'fabs', 'floor', 'fmod',
  29951. 'fprintf', 'fputs', 'frexp', 'fscanf', 'isalnum', 'isalpha', 'iscntrl',
  29952. 'isdigit', 'isgraph', 'islower', 'isprint', 'ispunct', 'isspace',
  29953. 'isupper', 'isxdigit', 'tolower', 'toupper', 'labs', 'ldexp', 'log10',
  29954. 'log', 'malloc', 'memchr', 'memcmp', 'memcpy', 'memset', 'modf', 'pow',
  29955. 'printf', 'putchar', 'puts', 'scanf', 'sinh', 'sin', 'snprintf',
  29956. 'sprintf', 'sqrt', 'sscanf', 'strcat', 'strchr', 'strcmp', 'strcpy',
  29957. 'strcspn', 'strlen', 'strncat', 'strncmp', 'strncpy', 'strpbrk',
  29958. 'strrchr', 'strspn', 'strstr', 'tanh', 'tan', 'vfprintf', 'vprintf' and
  29959. 'vsprintf' are all recognized as built-in functions unless
  29960. '-fno-builtin' is specified (or '-fno-builtin-FUNCTION' is specified for
  29961. an individual function). All of these functions have corresponding
  29962. versions prefixed with '__builtin_'.
  29963. GCC provides built-in versions of the ISO C99 floating-point comparison
  29964. macros that avoid raising exceptions for unordered operands. They have
  29965. the same names as the standard macros ( 'isgreater', 'isgreaterequal',
  29966. 'isless', 'islessequal', 'islessgreater', and 'isunordered') , with
  29967. '__builtin_' prefixed. We intend for a library implementor to be able
  29968. to simply '#define' each standard macro to its built-in equivalent. In
  29969. the same fashion, GCC provides 'fpclassify', 'isfinite', 'isinf_sign',
  29970. 'isnormal' and 'signbit' built-ins used with '__builtin_' prefixed. The
  29971. 'isinf' and 'isnan' built-in functions appear both with and without the
  29972. '__builtin_' prefix.
  29973. -- Built-in Function: void *__builtin_alloca (size_t size)
  29974. The '__builtin_alloca' function must be called at block scope. The
  29975. function allocates an object SIZE bytes large on the stack of the
  29976. calling function. The object is aligned on the default stack
  29977. alignment boundary for the target determined by the
  29978. '__BIGGEST_ALIGNMENT__' macro. The '__builtin_alloca' function
  29979. returns a pointer to the first byte of the allocated object. The
  29980. lifetime of the allocated object ends just before the calling
  29981. function returns to its caller. This is so even when
  29982. '__builtin_alloca' is called within a nested block.
  29983. For example, the following function allocates eight objects of 'n'
  29984. bytes each on the stack, storing a pointer to each in consecutive
  29985. elements of the array 'a'. It then passes the array to function
  29986. 'g' which can safely use the storage pointed to by each of the
  29987. array elements.
  29988. void f (unsigned n)
  29989. {
  29990. void *a [8];
  29991. for (int i = 0; i != 8; ++i)
  29992. a [i] = __builtin_alloca (n);
  29993. g (a, n); // safe
  29994. }
  29995. Since the '__builtin_alloca' function doesn't validate its argument
  29996. it is the responsibility of its caller to make sure the argument
  29997. doesn't cause it to exceed the stack size limit. The
  29998. '__builtin_alloca' function is provided to make it possible to
  29999. allocate on the stack arrays of bytes with an upper bound that may
  30000. be computed at run time. Since C99 Variable Length Arrays offer
  30001. similar functionality under a portable, more convenient, and safer
  30002. interface they are recommended instead, in both C99 and C++
  30003. programs where GCC provides them as an extension. *Note Variable
  30004. Length::, for details.
  30005. -- Built-in Function: void *__builtin_alloca_with_align (size_t size,
  30006. size_t alignment)
  30007. The '__builtin_alloca_with_align' function must be called at block
  30008. scope. The function allocates an object SIZE bytes large on the
  30009. stack of the calling function. The allocated object is aligned on
  30010. the boundary specified by the argument ALIGNMENT whose unit is
  30011. given in bits (not bytes). The SIZE argument must be positive and
  30012. not exceed the stack size limit. The ALIGNMENT argument must be a
  30013. constant integer expression that evaluates to a power of 2 greater
  30014. than or equal to 'CHAR_BIT' and less than some unspecified maximum.
  30015. Invocations with other values are rejected with an error indicating
  30016. the valid bounds. The function returns a pointer to the first byte
  30017. of the allocated object. The lifetime of the allocated object ends
  30018. at the end of the block in which the function was called. The
  30019. allocated storage is released no later than just before the calling
  30020. function returns to its caller, but may be released at the end of
  30021. the block in which the function was called.
  30022. For example, in the following function the call to 'g' is unsafe
  30023. because when 'overalign' is non-zero, the space allocated by
  30024. '__builtin_alloca_with_align' may have been released at the end of
  30025. the 'if' statement in which it was called.
  30026. void f (unsigned n, bool overalign)
  30027. {
  30028. void *p;
  30029. if (overalign)
  30030. p = __builtin_alloca_with_align (n, 64 /* bits */);
  30031. else
  30032. p = __builtin_alloc (n);
  30033. g (p, n); // unsafe
  30034. }
  30035. Since the '__builtin_alloca_with_align' function doesn't validate
  30036. its SIZE argument it is the responsibility of its caller to make
  30037. sure the argument doesn't cause it to exceed the stack size limit.
  30038. The '__builtin_alloca_with_align' function is provided to make it
  30039. possible to allocate on the stack overaligned arrays of bytes with
  30040. an upper bound that may be computed at run time. Since C99
  30041. Variable Length Arrays offer the same functionality under a
  30042. portable, more convenient, and safer interface they are recommended
  30043. instead, in both C99 and C++ programs where GCC provides them as an
  30044. extension. *Note Variable Length::, for details.
  30045. -- Built-in Function: int __builtin_types_compatible_p (TYPE1, TYPE2)
  30046. You can use the built-in function '__builtin_types_compatible_p' to
  30047. determine whether two types are the same.
  30048. This built-in function returns 1 if the unqualified versions of the
  30049. types TYPE1 and TYPE2 (which are types, not expressions) are
  30050. compatible, 0 otherwise. The result of this built-in function can
  30051. be used in integer constant expressions.
  30052. This built-in function ignores top level qualifiers (e.g., 'const',
  30053. 'volatile'). For example, 'int' is equivalent to 'const int'.
  30054. The type 'int[]' and 'int[5]' are compatible. On the other hand,
  30055. 'int' and 'char *' are not compatible, even if the size of their
  30056. types, on the particular architecture are the same. Also, the
  30057. amount of pointer indirection is taken into account when
  30058. determining similarity. Consequently, 'short *' is not similar to
  30059. 'short **'. Furthermore, two types that are typedefed are
  30060. considered compatible if their underlying types are compatible.
  30061. An 'enum' type is not considered to be compatible with another
  30062. 'enum' type even if both are compatible with the same integer type;
  30063. this is what the C standard specifies. For example, 'enum {foo,
  30064. bar}' is not similar to 'enum {hot, dog}'.
  30065. You typically use this function in code whose execution varies
  30066. depending on the arguments' types. For example:
  30067. #define foo(x) \
  30068. ({ \
  30069. typeof (x) tmp = (x); \
  30070. if (__builtin_types_compatible_p (typeof (x), long double)) \
  30071. tmp = foo_long_double (tmp); \
  30072. else if (__builtin_types_compatible_p (typeof (x), double)) \
  30073. tmp = foo_double (tmp); \
  30074. else if (__builtin_types_compatible_p (typeof (x), float)) \
  30075. tmp = foo_float (tmp); \
  30076. else \
  30077. abort (); \
  30078. tmp; \
  30079. })
  30080. _Note:_ This construct is only available for C.
  30081. -- Built-in Function: TYPE __builtin_call_with_static_chain (CALL_EXP,
  30082. POINTER_EXP)
  30083. The CALL_EXP expression must be a function call, and the
  30084. POINTER_EXP expression must be a pointer. The POINTER_EXP is
  30085. passed to the function call in the target's static chain location.
  30086. The result of builtin is the result of the function call.
  30087. _Note:_ This builtin is only available for C. This builtin can be
  30088. used to call Go closures from C.
  30089. -- Built-in Function: TYPE __builtin_choose_expr (CONST_EXP, EXP1,
  30090. EXP2)
  30091. You can use the built-in function '__builtin_choose_expr' to
  30092. evaluate code depending on the value of a constant expression.
  30093. This built-in function returns EXP1 if CONST_EXP, which is an
  30094. integer constant expression, is nonzero. Otherwise it returns
  30095. EXP2.
  30096. This built-in function is analogous to the '? :' operator in C,
  30097. except that the expression returned has its type unaltered by
  30098. promotion rules. Also, the built-in function does not evaluate the
  30099. expression that is not chosen. For example, if CONST_EXP evaluates
  30100. to true, EXP2 is not evaluated even if it has side-effects.
  30101. This built-in function can return an lvalue if the chosen argument
  30102. is an lvalue.
  30103. If EXP1 is returned, the return type is the same as EXP1's type.
  30104. Similarly, if EXP2 is returned, its return type is the same as
  30105. EXP2.
  30106. Example:
  30107. #define foo(x) \
  30108. __builtin_choose_expr ( \
  30109. __builtin_types_compatible_p (typeof (x), double), \
  30110. foo_double (x), \
  30111. __builtin_choose_expr ( \
  30112. __builtin_types_compatible_p (typeof (x), float), \
  30113. foo_float (x), \
  30114. /* The void expression results in a compile-time error \
  30115. when assigning the result to something. */ \
  30116. (void)0))
  30117. _Note:_ This construct is only available for C. Furthermore, the
  30118. unused expression (EXP1 or EXP2 depending on the value of
  30119. CONST_EXP) may still generate syntax errors. This may change in
  30120. future revisions.
  30121. -- Built-in Function: TYPE __builtin_complex (REAL, IMAG)
  30122. The built-in function '__builtin_complex' is provided for use in
  30123. implementing the ISO C11 macros 'CMPLXF', 'CMPLX' and 'CMPLXL'.
  30124. REAL and IMAG must have the same type, a real binary floating-point
  30125. type, and the result has the corresponding complex type with real
  30126. and imaginary parts REAL and IMAG. Unlike 'REAL + I * IMAG', this
  30127. works even when infinities, NaNs and negative zeros are involved.
  30128. -- Built-in Function: int __builtin_constant_p (EXP)
  30129. You can use the built-in function '__builtin_constant_p' to
  30130. determine if a value is known to be constant at compile time and
  30131. hence that GCC can perform constant-folding on expressions
  30132. involving that value. The argument of the function is the value to
  30133. test. The function returns the integer 1 if the argument is known
  30134. to be a compile-time constant and 0 if it is not known to be a
  30135. compile-time constant. A return of 0 does not indicate that the
  30136. value is _not_ a constant, but merely that GCC cannot prove it is a
  30137. constant with the specified value of the '-O' option.
  30138. You typically use this function in an embedded application where
  30139. memory is a critical resource. If you have some complex
  30140. calculation, you may want it to be folded if it involves constants,
  30141. but need to call a function if it does not. For example:
  30142. #define Scale_Value(X) \
  30143. (__builtin_constant_p (X) \
  30144. ? ((X) * SCALE + OFFSET) : Scale (X))
  30145. You may use this built-in function in either a macro or an inline
  30146. function. However, if you use it in an inlined function and pass
  30147. an argument of the function as the argument to the built-in, GCC
  30148. never returns 1 when you call the inline function with a string
  30149. constant or compound literal (*note Compound Literals::) and does
  30150. not return 1 when you pass a constant numeric value to the inline
  30151. function unless you specify the '-O' option.
  30152. You may also use '__builtin_constant_p' in initializers for static
  30153. data. For instance, you can write
  30154. static const int table[] = {
  30155. __builtin_constant_p (EXPRESSION) ? (EXPRESSION) : -1,
  30156. /* ... */
  30157. };
  30158. This is an acceptable initializer even if EXPRESSION is not a
  30159. constant expression, including the case where
  30160. '__builtin_constant_p' returns 1 because EXPRESSION can be folded
  30161. to a constant but EXPRESSION contains operands that are not
  30162. otherwise permitted in a static initializer (for example, '0 && foo
  30163. ()'). GCC must be more conservative about evaluating the built-in
  30164. in this case, because it has no opportunity to perform
  30165. optimization.
  30166. -- Built-in Function: long __builtin_expect (long EXP, long C)
  30167. You may use '__builtin_expect' to provide the compiler with branch
  30168. prediction information. In general, you should prefer to use
  30169. actual profile feedback for this ('-fprofile-arcs'), as programmers
  30170. are notoriously bad at predicting how their programs actually
  30171. perform. However, there are applications in which this data is
  30172. hard to collect.
  30173. The return value is the value of EXP, which should be an integral
  30174. expression. The semantics of the built-in are that it is expected
  30175. that EXP == C. For example:
  30176. if (__builtin_expect (x, 0))
  30177. foo ();
  30178. indicates that we do not expect to call 'foo', since we expect 'x'
  30179. to be zero. Since you are limited to integral expressions for EXP,
  30180. you should use constructions such as
  30181. if (__builtin_expect (ptr != NULL, 1))
  30182. foo (*ptr);
  30183. when testing pointer or floating-point values.
  30184. -- Built-in Function: void __builtin_trap (void)
  30185. This function causes the program to exit abnormally. GCC
  30186. implements this function by using a target-dependent mechanism
  30187. (such as intentionally executing an illegal instruction) or by
  30188. calling 'abort'. The mechanism used may vary from release to
  30189. release so you should not rely on any particular implementation.
  30190. -- Built-in Function: void __builtin_unreachable (void)
  30191. If control flow reaches the point of the '__builtin_unreachable',
  30192. the program is undefined. It is useful in situations where the
  30193. compiler cannot deduce the unreachability of the code.
  30194. One such case is immediately following an 'asm' statement that
  30195. either never terminates, or one that transfers control elsewhere
  30196. and never returns. In this example, without the
  30197. '__builtin_unreachable', GCC issues a warning that control reaches
  30198. the end of a non-void function. It also generates code to return
  30199. after the 'asm'.
  30200. int f (int c, int v)
  30201. {
  30202. if (c)
  30203. {
  30204. return v;
  30205. }
  30206. else
  30207. {
  30208. asm("jmp error_handler");
  30209. __builtin_unreachable ();
  30210. }
  30211. }
  30212. Because the 'asm' statement unconditionally transfers control out
  30213. of the function, control never reaches the end of the function
  30214. body. The '__builtin_unreachable' is in fact unreachable and
  30215. communicates this fact to the compiler.
  30216. Another use for '__builtin_unreachable' is following a call a
  30217. function that never returns but that is not declared
  30218. '__attribute__((noreturn))', as in this example:
  30219. void function_that_never_returns (void);
  30220. int g (int c)
  30221. {
  30222. if (c)
  30223. {
  30224. return 1;
  30225. }
  30226. else
  30227. {
  30228. function_that_never_returns ();
  30229. __builtin_unreachable ();
  30230. }
  30231. }
  30232. -- Built-in Function: void * __builtin_assume_aligned (const void *EXP,
  30233. size_t ALIGN, ...)
  30234. This function returns its first argument, and allows the compiler
  30235. to assume that the returned pointer is at least ALIGN bytes
  30236. aligned. This built-in can have either two or three arguments, if
  30237. it has three, the third argument should have integer type, and if
  30238. it is nonzero means misalignment offset. For example:
  30239. void *x = __builtin_assume_aligned (arg, 16);
  30240. means that the compiler can assume 'x', set to 'arg', is at least
  30241. 16-byte aligned, while:
  30242. void *x = __builtin_assume_aligned (arg, 32, 8);
  30243. means that the compiler can assume for 'x', set to 'arg', that
  30244. '(char *) x - 8' is 32-byte aligned.
  30245. -- Built-in Function: int __builtin_LINE ()
  30246. This function is the equivalent of the preprocessor '__LINE__'
  30247. macro and returns a constant integer expression that evaluates to
  30248. the line number of the invocation of the built-in. When used as a
  30249. C++ default argument for a function F, it returns the line number
  30250. of the call to F.
  30251. -- Built-in Function: const char * __builtin_FUNCTION ()
  30252. This function is the equivalent of the '__FUNCTION__' symbol and
  30253. returns an address constant pointing to the name of the function
  30254. from which the built-in was invoked, or the empty string if the
  30255. invocation is not at function scope. When used as a C++ default
  30256. argument for a function F, it returns the name of F's caller or the
  30257. empty string if the call was not made at function scope.
  30258. -- Built-in Function: const char * __builtin_FILE ()
  30259. This function is the equivalent of the preprocessor '__FILE__'
  30260. macro and returns an address constant pointing to the file name
  30261. containing the invocation of the built-in, or the empty string if
  30262. the invocation is not at function scope. When used as a C++
  30263. default argument for a function F, it returns the file name of the
  30264. call to F or the empty string if the call was not made at function
  30265. scope.
  30266. For example, in the following, each call to function 'foo' will
  30267. print a line similar to '"file.c:123: foo: message"' with the name
  30268. of the file and the line number of the 'printf' call, the name of
  30269. the function 'foo', followed by the word 'message'.
  30270. const char*
  30271. function (const char *func = __builtin_FUNCTION ())
  30272. {
  30273. return func;
  30274. }
  30275. void foo (void)
  30276. {
  30277. printf ("%s:%i: %s: message\n", file (), line (), function ());
  30278. }
  30279. -- Built-in Function: void __builtin___clear_cache (char *BEGIN, char
  30280. *END)
  30281. This function is used to flush the processor's instruction cache
  30282. for the region of memory between BEGIN inclusive and END exclusive.
  30283. Some targets require that the instruction cache be flushed, after
  30284. modifying memory containing code, in order to obtain deterministic
  30285. behavior.
  30286. If the target does not require instruction cache flushes,
  30287. '__builtin___clear_cache' has no effect. Otherwise either
  30288. instructions are emitted in-line to clear the instruction cache or
  30289. a call to the '__clear_cache' function in libgcc is made.
  30290. -- Built-in Function: void __builtin_prefetch (const void *ADDR, ...)
  30291. This function is used to minimize cache-miss latency by moving data
  30292. into a cache before it is accessed. You can insert calls to
  30293. '__builtin_prefetch' into code for which you know addresses of data
  30294. in memory that is likely to be accessed soon. If the target
  30295. supports them, data prefetch instructions are generated. If the
  30296. prefetch is done early enough before the access then the data will
  30297. be in the cache by the time it is accessed.
  30298. The value of ADDR is the address of the memory to prefetch. There
  30299. are two optional arguments, RW and LOCALITY. The value of RW is a
  30300. compile-time constant one or zero; one means that the prefetch is
  30301. preparing for a write to the memory address and zero, the default,
  30302. means that the prefetch is preparing for a read. The value
  30303. LOCALITY must be a compile-time constant integer between zero and
  30304. three. A value of zero means that the data has no temporal
  30305. locality, so it need not be left in the cache after the access. A
  30306. value of three means that the data has a high degree of temporal
  30307. locality and should be left in all levels of cache possible.
  30308. Values of one and two mean, respectively, a low or moderate degree
  30309. of temporal locality. The default is three.
  30310. for (i = 0; i < n; i++)
  30311. {
  30312. a[i] = a[i] + b[i];
  30313. __builtin_prefetch (&a[i+j], 1, 1);
  30314. __builtin_prefetch (&b[i+j], 0, 1);
  30315. /* ... */
  30316. }
  30317. Data prefetch does not generate faults if ADDR is invalid, but the
  30318. address expression itself must be valid. For example, a prefetch
  30319. of 'p->next' does not fault if 'p->next' is not a valid address,
  30320. but evaluation faults if 'p' is not a valid address.
  30321. If the target does not support data prefetch, the address
  30322. expression is evaluated if it includes side effects but no other
  30323. code is generated and GCC does not issue a warning.
  30324. -- Built-in Function: double __builtin_huge_val (void)
  30325. Returns a positive infinity, if supported by the floating-point
  30326. format, else 'DBL_MAX'. This function is suitable for implementing
  30327. the ISO C macro 'HUGE_VAL'.
  30328. -- Built-in Function: float __builtin_huge_valf (void)
  30329. Similar to '__builtin_huge_val', except the return type is 'float'.
  30330. -- Built-in Function: long double __builtin_huge_vall (void)
  30331. Similar to '__builtin_huge_val', except the return type is 'long
  30332. double'.
  30333. -- Built-in Function: _Float N __builtin_huge_valfN (void)
  30334. Similar to '__builtin_huge_val', except the return type is
  30335. '_FloatN'.
  30336. -- Built-in Function: _Float N x __builtin_huge_valfNx (void)
  30337. Similar to '__builtin_huge_val', except the return type is
  30338. '_FloatNx'.
  30339. -- Built-in Function: int __builtin_fpclassify (int, int, int, int,
  30340. int, ...)
  30341. This built-in implements the C99 fpclassify functionality. The
  30342. first five int arguments should be the target library's notion of
  30343. the possible FP classes and are used for return values. They must
  30344. be constant values and they must appear in this order: 'FP_NAN',
  30345. 'FP_INFINITE', 'FP_NORMAL', 'FP_SUBNORMAL' and 'FP_ZERO'. The
  30346. ellipsis is for exactly one floating-point value to classify. GCC
  30347. treats the last argument as type-generic, which means it does not
  30348. do default promotion from float to double.
  30349. -- Built-in Function: double __builtin_inf (void)
  30350. Similar to '__builtin_huge_val', except a warning is generated if
  30351. the target floating-point format does not support infinities.
  30352. -- Built-in Function: _Decimal32 __builtin_infd32 (void)
  30353. Similar to '__builtin_inf', except the return type is '_Decimal32'.
  30354. -- Built-in Function: _Decimal64 __builtin_infd64 (void)
  30355. Similar to '__builtin_inf', except the return type is '_Decimal64'.
  30356. -- Built-in Function: _Decimal128 __builtin_infd128 (void)
  30357. Similar to '__builtin_inf', except the return type is
  30358. '_Decimal128'.
  30359. -- Built-in Function: float __builtin_inff (void)
  30360. Similar to '__builtin_inf', except the return type is 'float'.
  30361. This function is suitable for implementing the ISO C99 macro
  30362. 'INFINITY'.
  30363. -- Built-in Function: long double __builtin_infl (void)
  30364. Similar to '__builtin_inf', except the return type is 'long
  30365. double'.
  30366. -- Built-in Function: _Float N __builtin_inffN (void)
  30367. Similar to '__builtin_inf', except the return type is '_FloatN'.
  30368. -- Built-in Function: _Float N __builtin_inffNx (void)
  30369. Similar to '__builtin_inf', except the return type is '_FloatNx'.
  30370. -- Built-in Function: int __builtin_isinf_sign (...)
  30371. Similar to 'isinf', except the return value is -1 for an argument
  30372. of '-Inf' and 1 for an argument of '+Inf'. Note while the
  30373. parameter list is an ellipsis, this function only accepts exactly
  30374. one floating-point argument. GCC treats this parameter as
  30375. type-generic, which means it does not do default promotion from
  30376. float to double.
  30377. -- Built-in Function: double __builtin_nan (const char *str)
  30378. This is an implementation of the ISO C99 function 'nan'.
  30379. Since ISO C99 defines this function in terms of 'strtod', which we
  30380. do not implement, a description of the parsing is in order. The
  30381. string is parsed as by 'strtol'; that is, the base is recognized by
  30382. leading '0' or '0x' prefixes. The number parsed is placed in the
  30383. significand such that the least significant bit of the number is at
  30384. the least significant bit of the significand. The number is
  30385. truncated to fit the significand field provided. The significand
  30386. is forced to be a quiet NaN.
  30387. This function, if given a string literal all of which would have
  30388. been consumed by 'strtol', is evaluated early enough that it is
  30389. considered a compile-time constant.
  30390. -- Built-in Function: _Decimal32 __builtin_nand32 (const char *str)
  30391. Similar to '__builtin_nan', except the return type is '_Decimal32'.
  30392. -- Built-in Function: _Decimal64 __builtin_nand64 (const char *str)
  30393. Similar to '__builtin_nan', except the return type is '_Decimal64'.
  30394. -- Built-in Function: _Decimal128 __builtin_nand128 (const char *str)
  30395. Similar to '__builtin_nan', except the return type is
  30396. '_Decimal128'.
  30397. -- Built-in Function: float __builtin_nanf (const char *str)
  30398. Similar to '__builtin_nan', except the return type is 'float'.
  30399. -- Built-in Function: long double __builtin_nanl (const char *str)
  30400. Similar to '__builtin_nan', except the return type is 'long
  30401. double'.
  30402. -- Built-in Function: _Float N __builtin_nanfN (const char *str)
  30403. Similar to '__builtin_nan', except the return type is '_FloatN'.
  30404. -- Built-in Function: _Float N x __builtin_nanfNx (const char *str)
  30405. Similar to '__builtin_nan', except the return type is '_FloatNx'.
  30406. -- Built-in Function: double __builtin_nans (const char *str)
  30407. Similar to '__builtin_nan', except the significand is forced to be
  30408. a signaling NaN. The 'nans' function is proposed by WG14 N965.
  30409. -- Built-in Function: float __builtin_nansf (const char *str)
  30410. Similar to '__builtin_nans', except the return type is 'float'.
  30411. -- Built-in Function: long double __builtin_nansl (const char *str)
  30412. Similar to '__builtin_nans', except the return type is 'long
  30413. double'.
  30414. -- Built-in Function: _Float N __builtin_nansfN (const char *str)
  30415. Similar to '__builtin_nans', except the return type is '_FloatN'.
  30416. -- Built-in Function: _Float N x __builtin_nansfNx (const char *str)
  30417. Similar to '__builtin_nans', except the return type is '_FloatNx'.
  30418. -- Built-in Function: int __builtin_ffs (int x)
  30419. Returns one plus the index of the least significant 1-bit of X, or
  30420. if X is zero, returns zero.
  30421. -- Built-in Function: int __builtin_clz (unsigned int x)
  30422. Returns the number of leading 0-bits in X, starting at the most
  30423. significant bit position. If X is 0, the result is undefined.
  30424. -- Built-in Function: int __builtin_ctz (unsigned int x)
  30425. Returns the number of trailing 0-bits in X, starting at the least
  30426. significant bit position. If X is 0, the result is undefined.
  30427. -- Built-in Function: int __builtin_clrsb (int x)
  30428. Returns the number of leading redundant sign bits in X, i.e. the
  30429. number of bits following the most significant bit that are
  30430. identical to it. There are no special cases for 0 or other values.
  30431. -- Built-in Function: int __builtin_popcount (unsigned int x)
  30432. Returns the number of 1-bits in X.
  30433. -- Built-in Function: int __builtin_parity (unsigned int x)
  30434. Returns the parity of X, i.e. the number of 1-bits in X modulo 2.
  30435. -- Built-in Function: int __builtin_ffsl (long)
  30436. Similar to '__builtin_ffs', except the argument type is 'long'.
  30437. -- Built-in Function: int __builtin_clzl (unsigned long)
  30438. Similar to '__builtin_clz', except the argument type is 'unsigned
  30439. long'.
  30440. -- Built-in Function: int __builtin_ctzl (unsigned long)
  30441. Similar to '__builtin_ctz', except the argument type is 'unsigned
  30442. long'.
  30443. -- Built-in Function: int __builtin_clrsbl (long)
  30444. Similar to '__builtin_clrsb', except the argument type is 'long'.
  30445. -- Built-in Function: int __builtin_popcountl (unsigned long)
  30446. Similar to '__builtin_popcount', except the argument type is
  30447. 'unsigned long'.
  30448. -- Built-in Function: int __builtin_parityl (unsigned long)
  30449. Similar to '__builtin_parity', except the argument type is
  30450. 'unsigned long'.
  30451. -- Built-in Function: int __builtin_ffsll (long long)
  30452. Similar to '__builtin_ffs', except the argument type is 'long
  30453. long'.
  30454. -- Built-in Function: int __builtin_clzll (unsigned long long)
  30455. Similar to '__builtin_clz', except the argument type is 'unsigned
  30456. long long'.
  30457. -- Built-in Function: int __builtin_ctzll (unsigned long long)
  30458. Similar to '__builtin_ctz', except the argument type is 'unsigned
  30459. long long'.
  30460. -- Built-in Function: int __builtin_clrsbll (long long)
  30461. Similar to '__builtin_clrsb', except the argument type is 'long
  30462. long'.
  30463. -- Built-in Function: int __builtin_popcountll (unsigned long long)
  30464. Similar to '__builtin_popcount', except the argument type is
  30465. 'unsigned long long'.
  30466. -- Built-in Function: int __builtin_parityll (unsigned long long)
  30467. Similar to '__builtin_parity', except the argument type is
  30468. 'unsigned long long'.
  30469. -- Built-in Function: double __builtin_powi (double, int)
  30470. Returns the first argument raised to the power of the second.
  30471. Unlike the 'pow' function no guarantees about precision and
  30472. rounding are made.
  30473. -- Built-in Function: float __builtin_powif (float, int)
  30474. Similar to '__builtin_powi', except the argument and return types
  30475. are 'float'.
  30476. -- Built-in Function: long double __builtin_powil (long double, int)
  30477. Similar to '__builtin_powi', except the argument and return types
  30478. are 'long double'.
  30479. -- Built-in Function: uint16_t __builtin_bswap16 (uint16_t x)
  30480. Returns X with the order of the bytes reversed; for example,
  30481. '0xaabb' becomes '0xbbaa'. Byte here always means exactly 8 bits.
  30482. -- Built-in Function: uint32_t __builtin_bswap32 (uint32_t x)
  30483. Similar to '__builtin_bswap16', except the argument and return
  30484. types are 32 bit.
  30485. -- Built-in Function: uint64_t __builtin_bswap64 (uint64_t x)
  30486. Similar to '__builtin_bswap32', except the argument and return
  30487. types are 64 bit.
  30488. 
  30489. File: gcc.info, Node: Target Builtins, Next: Target Format Checks, Prev: Other Builtins, Up: C Extensions
  30490. 6.60 Built-in Functions Specific to Particular Target Machines
  30491. ==============================================================
  30492. On some target machines, GCC supports many built-in functions specific
  30493. to those machines. Generally these generate calls to specific machine
  30494. instructions, but allow the compiler to schedule those calls.
  30495. * Menu:
  30496. * AArch64 Built-in Functions::
  30497. * Alpha Built-in Functions::
  30498. * Altera Nios II Built-in Functions::
  30499. * ARC Built-in Functions::
  30500. * ARC SIMD Built-in Functions::
  30501. * ARM iWMMXt Built-in Functions::
  30502. * ARM C Language Extensions (ACLE)::
  30503. * ARM Floating Point Status and Control Intrinsics::
  30504. * ARM ARMv8-M Security Extensions::
  30505. * AVR Built-in Functions::
  30506. * Blackfin Built-in Functions::
  30507. * FR-V Built-in Functions::
  30508. * MIPS DSP Built-in Functions::
  30509. * MIPS Paired-Single Support::
  30510. * MIPS Loongson Built-in Functions::
  30511. * MIPS SIMD Architecture (MSA) Support::
  30512. * Other MIPS Built-in Functions::
  30513. * MSP430 Built-in Functions::
  30514. * NDS32 Built-in Functions::
  30515. * picoChip Built-in Functions::
  30516. * PowerPC Built-in Functions::
  30517. * PowerPC AltiVec/VSX Built-in Functions::
  30518. * PowerPC Hardware Transactional Memory Built-in Functions::
  30519. * RX Built-in Functions::
  30520. * S/390 System z Built-in Functions::
  30521. * SH Built-in Functions::
  30522. * SPARC VIS Built-in Functions::
  30523. * SPU Built-in Functions::
  30524. * TI C6X Built-in Functions::
  30525. * TILE-Gx Built-in Functions::
  30526. * TILEPro Built-in Functions::
  30527. * x86 Built-in Functions::
  30528. * x86 transactional memory intrinsics::
  30529. 
  30530. File: gcc.info, Node: AArch64 Built-in Functions, Next: Alpha Built-in Functions, Up: Target Builtins
  30531. 6.60.1 AArch64 Built-in Functions
  30532. ---------------------------------
  30533. These built-in functions are available for the AArch64 family of
  30534. processors.
  30535. unsigned int __builtin_aarch64_get_fpcr ()
  30536. void __builtin_aarch64_set_fpcr (unsigned int)
  30537. unsigned int __builtin_aarch64_get_fpsr ()
  30538. void __builtin_aarch64_set_fpsr (unsigned int)
  30539. 
  30540. File: gcc.info, Node: Alpha Built-in Functions, Next: Altera Nios II Built-in Functions, Prev: AArch64 Built-in Functions, Up: Target Builtins
  30541. 6.60.2 Alpha Built-in Functions
  30542. -------------------------------
  30543. These built-in functions are available for the Alpha family of
  30544. processors, depending on the command-line switches used.
  30545. The following built-in functions are always available. They all
  30546. generate the machine instruction that is part of the name.
  30547. long __builtin_alpha_implver (void)
  30548. long __builtin_alpha_rpcc (void)
  30549. long __builtin_alpha_amask (long)
  30550. long __builtin_alpha_cmpbge (long, long)
  30551. long __builtin_alpha_extbl (long, long)
  30552. long __builtin_alpha_extwl (long, long)
  30553. long __builtin_alpha_extll (long, long)
  30554. long __builtin_alpha_extql (long, long)
  30555. long __builtin_alpha_extwh (long, long)
  30556. long __builtin_alpha_extlh (long, long)
  30557. long __builtin_alpha_extqh (long, long)
  30558. long __builtin_alpha_insbl (long, long)
  30559. long __builtin_alpha_inswl (long, long)
  30560. long __builtin_alpha_insll (long, long)
  30561. long __builtin_alpha_insql (long, long)
  30562. long __builtin_alpha_inswh (long, long)
  30563. long __builtin_alpha_inslh (long, long)
  30564. long __builtin_alpha_insqh (long, long)
  30565. long __builtin_alpha_mskbl (long, long)
  30566. long __builtin_alpha_mskwl (long, long)
  30567. long __builtin_alpha_mskll (long, long)
  30568. long __builtin_alpha_mskql (long, long)
  30569. long __builtin_alpha_mskwh (long, long)
  30570. long __builtin_alpha_msklh (long, long)
  30571. long __builtin_alpha_mskqh (long, long)
  30572. long __builtin_alpha_umulh (long, long)
  30573. long __builtin_alpha_zap (long, long)
  30574. long __builtin_alpha_zapnot (long, long)
  30575. The following built-in functions are always with '-mmax' or '-mcpu=CPU'
  30576. where CPU is 'pca56' or later. They all generate the machine
  30577. instruction that is part of the name.
  30578. long __builtin_alpha_pklb (long)
  30579. long __builtin_alpha_pkwb (long)
  30580. long __builtin_alpha_unpkbl (long)
  30581. long __builtin_alpha_unpkbw (long)
  30582. long __builtin_alpha_minub8 (long, long)
  30583. long __builtin_alpha_minsb8 (long, long)
  30584. long __builtin_alpha_minuw4 (long, long)
  30585. long __builtin_alpha_minsw4 (long, long)
  30586. long __builtin_alpha_maxub8 (long, long)
  30587. long __builtin_alpha_maxsb8 (long, long)
  30588. long __builtin_alpha_maxuw4 (long, long)
  30589. long __builtin_alpha_maxsw4 (long, long)
  30590. long __builtin_alpha_perr (long, long)
  30591. The following built-in functions are always with '-mcix' or '-mcpu=CPU'
  30592. where CPU is 'ev67' or later. They all generate the machine instruction
  30593. that is part of the name.
  30594. long __builtin_alpha_cttz (long)
  30595. long __builtin_alpha_ctlz (long)
  30596. long __builtin_alpha_ctpop (long)
  30597. The following built-in functions are available on systems that use the
  30598. OSF/1 PALcode. Normally they invoke the 'rduniq' and 'wruniq' PAL
  30599. calls, but when invoked with '-mtls-kernel', they invoke 'rdval' and
  30600. 'wrval'.
  30601. void *__builtin_thread_pointer (void)
  30602. void __builtin_set_thread_pointer (void *)
  30603. 
  30604. File: gcc.info, Node: Altera Nios II Built-in Functions, Next: ARC Built-in Functions, Prev: Alpha Built-in Functions, Up: Target Builtins
  30605. 6.60.3 Altera Nios II Built-in Functions
  30606. ----------------------------------------
  30607. These built-in functions are available for the Altera Nios II family of
  30608. processors.
  30609. The following built-in functions are always available. They all
  30610. generate the machine instruction that is part of the name.
  30611. int __builtin_ldbio (volatile const void *)
  30612. int __builtin_ldbuio (volatile const void *)
  30613. int __builtin_ldhio (volatile const void *)
  30614. int __builtin_ldhuio (volatile const void *)
  30615. int __builtin_ldwio (volatile const void *)
  30616. void __builtin_stbio (volatile void *, int)
  30617. void __builtin_sthio (volatile void *, int)
  30618. void __builtin_stwio (volatile void *, int)
  30619. void __builtin_sync (void)
  30620. int __builtin_rdctl (int)
  30621. int __builtin_rdprs (int, int)
  30622. void __builtin_wrctl (int, int)
  30623. void __builtin_flushd (volatile void *)
  30624. void __builtin_flushda (volatile void *)
  30625. int __builtin_wrpie (int);
  30626. void __builtin_eni (int);
  30627. int __builtin_ldex (volatile const void *)
  30628. int __builtin_stex (volatile void *, int)
  30629. int __builtin_ldsex (volatile const void *)
  30630. int __builtin_stsex (volatile void *, int)
  30631. The following built-in functions are always available. They all
  30632. generate a Nios II Custom Instruction. The name of the function
  30633. represents the types that the function takes and returns. The letter
  30634. before the 'n' is the return type or void if absent. The 'n' represents
  30635. the first parameter to all the custom instructions, the custom
  30636. instruction number. The two letters after the 'n' represent the up to
  30637. two parameters to the function.
  30638. The letters represent the following data types:
  30639. '<no letter>'
  30640. 'void' for return type and no parameter for parameter types.
  30641. 'i'
  30642. 'int' for return type and parameter type
  30643. 'f'
  30644. 'float' for return type and parameter type
  30645. 'p'
  30646. 'void *' for return type and parameter type
  30647. And the function names are:
  30648. void __builtin_custom_n (void)
  30649. void __builtin_custom_ni (int)
  30650. void __builtin_custom_nf (float)
  30651. void __builtin_custom_np (void *)
  30652. void __builtin_custom_nii (int, int)
  30653. void __builtin_custom_nif (int, float)
  30654. void __builtin_custom_nip (int, void *)
  30655. void __builtin_custom_nfi (float, int)
  30656. void __builtin_custom_nff (float, float)
  30657. void __builtin_custom_nfp (float, void *)
  30658. void __builtin_custom_npi (void *, int)
  30659. void __builtin_custom_npf (void *, float)
  30660. void __builtin_custom_npp (void *, void *)
  30661. int __builtin_custom_in (void)
  30662. int __builtin_custom_ini (int)
  30663. int __builtin_custom_inf (float)
  30664. int __builtin_custom_inp (void *)
  30665. int __builtin_custom_inii (int, int)
  30666. int __builtin_custom_inif (int, float)
  30667. int __builtin_custom_inip (int, void *)
  30668. int __builtin_custom_infi (float, int)
  30669. int __builtin_custom_inff (float, float)
  30670. int __builtin_custom_infp (float, void *)
  30671. int __builtin_custom_inpi (void *, int)
  30672. int __builtin_custom_inpf (void *, float)
  30673. int __builtin_custom_inpp (void *, void *)
  30674. float __builtin_custom_fn (void)
  30675. float __builtin_custom_fni (int)
  30676. float __builtin_custom_fnf (float)
  30677. float __builtin_custom_fnp (void *)
  30678. float __builtin_custom_fnii (int, int)
  30679. float __builtin_custom_fnif (int, float)
  30680. float __builtin_custom_fnip (int, void *)
  30681. float __builtin_custom_fnfi (float, int)
  30682. float __builtin_custom_fnff (float, float)
  30683. float __builtin_custom_fnfp (float, void *)
  30684. float __builtin_custom_fnpi (void *, int)
  30685. float __builtin_custom_fnpf (void *, float)
  30686. float __builtin_custom_fnpp (void *, void *)
  30687. void * __builtin_custom_pn (void)
  30688. void * __builtin_custom_pni (int)
  30689. void * __builtin_custom_pnf (float)
  30690. void * __builtin_custom_pnp (void *)
  30691. void * __builtin_custom_pnii (int, int)
  30692. void * __builtin_custom_pnif (int, float)
  30693. void * __builtin_custom_pnip (int, void *)
  30694. void * __builtin_custom_pnfi (float, int)
  30695. void * __builtin_custom_pnff (float, float)
  30696. void * __builtin_custom_pnfp (float, void *)
  30697. void * __builtin_custom_pnpi (void *, int)
  30698. void * __builtin_custom_pnpf (void *, float)
  30699. void * __builtin_custom_pnpp (void *, void *)
  30700. 
  30701. File: gcc.info, Node: ARC Built-in Functions, Next: ARC SIMD Built-in Functions, Prev: Altera Nios II Built-in Functions, Up: Target Builtins
  30702. 6.60.4 ARC Built-in Functions
  30703. -----------------------------
  30704. The following built-in functions are provided for ARC targets. The
  30705. built-ins generate the corresponding assembly instructions. In the
  30706. examples given below, the generated code often requires an operand or
  30707. result to be in a register. Where necessary further code will be
  30708. generated to ensure this is true, but for brevity this is not described
  30709. in each case.
  30710. _Note:_ Using a built-in to generate an instruction not supported by a
  30711. target may cause problems. At present the compiler is not guaranteed to
  30712. detect such misuse, and as a result an internal compiler error may be
  30713. generated.
  30714. -- Built-in Function: int __builtin_arc_aligned (void *VAL, int
  30715. ALIGNVAL)
  30716. Return 1 if VAL is known to have the byte alignment given by
  30717. ALIGNVAL, otherwise return 0. Note that this is different from
  30718. __alignof__(*(char *)VAL) >= alignval
  30719. because __alignof__ sees only the type of the dereference, whereas
  30720. __builtin_arc_align uses alignment information from the pointer as
  30721. well as from the pointed-to type. The information available will
  30722. depend on optimization level.
  30723. -- Built-in Function: void __builtin_arc_brk (void)
  30724. Generates
  30725. brk
  30726. -- Built-in Function: unsigned int __builtin_arc_core_read (unsigned
  30727. int REGNO)
  30728. The operand is the number of a register to be read. Generates:
  30729. mov DEST, rREGNO
  30730. where the value in DEST will be the result returned from the
  30731. built-in.
  30732. -- Built-in Function: void __builtin_arc_core_write (unsigned int
  30733. REGNO, unsigned int VAL)
  30734. The first operand is the number of a register to be written, the
  30735. second operand is a compile time constant to write into that
  30736. register. Generates:
  30737. mov rREGNO, VAL
  30738. -- Built-in Function: int __builtin_arc_divaw (int A, int B)
  30739. Only available if either '-mcpu=ARC700' or '-meA' is set.
  30740. Generates:
  30741. divaw DEST, A, B
  30742. where the value in DEST will be the result returned from the
  30743. built-in.
  30744. -- Built-in Function: void __builtin_arc_flag (unsigned int A)
  30745. Generates
  30746. flag A
  30747. -- Built-in Function: unsigned int __builtin_arc_lr (unsigned int AUXR)
  30748. The operand, AUXV, is the address of an auxiliary register and must
  30749. be a compile time constant. Generates:
  30750. lr DEST, [AUXR]
  30751. Where the value in DEST will be the result returned from the
  30752. built-in.
  30753. -- Built-in Function: void __builtin_arc_mul64 (int A, int B)
  30754. Only available with '-mmul64'. Generates:
  30755. mul64 A, B
  30756. -- Built-in Function: void __builtin_arc_mulu64 (unsigned int A,
  30757. unsigned int B)
  30758. Only available with '-mmul64'. Generates:
  30759. mulu64 A, B
  30760. -- Built-in Function: void __builtin_arc_nop (void)
  30761. Generates:
  30762. nop
  30763. -- Built-in Function: int __builtin_arc_norm (int SRC)
  30764. Only valid if the 'norm' instruction is available through the
  30765. '-mnorm' option or by default with '-mcpu=ARC700'. Generates:
  30766. norm DEST, SRC
  30767. Where the value in DEST will be the result returned from the
  30768. built-in.
  30769. -- Built-in Function: short int __builtin_arc_normw (short int SRC)
  30770. Only valid if the 'normw' instruction is available through the
  30771. '-mnorm' option or by default with '-mcpu=ARC700'. Generates:
  30772. normw DEST, SRC
  30773. Where the value in DEST will be the result returned from the
  30774. built-in.
  30775. -- Built-in Function: void __builtin_arc_rtie (void)
  30776. Generates:
  30777. rtie
  30778. -- Built-in Function: void __builtin_arc_sleep (int A
  30779. Generates:
  30780. sleep A
  30781. -- Built-in Function: void __builtin_arc_sr (unsigned int AUXR,
  30782. unsigned int VAL)
  30783. The first argument, AUXV, is the address of an auxiliary register,
  30784. the second argument, VAL, is a compile time constant to be written
  30785. to the register. Generates:
  30786. sr AUXR, [VAL]
  30787. -- Built-in Function: int __builtin_arc_swap (int SRC)
  30788. Only valid with '-mswap'. Generates:
  30789. swap DEST, SRC
  30790. Where the value in DEST will be the result returned from the
  30791. built-in.
  30792. -- Built-in Function: void __builtin_arc_swi (void)
  30793. Generates:
  30794. swi
  30795. -- Built-in Function: void __builtin_arc_sync (void)
  30796. Only available with '-mcpu=ARC700'. Generates:
  30797. sync
  30798. -- Built-in Function: void __builtin_arc_trap_s (unsigned int C)
  30799. Only available with '-mcpu=ARC700'. Generates:
  30800. trap_s C
  30801. -- Built-in Function: void __builtin_arc_unimp_s (void)
  30802. Only available with '-mcpu=ARC700'. Generates:
  30803. unimp_s
  30804. The instructions generated by the following builtins are not considered
  30805. as candidates for scheduling. They are not moved around by the compiler
  30806. during scheduling, and thus can be expected to appear where they are put
  30807. in the C code:
  30808. __builtin_arc_brk()
  30809. __builtin_arc_core_read()
  30810. __builtin_arc_core_write()
  30811. __builtin_arc_flag()
  30812. __builtin_arc_lr()
  30813. __builtin_arc_sleep()
  30814. __builtin_arc_sr()
  30815. __builtin_arc_swi()
  30816. 
  30817. File: gcc.info, Node: ARC SIMD Built-in Functions, Next: ARM iWMMXt Built-in Functions, Prev: ARC Built-in Functions, Up: Target Builtins
  30818. 6.60.5 ARC SIMD Built-in Functions
  30819. ----------------------------------
  30820. SIMD builtins provided by the compiler can be used to generate the
  30821. vector instructions. This section describes the available builtins and
  30822. their usage in programs. With the '-msimd' option, the compiler
  30823. provides 128-bit vector types, which can be specified using the
  30824. 'vector_size' attribute. The header file 'arc-simd.h' can be included
  30825. to use the following predefined types:
  30826. typedef int __v4si __attribute__((vector_size(16)));
  30827. typedef short __v8hi __attribute__((vector_size(16)));
  30828. These types can be used to define 128-bit variables. The built-in
  30829. functions listed in the following section can be used on these variables
  30830. to generate the vector operations.
  30831. For all builtins, '__builtin_arc_SOMEINSN', the header file
  30832. 'arc-simd.h' also provides equivalent macros called '_SOMEINSN' that can
  30833. be used for programming ease and improved readability. The following
  30834. macros for DMA control are also provided:
  30835. #define _setup_dma_in_channel_reg _vdiwr
  30836. #define _setup_dma_out_channel_reg _vdowr
  30837. The following is a complete list of all the SIMD built-ins provided for
  30838. ARC, grouped by calling signature.
  30839. The following take two '__v8hi' arguments and return a '__v8hi' result:
  30840. __v8hi __builtin_arc_vaddaw (__v8hi, __v8hi)
  30841. __v8hi __builtin_arc_vaddw (__v8hi, __v8hi)
  30842. __v8hi __builtin_arc_vand (__v8hi, __v8hi)
  30843. __v8hi __builtin_arc_vandaw (__v8hi, __v8hi)
  30844. __v8hi __builtin_arc_vavb (__v8hi, __v8hi)
  30845. __v8hi __builtin_arc_vavrb (__v8hi, __v8hi)
  30846. __v8hi __builtin_arc_vbic (__v8hi, __v8hi)
  30847. __v8hi __builtin_arc_vbicaw (__v8hi, __v8hi)
  30848. __v8hi __builtin_arc_vdifaw (__v8hi, __v8hi)
  30849. __v8hi __builtin_arc_vdifw (__v8hi, __v8hi)
  30850. __v8hi __builtin_arc_veqw (__v8hi, __v8hi)
  30851. __v8hi __builtin_arc_vh264f (__v8hi, __v8hi)
  30852. __v8hi __builtin_arc_vh264ft (__v8hi, __v8hi)
  30853. __v8hi __builtin_arc_vh264fw (__v8hi, __v8hi)
  30854. __v8hi __builtin_arc_vlew (__v8hi, __v8hi)
  30855. __v8hi __builtin_arc_vltw (__v8hi, __v8hi)
  30856. __v8hi __builtin_arc_vmaxaw (__v8hi, __v8hi)
  30857. __v8hi __builtin_arc_vmaxw (__v8hi, __v8hi)
  30858. __v8hi __builtin_arc_vminaw (__v8hi, __v8hi)
  30859. __v8hi __builtin_arc_vminw (__v8hi, __v8hi)
  30860. __v8hi __builtin_arc_vmr1aw (__v8hi, __v8hi)
  30861. __v8hi __builtin_arc_vmr1w (__v8hi, __v8hi)
  30862. __v8hi __builtin_arc_vmr2aw (__v8hi, __v8hi)
  30863. __v8hi __builtin_arc_vmr2w (__v8hi, __v8hi)
  30864. __v8hi __builtin_arc_vmr3aw (__v8hi, __v8hi)
  30865. __v8hi __builtin_arc_vmr3w (__v8hi, __v8hi)
  30866. __v8hi __builtin_arc_vmr4aw (__v8hi, __v8hi)
  30867. __v8hi __builtin_arc_vmr4w (__v8hi, __v8hi)
  30868. __v8hi __builtin_arc_vmr5aw (__v8hi, __v8hi)
  30869. __v8hi __builtin_arc_vmr5w (__v8hi, __v8hi)
  30870. __v8hi __builtin_arc_vmr6aw (__v8hi, __v8hi)
  30871. __v8hi __builtin_arc_vmr6w (__v8hi, __v8hi)
  30872. __v8hi __builtin_arc_vmr7aw (__v8hi, __v8hi)
  30873. __v8hi __builtin_arc_vmr7w (__v8hi, __v8hi)
  30874. __v8hi __builtin_arc_vmrb (__v8hi, __v8hi)
  30875. __v8hi __builtin_arc_vmulaw (__v8hi, __v8hi)
  30876. __v8hi __builtin_arc_vmulfaw (__v8hi, __v8hi)
  30877. __v8hi __builtin_arc_vmulfw (__v8hi, __v8hi)
  30878. __v8hi __builtin_arc_vmulw (__v8hi, __v8hi)
  30879. __v8hi __builtin_arc_vnew (__v8hi, __v8hi)
  30880. __v8hi __builtin_arc_vor (__v8hi, __v8hi)
  30881. __v8hi __builtin_arc_vsubaw (__v8hi, __v8hi)
  30882. __v8hi __builtin_arc_vsubw (__v8hi, __v8hi)
  30883. __v8hi __builtin_arc_vsummw (__v8hi, __v8hi)
  30884. __v8hi __builtin_arc_vvc1f (__v8hi, __v8hi)
  30885. __v8hi __builtin_arc_vvc1ft (__v8hi, __v8hi)
  30886. __v8hi __builtin_arc_vxor (__v8hi, __v8hi)
  30887. __v8hi __builtin_arc_vxoraw (__v8hi, __v8hi)
  30888. The following take one '__v8hi' and one 'int' argument and return a
  30889. '__v8hi' result:
  30890. __v8hi __builtin_arc_vbaddw (__v8hi, int)
  30891. __v8hi __builtin_arc_vbmaxw (__v8hi, int)
  30892. __v8hi __builtin_arc_vbminw (__v8hi, int)
  30893. __v8hi __builtin_arc_vbmulaw (__v8hi, int)
  30894. __v8hi __builtin_arc_vbmulfw (__v8hi, int)
  30895. __v8hi __builtin_arc_vbmulw (__v8hi, int)
  30896. __v8hi __builtin_arc_vbrsubw (__v8hi, int)
  30897. __v8hi __builtin_arc_vbsubw (__v8hi, int)
  30898. The following take one '__v8hi' argument and one 'int' argument which
  30899. must be a 3-bit compile time constant indicating a register number
  30900. I0-I7. They return a '__v8hi' result.
  30901. __v8hi __builtin_arc_vasrw (__v8hi, const int)
  30902. __v8hi __builtin_arc_vsr8 (__v8hi, const int)
  30903. __v8hi __builtin_arc_vsr8aw (__v8hi, const int)
  30904. The following take one '__v8hi' argument and one 'int' argument which
  30905. must be a 6-bit compile time constant. They return a '__v8hi' result.
  30906. __v8hi __builtin_arc_vasrpwbi (__v8hi, const int)
  30907. __v8hi __builtin_arc_vasrrpwbi (__v8hi, const int)
  30908. __v8hi __builtin_arc_vasrrwi (__v8hi, const int)
  30909. __v8hi __builtin_arc_vasrsrwi (__v8hi, const int)
  30910. __v8hi __builtin_arc_vasrwi (__v8hi, const int)
  30911. __v8hi __builtin_arc_vsr8awi (__v8hi, const int)
  30912. __v8hi __builtin_arc_vsr8i (__v8hi, const int)
  30913. The following take one '__v8hi' argument and one 'int' argument which
  30914. must be a 8-bit compile time constant. They return a '__v8hi' result.
  30915. __v8hi __builtin_arc_vd6tapf (__v8hi, const int)
  30916. __v8hi __builtin_arc_vmvaw (__v8hi, const int)
  30917. __v8hi __builtin_arc_vmvw (__v8hi, const int)
  30918. __v8hi __builtin_arc_vmvzw (__v8hi, const int)
  30919. The following take two 'int' arguments, the second of which which must
  30920. be a 8-bit compile time constant. They return a '__v8hi' result:
  30921. __v8hi __builtin_arc_vmovaw (int, const int)
  30922. __v8hi __builtin_arc_vmovw (int, const int)
  30923. __v8hi __builtin_arc_vmovzw (int, const int)
  30924. The following take a single '__v8hi' argument and return a '__v8hi'
  30925. result:
  30926. __v8hi __builtin_arc_vabsaw (__v8hi)
  30927. __v8hi __builtin_arc_vabsw (__v8hi)
  30928. __v8hi __builtin_arc_vaddsuw (__v8hi)
  30929. __v8hi __builtin_arc_vexch1 (__v8hi)
  30930. __v8hi __builtin_arc_vexch2 (__v8hi)
  30931. __v8hi __builtin_arc_vexch4 (__v8hi)
  30932. __v8hi __builtin_arc_vsignw (__v8hi)
  30933. __v8hi __builtin_arc_vupbaw (__v8hi)
  30934. __v8hi __builtin_arc_vupbw (__v8hi)
  30935. __v8hi __builtin_arc_vupsbaw (__v8hi)
  30936. __v8hi __builtin_arc_vupsbw (__v8hi)
  30937. The following take two 'int' arguments and return no result:
  30938. void __builtin_arc_vdirun (int, int)
  30939. void __builtin_arc_vdorun (int, int)
  30940. The following take two 'int' arguments and return no result. The first
  30941. argument must a 3-bit compile time constant indicating one of the
  30942. DR0-DR7 DMA setup channels:
  30943. void __builtin_arc_vdiwr (const int, int)
  30944. void __builtin_arc_vdowr (const int, int)
  30945. The following take an 'int' argument and return no result:
  30946. void __builtin_arc_vendrec (int)
  30947. void __builtin_arc_vrec (int)
  30948. void __builtin_arc_vrecrun (int)
  30949. void __builtin_arc_vrun (int)
  30950. The following take a '__v8hi' argument and two 'int' arguments and
  30951. return a '__v8hi' result. The second argument must be a 3-bit compile
  30952. time constants, indicating one the registers I0-I7, and the third
  30953. argument must be an 8-bit compile time constant.
  30954. _Note:_ Although the equivalent hardware instructions do not take an
  30955. SIMD register as an operand, these builtins overwrite the relevant bits
  30956. of the '__v8hi' register provided as the first argument with the value
  30957. loaded from the '[Ib, u8]' location in the SDM.
  30958. __v8hi __builtin_arc_vld32 (__v8hi, const int, const int)
  30959. __v8hi __builtin_arc_vld32wh (__v8hi, const int, const int)
  30960. __v8hi __builtin_arc_vld32wl (__v8hi, const int, const int)
  30961. __v8hi __builtin_arc_vld64 (__v8hi, const int, const int)
  30962. The following take two 'int' arguments and return a '__v8hi' result.
  30963. The first argument must be a 3-bit compile time constants, indicating
  30964. one the registers I0-I7, and the second argument must be an 8-bit
  30965. compile time constant.
  30966. __v8hi __builtin_arc_vld128 (const int, const int)
  30967. __v8hi __builtin_arc_vld64w (const int, const int)
  30968. The following take a '__v8hi' argument and two 'int' arguments and
  30969. return no result. The second argument must be a 3-bit compile time
  30970. constants, indicating one the registers I0-I7, and the third argument
  30971. must be an 8-bit compile time constant.
  30972. void __builtin_arc_vst128 (__v8hi, const int, const int)
  30973. void __builtin_arc_vst64 (__v8hi, const int, const int)
  30974. The following take a '__v8hi' argument and three 'int' arguments and
  30975. return no result. The second argument must be a 3-bit compile-time
  30976. constant, identifying the 16-bit sub-register to be stored, the third
  30977. argument must be a 3-bit compile time constants, indicating one the
  30978. registers I0-I7, and the fourth argument must be an 8-bit compile time
  30979. constant.
  30980. void __builtin_arc_vst16_n (__v8hi, const int, const int, const int)
  30981. void __builtin_arc_vst32_n (__v8hi, const int, const int, const int)
  30982. 
  30983. File: gcc.info, Node: ARM iWMMXt Built-in Functions, Next: ARM C Language Extensions (ACLE), Prev: ARC SIMD Built-in Functions, Up: Target Builtins
  30984. 6.60.6 ARM iWMMXt Built-in Functions
  30985. ------------------------------------
  30986. These built-in functions are available for the ARM family of processors
  30987. when the '-mcpu=iwmmxt' switch is used:
  30988. typedef int v2si __attribute__ ((vector_size (8)));
  30989. typedef short v4hi __attribute__ ((vector_size (8)));
  30990. typedef char v8qi __attribute__ ((vector_size (8)));
  30991. int __builtin_arm_getwcgr0 (void)
  30992. void __builtin_arm_setwcgr0 (int)
  30993. int __builtin_arm_getwcgr1 (void)
  30994. void __builtin_arm_setwcgr1 (int)
  30995. int __builtin_arm_getwcgr2 (void)
  30996. void __builtin_arm_setwcgr2 (int)
  30997. int __builtin_arm_getwcgr3 (void)
  30998. void __builtin_arm_setwcgr3 (int)
  30999. int __builtin_arm_textrmsb (v8qi, int)
  31000. int __builtin_arm_textrmsh (v4hi, int)
  31001. int __builtin_arm_textrmsw (v2si, int)
  31002. int __builtin_arm_textrmub (v8qi, int)
  31003. int __builtin_arm_textrmuh (v4hi, int)
  31004. int __builtin_arm_textrmuw (v2si, int)
  31005. v8qi __builtin_arm_tinsrb (v8qi, int, int)
  31006. v4hi __builtin_arm_tinsrh (v4hi, int, int)
  31007. v2si __builtin_arm_tinsrw (v2si, int, int)
  31008. long long __builtin_arm_tmia (long long, int, int)
  31009. long long __builtin_arm_tmiabb (long long, int, int)
  31010. long long __builtin_arm_tmiabt (long long, int, int)
  31011. long long __builtin_arm_tmiaph (long long, int, int)
  31012. long long __builtin_arm_tmiatb (long long, int, int)
  31013. long long __builtin_arm_tmiatt (long long, int, int)
  31014. int __builtin_arm_tmovmskb (v8qi)
  31015. int __builtin_arm_tmovmskh (v4hi)
  31016. int __builtin_arm_tmovmskw (v2si)
  31017. long long __builtin_arm_waccb (v8qi)
  31018. long long __builtin_arm_wacch (v4hi)
  31019. long long __builtin_arm_waccw (v2si)
  31020. v8qi __builtin_arm_waddb (v8qi, v8qi)
  31021. v8qi __builtin_arm_waddbss (v8qi, v8qi)
  31022. v8qi __builtin_arm_waddbus (v8qi, v8qi)
  31023. v4hi __builtin_arm_waddh (v4hi, v4hi)
  31024. v4hi __builtin_arm_waddhss (v4hi, v4hi)
  31025. v4hi __builtin_arm_waddhus (v4hi, v4hi)
  31026. v2si __builtin_arm_waddw (v2si, v2si)
  31027. v2si __builtin_arm_waddwss (v2si, v2si)
  31028. v2si __builtin_arm_waddwus (v2si, v2si)
  31029. v8qi __builtin_arm_walign (v8qi, v8qi, int)
  31030. long long __builtin_arm_wand(long long, long long)
  31031. long long __builtin_arm_wandn (long long, long long)
  31032. v8qi __builtin_arm_wavg2b (v8qi, v8qi)
  31033. v8qi __builtin_arm_wavg2br (v8qi, v8qi)
  31034. v4hi __builtin_arm_wavg2h (v4hi, v4hi)
  31035. v4hi __builtin_arm_wavg2hr (v4hi, v4hi)
  31036. v8qi __builtin_arm_wcmpeqb (v8qi, v8qi)
  31037. v4hi __builtin_arm_wcmpeqh (v4hi, v4hi)
  31038. v2si __builtin_arm_wcmpeqw (v2si, v2si)
  31039. v8qi __builtin_arm_wcmpgtsb (v8qi, v8qi)
  31040. v4hi __builtin_arm_wcmpgtsh (v4hi, v4hi)
  31041. v2si __builtin_arm_wcmpgtsw (v2si, v2si)
  31042. v8qi __builtin_arm_wcmpgtub (v8qi, v8qi)
  31043. v4hi __builtin_arm_wcmpgtuh (v4hi, v4hi)
  31044. v2si __builtin_arm_wcmpgtuw (v2si, v2si)
  31045. long long __builtin_arm_wmacs (long long, v4hi, v4hi)
  31046. long long __builtin_arm_wmacsz (v4hi, v4hi)
  31047. long long __builtin_arm_wmacu (long long, v4hi, v4hi)
  31048. long long __builtin_arm_wmacuz (v4hi, v4hi)
  31049. v4hi __builtin_arm_wmadds (v4hi, v4hi)
  31050. v4hi __builtin_arm_wmaddu (v4hi, v4hi)
  31051. v8qi __builtin_arm_wmaxsb (v8qi, v8qi)
  31052. v4hi __builtin_arm_wmaxsh (v4hi, v4hi)
  31053. v2si __builtin_arm_wmaxsw (v2si, v2si)
  31054. v8qi __builtin_arm_wmaxub (v8qi, v8qi)
  31055. v4hi __builtin_arm_wmaxuh (v4hi, v4hi)
  31056. v2si __builtin_arm_wmaxuw (v2si, v2si)
  31057. v8qi __builtin_arm_wminsb (v8qi, v8qi)
  31058. v4hi __builtin_arm_wminsh (v4hi, v4hi)
  31059. v2si __builtin_arm_wminsw (v2si, v2si)
  31060. v8qi __builtin_arm_wminub (v8qi, v8qi)
  31061. v4hi __builtin_arm_wminuh (v4hi, v4hi)
  31062. v2si __builtin_arm_wminuw (v2si, v2si)
  31063. v4hi __builtin_arm_wmulsm (v4hi, v4hi)
  31064. v4hi __builtin_arm_wmulul (v4hi, v4hi)
  31065. v4hi __builtin_arm_wmulum (v4hi, v4hi)
  31066. long long __builtin_arm_wor (long long, long long)
  31067. v2si __builtin_arm_wpackdss (long long, long long)
  31068. v2si __builtin_arm_wpackdus (long long, long long)
  31069. v8qi __builtin_arm_wpackhss (v4hi, v4hi)
  31070. v8qi __builtin_arm_wpackhus (v4hi, v4hi)
  31071. v4hi __builtin_arm_wpackwss (v2si, v2si)
  31072. v4hi __builtin_arm_wpackwus (v2si, v2si)
  31073. long long __builtin_arm_wrord (long long, long long)
  31074. long long __builtin_arm_wrordi (long long, int)
  31075. v4hi __builtin_arm_wrorh (v4hi, long long)
  31076. v4hi __builtin_arm_wrorhi (v4hi, int)
  31077. v2si __builtin_arm_wrorw (v2si, long long)
  31078. v2si __builtin_arm_wrorwi (v2si, int)
  31079. v2si __builtin_arm_wsadb (v2si, v8qi, v8qi)
  31080. v2si __builtin_arm_wsadbz (v8qi, v8qi)
  31081. v2si __builtin_arm_wsadh (v2si, v4hi, v4hi)
  31082. v2si __builtin_arm_wsadhz (v4hi, v4hi)
  31083. v4hi __builtin_arm_wshufh (v4hi, int)
  31084. long long __builtin_arm_wslld (long long, long long)
  31085. long long __builtin_arm_wslldi (long long, int)
  31086. v4hi __builtin_arm_wsllh (v4hi, long long)
  31087. v4hi __builtin_arm_wsllhi (v4hi, int)
  31088. v2si __builtin_arm_wsllw (v2si, long long)
  31089. v2si __builtin_arm_wsllwi (v2si, int)
  31090. long long __builtin_arm_wsrad (long long, long long)
  31091. long long __builtin_arm_wsradi (long long, int)
  31092. v4hi __builtin_arm_wsrah (v4hi, long long)
  31093. v4hi __builtin_arm_wsrahi (v4hi, int)
  31094. v2si __builtin_arm_wsraw (v2si, long long)
  31095. v2si __builtin_arm_wsrawi (v2si, int)
  31096. long long __builtin_arm_wsrld (long long, long long)
  31097. long long __builtin_arm_wsrldi (long long, int)
  31098. v4hi __builtin_arm_wsrlh (v4hi, long long)
  31099. v4hi __builtin_arm_wsrlhi (v4hi, int)
  31100. v2si __builtin_arm_wsrlw (v2si, long long)
  31101. v2si __builtin_arm_wsrlwi (v2si, int)
  31102. v8qi __builtin_arm_wsubb (v8qi, v8qi)
  31103. v8qi __builtin_arm_wsubbss (v8qi, v8qi)
  31104. v8qi __builtin_arm_wsubbus (v8qi, v8qi)
  31105. v4hi __builtin_arm_wsubh (v4hi, v4hi)
  31106. v4hi __builtin_arm_wsubhss (v4hi, v4hi)
  31107. v4hi __builtin_arm_wsubhus (v4hi, v4hi)
  31108. v2si __builtin_arm_wsubw (v2si, v2si)
  31109. v2si __builtin_arm_wsubwss (v2si, v2si)
  31110. v2si __builtin_arm_wsubwus (v2si, v2si)
  31111. v4hi __builtin_arm_wunpckehsb (v8qi)
  31112. v2si __builtin_arm_wunpckehsh (v4hi)
  31113. long long __builtin_arm_wunpckehsw (v2si)
  31114. v4hi __builtin_arm_wunpckehub (v8qi)
  31115. v2si __builtin_arm_wunpckehuh (v4hi)
  31116. long long __builtin_arm_wunpckehuw (v2si)
  31117. v4hi __builtin_arm_wunpckelsb (v8qi)
  31118. v2si __builtin_arm_wunpckelsh (v4hi)
  31119. long long __builtin_arm_wunpckelsw (v2si)
  31120. v4hi __builtin_arm_wunpckelub (v8qi)
  31121. v2si __builtin_arm_wunpckeluh (v4hi)
  31122. long long __builtin_arm_wunpckeluw (v2si)
  31123. v8qi __builtin_arm_wunpckihb (v8qi, v8qi)
  31124. v4hi __builtin_arm_wunpckihh (v4hi, v4hi)
  31125. v2si __builtin_arm_wunpckihw (v2si, v2si)
  31126. v8qi __builtin_arm_wunpckilb (v8qi, v8qi)
  31127. v4hi __builtin_arm_wunpckilh (v4hi, v4hi)
  31128. v2si __builtin_arm_wunpckilw (v2si, v2si)
  31129. long long __builtin_arm_wxor (long long, long long)
  31130. long long __builtin_arm_wzero ()
  31131. 
  31132. 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
  31133. 6.60.7 ARM C Language Extensions (ACLE)
  31134. ---------------------------------------
  31135. GCC implements extensions for C as described in the ARM C Language
  31136. Extensions (ACLE) specification, which can be found at
  31137. <http://infocenter.arm.com/help/topic/com.arm.doc.ihi0053c/IHI0053C_acle_2_0.pdf>.
  31138. As a part of ACLE, GCC implements extensions for Advanced SIMD as
  31139. described in the ARM C Language Extensions Specification. The complete
  31140. list of Advanced SIMD intrinsics can be found at
  31141. <http://infocenter.arm.com/help/topic/com.arm.doc.ihi0073a/IHI0073A_arm_neon_intrinsics_ref.pdf>.
  31142. The built-in intrinsics for the Advanced SIMD extension are available
  31143. when NEON is enabled.
  31144. Currently, ARM and AArch64 back ends do not support ACLE 2.0 fully.
  31145. Both back ends support CRC32 intrinsics and the ARM back end supports
  31146. the Coprocessor intrinsics, all from 'arm_acle.h'. The ARM back end's
  31147. 16-bit floating-point Advanced SIMD intrinsics currently comply to ACLE
  31148. v1.1. AArch64's back end does not have support for 16-bit floating
  31149. point Advanced SIMD intrinsics yet.
  31150. See *note ARM Options:: and *note AArch64 Options:: for more
  31151. information on the availability of extensions.
  31152. 
  31153. 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
  31154. 6.60.8 ARM Floating Point Status and Control Intrinsics
  31155. -------------------------------------------------------
  31156. These built-in functions are available for the ARM family of processors
  31157. with floating-point unit.
  31158. unsigned int __builtin_arm_get_fpscr ()
  31159. void __builtin_arm_set_fpscr (unsigned int)
  31160. 
  31161. 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
  31162. 6.60.9 ARM ARMv8-M Security Extensions
  31163. --------------------------------------
  31164. GCC implements the ARMv8-M Security Extensions as described in the
  31165. ARMv8-M Security Extensions: Requirements on Development Tools
  31166. Engineering Specification, which can be found at
  31167. <http://infocenter.arm.com/help/topic/com.arm.doc.ecm0359818/ECM0359818_armv8m_security_extensions_reqs_on_dev_tools_1_0.pdf>.
  31168. As part of the Security Extensions GCC implements two new function
  31169. attributes: 'cmse_nonsecure_entry' and 'cmse_nonsecure_call'.
  31170. As part of the Security Extensions GCC implements the intrinsics below.
  31171. FPTR is used here to mean any function pointer type.
  31172. cmse_address_info_t cmse_TT (void *)
  31173. cmse_address_info_t cmse_TT_fptr (FPTR)
  31174. cmse_address_info_t cmse_TTT (void *)
  31175. cmse_address_info_t cmse_TTT_fptr (FPTR)
  31176. cmse_address_info_t cmse_TTA (void *)
  31177. cmse_address_info_t cmse_TTA_fptr (FPTR)
  31178. cmse_address_info_t cmse_TTAT (void *)
  31179. cmse_address_info_t cmse_TTAT_fptr (FPTR)
  31180. void * cmse_check_address_range (void *, size_t, int)
  31181. typeof(p) cmse_nsfptr_create (FPTR p)
  31182. intptr_t cmse_is_nsfptr (FPTR)
  31183. int cmse_nonsecure_caller (void)
  31184. 
  31185. File: gcc.info, Node: AVR Built-in Functions, Next: Blackfin Built-in Functions, Prev: ARM ARMv8-M Security Extensions, Up: Target Builtins
  31186. 6.60.10 AVR Built-in Functions
  31187. ------------------------------
  31188. For each built-in function for AVR, there is an equally named, uppercase
  31189. built-in macro defined. That way users can easily query if or if not a
  31190. specific built-in is implemented or not. For example, if
  31191. '__builtin_avr_nop' is available the macro '__BUILTIN_AVR_NOP' is
  31192. defined to '1' and undefined otherwise.
  31193. The following built-in functions map to the respective machine
  31194. instruction, i.e. 'nop', 'sei', 'cli', 'sleep', 'wdr', 'swap', 'fmul',
  31195. 'fmuls' resp. 'fmulsu'. The three 'fmul*' built-ins are implemented as
  31196. library call if no hardware multiplier is available.
  31197. void __builtin_avr_nop (void)
  31198. void __builtin_avr_sei (void)
  31199. void __builtin_avr_cli (void)
  31200. void __builtin_avr_sleep (void)
  31201. void __builtin_avr_wdr (void)
  31202. unsigned char __builtin_avr_swap (unsigned char)
  31203. unsigned int __builtin_avr_fmul (unsigned char, unsigned char)
  31204. int __builtin_avr_fmuls (char, char)
  31205. int __builtin_avr_fmulsu (char, unsigned char)
  31206. In order to delay execution for a specific number of cycles, GCC
  31207. implements
  31208. void __builtin_avr_delay_cycles (unsigned long ticks)
  31209. 'ticks' is the number of ticks to delay execution. Note that this
  31210. built-in does not take into account the effect of interrupts that might
  31211. increase delay time. 'ticks' must be a compile-time integer constant;
  31212. delays with a variable number of cycles are not supported.
  31213. char __builtin_avr_flash_segment (const __memx void*)
  31214. This built-in takes a byte address to the 24-bit *note address space:
  31215. AVR Named Address Spaces. '__memx' and returns the number of the flash
  31216. segment (the 64 KiB chunk) where the address points to. Counting starts
  31217. at '0'. If the address does not point to flash memory, return '-1'.
  31218. unsigned char __builtin_avr_insert_bits (unsigned long map,
  31219. unsigned char bits,
  31220. unsigned char val)
  31221. Insert bits from BITS into VAL and return the resulting value. The
  31222. nibbles of MAP determine how the insertion is performed: Let X be the
  31223. N-th nibble of MAP
  31224. 1. If X is '0xf', then the N-th bit of VAL is returned unaltered.
  31225. 2. If X is in the range 0...7, then the N-th result bit is set to the
  31226. X-th bit of BITS
  31227. 3. If X is in the range 8...'0xe', then the N-th result bit is
  31228. undefined.
  31229. One typical use case for this built-in is adjusting input and output
  31230. values to non-contiguous port layouts. Some examples:
  31231. // same as val, bits is unused
  31232. __builtin_avr_insert_bits (0xffffffff, bits, val)
  31233. // same as bits, val is unused
  31234. __builtin_avr_insert_bits (0x76543210, bits, val)
  31235. // same as rotating bits by 4
  31236. __builtin_avr_insert_bits (0x32107654, bits, 0)
  31237. // high nibble of result is the high nibble of val
  31238. // low nibble of result is the low nibble of bits
  31239. __builtin_avr_insert_bits (0xffff3210, bits, val)
  31240. // reverse the bit order of bits
  31241. __builtin_avr_insert_bits (0x01234567, bits, 0)
  31242. void __builtin_avr_nops (unsigned count)
  31243. Insert 'count' 'NOP' instructions. The number of instructions must be a
  31244. compile-time integer constant.
  31245. 
  31246. File: gcc.info, Node: Blackfin Built-in Functions, Next: FR-V Built-in Functions, Prev: AVR Built-in Functions, Up: Target Builtins
  31247. 6.60.11 Blackfin Built-in Functions
  31248. -----------------------------------
  31249. Currently, there are two Blackfin-specific built-in functions. These
  31250. are used for generating 'CSYNC' and 'SSYNC' machine insns without using
  31251. inline assembly; by using these built-in functions the compiler can
  31252. automatically add workarounds for hardware errata involving these
  31253. instructions. These functions are named as follows:
  31254. void __builtin_bfin_csync (void)
  31255. void __builtin_bfin_ssync (void)
  31256. 
  31257. File: gcc.info, Node: FR-V Built-in Functions, Next: MIPS DSP Built-in Functions, Prev: Blackfin Built-in Functions, Up: Target Builtins
  31258. 6.60.12 FR-V Built-in Functions
  31259. -------------------------------
  31260. GCC provides many FR-V-specific built-in functions. In general, these
  31261. functions are intended to be compatible with those described by 'FR-V
  31262. Family, Softune C/C++ Compiler Manual (V6), Fujitsu Semiconductor'. The
  31263. two exceptions are '__MDUNPACKH' and '__MBTOHE', the GCC forms of which
  31264. pass 128-bit values by pointer rather than by value.
  31265. Most of the functions are named after specific FR-V instructions. Such
  31266. functions are said to be "directly mapped" and are summarized here in
  31267. tabular form.
  31268. * Menu:
  31269. * Argument Types::
  31270. * Directly-mapped Integer Functions::
  31271. * Directly-mapped Media Functions::
  31272. * Raw read/write Functions::
  31273. * Other Built-in Functions::
  31274. 
  31275. File: gcc.info, Node: Argument Types, Next: Directly-mapped Integer Functions, Up: FR-V Built-in Functions
  31276. 6.60.12.1 Argument Types
  31277. ........................
  31278. The arguments to the built-in functions can be divided into three
  31279. groups: register numbers, compile-time constants and run-time values.
  31280. In order to make this classification clear at a glance, the arguments
  31281. and return values are given the following pseudo types:
  31282. Pseudo type Real C type Constant? Description
  31283. 'uh' 'unsigned short' No an unsigned halfword
  31284. 'uw1' 'unsigned int' No an unsigned word
  31285. 'sw1' 'int' No a signed word
  31286. 'uw2' 'unsigned long long' No an unsigned doubleword
  31287. 'sw2' 'long long' No a signed doubleword
  31288. 'const' 'int' Yes an integer constant
  31289. 'acc' 'int' Yes an ACC register number
  31290. 'iacc' 'int' Yes an IACC register number
  31291. These pseudo types are not defined by GCC, they are simply a notational
  31292. convenience used in this manual.
  31293. Arguments of type 'uh', 'uw1', 'sw1', 'uw2' and 'sw2' are evaluated at
  31294. run time. They correspond to register operands in the underlying FR-V
  31295. instructions.
  31296. 'const' arguments represent immediate operands in the underlying FR-V
  31297. instructions. They must be compile-time constants.
  31298. 'acc' arguments are evaluated at compile time and specify the number of
  31299. an accumulator register. For example, an 'acc' argument of 2 selects
  31300. the ACC2 register.
  31301. 'iacc' arguments are similar to 'acc' arguments but specify the number
  31302. of an IACC register. See *note Other Built-in Functions:: for more
  31303. details.
  31304. 
  31305. File: gcc.info, Node: Directly-mapped Integer Functions, Next: Directly-mapped Media Functions, Prev: Argument Types, Up: FR-V Built-in Functions
  31306. 6.60.12.2 Directly-Mapped Integer Functions
  31307. ...........................................
  31308. The functions listed below map directly to FR-V I-type instructions.
  31309. Function prototype Example usage Assembly output
  31310. 'sw1 __ADDSS (sw1, sw1)' 'C = __ADDSS (A, B)' 'ADDSS A,B,C'
  31311. 'sw1 __SCAN (sw1, sw1)' 'C = __SCAN (A, B)' 'SCAN A,B,C'
  31312. 'sw1 __SCUTSS (sw1)' 'B = __SCUTSS (A)' 'SCUTSS A,B'
  31313. 'sw1 __SLASS (sw1, sw1)' 'C = __SLASS (A, B)' 'SLASS A,B,C'
  31314. 'void __SMASS (sw1, sw1)' '__SMASS (A, B)' 'SMASS A,B'
  31315. 'void __SMSSS (sw1, sw1)' '__SMSSS (A, B)' 'SMSSS A,B'
  31316. 'void __SMU (sw1, sw1)' '__SMU (A, B)' 'SMU A,B'
  31317. 'sw2 __SMUL (sw1, sw1)' 'C = __SMUL (A, B)' 'SMUL A,B,C'
  31318. 'sw1 __SUBSS (sw1, sw1)' 'C = __SUBSS (A, B)' 'SUBSS A,B,C'
  31319. 'uw2 __UMUL (uw1, uw1)' 'C = __UMUL (A, B)' 'UMUL A,B,C'
  31320. 
  31321. File: gcc.info, Node: Directly-mapped Media Functions, Next: Raw read/write Functions, Prev: Directly-mapped Integer Functions, Up: FR-V Built-in Functions
  31322. 6.60.12.3 Directly-Mapped Media Functions
  31323. .........................................
  31324. The functions listed below map directly to FR-V M-type instructions.
  31325. Function prototype Example usage Assembly output
  31326. 'uw1 __MABSHS (sw1)' 'B = __MABSHS (A)' 'MABSHS A,B'
  31327. 'void __MADDACCS (acc, acc)' '__MADDACCS (B, A)' 'MADDACCS A,B'
  31328. 'sw1 __MADDHSS (sw1, sw1)' 'C = __MADDHSS (A, 'MADDHSS A,B,C'
  31329. B)'
  31330. 'uw1 __MADDHUS (uw1, uw1)' 'C = __MADDHUS (A, 'MADDHUS A,B,C'
  31331. B)'
  31332. 'uw1 __MAND (uw1, uw1)' 'C = __MAND (A, B)' 'MAND A,B,C'
  31333. 'void __MASACCS (acc, acc)' '__MASACCS (B, A)' 'MASACCS A,B'
  31334. 'uw1 __MAVEH (uw1, uw1)' 'C = __MAVEH (A, B)' 'MAVEH A,B,C'
  31335. 'uw2 __MBTOH (uw1)' 'B = __MBTOH (A)' 'MBTOH A,B'
  31336. 'void __MBTOHE (uw1 *, uw1)' '__MBTOHE (&B, A)' 'MBTOHE A,B'
  31337. 'void __MCLRACC (acc)' '__MCLRACC (A)' 'MCLRACC A'
  31338. 'void __MCLRACCA (void)' '__MCLRACCA ()' 'MCLRACCA'
  31339. 'uw1 __Mcop1 (uw1, uw1)' 'C = __Mcop1 (A, B)' 'Mcop1 A,B,C'
  31340. 'uw1 __Mcop2 (uw1, uw1)' 'C = __Mcop2 (A, B)' 'Mcop2 A,B,C'
  31341. 'uw1 __MCPLHI (uw2, const)' 'C = __MCPLHI (A, B)' 'MCPLHI A,#B,C'
  31342. 'uw1 __MCPLI (uw2, const)' 'C = __MCPLI (A, B)' 'MCPLI A,#B,C'
  31343. 'void __MCPXIS (acc, sw1, '__MCPXIS (C, A, B)' 'MCPXIS A,B,C'
  31344. sw1)'
  31345. 'void __MCPXIU (acc, uw1, '__MCPXIU (C, A, B)' 'MCPXIU A,B,C'
  31346. uw1)'
  31347. 'void __MCPXRS (acc, sw1, '__MCPXRS (C, A, B)' 'MCPXRS A,B,C'
  31348. sw1)'
  31349. 'void __MCPXRU (acc, uw1, '__MCPXRU (C, A, B)' 'MCPXRU A,B,C'
  31350. uw1)'
  31351. 'uw1 __MCUT (acc, uw1)' 'C = __MCUT (A, B)' 'MCUT A,B,C'
  31352. 'uw1 __MCUTSS (acc, sw1)' 'C = __MCUTSS (A, B)' 'MCUTSS A,B,C'
  31353. 'void __MDADDACCS (acc, acc)' '__MDADDACCS (B, A)' 'MDADDACCS A,B'
  31354. 'void __MDASACCS (acc, acc)' '__MDASACCS (B, A)' 'MDASACCS A,B'
  31355. 'uw2 __MDCUTSSI (acc, const)' 'C = __MDCUTSSI (A, 'MDCUTSSI
  31356. B)' A,#B,C'
  31357. 'uw2 __MDPACKH (uw2, uw2)' 'C = __MDPACKH (A, 'MDPACKH A,B,C'
  31358. B)'
  31359. 'uw2 __MDROTLI (uw2, const)' 'C = __MDROTLI (A, 'MDROTLI
  31360. B)' A,#B,C'
  31361. 'void __MDSUBACCS (acc, acc)' '__MDSUBACCS (B, A)' 'MDSUBACCS A,B'
  31362. 'void __MDUNPACKH (uw1 *, '__MDUNPACKH (&B, A)' 'MDUNPACKH A,B'
  31363. uw2)'
  31364. 'uw2 __MEXPDHD (uw1, const)' 'C = __MEXPDHD (A, 'MEXPDHD
  31365. B)' A,#B,C'
  31366. 'uw1 __MEXPDHW (uw1, const)' 'C = __MEXPDHW (A, 'MEXPDHW
  31367. B)' A,#B,C'
  31368. 'uw1 __MHDSETH (uw1, const)' 'C = __MHDSETH (A, 'MHDSETH
  31369. B)' A,#B,C'
  31370. 'sw1 __MHDSETS (const)' 'B = __MHDSETS (A)' 'MHDSETS #A,B'
  31371. 'uw1 __MHSETHIH (uw1, const)' 'B = __MHSETHIH (B, 'MHSETHIH #A,B'
  31372. A)'
  31373. 'sw1 __MHSETHIS (sw1, const)' 'B = __MHSETHIS (B, 'MHSETHIS #A,B'
  31374. A)'
  31375. 'uw1 __MHSETLOH (uw1, const)' 'B = __MHSETLOH (B, 'MHSETLOH #A,B'
  31376. A)'
  31377. 'sw1 __MHSETLOS (sw1, const)' 'B = __MHSETLOS (B, 'MHSETLOS #A,B'
  31378. A)'
  31379. 'uw1 __MHTOB (uw2)' 'B = __MHTOB (A)' 'MHTOB A,B'
  31380. 'void __MMACHS (acc, sw1, '__MMACHS (C, A, B)' 'MMACHS A,B,C'
  31381. sw1)'
  31382. 'void __MMACHU (acc, uw1, '__MMACHU (C, A, B)' 'MMACHU A,B,C'
  31383. uw1)'
  31384. 'void __MMRDHS (acc, sw1, '__MMRDHS (C, A, B)' 'MMRDHS A,B,C'
  31385. sw1)'
  31386. 'void __MMRDHU (acc, uw1, '__MMRDHU (C, A, B)' 'MMRDHU A,B,C'
  31387. uw1)'
  31388. 'void __MMULHS (acc, sw1, '__MMULHS (C, A, B)' 'MMULHS A,B,C'
  31389. sw1)'
  31390. 'void __MMULHU (acc, uw1, '__MMULHU (C, A, B)' 'MMULHU A,B,C'
  31391. uw1)'
  31392. 'void __MMULXHS (acc, sw1, '__MMULXHS (C, A, B)' 'MMULXHS A,B,C'
  31393. sw1)'
  31394. 'void __MMULXHU (acc, uw1, '__MMULXHU (C, A, B)' 'MMULXHU A,B,C'
  31395. uw1)'
  31396. 'uw1 __MNOT (uw1)' 'B = __MNOT (A)' 'MNOT A,B'
  31397. 'uw1 __MOR (uw1, uw1)' 'C = __MOR (A, B)' 'MOR A,B,C'
  31398. 'uw1 __MPACKH (uh, uh)' 'C = __MPACKH (A, B)' 'MPACKH A,B,C'
  31399. 'sw2 __MQADDHSS (sw2, sw2)' 'C = __MQADDHSS (A, 'MQADDHSS
  31400. B)' A,B,C'
  31401. 'uw2 __MQADDHUS (uw2, uw2)' 'C = __MQADDHUS (A, 'MQADDHUS
  31402. B)' A,B,C'
  31403. 'void __MQCPXIS (acc, sw2, '__MQCPXIS (C, A, B)' 'MQCPXIS A,B,C'
  31404. sw2)'
  31405. 'void __MQCPXIU (acc, uw2, '__MQCPXIU (C, A, B)' 'MQCPXIU A,B,C'
  31406. uw2)'
  31407. 'void __MQCPXRS (acc, sw2, '__MQCPXRS (C, A, B)' 'MQCPXRS A,B,C'
  31408. sw2)'
  31409. 'void __MQCPXRU (acc, uw2, '__MQCPXRU (C, A, B)' 'MQCPXRU A,B,C'
  31410. uw2)'
  31411. 'sw2 __MQLCLRHS (sw2, sw2)' 'C = __MQLCLRHS (A, 'MQLCLRHS
  31412. B)' A,B,C'
  31413. 'sw2 __MQLMTHS (sw2, sw2)' 'C = __MQLMTHS (A, 'MQLMTHS A,B,C'
  31414. B)'
  31415. 'void __MQMACHS (acc, sw2, '__MQMACHS (C, A, B)' 'MQMACHS A,B,C'
  31416. sw2)'
  31417. 'void __MQMACHU (acc, uw2, '__MQMACHU (C, A, B)' 'MQMACHU A,B,C'
  31418. uw2)'
  31419. 'void __MQMACXHS (acc, sw2, '__MQMACXHS (C, A, 'MQMACXHS
  31420. sw2)' B)' A,B,C'
  31421. 'void __MQMULHS (acc, sw2, '__MQMULHS (C, A, B)' 'MQMULHS A,B,C'
  31422. sw2)'
  31423. 'void __MQMULHU (acc, uw2, '__MQMULHU (C, A, B)' 'MQMULHU A,B,C'
  31424. uw2)'
  31425. 'void __MQMULXHS (acc, sw2, '__MQMULXHS (C, A, 'MQMULXHS
  31426. sw2)' B)' A,B,C'
  31427. 'void __MQMULXHU (acc, uw2, '__MQMULXHU (C, A, 'MQMULXHU
  31428. uw2)' B)' A,B,C'
  31429. 'sw2 __MQSATHS (sw2, sw2)' 'C = __MQSATHS (A, 'MQSATHS A,B,C'
  31430. B)'
  31431. 'uw2 __MQSLLHI (uw2, int)' 'C = __MQSLLHI (A, 'MQSLLHI A,B,C'
  31432. B)'
  31433. 'sw2 __MQSRAHI (sw2, int)' 'C = __MQSRAHI (A, 'MQSRAHI A,B,C'
  31434. B)'
  31435. 'sw2 __MQSUBHSS (sw2, sw2)' 'C = __MQSUBHSS (A, 'MQSUBHSS
  31436. B)' A,B,C'
  31437. 'uw2 __MQSUBHUS (uw2, uw2)' 'C = __MQSUBHUS (A, 'MQSUBHUS
  31438. B)' A,B,C'
  31439. 'void __MQXMACHS (acc, sw2, '__MQXMACHS (C, A, 'MQXMACHS
  31440. sw2)' B)' A,B,C'
  31441. 'void __MQXMACXHS (acc, sw2, '__MQXMACXHS (C, A, 'MQXMACXHS
  31442. sw2)' B)' A,B,C'
  31443. 'uw1 __MRDACC (acc)' 'B = __MRDACC (A)' 'MRDACC A,B'
  31444. 'uw1 __MRDACCG (acc)' 'B = __MRDACCG (A)' 'MRDACCG A,B'
  31445. 'uw1 __MROTLI (uw1, const)' 'C = __MROTLI (A, B)' 'MROTLI A,#B,C'
  31446. 'uw1 __MROTRI (uw1, const)' 'C = __MROTRI (A, B)' 'MROTRI A,#B,C'
  31447. 'sw1 __MSATHS (sw1, sw1)' 'C = __MSATHS (A, B)' 'MSATHS A,B,C'
  31448. 'uw1 __MSATHU (uw1, uw1)' 'C = __MSATHU (A, B)' 'MSATHU A,B,C'
  31449. 'uw1 __MSLLHI (uw1, const)' 'C = __MSLLHI (A, B)' 'MSLLHI A,#B,C'
  31450. 'sw1 __MSRAHI (sw1, const)' 'C = __MSRAHI (A, B)' 'MSRAHI A,#B,C'
  31451. 'uw1 __MSRLHI (uw1, const)' 'C = __MSRLHI (A, B)' 'MSRLHI A,#B,C'
  31452. 'void __MSUBACCS (acc, acc)' '__MSUBACCS (B, A)' 'MSUBACCS A,B'
  31453. 'sw1 __MSUBHSS (sw1, sw1)' 'C = __MSUBHSS (A, 'MSUBHSS A,B,C'
  31454. B)'
  31455. 'uw1 __MSUBHUS (uw1, uw1)' 'C = __MSUBHUS (A, 'MSUBHUS A,B,C'
  31456. B)'
  31457. 'void __MTRAP (void)' '__MTRAP ()' 'MTRAP'
  31458. 'uw2 __MUNPACKH (uw1)' 'B = __MUNPACKH (A)' 'MUNPACKH A,B'
  31459. 'uw1 __MWCUT (uw2, uw1)' 'C = __MWCUT (A, B)' 'MWCUT A,B,C'
  31460. 'void __MWTACC (acc, uw1)' '__MWTACC (B, A)' 'MWTACC A,B'
  31461. 'void __MWTACCG (acc, uw1)' '__MWTACCG (B, A)' 'MWTACCG A,B'
  31462. 'uw1 __MXOR (uw1, uw1)' 'C = __MXOR (A, B)' 'MXOR A,B,C'
  31463. 
  31464. File: gcc.info, Node: Raw read/write Functions, Next: Other Built-in Functions, Prev: Directly-mapped Media Functions, Up: FR-V Built-in Functions
  31465. 6.60.12.4 Raw Read/Write Functions
  31466. ..................................
  31467. This sections describes built-in functions related to read and write
  31468. instructions to access memory. These functions generate 'membar'
  31469. instructions to flush the I/O load and stores where appropriate, as
  31470. described in Fujitsu's manual described above.
  31471. 'unsigned char __builtin_read8 (void *DATA)'
  31472. 'unsigned short __builtin_read16 (void *DATA)'
  31473. 'unsigned long __builtin_read32 (void *DATA)'
  31474. 'unsigned long long __builtin_read64 (void *DATA)'
  31475. 'void __builtin_write8 (void *DATA, unsigned char DATUM)'
  31476. 'void __builtin_write16 (void *DATA, unsigned short DATUM)'
  31477. 'void __builtin_write32 (void *DATA, unsigned long DATUM)'
  31478. 'void __builtin_write64 (void *DATA, unsigned long long DATUM)'
  31479. 
  31480. File: gcc.info, Node: Other Built-in Functions, Prev: Raw read/write Functions, Up: FR-V Built-in Functions
  31481. 6.60.12.5 Other Built-in Functions
  31482. ..................................
  31483. This section describes built-in functions that are not named after a
  31484. specific FR-V instruction.
  31485. 'sw2 __IACCreadll (iacc REG)'
  31486. Return the full 64-bit value of IACC0. The REG argument is
  31487. reserved for future expansion and must be 0.
  31488. 'sw1 __IACCreadl (iacc REG)'
  31489. Return the value of IACC0H if REG is 0 and IACC0L if REG is 1.
  31490. Other values of REG are rejected as invalid.
  31491. 'void __IACCsetll (iacc REG, sw2 X)'
  31492. Set the full 64-bit value of IACC0 to X. The REG argument is
  31493. reserved for future expansion and must be 0.
  31494. 'void __IACCsetl (iacc REG, sw1 X)'
  31495. Set IACC0H to X if REG is 0 and IACC0L to X if REG is 1. Other
  31496. values of REG are rejected as invalid.
  31497. 'void __data_prefetch0 (const void *X)'
  31498. Use the 'dcpl' instruction to load the contents of address X into
  31499. the data cache.
  31500. 'void __data_prefetch (const void *X)'
  31501. Use the 'nldub' instruction to load the contents of address X into
  31502. the data cache. The instruction is issued in slot I1.
  31503. 
  31504. File: gcc.info, Node: MIPS DSP Built-in Functions, Next: MIPS Paired-Single Support, Prev: FR-V Built-in Functions, Up: Target Builtins
  31505. 6.60.13 MIPS DSP Built-in Functions
  31506. -----------------------------------
  31507. The MIPS DSP Application-Specific Extension (ASE) includes new
  31508. instructions that are designed to improve the performance of DSP and
  31509. media applications. It provides instructions that operate on packed
  31510. 8-bit/16-bit integer data, Q7, Q15 and Q31 fractional data.
  31511. GCC supports MIPS DSP operations using both the generic vector
  31512. extensions (*note Vector Extensions::) and a collection of MIPS-specific
  31513. built-in functions. Both kinds of support are enabled by the '-mdsp'
  31514. command-line option.
  31515. Revision 2 of the ASE was introduced in the second half of 2006. This
  31516. revision adds extra instructions to the original ASE, but is otherwise
  31517. backwards-compatible with it. You can select revision 2 using the
  31518. command-line option '-mdspr2'; this option implies '-mdsp'.
  31519. The SCOUNT and POS bits of the DSP control register are global. The
  31520. WRDSP, EXTPDP, EXTPDPV and MTHLIP instructions modify the SCOUNT and POS
  31521. bits. During optimization, the compiler does not delete these
  31522. instructions and it does not delete calls to functions containing these
  31523. instructions.
  31524. At present, GCC only provides support for operations on 32-bit vectors.
  31525. The vector type associated with 8-bit integer data is usually called
  31526. 'v4i8', the vector type associated with Q7 is usually called 'v4q7', the
  31527. vector type associated with 16-bit integer data is usually called
  31528. 'v2i16', and the vector type associated with Q15 is usually called
  31529. 'v2q15'. They can be defined in C as follows:
  31530. typedef signed char v4i8 __attribute__ ((vector_size(4)));
  31531. typedef signed char v4q7 __attribute__ ((vector_size(4)));
  31532. typedef short v2i16 __attribute__ ((vector_size(4)));
  31533. typedef short v2q15 __attribute__ ((vector_size(4)));
  31534. 'v4i8', 'v4q7', 'v2i16' and 'v2q15' values are initialized in the same
  31535. way as aggregates. For example:
  31536. v4i8 a = {1, 2, 3, 4};
  31537. v4i8 b;
  31538. b = (v4i8) {5, 6, 7, 8};
  31539. v2q15 c = {0x0fcb, 0x3a75};
  31540. v2q15 d;
  31541. d = (v2q15) {0.1234 * 0x1.0p15, 0.4567 * 0x1.0p15};
  31542. _Note:_ The CPU's endianness determines the order in which values are
  31543. packed. On little-endian targets, the first value is the least
  31544. significant and the last value is the most significant. The opposite
  31545. order applies to big-endian targets. For example, the code above sets
  31546. the lowest byte of 'a' to '1' on little-endian targets and '4' on
  31547. big-endian targets.
  31548. _Note:_ Q7, Q15 and Q31 values must be initialized with their integer
  31549. representation. As shown in this example, the integer representation of
  31550. a Q7 value can be obtained by multiplying the fractional value by
  31551. '0x1.0p7'. The equivalent for Q15 values is to multiply by '0x1.0p15'.
  31552. The equivalent for Q31 values is to multiply by '0x1.0p31'.
  31553. The table below lists the 'v4i8' and 'v2q15' operations for which
  31554. hardware support exists. 'a' and 'b' are 'v4i8' values, and 'c' and 'd'
  31555. are 'v2q15' values.
  31556. C code MIPS instruction
  31557. 'a + b' 'addu.qb'
  31558. 'c + d' 'addq.ph'
  31559. 'a - b' 'subu.qb'
  31560. 'c - d' 'subq.ph'
  31561. The table below lists the 'v2i16' operation for which hardware support
  31562. exists for the DSP ASE REV 2. 'e' and 'f' are 'v2i16' values.
  31563. C code MIPS instruction
  31564. 'e * f' 'mul.ph'
  31565. It is easier to describe the DSP built-in functions if we first define
  31566. the following types:
  31567. typedef int q31;
  31568. typedef int i32;
  31569. typedef unsigned int ui32;
  31570. typedef long long a64;
  31571. 'q31' and 'i32' are actually the same as 'int', but we use 'q31' to
  31572. indicate a Q31 fractional value and 'i32' to indicate a 32-bit integer
  31573. value. Similarly, 'a64' is the same as 'long long', but we use 'a64' to
  31574. indicate values that are placed in one of the four DSP accumulators
  31575. ('$ac0', '$ac1', '$ac2' or '$ac3').
  31576. Also, some built-in functions prefer or require immediate numbers as
  31577. parameters, because the corresponding DSP instructions accept both
  31578. immediate numbers and register operands, or accept immediate numbers
  31579. only. The immediate parameters are listed as follows.
  31580. imm0_3: 0 to 3.
  31581. imm0_7: 0 to 7.
  31582. imm0_15: 0 to 15.
  31583. imm0_31: 0 to 31.
  31584. imm0_63: 0 to 63.
  31585. imm0_255: 0 to 255.
  31586. imm_n32_31: -32 to 31.
  31587. imm_n512_511: -512 to 511.
  31588. The following built-in functions map directly to a particular MIPS DSP
  31589. instruction. Please refer to the architecture specification for details
  31590. on what each instruction does.
  31591. v2q15 __builtin_mips_addq_ph (v2q15, v2q15)
  31592. v2q15 __builtin_mips_addq_s_ph (v2q15, v2q15)
  31593. q31 __builtin_mips_addq_s_w (q31, q31)
  31594. v4i8 __builtin_mips_addu_qb (v4i8, v4i8)
  31595. v4i8 __builtin_mips_addu_s_qb (v4i8, v4i8)
  31596. v2q15 __builtin_mips_subq_ph (v2q15, v2q15)
  31597. v2q15 __builtin_mips_subq_s_ph (v2q15, v2q15)
  31598. q31 __builtin_mips_subq_s_w (q31, q31)
  31599. v4i8 __builtin_mips_subu_qb (v4i8, v4i8)
  31600. v4i8 __builtin_mips_subu_s_qb (v4i8, v4i8)
  31601. i32 __builtin_mips_addsc (i32, i32)
  31602. i32 __builtin_mips_addwc (i32, i32)
  31603. i32 __builtin_mips_modsub (i32, i32)
  31604. i32 __builtin_mips_raddu_w_qb (v4i8)
  31605. v2q15 __builtin_mips_absq_s_ph (v2q15)
  31606. q31 __builtin_mips_absq_s_w (q31)
  31607. v4i8 __builtin_mips_precrq_qb_ph (v2q15, v2q15)
  31608. v2q15 __builtin_mips_precrq_ph_w (q31, q31)
  31609. v2q15 __builtin_mips_precrq_rs_ph_w (q31, q31)
  31610. v4i8 __builtin_mips_precrqu_s_qb_ph (v2q15, v2q15)
  31611. q31 __builtin_mips_preceq_w_phl (v2q15)
  31612. q31 __builtin_mips_preceq_w_phr (v2q15)
  31613. v2q15 __builtin_mips_precequ_ph_qbl (v4i8)
  31614. v2q15 __builtin_mips_precequ_ph_qbr (v4i8)
  31615. v2q15 __builtin_mips_precequ_ph_qbla (v4i8)
  31616. v2q15 __builtin_mips_precequ_ph_qbra (v4i8)
  31617. v2q15 __builtin_mips_preceu_ph_qbl (v4i8)
  31618. v2q15 __builtin_mips_preceu_ph_qbr (v4i8)
  31619. v2q15 __builtin_mips_preceu_ph_qbla (v4i8)
  31620. v2q15 __builtin_mips_preceu_ph_qbra (v4i8)
  31621. v4i8 __builtin_mips_shll_qb (v4i8, imm0_7)
  31622. v4i8 __builtin_mips_shll_qb (v4i8, i32)
  31623. v2q15 __builtin_mips_shll_ph (v2q15, imm0_15)
  31624. v2q15 __builtin_mips_shll_ph (v2q15, i32)
  31625. v2q15 __builtin_mips_shll_s_ph (v2q15, imm0_15)
  31626. v2q15 __builtin_mips_shll_s_ph (v2q15, i32)
  31627. q31 __builtin_mips_shll_s_w (q31, imm0_31)
  31628. q31 __builtin_mips_shll_s_w (q31, i32)
  31629. v4i8 __builtin_mips_shrl_qb (v4i8, imm0_7)
  31630. v4i8 __builtin_mips_shrl_qb (v4i8, i32)
  31631. v2q15 __builtin_mips_shra_ph (v2q15, imm0_15)
  31632. v2q15 __builtin_mips_shra_ph (v2q15, i32)
  31633. v2q15 __builtin_mips_shra_r_ph (v2q15, imm0_15)
  31634. v2q15 __builtin_mips_shra_r_ph (v2q15, i32)
  31635. q31 __builtin_mips_shra_r_w (q31, imm0_31)
  31636. q31 __builtin_mips_shra_r_w (q31, i32)
  31637. v2q15 __builtin_mips_muleu_s_ph_qbl (v4i8, v2q15)
  31638. v2q15 __builtin_mips_muleu_s_ph_qbr (v4i8, v2q15)
  31639. v2q15 __builtin_mips_mulq_rs_ph (v2q15, v2q15)
  31640. q31 __builtin_mips_muleq_s_w_phl (v2q15, v2q15)
  31641. q31 __builtin_mips_muleq_s_w_phr (v2q15, v2q15)
  31642. a64 __builtin_mips_dpau_h_qbl (a64, v4i8, v4i8)
  31643. a64 __builtin_mips_dpau_h_qbr (a64, v4i8, v4i8)
  31644. a64 __builtin_mips_dpsu_h_qbl (a64, v4i8, v4i8)
  31645. a64 __builtin_mips_dpsu_h_qbr (a64, v4i8, v4i8)
  31646. a64 __builtin_mips_dpaq_s_w_ph (a64, v2q15, v2q15)
  31647. a64 __builtin_mips_dpaq_sa_l_w (a64, q31, q31)
  31648. a64 __builtin_mips_dpsq_s_w_ph (a64, v2q15, v2q15)
  31649. a64 __builtin_mips_dpsq_sa_l_w (a64, q31, q31)
  31650. a64 __builtin_mips_mulsaq_s_w_ph (a64, v2q15, v2q15)
  31651. a64 __builtin_mips_maq_s_w_phl (a64, v2q15, v2q15)
  31652. a64 __builtin_mips_maq_s_w_phr (a64, v2q15, v2q15)
  31653. a64 __builtin_mips_maq_sa_w_phl (a64, v2q15, v2q15)
  31654. a64 __builtin_mips_maq_sa_w_phr (a64, v2q15, v2q15)
  31655. i32 __builtin_mips_bitrev (i32)
  31656. i32 __builtin_mips_insv (i32, i32)
  31657. v4i8 __builtin_mips_repl_qb (imm0_255)
  31658. v4i8 __builtin_mips_repl_qb (i32)
  31659. v2q15 __builtin_mips_repl_ph (imm_n512_511)
  31660. v2q15 __builtin_mips_repl_ph (i32)
  31661. void __builtin_mips_cmpu_eq_qb (v4i8, v4i8)
  31662. void __builtin_mips_cmpu_lt_qb (v4i8, v4i8)
  31663. void __builtin_mips_cmpu_le_qb (v4i8, v4i8)
  31664. i32 __builtin_mips_cmpgu_eq_qb (v4i8, v4i8)
  31665. i32 __builtin_mips_cmpgu_lt_qb (v4i8, v4i8)
  31666. i32 __builtin_mips_cmpgu_le_qb (v4i8, v4i8)
  31667. void __builtin_mips_cmp_eq_ph (v2q15, v2q15)
  31668. void __builtin_mips_cmp_lt_ph (v2q15, v2q15)
  31669. void __builtin_mips_cmp_le_ph (v2q15, v2q15)
  31670. v4i8 __builtin_mips_pick_qb (v4i8, v4i8)
  31671. v2q15 __builtin_mips_pick_ph (v2q15, v2q15)
  31672. v2q15 __builtin_mips_packrl_ph (v2q15, v2q15)
  31673. i32 __builtin_mips_extr_w (a64, imm0_31)
  31674. i32 __builtin_mips_extr_w (a64, i32)
  31675. i32 __builtin_mips_extr_r_w (a64, imm0_31)
  31676. i32 __builtin_mips_extr_s_h (a64, i32)
  31677. i32 __builtin_mips_extr_rs_w (a64, imm0_31)
  31678. i32 __builtin_mips_extr_rs_w (a64, i32)
  31679. i32 __builtin_mips_extr_s_h (a64, imm0_31)
  31680. i32 __builtin_mips_extr_r_w (a64, i32)
  31681. i32 __builtin_mips_extp (a64, imm0_31)
  31682. i32 __builtin_mips_extp (a64, i32)
  31683. i32 __builtin_mips_extpdp (a64, imm0_31)
  31684. i32 __builtin_mips_extpdp (a64, i32)
  31685. a64 __builtin_mips_shilo (a64, imm_n32_31)
  31686. a64 __builtin_mips_shilo (a64, i32)
  31687. a64 __builtin_mips_mthlip (a64, i32)
  31688. void __builtin_mips_wrdsp (i32, imm0_63)
  31689. i32 __builtin_mips_rddsp (imm0_63)
  31690. i32 __builtin_mips_lbux (void *, i32)
  31691. i32 __builtin_mips_lhx (void *, i32)
  31692. i32 __builtin_mips_lwx (void *, i32)
  31693. a64 __builtin_mips_ldx (void *, i32) [MIPS64 only]
  31694. i32 __builtin_mips_bposge32 (void)
  31695. a64 __builtin_mips_madd (a64, i32, i32);
  31696. a64 __builtin_mips_maddu (a64, ui32, ui32);
  31697. a64 __builtin_mips_msub (a64, i32, i32);
  31698. a64 __builtin_mips_msubu (a64, ui32, ui32);
  31699. a64 __builtin_mips_mult (i32, i32);
  31700. a64 __builtin_mips_multu (ui32, ui32);
  31701. The following built-in functions map directly to a particular MIPS DSP
  31702. REV 2 instruction. Please refer to the architecture specification for
  31703. details on what each instruction does.
  31704. v4q7 __builtin_mips_absq_s_qb (v4q7);
  31705. v2i16 __builtin_mips_addu_ph (v2i16, v2i16);
  31706. v2i16 __builtin_mips_addu_s_ph (v2i16, v2i16);
  31707. v4i8 __builtin_mips_adduh_qb (v4i8, v4i8);
  31708. v4i8 __builtin_mips_adduh_r_qb (v4i8, v4i8);
  31709. i32 __builtin_mips_append (i32, i32, imm0_31);
  31710. i32 __builtin_mips_balign (i32, i32, imm0_3);
  31711. i32 __builtin_mips_cmpgdu_eq_qb (v4i8, v4i8);
  31712. i32 __builtin_mips_cmpgdu_lt_qb (v4i8, v4i8);
  31713. i32 __builtin_mips_cmpgdu_le_qb (v4i8, v4i8);
  31714. a64 __builtin_mips_dpa_w_ph (a64, v2i16, v2i16);
  31715. a64 __builtin_mips_dps_w_ph (a64, v2i16, v2i16);
  31716. v2i16 __builtin_mips_mul_ph (v2i16, v2i16);
  31717. v2i16 __builtin_mips_mul_s_ph (v2i16, v2i16);
  31718. q31 __builtin_mips_mulq_rs_w (q31, q31);
  31719. v2q15 __builtin_mips_mulq_s_ph (v2q15, v2q15);
  31720. q31 __builtin_mips_mulq_s_w (q31, q31);
  31721. a64 __builtin_mips_mulsa_w_ph (a64, v2i16, v2i16);
  31722. v4i8 __builtin_mips_precr_qb_ph (v2i16, v2i16);
  31723. v2i16 __builtin_mips_precr_sra_ph_w (i32, i32, imm0_31);
  31724. v2i16 __builtin_mips_precr_sra_r_ph_w (i32, i32, imm0_31);
  31725. i32 __builtin_mips_prepend (i32, i32, imm0_31);
  31726. v4i8 __builtin_mips_shra_qb (v4i8, imm0_7);
  31727. v4i8 __builtin_mips_shra_r_qb (v4i8, imm0_7);
  31728. v4i8 __builtin_mips_shra_qb (v4i8, i32);
  31729. v4i8 __builtin_mips_shra_r_qb (v4i8, i32);
  31730. v2i16 __builtin_mips_shrl_ph (v2i16, imm0_15);
  31731. v2i16 __builtin_mips_shrl_ph (v2i16, i32);
  31732. v2i16 __builtin_mips_subu_ph (v2i16, v2i16);
  31733. v2i16 __builtin_mips_subu_s_ph (v2i16, v2i16);
  31734. v4i8 __builtin_mips_subuh_qb (v4i8, v4i8);
  31735. v4i8 __builtin_mips_subuh_r_qb (v4i8, v4i8);
  31736. v2q15 __builtin_mips_addqh_ph (v2q15, v2q15);
  31737. v2q15 __builtin_mips_addqh_r_ph (v2q15, v2q15);
  31738. q31 __builtin_mips_addqh_w (q31, q31);
  31739. q31 __builtin_mips_addqh_r_w (q31, q31);
  31740. v2q15 __builtin_mips_subqh_ph (v2q15, v2q15);
  31741. v2q15 __builtin_mips_subqh_r_ph (v2q15, v2q15);
  31742. q31 __builtin_mips_subqh_w (q31, q31);
  31743. q31 __builtin_mips_subqh_r_w (q31, q31);
  31744. a64 __builtin_mips_dpax_w_ph (a64, v2i16, v2i16);
  31745. a64 __builtin_mips_dpsx_w_ph (a64, v2i16, v2i16);
  31746. a64 __builtin_mips_dpaqx_s_w_ph (a64, v2q15, v2q15);
  31747. a64 __builtin_mips_dpaqx_sa_w_ph (a64, v2q15, v2q15);
  31748. a64 __builtin_mips_dpsqx_s_w_ph (a64, v2q15, v2q15);
  31749. a64 __builtin_mips_dpsqx_sa_w_ph (a64, v2q15, v2q15);
  31750. 
  31751. File: gcc.info, Node: MIPS Paired-Single Support, Next: MIPS Loongson Built-in Functions, Prev: MIPS DSP Built-in Functions, Up: Target Builtins
  31752. 6.60.14 MIPS Paired-Single Support
  31753. ----------------------------------
  31754. The MIPS64 architecture includes a number of instructions that operate
  31755. on pairs of single-precision floating-point values. Each pair is packed
  31756. into a 64-bit floating-point register, with one element being designated
  31757. the "upper half" and the other being designated the "lower half".
  31758. GCC supports paired-single operations using both the generic vector
  31759. extensions (*note Vector Extensions::) and a collection of MIPS-specific
  31760. built-in functions. Both kinds of support are enabled by the
  31761. '-mpaired-single' command-line option.
  31762. The vector type associated with paired-single values is usually called
  31763. 'v2sf'. It can be defined in C as follows:
  31764. typedef float v2sf __attribute__ ((vector_size (8)));
  31765. 'v2sf' values are initialized in the same way as aggregates. For
  31766. example:
  31767. v2sf a = {1.5, 9.1};
  31768. v2sf b;
  31769. float e, f;
  31770. b = (v2sf) {e, f};
  31771. _Note:_ The CPU's endianness determines which value is stored in the
  31772. upper half of a register and which value is stored in the lower half.
  31773. On little-endian targets, the first value is the lower one and the
  31774. second value is the upper one. The opposite order applies to big-endian
  31775. targets. For example, the code above sets the lower half of 'a' to
  31776. '1.5' on little-endian targets and '9.1' on big-endian targets.
  31777. 
  31778. File: gcc.info, Node: MIPS Loongson Built-in Functions, Next: MIPS SIMD Architecture (MSA) Support, Prev: MIPS Paired-Single Support, Up: Target Builtins
  31779. 6.60.15 MIPS Loongson Built-in Functions
  31780. ----------------------------------------
  31781. GCC provides intrinsics to access the SIMD instructions provided by the
  31782. ST Microelectronics Loongson-2E and -2F processors. These intrinsics,
  31783. available after inclusion of the 'loongson.h' header file, operate on
  31784. the following 64-bit vector types:
  31785. * 'uint8x8_t', a vector of eight unsigned 8-bit integers;
  31786. * 'uint16x4_t', a vector of four unsigned 16-bit integers;
  31787. * 'uint32x2_t', a vector of two unsigned 32-bit integers;
  31788. * 'int8x8_t', a vector of eight signed 8-bit integers;
  31789. * 'int16x4_t', a vector of four signed 16-bit integers;
  31790. * 'int32x2_t', a vector of two signed 32-bit integers.
  31791. The intrinsics provided are listed below; each is named after the
  31792. machine instruction to which it corresponds, with suffixes added as
  31793. appropriate to distinguish intrinsics that expand to the same machine
  31794. instruction yet have different argument types. Refer to the
  31795. architecture documentation for a description of the functionality of
  31796. each instruction.
  31797. int16x4_t packsswh (int32x2_t s, int32x2_t t);
  31798. int8x8_t packsshb (int16x4_t s, int16x4_t t);
  31799. uint8x8_t packushb (uint16x4_t s, uint16x4_t t);
  31800. uint32x2_t paddw_u (uint32x2_t s, uint32x2_t t);
  31801. uint16x4_t paddh_u (uint16x4_t s, uint16x4_t t);
  31802. uint8x8_t paddb_u (uint8x8_t s, uint8x8_t t);
  31803. int32x2_t paddw_s (int32x2_t s, int32x2_t t);
  31804. int16x4_t paddh_s (int16x4_t s, int16x4_t t);
  31805. int8x8_t paddb_s (int8x8_t s, int8x8_t t);
  31806. uint64_t paddd_u (uint64_t s, uint64_t t);
  31807. int64_t paddd_s (int64_t s, int64_t t);
  31808. int16x4_t paddsh (int16x4_t s, int16x4_t t);
  31809. int8x8_t paddsb (int8x8_t s, int8x8_t t);
  31810. uint16x4_t paddush (uint16x4_t s, uint16x4_t t);
  31811. uint8x8_t paddusb (uint8x8_t s, uint8x8_t t);
  31812. uint64_t pandn_ud (uint64_t s, uint64_t t);
  31813. uint32x2_t pandn_uw (uint32x2_t s, uint32x2_t t);
  31814. uint16x4_t pandn_uh (uint16x4_t s, uint16x4_t t);
  31815. uint8x8_t pandn_ub (uint8x8_t s, uint8x8_t t);
  31816. int64_t pandn_sd (int64_t s, int64_t t);
  31817. int32x2_t pandn_sw (int32x2_t s, int32x2_t t);
  31818. int16x4_t pandn_sh (int16x4_t s, int16x4_t t);
  31819. int8x8_t pandn_sb (int8x8_t s, int8x8_t t);
  31820. uint16x4_t pavgh (uint16x4_t s, uint16x4_t t);
  31821. uint8x8_t pavgb (uint8x8_t s, uint8x8_t t);
  31822. uint32x2_t pcmpeqw_u (uint32x2_t s, uint32x2_t t);
  31823. uint16x4_t pcmpeqh_u (uint16x4_t s, uint16x4_t t);
  31824. uint8x8_t pcmpeqb_u (uint8x8_t s, uint8x8_t t);
  31825. int32x2_t pcmpeqw_s (int32x2_t s, int32x2_t t);
  31826. int16x4_t pcmpeqh_s (int16x4_t s, int16x4_t t);
  31827. int8x8_t pcmpeqb_s (int8x8_t s, int8x8_t t);
  31828. uint32x2_t pcmpgtw_u (uint32x2_t s, uint32x2_t t);
  31829. uint16x4_t pcmpgth_u (uint16x4_t s, uint16x4_t t);
  31830. uint8x8_t pcmpgtb_u (uint8x8_t s, uint8x8_t t);
  31831. int32x2_t pcmpgtw_s (int32x2_t s, int32x2_t t);
  31832. int16x4_t pcmpgth_s (int16x4_t s, int16x4_t t);
  31833. int8x8_t pcmpgtb_s (int8x8_t s, int8x8_t t);
  31834. uint16x4_t pextrh_u (uint16x4_t s, int field);
  31835. int16x4_t pextrh_s (int16x4_t s, int field);
  31836. uint16x4_t pinsrh_0_u (uint16x4_t s, uint16x4_t t);
  31837. uint16x4_t pinsrh_1_u (uint16x4_t s, uint16x4_t t);
  31838. uint16x4_t pinsrh_2_u (uint16x4_t s, uint16x4_t t);
  31839. uint16x4_t pinsrh_3_u (uint16x4_t s, uint16x4_t t);
  31840. int16x4_t pinsrh_0_s (int16x4_t s, int16x4_t t);
  31841. int16x4_t pinsrh_1_s (int16x4_t s, int16x4_t t);
  31842. int16x4_t pinsrh_2_s (int16x4_t s, int16x4_t t);
  31843. int16x4_t pinsrh_3_s (int16x4_t s, int16x4_t t);
  31844. int32x2_t pmaddhw (int16x4_t s, int16x4_t t);
  31845. int16x4_t pmaxsh (int16x4_t s, int16x4_t t);
  31846. uint8x8_t pmaxub (uint8x8_t s, uint8x8_t t);
  31847. int16x4_t pminsh (int16x4_t s, int16x4_t t);
  31848. uint8x8_t pminub (uint8x8_t s, uint8x8_t t);
  31849. uint8x8_t pmovmskb_u (uint8x8_t s);
  31850. int8x8_t pmovmskb_s (int8x8_t s);
  31851. uint16x4_t pmulhuh (uint16x4_t s, uint16x4_t t);
  31852. int16x4_t pmulhh (int16x4_t s, int16x4_t t);
  31853. int16x4_t pmullh (int16x4_t s, int16x4_t t);
  31854. int64_t pmuluw (uint32x2_t s, uint32x2_t t);
  31855. uint8x8_t pasubub (uint8x8_t s, uint8x8_t t);
  31856. uint16x4_t biadd (uint8x8_t s);
  31857. uint16x4_t psadbh (uint8x8_t s, uint8x8_t t);
  31858. uint16x4_t pshufh_u (uint16x4_t dest, uint16x4_t s, uint8_t order);
  31859. int16x4_t pshufh_s (int16x4_t dest, int16x4_t s, uint8_t order);
  31860. uint16x4_t psllh_u (uint16x4_t s, uint8_t amount);
  31861. int16x4_t psllh_s (int16x4_t s, uint8_t amount);
  31862. uint32x2_t psllw_u (uint32x2_t s, uint8_t amount);
  31863. int32x2_t psllw_s (int32x2_t s, uint8_t amount);
  31864. uint16x4_t psrlh_u (uint16x4_t s, uint8_t amount);
  31865. int16x4_t psrlh_s (int16x4_t s, uint8_t amount);
  31866. uint32x2_t psrlw_u (uint32x2_t s, uint8_t amount);
  31867. int32x2_t psrlw_s (int32x2_t s, uint8_t amount);
  31868. uint16x4_t psrah_u (uint16x4_t s, uint8_t amount);
  31869. int16x4_t psrah_s (int16x4_t s, uint8_t amount);
  31870. uint32x2_t psraw_u (uint32x2_t s, uint8_t amount);
  31871. int32x2_t psraw_s (int32x2_t s, uint8_t amount);
  31872. uint32x2_t psubw_u (uint32x2_t s, uint32x2_t t);
  31873. uint16x4_t psubh_u (uint16x4_t s, uint16x4_t t);
  31874. uint8x8_t psubb_u (uint8x8_t s, uint8x8_t t);
  31875. int32x2_t psubw_s (int32x2_t s, int32x2_t t);
  31876. int16x4_t psubh_s (int16x4_t s, int16x4_t t);
  31877. int8x8_t psubb_s (int8x8_t s, int8x8_t t);
  31878. uint64_t psubd_u (uint64_t s, uint64_t t);
  31879. int64_t psubd_s (int64_t s, int64_t t);
  31880. int16x4_t psubsh (int16x4_t s, int16x4_t t);
  31881. int8x8_t psubsb (int8x8_t s, int8x8_t t);
  31882. uint16x4_t psubush (uint16x4_t s, uint16x4_t t);
  31883. uint8x8_t psubusb (uint8x8_t s, uint8x8_t t);
  31884. uint32x2_t punpckhwd_u (uint32x2_t s, uint32x2_t t);
  31885. uint16x4_t punpckhhw_u (uint16x4_t s, uint16x4_t t);
  31886. uint8x8_t punpckhbh_u (uint8x8_t s, uint8x8_t t);
  31887. int32x2_t punpckhwd_s (int32x2_t s, int32x2_t t);
  31888. int16x4_t punpckhhw_s (int16x4_t s, int16x4_t t);
  31889. int8x8_t punpckhbh_s (int8x8_t s, int8x8_t t);
  31890. uint32x2_t punpcklwd_u (uint32x2_t s, uint32x2_t t);
  31891. uint16x4_t punpcklhw_u (uint16x4_t s, uint16x4_t t);
  31892. uint8x8_t punpcklbh_u (uint8x8_t s, uint8x8_t t);
  31893. int32x2_t punpcklwd_s (int32x2_t s, int32x2_t t);
  31894. int16x4_t punpcklhw_s (int16x4_t s, int16x4_t t);
  31895. int8x8_t punpcklbh_s (int8x8_t s, int8x8_t t);
  31896. * Menu:
  31897. * Paired-Single Arithmetic::
  31898. * Paired-Single Built-in Functions::
  31899. * MIPS-3D Built-in Functions::
  31900. 
  31901. File: gcc.info, Node: Paired-Single Arithmetic, Next: Paired-Single Built-in Functions, Up: MIPS Loongson Built-in Functions
  31902. 6.60.15.1 Paired-Single Arithmetic
  31903. ..................................
  31904. The table below lists the 'v2sf' operations for which hardware support
  31905. exists. 'a', 'b' and 'c' are 'v2sf' values and 'x' is an integral
  31906. value.
  31907. C code MIPS instruction
  31908. 'a + b' 'add.ps'
  31909. 'a - b' 'sub.ps'
  31910. '-a' 'neg.ps'
  31911. 'a * b' 'mul.ps'
  31912. 'a * b + c' 'madd.ps'
  31913. 'a * b - c' 'msub.ps'
  31914. '-(a * b + c)' 'nmadd.ps'
  31915. '-(a * b - c)' 'nmsub.ps'
  31916. 'x ? a : b' 'movn.ps'/'movz.ps'
  31917. Note that the multiply-accumulate instructions can be disabled using
  31918. the command-line option '-mno-fused-madd'.
  31919. 
  31920. 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
  31921. 6.60.15.2 Paired-Single Built-in Functions
  31922. ..........................................
  31923. The following paired-single functions map directly to a particular MIPS
  31924. instruction. Please refer to the architecture specification for details
  31925. on what each instruction does.
  31926. 'v2sf __builtin_mips_pll_ps (v2sf, v2sf)'
  31927. Pair lower lower ('pll.ps').
  31928. 'v2sf __builtin_mips_pul_ps (v2sf, v2sf)'
  31929. Pair upper lower ('pul.ps').
  31930. 'v2sf __builtin_mips_plu_ps (v2sf, v2sf)'
  31931. Pair lower upper ('plu.ps').
  31932. 'v2sf __builtin_mips_puu_ps (v2sf, v2sf)'
  31933. Pair upper upper ('puu.ps').
  31934. 'v2sf __builtin_mips_cvt_ps_s (float, float)'
  31935. Convert pair to paired single ('cvt.ps.s').
  31936. 'float __builtin_mips_cvt_s_pl (v2sf)'
  31937. Convert pair lower to single ('cvt.s.pl').
  31938. 'float __builtin_mips_cvt_s_pu (v2sf)'
  31939. Convert pair upper to single ('cvt.s.pu').
  31940. 'v2sf __builtin_mips_abs_ps (v2sf)'
  31941. Absolute value ('abs.ps').
  31942. 'v2sf __builtin_mips_alnv_ps (v2sf, v2sf, int)'
  31943. Align variable ('alnv.ps').
  31944. _Note:_ The value of the third parameter must be 0 or 4 modulo 8,
  31945. otherwise the result is unpredictable. Please read the instruction
  31946. description for details.
  31947. The following multi-instruction functions are also available. In each
  31948. case, COND can be any of the 16 floating-point conditions: 'f', 'un',
  31949. 'eq', 'ueq', 'olt', 'ult', 'ole', 'ule', 'sf', 'ngle', 'seq', 'ngl',
  31950. 'lt', 'nge', 'le' or 'ngt'.
  31951. 'v2sf __builtin_mips_movt_c_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  31952. 'v2sf __builtin_mips_movf_c_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  31953. Conditional move based on floating-point comparison ('c.COND.ps',
  31954. 'movt.ps'/'movf.ps').
  31955. The 'movt' functions return the value X computed by:
  31956. c.COND.ps CC,A,B
  31957. mov.ps X,C
  31958. movt.ps X,D,CC
  31959. The 'movf' functions are similar but use 'movf.ps' instead of
  31960. 'movt.ps'.
  31961. 'int __builtin_mips_upper_c_COND_ps (v2sf A, v2sf B)'
  31962. 'int __builtin_mips_lower_c_COND_ps (v2sf A, v2sf B)'
  31963. Comparison of two paired-single values ('c.COND.ps',
  31964. 'bc1t'/'bc1f').
  31965. These functions compare A and B using 'c.COND.ps' and return either
  31966. the upper or lower half of the result. For example:
  31967. v2sf a, b;
  31968. if (__builtin_mips_upper_c_eq_ps (a, b))
  31969. upper_halves_are_equal ();
  31970. else
  31971. upper_halves_are_unequal ();
  31972. if (__builtin_mips_lower_c_eq_ps (a, b))
  31973. lower_halves_are_equal ();
  31974. else
  31975. lower_halves_are_unequal ();
  31976. 
  31977. File: gcc.info, Node: MIPS-3D Built-in Functions, Prev: Paired-Single Built-in Functions, Up: MIPS Loongson Built-in Functions
  31978. 6.60.15.3 MIPS-3D Built-in Functions
  31979. ....................................
  31980. The MIPS-3D Application-Specific Extension (ASE) includes additional
  31981. paired-single instructions that are designed to improve the performance
  31982. of 3D graphics operations. Support for these instructions is controlled
  31983. by the '-mips3d' command-line option.
  31984. The functions listed below map directly to a particular MIPS-3D
  31985. instruction. Please refer to the architecture specification for more
  31986. details on what each instruction does.
  31987. 'v2sf __builtin_mips_addr_ps (v2sf, v2sf)'
  31988. Reduction add ('addr.ps').
  31989. 'v2sf __builtin_mips_mulr_ps (v2sf, v2sf)'
  31990. Reduction multiply ('mulr.ps').
  31991. 'v2sf __builtin_mips_cvt_pw_ps (v2sf)'
  31992. Convert paired single to paired word ('cvt.pw.ps').
  31993. 'v2sf __builtin_mips_cvt_ps_pw (v2sf)'
  31994. Convert paired word to paired single ('cvt.ps.pw').
  31995. 'float __builtin_mips_recip1_s (float)'
  31996. 'double __builtin_mips_recip1_d (double)'
  31997. 'v2sf __builtin_mips_recip1_ps (v2sf)'
  31998. Reduced-precision reciprocal (sequence step 1) ('recip1.FMT').
  31999. 'float __builtin_mips_recip2_s (float, float)'
  32000. 'double __builtin_mips_recip2_d (double, double)'
  32001. 'v2sf __builtin_mips_recip2_ps (v2sf, v2sf)'
  32002. Reduced-precision reciprocal (sequence step 2) ('recip2.FMT').
  32003. 'float __builtin_mips_rsqrt1_s (float)'
  32004. 'double __builtin_mips_rsqrt1_d (double)'
  32005. 'v2sf __builtin_mips_rsqrt1_ps (v2sf)'
  32006. Reduced-precision reciprocal square root (sequence step 1)
  32007. ('rsqrt1.FMT').
  32008. 'float __builtin_mips_rsqrt2_s (float, float)'
  32009. 'double __builtin_mips_rsqrt2_d (double, double)'
  32010. 'v2sf __builtin_mips_rsqrt2_ps (v2sf, v2sf)'
  32011. Reduced-precision reciprocal square root (sequence step 2)
  32012. ('rsqrt2.FMT').
  32013. The following multi-instruction functions are also available. In each
  32014. case, COND can be any of the 16 floating-point conditions: 'f', 'un',
  32015. 'eq', 'ueq', 'olt', 'ult', 'ole', 'ule', 'sf', 'ngle', 'seq', 'ngl',
  32016. 'lt', 'nge', 'le' or 'ngt'.
  32017. 'int __builtin_mips_cabs_COND_s (float A, float B)'
  32018. 'int __builtin_mips_cabs_COND_d (double A, double B)'
  32019. Absolute comparison of two scalar values ('cabs.COND.FMT',
  32020. 'bc1t'/'bc1f').
  32021. These functions compare A and B using 'cabs.COND.s' or
  32022. 'cabs.COND.d' and return the result as a boolean value. For
  32023. example:
  32024. float a, b;
  32025. if (__builtin_mips_cabs_eq_s (a, b))
  32026. true ();
  32027. else
  32028. false ();
  32029. 'int __builtin_mips_upper_cabs_COND_ps (v2sf A, v2sf B)'
  32030. 'int __builtin_mips_lower_cabs_COND_ps (v2sf A, v2sf B)'
  32031. Absolute comparison of two paired-single values ('cabs.COND.ps',
  32032. 'bc1t'/'bc1f').
  32033. These functions compare A and B using 'cabs.COND.ps' and return
  32034. either the upper or lower half of the result. For example:
  32035. v2sf a, b;
  32036. if (__builtin_mips_upper_cabs_eq_ps (a, b))
  32037. upper_halves_are_equal ();
  32038. else
  32039. upper_halves_are_unequal ();
  32040. if (__builtin_mips_lower_cabs_eq_ps (a, b))
  32041. lower_halves_are_equal ();
  32042. else
  32043. lower_halves_are_unequal ();
  32044. 'v2sf __builtin_mips_movt_cabs_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  32045. 'v2sf __builtin_mips_movf_cabs_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  32046. Conditional move based on absolute comparison ('cabs.COND.ps',
  32047. 'movt.ps'/'movf.ps').
  32048. The 'movt' functions return the value X computed by:
  32049. cabs.COND.ps CC,A,B
  32050. mov.ps X,C
  32051. movt.ps X,D,CC
  32052. The 'movf' functions are similar but use 'movf.ps' instead of
  32053. 'movt.ps'.
  32054. 'int __builtin_mips_any_c_COND_ps (v2sf A, v2sf B)'
  32055. 'int __builtin_mips_all_c_COND_ps (v2sf A, v2sf B)'
  32056. 'int __builtin_mips_any_cabs_COND_ps (v2sf A, v2sf B)'
  32057. 'int __builtin_mips_all_cabs_COND_ps (v2sf A, v2sf B)'
  32058. Comparison of two paired-single values ('c.COND.ps'/'cabs.COND.ps',
  32059. 'bc1any2t'/'bc1any2f').
  32060. These functions compare A and B using 'c.COND.ps' or
  32061. 'cabs.COND.ps'. The 'any' forms return true if either result is
  32062. true and the 'all' forms return true if both results are true. For
  32063. example:
  32064. v2sf a, b;
  32065. if (__builtin_mips_any_c_eq_ps (a, b))
  32066. one_is_true ();
  32067. else
  32068. both_are_false ();
  32069. if (__builtin_mips_all_c_eq_ps (a, b))
  32070. both_are_true ();
  32071. else
  32072. one_is_false ();
  32073. 'int __builtin_mips_any_c_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  32074. 'int __builtin_mips_all_c_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  32075. 'int __builtin_mips_any_cabs_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  32076. 'int __builtin_mips_all_cabs_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  32077. Comparison of four paired-single values
  32078. ('c.COND.ps'/'cabs.COND.ps', 'bc1any4t'/'bc1any4f').
  32079. These functions use 'c.COND.ps' or 'cabs.COND.ps' to compare A with
  32080. B and to compare C with D. The 'any' forms return true if any of
  32081. the four results are true and the 'all' forms return true if all
  32082. four results are true. For example:
  32083. v2sf a, b, c, d;
  32084. if (__builtin_mips_any_c_eq_4s (a, b, c, d))
  32085. some_are_true ();
  32086. else
  32087. all_are_false ();
  32088. if (__builtin_mips_all_c_eq_4s (a, b, c, d))
  32089. all_are_true ();
  32090. else
  32091. some_are_false ();
  32092. 
  32093. File: gcc.info, Node: MIPS SIMD Architecture (MSA) Support, Next: Other MIPS Built-in Functions, Prev: MIPS Loongson Built-in Functions, Up: Target Builtins
  32094. 6.60.16 MIPS SIMD Architecture (MSA) Support
  32095. --------------------------------------------
  32096. * Menu:
  32097. * MIPS SIMD Architecture Built-in Functions::
  32098. GCC provides intrinsics to access the SIMD instructions provided by the
  32099. MSA MIPS SIMD Architecture. The interface is made available by
  32100. including '<msa.h>' and using '-mmsa -mhard-float -mfp64 -mnan=2008'.
  32101. For each '__builtin_msa_*', there is a shortened name of the intrinsic,
  32102. '__msa_*'.
  32103. MSA implements 128-bit wide vector registers, operating on 8-, 16-, 32-
  32104. and 64-bit integer, 16- and 32-bit fixed-point, or 32- and 64-bit
  32105. floating point data elements. The following vectors typedefs are
  32106. included in 'msa.h':
  32107. * 'v16i8', a vector of sixteen signed 8-bit integers;
  32108. * 'v16u8', a vector of sixteen unsigned 8-bit integers;
  32109. * 'v8i16', a vector of eight signed 16-bit integers;
  32110. * 'v8u16', a vector of eight unsigned 16-bit integers;
  32111. * 'v4i32', a vector of four signed 32-bit integers;
  32112. * 'v4u32', a vector of four unsigned 32-bit integers;
  32113. * 'v2i64', a vector of two signed 64-bit integers;
  32114. * 'v2u64', a vector of two unsigned 64-bit integers;
  32115. * 'v4f32', a vector of four 32-bit floats;
  32116. * 'v2f64', a vector of two 64-bit doubles.
  32117. Instructions and corresponding built-ins may have additional
  32118. restrictions and/or input/output values manipulated:
  32119. * 'imm0_1', an integer literal in range 0 to 1;
  32120. * 'imm0_3', an integer literal in range 0 to 3;
  32121. * 'imm0_7', an integer literal in range 0 to 7;
  32122. * 'imm0_15', an integer literal in range 0 to 15;
  32123. * 'imm0_31', an integer literal in range 0 to 31;
  32124. * 'imm0_63', an integer literal in range 0 to 63;
  32125. * 'imm0_255', an integer literal in range 0 to 255;
  32126. * 'imm_n16_15', an integer literal in range -16 to 15;
  32127. * 'imm_n512_511', an integer literal in range -512 to 511;
  32128. * 'imm_n1024_1022', an integer literal in range -512 to 511 left
  32129. shifted by 1 bit, i.e., -1024, -1022, ..., 1020, 1022;
  32130. * 'imm_n2048_2044', an integer literal in range -512 to 511 left
  32131. shifted by 2 bits, i.e., -2048, -2044, ..., 2040, 2044;
  32132. * 'imm_n4096_4088', an integer literal in range -512 to 511 left
  32133. shifted by 3 bits, i.e., -4096, -4088, ..., 4080, 4088;
  32134. * 'imm1_4', an integer literal in range 1 to 4;
  32135. * 'i32, i64, u32, u64, f32, f64', defined as follows:
  32136. {
  32137. typedef int i32;
  32138. #if __LONG_MAX__ == __LONG_LONG_MAX__
  32139. typedef long i64;
  32140. #else
  32141. typedef long long i64;
  32142. #endif
  32143. typedef unsigned int u32;
  32144. #if __LONG_MAX__ == __LONG_LONG_MAX__
  32145. typedef unsigned long u64;
  32146. #else
  32147. typedef unsigned long long u64;
  32148. #endif
  32149. typedef double f64;
  32150. typedef float f32;
  32151. }
  32152. 
  32153. File: gcc.info, Node: MIPS SIMD Architecture Built-in Functions, Up: MIPS SIMD Architecture (MSA) Support
  32154. 6.60.16.1 MIPS SIMD Architecture Built-in Functions
  32155. ...................................................
  32156. The intrinsics provided are listed below; each is named after the
  32157. machine instruction.
  32158. v16i8 __builtin_msa_add_a_b (v16i8, v16i8);
  32159. v8i16 __builtin_msa_add_a_h (v8i16, v8i16);
  32160. v4i32 __builtin_msa_add_a_w (v4i32, v4i32);
  32161. v2i64 __builtin_msa_add_a_d (v2i64, v2i64);
  32162. v16i8 __builtin_msa_adds_a_b (v16i8, v16i8);
  32163. v8i16 __builtin_msa_adds_a_h (v8i16, v8i16);
  32164. v4i32 __builtin_msa_adds_a_w (v4i32, v4i32);
  32165. v2i64 __builtin_msa_adds_a_d (v2i64, v2i64);
  32166. v16i8 __builtin_msa_adds_s_b (v16i8, v16i8);
  32167. v8i16 __builtin_msa_adds_s_h (v8i16, v8i16);
  32168. v4i32 __builtin_msa_adds_s_w (v4i32, v4i32);
  32169. v2i64 __builtin_msa_adds_s_d (v2i64, v2i64);
  32170. v16u8 __builtin_msa_adds_u_b (v16u8, v16u8);
  32171. v8u16 __builtin_msa_adds_u_h (v8u16, v8u16);
  32172. v4u32 __builtin_msa_adds_u_w (v4u32, v4u32);
  32173. v2u64 __builtin_msa_adds_u_d (v2u64, v2u64);
  32174. v16i8 __builtin_msa_addv_b (v16i8, v16i8);
  32175. v8i16 __builtin_msa_addv_h (v8i16, v8i16);
  32176. v4i32 __builtin_msa_addv_w (v4i32, v4i32);
  32177. v2i64 __builtin_msa_addv_d (v2i64, v2i64);
  32178. v16i8 __builtin_msa_addvi_b (v16i8, imm0_31);
  32179. v8i16 __builtin_msa_addvi_h (v8i16, imm0_31);
  32180. v4i32 __builtin_msa_addvi_w (v4i32, imm0_31);
  32181. v2i64 __builtin_msa_addvi_d (v2i64, imm0_31);
  32182. v16u8 __builtin_msa_and_v (v16u8, v16u8);
  32183. v16u8 __builtin_msa_andi_b (v16u8, imm0_255);
  32184. v16i8 __builtin_msa_asub_s_b (v16i8, v16i8);
  32185. v8i16 __builtin_msa_asub_s_h (v8i16, v8i16);
  32186. v4i32 __builtin_msa_asub_s_w (v4i32, v4i32);
  32187. v2i64 __builtin_msa_asub_s_d (v2i64, v2i64);
  32188. v16u8 __builtin_msa_asub_u_b (v16u8, v16u8);
  32189. v8u16 __builtin_msa_asub_u_h (v8u16, v8u16);
  32190. v4u32 __builtin_msa_asub_u_w (v4u32, v4u32);
  32191. v2u64 __builtin_msa_asub_u_d (v2u64, v2u64);
  32192. v16i8 __builtin_msa_ave_s_b (v16i8, v16i8);
  32193. v8i16 __builtin_msa_ave_s_h (v8i16, v8i16);
  32194. v4i32 __builtin_msa_ave_s_w (v4i32, v4i32);
  32195. v2i64 __builtin_msa_ave_s_d (v2i64, v2i64);
  32196. v16u8 __builtin_msa_ave_u_b (v16u8, v16u8);
  32197. v8u16 __builtin_msa_ave_u_h (v8u16, v8u16);
  32198. v4u32 __builtin_msa_ave_u_w (v4u32, v4u32);
  32199. v2u64 __builtin_msa_ave_u_d (v2u64, v2u64);
  32200. v16i8 __builtin_msa_aver_s_b (v16i8, v16i8);
  32201. v8i16 __builtin_msa_aver_s_h (v8i16, v8i16);
  32202. v4i32 __builtin_msa_aver_s_w (v4i32, v4i32);
  32203. v2i64 __builtin_msa_aver_s_d (v2i64, v2i64);
  32204. v16u8 __builtin_msa_aver_u_b (v16u8, v16u8);
  32205. v8u16 __builtin_msa_aver_u_h (v8u16, v8u16);
  32206. v4u32 __builtin_msa_aver_u_w (v4u32, v4u32);
  32207. v2u64 __builtin_msa_aver_u_d (v2u64, v2u64);
  32208. v16u8 __builtin_msa_bclr_b (v16u8, v16u8);
  32209. v8u16 __builtin_msa_bclr_h (v8u16, v8u16);
  32210. v4u32 __builtin_msa_bclr_w (v4u32, v4u32);
  32211. v2u64 __builtin_msa_bclr_d (v2u64, v2u64);
  32212. v16u8 __builtin_msa_bclri_b (v16u8, imm0_7);
  32213. v8u16 __builtin_msa_bclri_h (v8u16, imm0_15);
  32214. v4u32 __builtin_msa_bclri_w (v4u32, imm0_31);
  32215. v2u64 __builtin_msa_bclri_d (v2u64, imm0_63);
  32216. v16u8 __builtin_msa_binsl_b (v16u8, v16u8, v16u8);
  32217. v8u16 __builtin_msa_binsl_h (v8u16, v8u16, v8u16);
  32218. v4u32 __builtin_msa_binsl_w (v4u32, v4u32, v4u32);
  32219. v2u64 __builtin_msa_binsl_d (v2u64, v2u64, v2u64);
  32220. v16u8 __builtin_msa_binsli_b (v16u8, v16u8, imm0_7);
  32221. v8u16 __builtin_msa_binsli_h (v8u16, v8u16, imm0_15);
  32222. v4u32 __builtin_msa_binsli_w (v4u32, v4u32, imm0_31);
  32223. v2u64 __builtin_msa_binsli_d (v2u64, v2u64, imm0_63);
  32224. v16u8 __builtin_msa_binsr_b (v16u8, v16u8, v16u8);
  32225. v8u16 __builtin_msa_binsr_h (v8u16, v8u16, v8u16);
  32226. v4u32 __builtin_msa_binsr_w (v4u32, v4u32, v4u32);
  32227. v2u64 __builtin_msa_binsr_d (v2u64, v2u64, v2u64);
  32228. v16u8 __builtin_msa_binsri_b (v16u8, v16u8, imm0_7);
  32229. v8u16 __builtin_msa_binsri_h (v8u16, v8u16, imm0_15);
  32230. v4u32 __builtin_msa_binsri_w (v4u32, v4u32, imm0_31);
  32231. v2u64 __builtin_msa_binsri_d (v2u64, v2u64, imm0_63);
  32232. v16u8 __builtin_msa_bmnz_v (v16u8, v16u8, v16u8);
  32233. v16u8 __builtin_msa_bmnzi_b (v16u8, v16u8, imm0_255);
  32234. v16u8 __builtin_msa_bmz_v (v16u8, v16u8, v16u8);
  32235. v16u8 __builtin_msa_bmzi_b (v16u8, v16u8, imm0_255);
  32236. v16u8 __builtin_msa_bneg_b (v16u8, v16u8);
  32237. v8u16 __builtin_msa_bneg_h (v8u16, v8u16);
  32238. v4u32 __builtin_msa_bneg_w (v4u32, v4u32);
  32239. v2u64 __builtin_msa_bneg_d (v2u64, v2u64);
  32240. v16u8 __builtin_msa_bnegi_b (v16u8, imm0_7);
  32241. v8u16 __builtin_msa_bnegi_h (v8u16, imm0_15);
  32242. v4u32 __builtin_msa_bnegi_w (v4u32, imm0_31);
  32243. v2u64 __builtin_msa_bnegi_d (v2u64, imm0_63);
  32244. i32 __builtin_msa_bnz_b (v16u8);
  32245. i32 __builtin_msa_bnz_h (v8u16);
  32246. i32 __builtin_msa_bnz_w (v4u32);
  32247. i32 __builtin_msa_bnz_d (v2u64);
  32248. i32 __builtin_msa_bnz_v (v16u8);
  32249. v16u8 __builtin_msa_bsel_v (v16u8, v16u8, v16u8);
  32250. v16u8 __builtin_msa_bseli_b (v16u8, v16u8, imm0_255);
  32251. v16u8 __builtin_msa_bset_b (v16u8, v16u8);
  32252. v8u16 __builtin_msa_bset_h (v8u16, v8u16);
  32253. v4u32 __builtin_msa_bset_w (v4u32, v4u32);
  32254. v2u64 __builtin_msa_bset_d (v2u64, v2u64);
  32255. v16u8 __builtin_msa_bseti_b (v16u8, imm0_7);
  32256. v8u16 __builtin_msa_bseti_h (v8u16, imm0_15);
  32257. v4u32 __builtin_msa_bseti_w (v4u32, imm0_31);
  32258. v2u64 __builtin_msa_bseti_d (v2u64, imm0_63);
  32259. i32 __builtin_msa_bz_b (v16u8);
  32260. i32 __builtin_msa_bz_h (v8u16);
  32261. i32 __builtin_msa_bz_w (v4u32);
  32262. i32 __builtin_msa_bz_d (v2u64);
  32263. i32 __builtin_msa_bz_v (v16u8);
  32264. v16i8 __builtin_msa_ceq_b (v16i8, v16i8);
  32265. v8i16 __builtin_msa_ceq_h (v8i16, v8i16);
  32266. v4i32 __builtin_msa_ceq_w (v4i32, v4i32);
  32267. v2i64 __builtin_msa_ceq_d (v2i64, v2i64);
  32268. v16i8 __builtin_msa_ceqi_b (v16i8, imm_n16_15);
  32269. v8i16 __builtin_msa_ceqi_h (v8i16, imm_n16_15);
  32270. v4i32 __builtin_msa_ceqi_w (v4i32, imm_n16_15);
  32271. v2i64 __builtin_msa_ceqi_d (v2i64, imm_n16_15);
  32272. i32 __builtin_msa_cfcmsa (imm0_31);
  32273. v16i8 __builtin_msa_cle_s_b (v16i8, v16i8);
  32274. v8i16 __builtin_msa_cle_s_h (v8i16, v8i16);
  32275. v4i32 __builtin_msa_cle_s_w (v4i32, v4i32);
  32276. v2i64 __builtin_msa_cle_s_d (v2i64, v2i64);
  32277. v16i8 __builtin_msa_cle_u_b (v16u8, v16u8);
  32278. v8i16 __builtin_msa_cle_u_h (v8u16, v8u16);
  32279. v4i32 __builtin_msa_cle_u_w (v4u32, v4u32);
  32280. v2i64 __builtin_msa_cle_u_d (v2u64, v2u64);
  32281. v16i8 __builtin_msa_clei_s_b (v16i8, imm_n16_15);
  32282. v8i16 __builtin_msa_clei_s_h (v8i16, imm_n16_15);
  32283. v4i32 __builtin_msa_clei_s_w (v4i32, imm_n16_15);
  32284. v2i64 __builtin_msa_clei_s_d (v2i64, imm_n16_15);
  32285. v16i8 __builtin_msa_clei_u_b (v16u8, imm0_31);
  32286. v8i16 __builtin_msa_clei_u_h (v8u16, imm0_31);
  32287. v4i32 __builtin_msa_clei_u_w (v4u32, imm0_31);
  32288. v2i64 __builtin_msa_clei_u_d (v2u64, imm0_31);
  32289. v16i8 __builtin_msa_clt_s_b (v16i8, v16i8);
  32290. v8i16 __builtin_msa_clt_s_h (v8i16, v8i16);
  32291. v4i32 __builtin_msa_clt_s_w (v4i32, v4i32);
  32292. v2i64 __builtin_msa_clt_s_d (v2i64, v2i64);
  32293. v16i8 __builtin_msa_clt_u_b (v16u8, v16u8);
  32294. v8i16 __builtin_msa_clt_u_h (v8u16, v8u16);
  32295. v4i32 __builtin_msa_clt_u_w (v4u32, v4u32);
  32296. v2i64 __builtin_msa_clt_u_d (v2u64, v2u64);
  32297. v16i8 __builtin_msa_clti_s_b (v16i8, imm_n16_15);
  32298. v8i16 __builtin_msa_clti_s_h (v8i16, imm_n16_15);
  32299. v4i32 __builtin_msa_clti_s_w (v4i32, imm_n16_15);
  32300. v2i64 __builtin_msa_clti_s_d (v2i64, imm_n16_15);
  32301. v16i8 __builtin_msa_clti_u_b (v16u8, imm0_31);
  32302. v8i16 __builtin_msa_clti_u_h (v8u16, imm0_31);
  32303. v4i32 __builtin_msa_clti_u_w (v4u32, imm0_31);
  32304. v2i64 __builtin_msa_clti_u_d (v2u64, imm0_31);
  32305. i32 __builtin_msa_copy_s_b (v16i8, imm0_15);
  32306. i32 __builtin_msa_copy_s_h (v8i16, imm0_7);
  32307. i32 __builtin_msa_copy_s_w (v4i32, imm0_3);
  32308. i64 __builtin_msa_copy_s_d (v2i64, imm0_1);
  32309. u32 __builtin_msa_copy_u_b (v16i8, imm0_15);
  32310. u32 __builtin_msa_copy_u_h (v8i16, imm0_7);
  32311. u32 __builtin_msa_copy_u_w (v4i32, imm0_3);
  32312. u64 __builtin_msa_copy_u_d (v2i64, imm0_1);
  32313. void __builtin_msa_ctcmsa (imm0_31, i32);
  32314. v16i8 __builtin_msa_div_s_b (v16i8, v16i8);
  32315. v8i16 __builtin_msa_div_s_h (v8i16, v8i16);
  32316. v4i32 __builtin_msa_div_s_w (v4i32, v4i32);
  32317. v2i64 __builtin_msa_div_s_d (v2i64, v2i64);
  32318. v16u8 __builtin_msa_div_u_b (v16u8, v16u8);
  32319. v8u16 __builtin_msa_div_u_h (v8u16, v8u16);
  32320. v4u32 __builtin_msa_div_u_w (v4u32, v4u32);
  32321. v2u64 __builtin_msa_div_u_d (v2u64, v2u64);
  32322. v8i16 __builtin_msa_dotp_s_h (v16i8, v16i8);
  32323. v4i32 __builtin_msa_dotp_s_w (v8i16, v8i16);
  32324. v2i64 __builtin_msa_dotp_s_d (v4i32, v4i32);
  32325. v8u16 __builtin_msa_dotp_u_h (v16u8, v16u8);
  32326. v4u32 __builtin_msa_dotp_u_w (v8u16, v8u16);
  32327. v2u64 __builtin_msa_dotp_u_d (v4u32, v4u32);
  32328. v8i16 __builtin_msa_dpadd_s_h (v8i16, v16i8, v16i8);
  32329. v4i32 __builtin_msa_dpadd_s_w (v4i32, v8i16, v8i16);
  32330. v2i64 __builtin_msa_dpadd_s_d (v2i64, v4i32, v4i32);
  32331. v8u16 __builtin_msa_dpadd_u_h (v8u16, v16u8, v16u8);
  32332. v4u32 __builtin_msa_dpadd_u_w (v4u32, v8u16, v8u16);
  32333. v2u64 __builtin_msa_dpadd_u_d (v2u64, v4u32, v4u32);
  32334. v8i16 __builtin_msa_dpsub_s_h (v8i16, v16i8, v16i8);
  32335. v4i32 __builtin_msa_dpsub_s_w (v4i32, v8i16, v8i16);
  32336. v2i64 __builtin_msa_dpsub_s_d (v2i64, v4i32, v4i32);
  32337. v8i16 __builtin_msa_dpsub_u_h (v8i16, v16u8, v16u8);
  32338. v4i32 __builtin_msa_dpsub_u_w (v4i32, v8u16, v8u16);
  32339. v2i64 __builtin_msa_dpsub_u_d (v2i64, v4u32, v4u32);
  32340. v4f32 __builtin_msa_fadd_w (v4f32, v4f32);
  32341. v2f64 __builtin_msa_fadd_d (v2f64, v2f64);
  32342. v4i32 __builtin_msa_fcaf_w (v4f32, v4f32);
  32343. v2i64 __builtin_msa_fcaf_d (v2f64, v2f64);
  32344. v4i32 __builtin_msa_fceq_w (v4f32, v4f32);
  32345. v2i64 __builtin_msa_fceq_d (v2f64, v2f64);
  32346. v4i32 __builtin_msa_fclass_w (v4f32);
  32347. v2i64 __builtin_msa_fclass_d (v2f64);
  32348. v4i32 __builtin_msa_fcle_w (v4f32, v4f32);
  32349. v2i64 __builtin_msa_fcle_d (v2f64, v2f64);
  32350. v4i32 __builtin_msa_fclt_w (v4f32, v4f32);
  32351. v2i64 __builtin_msa_fclt_d (v2f64, v2f64);
  32352. v4i32 __builtin_msa_fcne_w (v4f32, v4f32);
  32353. v2i64 __builtin_msa_fcne_d (v2f64, v2f64);
  32354. v4i32 __builtin_msa_fcor_w (v4f32, v4f32);
  32355. v2i64 __builtin_msa_fcor_d (v2f64, v2f64);
  32356. v4i32 __builtin_msa_fcueq_w (v4f32, v4f32);
  32357. v2i64 __builtin_msa_fcueq_d (v2f64, v2f64);
  32358. v4i32 __builtin_msa_fcule_w (v4f32, v4f32);
  32359. v2i64 __builtin_msa_fcule_d (v2f64, v2f64);
  32360. v4i32 __builtin_msa_fcult_w (v4f32, v4f32);
  32361. v2i64 __builtin_msa_fcult_d (v2f64, v2f64);
  32362. v4i32 __builtin_msa_fcun_w (v4f32, v4f32);
  32363. v2i64 __builtin_msa_fcun_d (v2f64, v2f64);
  32364. v4i32 __builtin_msa_fcune_w (v4f32, v4f32);
  32365. v2i64 __builtin_msa_fcune_d (v2f64, v2f64);
  32366. v4f32 __builtin_msa_fdiv_w (v4f32, v4f32);
  32367. v2f64 __builtin_msa_fdiv_d (v2f64, v2f64);
  32368. v8i16 __builtin_msa_fexdo_h (v4f32, v4f32);
  32369. v4f32 __builtin_msa_fexdo_w (v2f64, v2f64);
  32370. v4f32 __builtin_msa_fexp2_w (v4f32, v4i32);
  32371. v2f64 __builtin_msa_fexp2_d (v2f64, v2i64);
  32372. v4f32 __builtin_msa_fexupl_w (v8i16);
  32373. v2f64 __builtin_msa_fexupl_d (v4f32);
  32374. v4f32 __builtin_msa_fexupr_w (v8i16);
  32375. v2f64 __builtin_msa_fexupr_d (v4f32);
  32376. v4f32 __builtin_msa_ffint_s_w (v4i32);
  32377. v2f64 __builtin_msa_ffint_s_d (v2i64);
  32378. v4f32 __builtin_msa_ffint_u_w (v4u32);
  32379. v2f64 __builtin_msa_ffint_u_d (v2u64);
  32380. v4f32 __builtin_msa_ffql_w (v8i16);
  32381. v2f64 __builtin_msa_ffql_d (v4i32);
  32382. v4f32 __builtin_msa_ffqr_w (v8i16);
  32383. v2f64 __builtin_msa_ffqr_d (v4i32);
  32384. v16i8 __builtin_msa_fill_b (i32);
  32385. v8i16 __builtin_msa_fill_h (i32);
  32386. v4i32 __builtin_msa_fill_w (i32);
  32387. v2i64 __builtin_msa_fill_d (i64);
  32388. v4f32 __builtin_msa_flog2_w (v4f32);
  32389. v2f64 __builtin_msa_flog2_d (v2f64);
  32390. v4f32 __builtin_msa_fmadd_w (v4f32, v4f32, v4f32);
  32391. v2f64 __builtin_msa_fmadd_d (v2f64, v2f64, v2f64);
  32392. v4f32 __builtin_msa_fmax_w (v4f32, v4f32);
  32393. v2f64 __builtin_msa_fmax_d (v2f64, v2f64);
  32394. v4f32 __builtin_msa_fmax_a_w (v4f32, v4f32);
  32395. v2f64 __builtin_msa_fmax_a_d (v2f64, v2f64);
  32396. v4f32 __builtin_msa_fmin_w (v4f32, v4f32);
  32397. v2f64 __builtin_msa_fmin_d (v2f64, v2f64);
  32398. v4f32 __builtin_msa_fmin_a_w (v4f32, v4f32);
  32399. v2f64 __builtin_msa_fmin_a_d (v2f64, v2f64);
  32400. v4f32 __builtin_msa_fmsub_w (v4f32, v4f32, v4f32);
  32401. v2f64 __builtin_msa_fmsub_d (v2f64, v2f64, v2f64);
  32402. v4f32 __builtin_msa_fmul_w (v4f32, v4f32);
  32403. v2f64 __builtin_msa_fmul_d (v2f64, v2f64);
  32404. v4f32 __builtin_msa_frint_w (v4f32);
  32405. v2f64 __builtin_msa_frint_d (v2f64);
  32406. v4f32 __builtin_msa_frcp_w (v4f32);
  32407. v2f64 __builtin_msa_frcp_d (v2f64);
  32408. v4f32 __builtin_msa_frsqrt_w (v4f32);
  32409. v2f64 __builtin_msa_frsqrt_d (v2f64);
  32410. v4i32 __builtin_msa_fsaf_w (v4f32, v4f32);
  32411. v2i64 __builtin_msa_fsaf_d (v2f64, v2f64);
  32412. v4i32 __builtin_msa_fseq_w (v4f32, v4f32);
  32413. v2i64 __builtin_msa_fseq_d (v2f64, v2f64);
  32414. v4i32 __builtin_msa_fsle_w (v4f32, v4f32);
  32415. v2i64 __builtin_msa_fsle_d (v2f64, v2f64);
  32416. v4i32 __builtin_msa_fslt_w (v4f32, v4f32);
  32417. v2i64 __builtin_msa_fslt_d (v2f64, v2f64);
  32418. v4i32 __builtin_msa_fsne_w (v4f32, v4f32);
  32419. v2i64 __builtin_msa_fsne_d (v2f64, v2f64);
  32420. v4i32 __builtin_msa_fsor_w (v4f32, v4f32);
  32421. v2i64 __builtin_msa_fsor_d (v2f64, v2f64);
  32422. v4f32 __builtin_msa_fsqrt_w (v4f32);
  32423. v2f64 __builtin_msa_fsqrt_d (v2f64);
  32424. v4f32 __builtin_msa_fsub_w (v4f32, v4f32);
  32425. v2f64 __builtin_msa_fsub_d (v2f64, v2f64);
  32426. v4i32 __builtin_msa_fsueq_w (v4f32, v4f32);
  32427. v2i64 __builtin_msa_fsueq_d (v2f64, v2f64);
  32428. v4i32 __builtin_msa_fsule_w (v4f32, v4f32);
  32429. v2i64 __builtin_msa_fsule_d (v2f64, v2f64);
  32430. v4i32 __builtin_msa_fsult_w (v4f32, v4f32);
  32431. v2i64 __builtin_msa_fsult_d (v2f64, v2f64);
  32432. v4i32 __builtin_msa_fsun_w (v4f32, v4f32);
  32433. v2i64 __builtin_msa_fsun_d (v2f64, v2f64);
  32434. v4i32 __builtin_msa_fsune_w (v4f32, v4f32);
  32435. v2i64 __builtin_msa_fsune_d (v2f64, v2f64);
  32436. v4i32 __builtin_msa_ftint_s_w (v4f32);
  32437. v2i64 __builtin_msa_ftint_s_d (v2f64);
  32438. v4u32 __builtin_msa_ftint_u_w (v4f32);
  32439. v2u64 __builtin_msa_ftint_u_d (v2f64);
  32440. v8i16 __builtin_msa_ftq_h (v4f32, v4f32);
  32441. v4i32 __builtin_msa_ftq_w (v2f64, v2f64);
  32442. v4i32 __builtin_msa_ftrunc_s_w (v4f32);
  32443. v2i64 __builtin_msa_ftrunc_s_d (v2f64);
  32444. v4u32 __builtin_msa_ftrunc_u_w (v4f32);
  32445. v2u64 __builtin_msa_ftrunc_u_d (v2f64);
  32446. v8i16 __builtin_msa_hadd_s_h (v16i8, v16i8);
  32447. v4i32 __builtin_msa_hadd_s_w (v8i16, v8i16);
  32448. v2i64 __builtin_msa_hadd_s_d (v4i32, v4i32);
  32449. v8u16 __builtin_msa_hadd_u_h (v16u8, v16u8);
  32450. v4u32 __builtin_msa_hadd_u_w (v8u16, v8u16);
  32451. v2u64 __builtin_msa_hadd_u_d (v4u32, v4u32);
  32452. v8i16 __builtin_msa_hsub_s_h (v16i8, v16i8);
  32453. v4i32 __builtin_msa_hsub_s_w (v8i16, v8i16);
  32454. v2i64 __builtin_msa_hsub_s_d (v4i32, v4i32);
  32455. v8i16 __builtin_msa_hsub_u_h (v16u8, v16u8);
  32456. v4i32 __builtin_msa_hsub_u_w (v8u16, v8u16);
  32457. v2i64 __builtin_msa_hsub_u_d (v4u32, v4u32);
  32458. v16i8 __builtin_msa_ilvev_b (v16i8, v16i8);
  32459. v8i16 __builtin_msa_ilvev_h (v8i16, v8i16);
  32460. v4i32 __builtin_msa_ilvev_w (v4i32, v4i32);
  32461. v2i64 __builtin_msa_ilvev_d (v2i64, v2i64);
  32462. v16i8 __builtin_msa_ilvl_b (v16i8, v16i8);
  32463. v8i16 __builtin_msa_ilvl_h (v8i16, v8i16);
  32464. v4i32 __builtin_msa_ilvl_w (v4i32, v4i32);
  32465. v2i64 __builtin_msa_ilvl_d (v2i64, v2i64);
  32466. v16i8 __builtin_msa_ilvod_b (v16i8, v16i8);
  32467. v8i16 __builtin_msa_ilvod_h (v8i16, v8i16);
  32468. v4i32 __builtin_msa_ilvod_w (v4i32, v4i32);
  32469. v2i64 __builtin_msa_ilvod_d (v2i64, v2i64);
  32470. v16i8 __builtin_msa_ilvr_b (v16i8, v16i8);
  32471. v8i16 __builtin_msa_ilvr_h (v8i16, v8i16);
  32472. v4i32 __builtin_msa_ilvr_w (v4i32, v4i32);
  32473. v2i64 __builtin_msa_ilvr_d (v2i64, v2i64);
  32474. v16i8 __builtin_msa_insert_b (v16i8, imm0_15, i32);
  32475. v8i16 __builtin_msa_insert_h (v8i16, imm0_7, i32);
  32476. v4i32 __builtin_msa_insert_w (v4i32, imm0_3, i32);
  32477. v2i64 __builtin_msa_insert_d (v2i64, imm0_1, i64);
  32478. v16i8 __builtin_msa_insve_b (v16i8, imm0_15, v16i8);
  32479. v8i16 __builtin_msa_insve_h (v8i16, imm0_7, v8i16);
  32480. v4i32 __builtin_msa_insve_w (v4i32, imm0_3, v4i32);
  32481. v2i64 __builtin_msa_insve_d (v2i64, imm0_1, v2i64);
  32482. v16i8 __builtin_msa_ld_b (void *, imm_n512_511);
  32483. v8i16 __builtin_msa_ld_h (void *, imm_n1024_1022);
  32484. v4i32 __builtin_msa_ld_w (void *, imm_n2048_2044);
  32485. v2i64 __builtin_msa_ld_d (void *, imm_n4096_4088);
  32486. v16i8 __builtin_msa_ldi_b (imm_n512_511);
  32487. v8i16 __builtin_msa_ldi_h (imm_n512_511);
  32488. v4i32 __builtin_msa_ldi_w (imm_n512_511);
  32489. v2i64 __builtin_msa_ldi_d (imm_n512_511);
  32490. v8i16 __builtin_msa_madd_q_h (v8i16, v8i16, v8i16);
  32491. v4i32 __builtin_msa_madd_q_w (v4i32, v4i32, v4i32);
  32492. v8i16 __builtin_msa_maddr_q_h (v8i16, v8i16, v8i16);
  32493. v4i32 __builtin_msa_maddr_q_w (v4i32, v4i32, v4i32);
  32494. v16i8 __builtin_msa_maddv_b (v16i8, v16i8, v16i8);
  32495. v8i16 __builtin_msa_maddv_h (v8i16, v8i16, v8i16);
  32496. v4i32 __builtin_msa_maddv_w (v4i32, v4i32, v4i32);
  32497. v2i64 __builtin_msa_maddv_d (v2i64, v2i64, v2i64);
  32498. v16i8 __builtin_msa_max_a_b (v16i8, v16i8);
  32499. v8i16 __builtin_msa_max_a_h (v8i16, v8i16);
  32500. v4i32 __builtin_msa_max_a_w (v4i32, v4i32);
  32501. v2i64 __builtin_msa_max_a_d (v2i64, v2i64);
  32502. v16i8 __builtin_msa_max_s_b (v16i8, v16i8);
  32503. v8i16 __builtin_msa_max_s_h (v8i16, v8i16);
  32504. v4i32 __builtin_msa_max_s_w (v4i32, v4i32);
  32505. v2i64 __builtin_msa_max_s_d (v2i64, v2i64);
  32506. v16u8 __builtin_msa_max_u_b (v16u8, v16u8);
  32507. v8u16 __builtin_msa_max_u_h (v8u16, v8u16);
  32508. v4u32 __builtin_msa_max_u_w (v4u32, v4u32);
  32509. v2u64 __builtin_msa_max_u_d (v2u64, v2u64);
  32510. v16i8 __builtin_msa_maxi_s_b (v16i8, imm_n16_15);
  32511. v8i16 __builtin_msa_maxi_s_h (v8i16, imm_n16_15);
  32512. v4i32 __builtin_msa_maxi_s_w (v4i32, imm_n16_15);
  32513. v2i64 __builtin_msa_maxi_s_d (v2i64, imm_n16_15);
  32514. v16u8 __builtin_msa_maxi_u_b (v16u8, imm0_31);
  32515. v8u16 __builtin_msa_maxi_u_h (v8u16, imm0_31);
  32516. v4u32 __builtin_msa_maxi_u_w (v4u32, imm0_31);
  32517. v2u64 __builtin_msa_maxi_u_d (v2u64, imm0_31);
  32518. v16i8 __builtin_msa_min_a_b (v16i8, v16i8);
  32519. v8i16 __builtin_msa_min_a_h (v8i16, v8i16);
  32520. v4i32 __builtin_msa_min_a_w (v4i32, v4i32);
  32521. v2i64 __builtin_msa_min_a_d (v2i64, v2i64);
  32522. v16i8 __builtin_msa_min_s_b (v16i8, v16i8);
  32523. v8i16 __builtin_msa_min_s_h (v8i16, v8i16);
  32524. v4i32 __builtin_msa_min_s_w (v4i32, v4i32);
  32525. v2i64 __builtin_msa_min_s_d (v2i64, v2i64);
  32526. v16u8 __builtin_msa_min_u_b (v16u8, v16u8);
  32527. v8u16 __builtin_msa_min_u_h (v8u16, v8u16);
  32528. v4u32 __builtin_msa_min_u_w (v4u32, v4u32);
  32529. v2u64 __builtin_msa_min_u_d (v2u64, v2u64);
  32530. v16i8 __builtin_msa_mini_s_b (v16i8, imm_n16_15);
  32531. v8i16 __builtin_msa_mini_s_h (v8i16, imm_n16_15);
  32532. v4i32 __builtin_msa_mini_s_w (v4i32, imm_n16_15);
  32533. v2i64 __builtin_msa_mini_s_d (v2i64, imm_n16_15);
  32534. v16u8 __builtin_msa_mini_u_b (v16u8, imm0_31);
  32535. v8u16 __builtin_msa_mini_u_h (v8u16, imm0_31);
  32536. v4u32 __builtin_msa_mini_u_w (v4u32, imm0_31);
  32537. v2u64 __builtin_msa_mini_u_d (v2u64, imm0_31);
  32538. v16i8 __builtin_msa_mod_s_b (v16i8, v16i8);
  32539. v8i16 __builtin_msa_mod_s_h (v8i16, v8i16);
  32540. v4i32 __builtin_msa_mod_s_w (v4i32, v4i32);
  32541. v2i64 __builtin_msa_mod_s_d (v2i64, v2i64);
  32542. v16u8 __builtin_msa_mod_u_b (v16u8, v16u8);
  32543. v8u16 __builtin_msa_mod_u_h (v8u16, v8u16);
  32544. v4u32 __builtin_msa_mod_u_w (v4u32, v4u32);
  32545. v2u64 __builtin_msa_mod_u_d (v2u64, v2u64);
  32546. v16i8 __builtin_msa_move_v (v16i8);
  32547. v8i16 __builtin_msa_msub_q_h (v8i16, v8i16, v8i16);
  32548. v4i32 __builtin_msa_msub_q_w (v4i32, v4i32, v4i32);
  32549. v8i16 __builtin_msa_msubr_q_h (v8i16, v8i16, v8i16);
  32550. v4i32 __builtin_msa_msubr_q_w (v4i32, v4i32, v4i32);
  32551. v16i8 __builtin_msa_msubv_b (v16i8, v16i8, v16i8);
  32552. v8i16 __builtin_msa_msubv_h (v8i16, v8i16, v8i16);
  32553. v4i32 __builtin_msa_msubv_w (v4i32, v4i32, v4i32);
  32554. v2i64 __builtin_msa_msubv_d (v2i64, v2i64, v2i64);
  32555. v8i16 __builtin_msa_mul_q_h (v8i16, v8i16);
  32556. v4i32 __builtin_msa_mul_q_w (v4i32, v4i32);
  32557. v8i16 __builtin_msa_mulr_q_h (v8i16, v8i16);
  32558. v4i32 __builtin_msa_mulr_q_w (v4i32, v4i32);
  32559. v16i8 __builtin_msa_mulv_b (v16i8, v16i8);
  32560. v8i16 __builtin_msa_mulv_h (v8i16, v8i16);
  32561. v4i32 __builtin_msa_mulv_w (v4i32, v4i32);
  32562. v2i64 __builtin_msa_mulv_d (v2i64, v2i64);
  32563. v16i8 __builtin_msa_nloc_b (v16i8);
  32564. v8i16 __builtin_msa_nloc_h (v8i16);
  32565. v4i32 __builtin_msa_nloc_w (v4i32);
  32566. v2i64 __builtin_msa_nloc_d (v2i64);
  32567. v16i8 __builtin_msa_nlzc_b (v16i8);
  32568. v8i16 __builtin_msa_nlzc_h (v8i16);
  32569. v4i32 __builtin_msa_nlzc_w (v4i32);
  32570. v2i64 __builtin_msa_nlzc_d (v2i64);
  32571. v16u8 __builtin_msa_nor_v (v16u8, v16u8);
  32572. v16u8 __builtin_msa_nori_b (v16u8, imm0_255);
  32573. v16u8 __builtin_msa_or_v (v16u8, v16u8);
  32574. v16u8 __builtin_msa_ori_b (v16u8, imm0_255);
  32575. v16i8 __builtin_msa_pckev_b (v16i8, v16i8);
  32576. v8i16 __builtin_msa_pckev_h (v8i16, v8i16);
  32577. v4i32 __builtin_msa_pckev_w (v4i32, v4i32);
  32578. v2i64 __builtin_msa_pckev_d (v2i64, v2i64);
  32579. v16i8 __builtin_msa_pckod_b (v16i8, v16i8);
  32580. v8i16 __builtin_msa_pckod_h (v8i16, v8i16);
  32581. v4i32 __builtin_msa_pckod_w (v4i32, v4i32);
  32582. v2i64 __builtin_msa_pckod_d (v2i64, v2i64);
  32583. v16i8 __builtin_msa_pcnt_b (v16i8);
  32584. v8i16 __builtin_msa_pcnt_h (v8i16);
  32585. v4i32 __builtin_msa_pcnt_w (v4i32);
  32586. v2i64 __builtin_msa_pcnt_d (v2i64);
  32587. v16i8 __builtin_msa_sat_s_b (v16i8, imm0_7);
  32588. v8i16 __builtin_msa_sat_s_h (v8i16, imm0_15);
  32589. v4i32 __builtin_msa_sat_s_w (v4i32, imm0_31);
  32590. v2i64 __builtin_msa_sat_s_d (v2i64, imm0_63);
  32591. v16u8 __builtin_msa_sat_u_b (v16u8, imm0_7);
  32592. v8u16 __builtin_msa_sat_u_h (v8u16, imm0_15);
  32593. v4u32 __builtin_msa_sat_u_w (v4u32, imm0_31);
  32594. v2u64 __builtin_msa_sat_u_d (v2u64, imm0_63);
  32595. v16i8 __builtin_msa_shf_b (v16i8, imm0_255);
  32596. v8i16 __builtin_msa_shf_h (v8i16, imm0_255);
  32597. v4i32 __builtin_msa_shf_w (v4i32, imm0_255);
  32598. v16i8 __builtin_msa_sld_b (v16i8, v16i8, i32);
  32599. v8i16 __builtin_msa_sld_h (v8i16, v8i16, i32);
  32600. v4i32 __builtin_msa_sld_w (v4i32, v4i32, i32);
  32601. v2i64 __builtin_msa_sld_d (v2i64, v2i64, i32);
  32602. v16i8 __builtin_msa_sldi_b (v16i8, v16i8, imm0_15);
  32603. v8i16 __builtin_msa_sldi_h (v8i16, v8i16, imm0_7);
  32604. v4i32 __builtin_msa_sldi_w (v4i32, v4i32, imm0_3);
  32605. v2i64 __builtin_msa_sldi_d (v2i64, v2i64, imm0_1);
  32606. v16i8 __builtin_msa_sll_b (v16i8, v16i8);
  32607. v8i16 __builtin_msa_sll_h (v8i16, v8i16);
  32608. v4i32 __builtin_msa_sll_w (v4i32, v4i32);
  32609. v2i64 __builtin_msa_sll_d (v2i64, v2i64);
  32610. v16i8 __builtin_msa_slli_b (v16i8, imm0_7);
  32611. v8i16 __builtin_msa_slli_h (v8i16, imm0_15);
  32612. v4i32 __builtin_msa_slli_w (v4i32, imm0_31);
  32613. v2i64 __builtin_msa_slli_d (v2i64, imm0_63);
  32614. v16i8 __builtin_msa_splat_b (v16i8, i32);
  32615. v8i16 __builtin_msa_splat_h (v8i16, i32);
  32616. v4i32 __builtin_msa_splat_w (v4i32, i32);
  32617. v2i64 __builtin_msa_splat_d (v2i64, i32);
  32618. v16i8 __builtin_msa_splati_b (v16i8, imm0_15);
  32619. v8i16 __builtin_msa_splati_h (v8i16, imm0_7);
  32620. v4i32 __builtin_msa_splati_w (v4i32, imm0_3);
  32621. v2i64 __builtin_msa_splati_d (v2i64, imm0_1);
  32622. v16i8 __builtin_msa_sra_b (v16i8, v16i8);
  32623. v8i16 __builtin_msa_sra_h (v8i16, v8i16);
  32624. v4i32 __builtin_msa_sra_w (v4i32, v4i32);
  32625. v2i64 __builtin_msa_sra_d (v2i64, v2i64);
  32626. v16i8 __builtin_msa_srai_b (v16i8, imm0_7);
  32627. v8i16 __builtin_msa_srai_h (v8i16, imm0_15);
  32628. v4i32 __builtin_msa_srai_w (v4i32, imm0_31);
  32629. v2i64 __builtin_msa_srai_d (v2i64, imm0_63);
  32630. v16i8 __builtin_msa_srar_b (v16i8, v16i8);
  32631. v8i16 __builtin_msa_srar_h (v8i16, v8i16);
  32632. v4i32 __builtin_msa_srar_w (v4i32, v4i32);
  32633. v2i64 __builtin_msa_srar_d (v2i64, v2i64);
  32634. v16i8 __builtin_msa_srari_b (v16i8, imm0_7);
  32635. v8i16 __builtin_msa_srari_h (v8i16, imm0_15);
  32636. v4i32 __builtin_msa_srari_w (v4i32, imm0_31);
  32637. v2i64 __builtin_msa_srari_d (v2i64, imm0_63);
  32638. v16i8 __builtin_msa_srl_b (v16i8, v16i8);
  32639. v8i16 __builtin_msa_srl_h (v8i16, v8i16);
  32640. v4i32 __builtin_msa_srl_w (v4i32, v4i32);
  32641. v2i64 __builtin_msa_srl_d (v2i64, v2i64);
  32642. v16i8 __builtin_msa_srli_b (v16i8, imm0_7);
  32643. v8i16 __builtin_msa_srli_h (v8i16, imm0_15);
  32644. v4i32 __builtin_msa_srli_w (v4i32, imm0_31);
  32645. v2i64 __builtin_msa_srli_d (v2i64, imm0_63);
  32646. v16i8 __builtin_msa_srlr_b (v16i8, v16i8);
  32647. v8i16 __builtin_msa_srlr_h (v8i16, v8i16);
  32648. v4i32 __builtin_msa_srlr_w (v4i32, v4i32);
  32649. v2i64 __builtin_msa_srlr_d (v2i64, v2i64);
  32650. v16i8 __builtin_msa_srlri_b (v16i8, imm0_7);
  32651. v8i16 __builtin_msa_srlri_h (v8i16, imm0_15);
  32652. v4i32 __builtin_msa_srlri_w (v4i32, imm0_31);
  32653. v2i64 __builtin_msa_srlri_d (v2i64, imm0_63);
  32654. void __builtin_msa_st_b (v16i8, void *, imm_n512_511);
  32655. void __builtin_msa_st_h (v8i16, void *, imm_n1024_1022);
  32656. void __builtin_msa_st_w (v4i32, void *, imm_n2048_2044);
  32657. void __builtin_msa_st_d (v2i64, void *, imm_n4096_4088);
  32658. v16i8 __builtin_msa_subs_s_b (v16i8, v16i8);
  32659. v8i16 __builtin_msa_subs_s_h (v8i16, v8i16);
  32660. v4i32 __builtin_msa_subs_s_w (v4i32, v4i32);
  32661. v2i64 __builtin_msa_subs_s_d (v2i64, v2i64);
  32662. v16u8 __builtin_msa_subs_u_b (v16u8, v16u8);
  32663. v8u16 __builtin_msa_subs_u_h (v8u16, v8u16);
  32664. v4u32 __builtin_msa_subs_u_w (v4u32, v4u32);
  32665. v2u64 __builtin_msa_subs_u_d (v2u64, v2u64);
  32666. v16u8 __builtin_msa_subsus_u_b (v16u8, v16i8);
  32667. v8u16 __builtin_msa_subsus_u_h (v8u16, v8i16);
  32668. v4u32 __builtin_msa_subsus_u_w (v4u32, v4i32);
  32669. v2u64 __builtin_msa_subsus_u_d (v2u64, v2i64);
  32670. v16i8 __builtin_msa_subsuu_s_b (v16u8, v16u8);
  32671. v8i16 __builtin_msa_subsuu_s_h (v8u16, v8u16);
  32672. v4i32 __builtin_msa_subsuu_s_w (v4u32, v4u32);
  32673. v2i64 __builtin_msa_subsuu_s_d (v2u64, v2u64);
  32674. v16i8 __builtin_msa_subv_b (v16i8, v16i8);
  32675. v8i16 __builtin_msa_subv_h (v8i16, v8i16);
  32676. v4i32 __builtin_msa_subv_w (v4i32, v4i32);
  32677. v2i64 __builtin_msa_subv_d (v2i64, v2i64);
  32678. v16i8 __builtin_msa_subvi_b (v16i8, imm0_31);
  32679. v8i16 __builtin_msa_subvi_h (v8i16, imm0_31);
  32680. v4i32 __builtin_msa_subvi_w (v4i32, imm0_31);
  32681. v2i64 __builtin_msa_subvi_d (v2i64, imm0_31);
  32682. v16i8 __builtin_msa_vshf_b (v16i8, v16i8, v16i8);
  32683. v8i16 __builtin_msa_vshf_h (v8i16, v8i16, v8i16);
  32684. v4i32 __builtin_msa_vshf_w (v4i32, v4i32, v4i32);
  32685. v2i64 __builtin_msa_vshf_d (v2i64, v2i64, v2i64);
  32686. v16u8 __builtin_msa_xor_v (v16u8, v16u8);
  32687. v16u8 __builtin_msa_xori_b (v16u8, imm0_255);
  32688. 
  32689. File: gcc.info, Node: Other MIPS Built-in Functions, Next: MSP430 Built-in Functions, Prev: MIPS SIMD Architecture (MSA) Support, Up: Target Builtins
  32690. 6.60.17 Other MIPS Built-in Functions
  32691. -------------------------------------
  32692. GCC provides other MIPS-specific built-in functions:
  32693. 'void __builtin_mips_cache (int OP, const volatile void *ADDR)'
  32694. Insert a 'cache' instruction with operands OP and ADDR. GCC
  32695. defines the preprocessor macro '___GCC_HAVE_BUILTIN_MIPS_CACHE'
  32696. when this function is available.
  32697. 'unsigned int __builtin_mips_get_fcsr (void)'
  32698. 'void __builtin_mips_set_fcsr (unsigned int VALUE)'
  32699. Get and set the contents of the floating-point control and status
  32700. register (FPU control register 31). These functions are only
  32701. available in hard-float code but can be called in both MIPS16 and
  32702. non-MIPS16 contexts.
  32703. '__builtin_mips_set_fcsr' can be used to change any bit of the
  32704. register except the condition codes, which GCC assumes are
  32705. preserved.
  32706. 
  32707. File: gcc.info, Node: MSP430 Built-in Functions, Next: NDS32 Built-in Functions, Prev: Other MIPS Built-in Functions, Up: Target Builtins
  32708. 6.60.18 MSP430 Built-in Functions
  32709. ---------------------------------
  32710. GCC provides a couple of special builtin functions to aid in the writing
  32711. of interrupt handlers in C.
  32712. '__bic_SR_register_on_exit (int MASK)'
  32713. This clears the indicated bits in the saved copy of the status
  32714. register currently residing on the stack. This only works inside
  32715. interrupt handlers and the changes to the status register will only
  32716. take affect once the handler returns.
  32717. '__bis_SR_register_on_exit (int MASK)'
  32718. This sets the indicated bits in the saved copy of the status
  32719. register currently residing on the stack. This only works inside
  32720. interrupt handlers and the changes to the status register will only
  32721. take affect once the handler returns.
  32722. '__delay_cycles (long long CYCLES)'
  32723. This inserts an instruction sequence that takes exactly CYCLES
  32724. cycles (between 0 and about 17E9) to complete. The inserted
  32725. sequence may use jumps, loops, or no-ops, and does not interfere
  32726. with any other instructions. Note that CYCLES must be a
  32727. compile-time constant integer - that is, you must pass a number,
  32728. not a variable that may be optimized to a constant later. The
  32729. number of cycles delayed by this builtin is exact.
  32730. 
  32731. File: gcc.info, Node: NDS32 Built-in Functions, Next: picoChip Built-in Functions, Prev: MSP430 Built-in Functions, Up: Target Builtins
  32732. 6.60.19 NDS32 Built-in Functions
  32733. --------------------------------
  32734. These built-in functions are available for the NDS32 target:
  32735. -- Built-in Function: void __builtin_nds32_isync (int *ADDR)
  32736. Insert an ISYNC instruction into the instruction stream where ADDR
  32737. is an instruction address for serialization.
  32738. -- Built-in Function: void __builtin_nds32_isb (void)
  32739. Insert an ISB instruction into the instruction stream.
  32740. -- Built-in Function: int __builtin_nds32_mfsr (int SR)
  32741. Return the content of a system register which is mapped by SR.
  32742. -- Built-in Function: int __builtin_nds32_mfusr (int USR)
  32743. Return the content of a user space register which is mapped by USR.
  32744. -- Built-in Function: void __builtin_nds32_mtsr (int VALUE, int SR)
  32745. Move the VALUE to a system register which is mapped by SR.
  32746. -- Built-in Function: void __builtin_nds32_mtusr (int VALUE, int USR)
  32747. Move the VALUE to a user space register which is mapped by USR.
  32748. -- Built-in Function: void __builtin_nds32_setgie_en (void)
  32749. Enable global interrupt.
  32750. -- Built-in Function: void __builtin_nds32_setgie_dis (void)
  32751. Disable global interrupt.
  32752. 
  32753. File: gcc.info, Node: picoChip Built-in Functions, Next: PowerPC Built-in Functions, Prev: NDS32 Built-in Functions, Up: Target Builtins
  32754. 6.60.20 picoChip Built-in Functions
  32755. -----------------------------------
  32756. GCC provides an interface to selected machine instructions from the
  32757. picoChip instruction set.
  32758. 'int __builtin_sbc (int VALUE)'
  32759. Sign bit count. Return the number of consecutive bits in VALUE
  32760. that have the same value as the sign bit. The result is the number
  32761. of leading sign bits minus one, giving the number of redundant sign
  32762. bits in VALUE.
  32763. 'int __builtin_byteswap (int VALUE)'
  32764. Byte swap. Return the result of swapping the upper and lower bytes
  32765. of VALUE.
  32766. 'int __builtin_brev (int VALUE)'
  32767. Bit reversal. Return the result of reversing the bits in VALUE.
  32768. Bit 15 is swapped with bit 0, bit 14 is swapped with bit 1, and so
  32769. on.
  32770. 'int __builtin_adds (int X, int Y)'
  32771. Saturating addition. Return the result of adding X and Y, storing
  32772. the value 32767 if the result overflows.
  32773. 'int __builtin_subs (int X, int Y)'
  32774. Saturating subtraction. Return the result of subtracting Y from X,
  32775. storing the value -32768 if the result overflows.
  32776. 'void __builtin_halt (void)'
  32777. Halt. The processor stops execution. This built-in is useful for
  32778. implementing assertions.
  32779. 
  32780. File: gcc.info, Node: PowerPC Built-in Functions, Next: PowerPC AltiVec/VSX Built-in Functions, Prev: picoChip Built-in Functions, Up: Target Builtins
  32781. 6.60.21 PowerPC Built-in Functions
  32782. ----------------------------------
  32783. The following built-in functions are always available and can be used to
  32784. check the PowerPC target platform type:
  32785. -- Built-in Function: void __builtin_cpu_init (void)
  32786. This function is a 'nop' on the PowerPC platform and is included
  32787. solely to maintain API compatibility with the x86 builtins.
  32788. -- Built-in Function: void __builtin_cpu_init (void)
  32789. This function is a 'nop' on the PowerPC platform and is included
  32790. solely to maintain API compatibility with the x86 builtins.
  32791. -- Built-in Function: int __builtin_cpu_is (const char *CPUNAME)
  32792. This function returns a value of '1' if the run-time CPU is of type
  32793. CPUNAME and returns '0' otherwise
  32794. The '__builtin_cpu_is' function requires GLIBC 2.23 or newer which
  32795. exports the hardware capability bits. GCC defines the macro
  32796. '__BUILTIN_CPU_SUPPORTS__' if the '__builtin_cpu_supports' built-in
  32797. function is fully supported.
  32798. If GCC was configured to use a GLIBC before 2.23, the built-in
  32799. function '__builtin_cpu_is' always returns a 0 and the compiler
  32800. issues a warning.
  32801. The following CPU names can be detected:
  32802. 'power9'
  32803. IBM POWER9 Server CPU.
  32804. 'power8'
  32805. IBM POWER8 Server CPU.
  32806. 'power7'
  32807. IBM POWER7 Server CPU.
  32808. 'power6x'
  32809. IBM POWER6 Server CPU (RAW mode).
  32810. 'power6'
  32811. IBM POWER6 Server CPU (Architected mode).
  32812. 'power5+'
  32813. IBM POWER5+ Server CPU.
  32814. 'power5'
  32815. IBM POWER5 Server CPU.
  32816. 'ppc970'
  32817. IBM 970 Server CPU (ie, Apple G5).
  32818. 'power4'
  32819. IBM POWER4 Server CPU.
  32820. 'ppca2'
  32821. IBM A2 64-bit Embedded CPU
  32822. 'ppc476'
  32823. IBM PowerPC 476FP 32-bit Embedded CPU.
  32824. 'ppc464'
  32825. IBM PowerPC 464 32-bit Embedded CPU.
  32826. 'ppc440'
  32827. PowerPC 440 32-bit Embedded CPU.
  32828. 'ppc405'
  32829. PowerPC 405 32-bit Embedded CPU.
  32830. 'ppc-cell-be'
  32831. IBM PowerPC Cell Broadband Engine Architecture CPU.
  32832. Here is an example:
  32833. #ifdef __BUILTIN_CPU_SUPPORTS__
  32834. if (__builtin_cpu_is ("power8"))
  32835. {
  32836. do_power8 (); // POWER8 specific implementation.
  32837. }
  32838. else
  32839. #endif
  32840. {
  32841. do_generic (); // Generic implementation.
  32842. }
  32843. -- Built-in Function: int __builtin_cpu_supports (const char *FEATURE)
  32844. This function returns a value of '1' if the run-time CPU supports
  32845. the HWCAP feature FEATURE and returns '0' otherwise.
  32846. The '__builtin_cpu_supports' function requires GLIBC 2.23 or newer
  32847. which exports the hardware capability bits. GCC defines the macro
  32848. '__BUILTIN_CPU_SUPPORTS__' if the '__builtin_cpu_supports' built-in
  32849. function is fully supported.
  32850. If GCC was configured to use a GLIBC before 2.23, the built-in
  32851. function '__builtin_cpu_suports' always returns a 0 and the
  32852. compiler issues a warning.
  32853. The following features can be detected:
  32854. '4xxmac'
  32855. 4xx CPU has a Multiply Accumulator.
  32856. 'altivec'
  32857. CPU has a SIMD/Vector Unit.
  32858. 'arch_2_05'
  32859. CPU supports ISA 2.05 (eg, POWER6)
  32860. 'arch_2_06'
  32861. CPU supports ISA 2.06 (eg, POWER7)
  32862. 'arch_2_07'
  32863. CPU supports ISA 2.07 (eg, POWER8)
  32864. 'arch_3_00'
  32865. CPU supports ISA 3.0 (eg, POWER9)
  32866. 'archpmu'
  32867. CPU supports the set of compatible performance monitoring
  32868. events.
  32869. 'booke'
  32870. CPU supports the Embedded ISA category.
  32871. 'cellbe'
  32872. CPU has a CELL broadband engine.
  32873. 'dfp'
  32874. CPU has a decimal floating point unit.
  32875. 'dscr'
  32876. CPU supports the data stream control register.
  32877. 'ebb'
  32878. CPU supports event base branching.
  32879. 'efpdouble'
  32880. CPU has a SPE double precision floating point unit.
  32881. 'efpsingle'
  32882. CPU has a SPE single precision floating point unit.
  32883. 'fpu'
  32884. CPU has a floating point unit.
  32885. 'htm'
  32886. CPU has hardware transaction memory instructions.
  32887. 'htm-nosc'
  32888. Kernel aborts hardware transactions when a syscall is made.
  32889. 'ic_snoop'
  32890. CPU supports icache snooping capabilities.
  32891. 'ieee128'
  32892. CPU supports 128-bit IEEE binary floating point instructions.
  32893. 'isel'
  32894. CPU supports the integer select instruction.
  32895. 'mmu'
  32896. CPU has a memory management unit.
  32897. 'notb'
  32898. CPU does not have a timebase (eg, 601 and 403gx).
  32899. 'pa6t'
  32900. CPU supports the PA Semi 6T CORE ISA.
  32901. 'power4'
  32902. CPU supports ISA 2.00 (eg, POWER4)
  32903. 'power5'
  32904. CPU supports ISA 2.02 (eg, POWER5)
  32905. 'power5+'
  32906. CPU supports ISA 2.03 (eg, POWER5+)
  32907. 'power6x'
  32908. CPU supports ISA 2.05 (eg, POWER6) extended opcodes mffgpr and
  32909. mftgpr.
  32910. 'ppc32'
  32911. CPU supports 32-bit mode execution.
  32912. 'ppc601'
  32913. CPU supports the old POWER ISA (eg, 601)
  32914. 'ppc64'
  32915. CPU supports 64-bit mode execution.
  32916. 'ppcle'
  32917. CPU supports a little-endian mode that uses address swizzling.
  32918. 'smt'
  32919. CPU support simultaneous multi-threading.
  32920. 'spe'
  32921. CPU has a signal processing extension unit.
  32922. 'tar'
  32923. CPU supports the target address register.
  32924. 'true_le'
  32925. CPU supports true little-endian mode.
  32926. 'ucache'
  32927. CPU has unified I/D cache.
  32928. 'vcrypto'
  32929. CPU supports the vector cryptography instructions.
  32930. 'vsx'
  32931. CPU supports the vector-scalar extension.
  32932. Here is an example:
  32933. #ifdef __BUILTIN_CPU_SUPPORTS__
  32934. if (__builtin_cpu_supports ("fpu"))
  32935. {
  32936. asm("fadd %0,%1,%2" : "=d"(dst) : "d"(src1), "d"(src2));
  32937. }
  32938. else
  32939. #endif
  32940. {
  32941. dst = __fadd (src1, src2); // Software FP addition function.
  32942. }
  32943. These built-in functions are available for the PowerPC family of
  32944. processors:
  32945. float __builtin_recipdivf (float, float);
  32946. float __builtin_rsqrtf (float);
  32947. double __builtin_recipdiv (double, double);
  32948. double __builtin_rsqrt (double);
  32949. uint64_t __builtin_ppc_get_timebase ();
  32950. unsigned long __builtin_ppc_mftb ();
  32951. double __builtin_unpack_longdouble (long double, int);
  32952. long double __builtin_pack_longdouble (double, double);
  32953. The 'vec_rsqrt', '__builtin_rsqrt', and '__builtin_rsqrtf' functions
  32954. generate multiple instructions to implement the reciprocal sqrt
  32955. functionality using reciprocal sqrt estimate instructions.
  32956. The '__builtin_recipdiv', and '__builtin_recipdivf' functions generate
  32957. multiple instructions to implement division using the reciprocal
  32958. estimate instructions.
  32959. The '__builtin_ppc_get_timebase' and '__builtin_ppc_mftb' functions
  32960. generate instructions to read the Time Base Register. The
  32961. '__builtin_ppc_get_timebase' function may generate multiple instructions
  32962. and always returns the 64 bits of the Time Base Register. The
  32963. '__builtin_ppc_mftb' function always generates one instruction and
  32964. returns the Time Base Register value as an unsigned long, throwing away
  32965. the most significant word on 32-bit environments.
  32966. Additional built-in functions are available for the 64-bit PowerPC
  32967. family of processors, for efficient use of 128-bit floating point
  32968. ('__float128') values.
  32969. The following floating-point built-in functions are available with
  32970. '-mfloat128' and Altivec support. All of them implement the function
  32971. that is part of the name.
  32972. __float128 __builtin_fabsq (__float128)
  32973. __float128 __builtin_copysignq (__float128, __float128)
  32974. The following built-in functions are available with '-mfloat128' and
  32975. Altivec support.
  32976. '__float128 __builtin_infq (void)'
  32977. Similar to '__builtin_inf', except the return type is '__float128'.
  32978. '__float128 __builtin_huge_valq (void)'
  32979. Similar to '__builtin_huge_val', except the return type is
  32980. '__float128'.
  32981. '__float128 __builtin_nanq (void)'
  32982. Similar to '__builtin_nan', except the return type is '__float128'.
  32983. '__float128 __builtin_nansq (void)'
  32984. Similar to '__builtin_nans', except the return type is
  32985. '__float128'.
  32986. The following built-in functions are available for the PowerPC family
  32987. of processors, starting with ISA 2.06 or later ('-mcpu=power7' or
  32988. '-mpopcntd'):
  32989. long __builtin_bpermd (long, long);
  32990. int __builtin_divwe (int, int);
  32991. unsigned int __builtin_divweu (unsigned int, unsigned int);
  32992. long __builtin_divde (long, long);
  32993. unsigned long __builtin_divdeu (unsigned long, unsigned long);
  32994. unsigned int cdtbcd (unsigned int);
  32995. unsigned int cbcdtd (unsigned int);
  32996. unsigned int addg6s (unsigned int, unsigned int);
  32997. The '__builtin_divde' and '__builtin_divdeu' functions require a 64-bit
  32998. environment supporting ISA 2.06 or later.
  32999. The following built-in functions are available for the PowerPC family
  33000. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  33001. long long __builtin_darn (void);
  33002. long long __builtin_darn_raw (void);
  33003. int __builtin_darn_32 (void);
  33004. unsigned int scalar_extract_exp (double source);
  33005. unsigned long long int scalar_extract_sig (double source);
  33006. double
  33007. scalar_insert_exp (unsigned long long int significand, unsigned long long int exponent);
  33008. double
  33009. scalar_insert_exp (double significand, unsigned long long int exponent);
  33010. int scalar_cmp_exp_gt (double arg1, double arg2);
  33011. int scalar_cmp_exp_lt (double arg1, double arg2);
  33012. int scalar_cmp_exp_eq (double arg1, double arg2);
  33013. int scalar_cmp_exp_unordered (double arg1, double arg2);
  33014. bool scalar_test_data_class (float source, const int condition);
  33015. bool scalar_test_data_class (double source, const int condition);
  33016. bool scalar_test_neg (float source);
  33017. bool scalar_test_neg (double source);
  33018. int __builtin_byte_in_set (unsigned char u, unsigned long long set);
  33019. int __builtin_byte_in_range (unsigned char u, unsigned int range);
  33020. int __builtin_byte_in_either_range (unsigned char u, unsigned int ranges);
  33021. int __builtin_dfp_dtstsfi_lt (unsigned int comparison, _Decimal64 value);
  33022. int __builtin_dfp_dtstsfi_lt (unsigned int comparison, _Decimal128 value);
  33023. int __builtin_dfp_dtstsfi_lt_dd (unsigned int comparison, _Decimal64 value);
  33024. int __builtin_dfp_dtstsfi_lt_td (unsigned int comparison, _Decimal128 value);
  33025. int __builtin_dfp_dtstsfi_gt (unsigned int comparison, _Decimal64 value);
  33026. int __builtin_dfp_dtstsfi_gt (unsigned int comparison, _Decimal128 value);
  33027. int __builtin_dfp_dtstsfi_gt_dd (unsigned int comparison, _Decimal64 value);
  33028. int __builtin_dfp_dtstsfi_gt_td (unsigned int comparison, _Decimal128 value);
  33029. int __builtin_dfp_dtstsfi_eq (unsigned int comparison, _Decimal64 value);
  33030. int __builtin_dfp_dtstsfi_eq (unsigned int comparison, _Decimal128 value);
  33031. int __builtin_dfp_dtstsfi_eq_dd (unsigned int comparison, _Decimal64 value);
  33032. int __builtin_dfp_dtstsfi_eq_td (unsigned int comparison, _Decimal128 value);
  33033. int __builtin_dfp_dtstsfi_ov (unsigned int comparison, _Decimal64 value);
  33034. int __builtin_dfp_dtstsfi_ov (unsigned int comparison, _Decimal128 value);
  33035. int __builtin_dfp_dtstsfi_ov_dd (unsigned int comparison, _Decimal64 value);
  33036. int __builtin_dfp_dtstsfi_ov_td (unsigned int comparison, _Decimal128 value);
  33037. The '__builtin_darn' and '__builtin_darn_raw' functions require a
  33038. 64-bit environment supporting ISA 3.0 or later. The '__builtin_darn'
  33039. function provides a 64-bit conditioned random number. The
  33040. '__builtin_darn_raw' function provides a 64-bit raw random number. The
  33041. '__builtin_darn_32' function provides a 32-bit random number.
  33042. The 'scalar_extract_exp' and 'scalar_extract_sig' functions require a
  33043. 64-bit environment supporting ISA 3.0 or later. The
  33044. 'scalar_extract_exp' and 'scalar_extract_sig' built-in functions return
  33045. the significand and the biased exponent value respectively of their
  33046. 'source' arguments. Within the result returned by 'scalar_extract_sig',
  33047. the '0x10000000000000' bit is set if the function's 'source' argument is
  33048. in normalized form. Otherwise, this bit is set to 0. Note that the
  33049. sign of the significand is not represented in the result returned from
  33050. the 'scalar_extract_sig' function. Use the 'scalar_test_neg' function
  33051. to test the sign of its 'double' argument.
  33052. The 'scalar_insert_exp' function requires a 64-bit environment
  33053. supporting ISA 3.0 or later. The 'scalar_insert_exp' built-in function
  33054. returns a double-precision floating point value that is constructed by
  33055. assembling the values of its 'significand' and 'exponent' arguments.
  33056. The sign of the result is copied from the most significant bit of the
  33057. 'significand' argument. The significand and exponent components of the
  33058. result are composed of the least significant 11 bits of the 'exponent'
  33059. argument and the least significant 52 bits of the 'significand'
  33060. argument.
  33061. The 'scalar_cmp_exp_gt', 'scalar_cmp_exp_lt', 'scalar_cmp_exp_eq', and
  33062. 'scalar_cmp_exp_unordered' built-in functions return a non-zero value if
  33063. 'arg1' is greater than, less than, equal to, or not comparable to 'arg2'
  33064. respectively. The arguments are not comparable if one or the other
  33065. equals NaN (not a number).
  33066. The 'scalar_test_data_class' built-in function returns 1 if any of the
  33067. condition tests enabled by the value of the 'condition' variable are
  33068. true, and 0 otherwise. The 'condition' argument must be a compile-time
  33069. constant integer with value not exceeding 127. The 'condition' argument
  33070. is encoded as a bitmask with each bit enabling the testing of a
  33071. different condition, as characterized by the following:
  33072. 0x40 Test for NaN
  33073. 0x20 Test for +Infinity
  33074. 0x10 Test for -Infinity
  33075. 0x08 Test for +Zero
  33076. 0x04 Test for -Zero
  33077. 0x02 Test for +Denormal
  33078. 0x01 Test for -Denormal
  33079. The 'scalar_test_neg' built-in function returns 1 if its 'source'
  33080. argument holds a negative value, 0 otherwise.
  33081. The '__builtin_byte_in_set' function requires a 64-bit environment
  33082. supporting ISA 3.0 or later. This function returns a non-zero value if
  33083. and only if its 'u' argument exactly equals one of the eight bytes
  33084. contained within its 64-bit 'set' argument.
  33085. The '__builtin_byte_in_range' and '__builtin_byte_in_either_range'
  33086. require an environment supporting ISA 3.0 or later. For these two
  33087. functions, the 'range' argument is encoded as 4 bytes, organized as
  33088. 'hi_1:lo_1:hi_2:lo_2'. The '__builtin_byte_in_range' function returns a
  33089. non-zero value if and only if its 'u' argument is within the range
  33090. bounded between 'lo_2' and 'hi_2' inclusive. The
  33091. '__builtin_byte_in_either_range' function returns non-zero if and only
  33092. if its 'u' argument is within either the range bounded between 'lo_1'
  33093. and 'hi_1' inclusive or the range bounded between 'lo_2' and 'hi_2'
  33094. inclusive.
  33095. The '__builtin_dfp_dtstsfi_lt' function returns a non-zero value if and
  33096. only if the number of signficant digits of its 'value' argument is less
  33097. than its 'comparison' argument. The '__builtin_dfp_dtstsfi_lt_dd' and
  33098. '__builtin_dfp_dtstsfi_lt_td' functions behave similarly, but require
  33099. that the type of the 'value' argument be '__Decimal64' and
  33100. '__Decimal128' respectively.
  33101. The '__builtin_dfp_dtstsfi_gt' function returns a non-zero value if and
  33102. only if the number of signficant digits of its 'value' argument is
  33103. greater than its 'comparison' argument. The
  33104. '__builtin_dfp_dtstsfi_gt_dd' and '__builtin_dfp_dtstsfi_gt_td'
  33105. functions behave similarly, but require that the type of the 'value'
  33106. argument be '__Decimal64' and '__Decimal128' respectively.
  33107. The '__builtin_dfp_dtstsfi_eq' function returns a non-zero value if and
  33108. only if the number of signficant digits of its 'value' argument equals
  33109. its 'comparison' argument. The '__builtin_dfp_dtstsfi_eq_dd' and
  33110. '__builtin_dfp_dtstsfi_eq_td' functions behave similarly, but require
  33111. that the type of the 'value' argument be '__Decimal64' and
  33112. '__Decimal128' respectively.
  33113. The '__builtin_dfp_dtstsfi_ov' function returns a non-zero value if and
  33114. only if its 'value' argument has an undefined number of significant
  33115. digits, such as when 'value' is an encoding of 'NaN'. The
  33116. '__builtin_dfp_dtstsfi_ov_dd' and '__builtin_dfp_dtstsfi_ov_td'
  33117. functions behave similarly, but require that the type of the 'value'
  33118. argument be '__Decimal64' and '__Decimal128' respectively.
  33119. The following built-in functions are also available for the PowerPC
  33120. family of processors, starting with ISA 3.0 or later ('-mcpu=power9').
  33121. These string functions are described separately in order to group the
  33122. descriptions closer to the function prototypes:
  33123. int vec_all_nez (vector signed char, vector signed char);
  33124. int vec_all_nez (vector unsigned char, vector unsigned char);
  33125. int vec_all_nez (vector signed short, vector signed short);
  33126. int vec_all_nez (vector unsigned short, vector unsigned short);
  33127. int vec_all_nez (vector signed int, vector signed int);
  33128. int vec_all_nez (vector unsigned int, vector unsigned int);
  33129. int vec_any_eqz (vector signed char, vector signed char);
  33130. int vec_any_eqz (vector unsigned char, vector unsigned char);
  33131. int vec_any_eqz (vector signed short, vector signed short);
  33132. int vec_any_eqz (vector unsigned short, vector unsigned short);
  33133. int vec_any_eqz (vector signed int, vector signed int);
  33134. int vec_any_eqz (vector unsigned int, vector unsigned int);
  33135. vector bool char vec_cmpnez (vector signed char arg1, vector signed char arg2);
  33136. vector bool char vec_cmpnez (vector unsigned char arg1, vector unsigned char arg2);
  33137. vector bool short vec_cmpnez (vector signed short arg1, vector signed short arg2);
  33138. vector bool short vec_cmpnez (vector unsigned short arg1, vector unsigned short arg2);
  33139. vector bool int vec_cmpnez (vector signed int arg1, vector signed int arg2);
  33140. vector bool int vec_cmpnez (vector unsigned int, vector unsigned int);
  33141. signed int vec_cntlz_lsbb (vector signed char);
  33142. signed int vec_cntlz_lsbb (vector unsigned char);
  33143. signed int vec_cnttz_lsbb (vector signed char);
  33144. signed int vec_cnttz_lsbb (vector unsigned char);
  33145. vector signed char vec_xl_len (signed char *addr, size_t len);
  33146. vector unsigned char vec_xl_len (unsigned char *addr, size_t len);
  33147. vector signed int vec_xl_len (signed int *addr, size_t len);
  33148. vector unsigned int vec_xl_len (unsigned int *addr, size_t len);
  33149. vector signed __int128 vec_xl_len (signed __int128 *addr, size_t len);
  33150. vector unsigned __int128 vec_xl_len (unsigned __int128 *addr, size_t len);
  33151. vector signed long long vec_xl_len (signed long long *addr, size_t len);
  33152. vector unsigned long long vec_xl_len (unsigned long long *addr, size_t len);
  33153. vector signed short vec_xl_len (signed short *addr, size_t len);
  33154. vector unsigned short vec_xl_len (unsigned short *addr, size_t len);
  33155. vector double vec_xl_len (double *addr, size_t len);
  33156. vector float vec_xl_len (float *addr, size_t len);
  33157. void vec_xst_len (vector signed char data, signed char *addr, size_t len);
  33158. void vec_xst_len (vector unsigned char data, unsigned char *addr, size_t len);
  33159. void vec_xst_len (vector signed int data, signed int *addr, size_t len);
  33160. void vec_xst_len (vector unsigned int data, unsigned int *addr, size_t len);
  33161. void vec_xst_len (vector unsigned __int128 data, unsigned __int128 *addr, size_t len);
  33162. void vec_xst_len (vector signed long long data, signed long long *addr, size_t len);
  33163. void vec_xst_len (vector unsigned long long data, unsigned long long *addr, size_t len);
  33164. void vec_xst_len (vector signed short data, signed short *addr, size_t len);
  33165. void vec_xst_len (vector unsigned short data, unsigned short *addr, size_t len);
  33166. void vec_xst_len (vector signed __int128 data, signed __int128 *addr, size_t len);
  33167. void vec_xst_len (vector double data, double *addr, size_t len);
  33168. void vec_xst_len (vector float data, float *addr, size_t len);
  33169. signed char vec_xlx (unsigned int index, vector signed char data);
  33170. unsigned char vec_xlx (unsigned int index, vector unsigned char data);
  33171. signed short vec_xlx (unsigned int index, vector signed short data);
  33172. unsigned short vec_xlx (unsigned int index, vector unsigned short data);
  33173. signed int vec_xlx (unsigned int index, vector signed int data);
  33174. unsigned int vec_xlx (unsigned int index, vector unsigned int data);
  33175. float vec_xlx (unsigned int index, vector float data);
  33176. signed char vec_xrx (unsigned int index, vector signed char data);
  33177. unsigned char vec_xrx (unsigned int index, vector unsigned char data);
  33178. signed short vec_xrx (unsigned int index, vector signed short data);
  33179. unsigned short vec_xrx (unsigned int index, vector unsigned short data);
  33180. signed int vec_xrx (unsigned int index, vector signed int data);
  33181. unsigned int vec_xrx (unsigned int index, vector unsigned int data);
  33182. float vec_xrx (unsigned int index, vector float data);
  33183. The 'vec_all_nez', 'vec_any_eqz', and 'vec_cmpnez' perform pairwise
  33184. comparisons between the elements at the same positions within their two
  33185. vector arguments. The 'vec_all_nez' function returns a non-zero value
  33186. if and only if all pairwise comparisons are not equal and no element of
  33187. either vector argument contains a zero. The 'vec_any_eqz' function
  33188. returns a non-zero value if and only if at least one pairwise comparison
  33189. is equal or if at least one element of either vector argument contains a
  33190. zero. The 'vec_cmpnez' function returns a vector of the same type as
  33191. its two arguments, within which each element consists of all ones to
  33192. denote that either the corresponding elements of the incoming arguments
  33193. are not equal or that at least one of the corresponding elements
  33194. contains zero. Otherwise, the element of the returned vector contains
  33195. all zeros.
  33196. The 'vec_cntlz_lsbb' function returns the count of the number of
  33197. consecutive leading byte elements (starting from position 0 within the
  33198. supplied vector argument) for which the least-significant bit equals
  33199. zero. The 'vec_cnttz_lsbb' function returns the count of the number of
  33200. consecutive trailing byte elements (starting from position 15 and
  33201. counting backwards within the supplied vector argument) for which the
  33202. least-significant bit equals zero.
  33203. The 'vec_xl_len' and 'vec_xst_len' functions require a 64-bit
  33204. environment supporting ISA 3.0 or later. The 'vec_xl_len' function
  33205. loads a variable length vector from memory. The 'vec_xst_len' function
  33206. stores a variable length vector to memory. With both the 'vec_xl_len'
  33207. and 'vec_xst_len' functions, the 'addr' argument represents the memory
  33208. address to or from which data will be transferred, and the 'len'
  33209. argument represents the number of bytes to be transferred, as computed
  33210. by the C expression 'min((len & 0xff), 16)'. If this expression's value
  33211. is not a multiple of the vector element's size, the behavior of this
  33212. function is undefined. In the case that the underlying computer is
  33213. configured to run in big-endian mode, the data transfer moves bytes 0 to
  33214. '(len - 1)' of the corresponding vector. In little-endian mode, the
  33215. data transfer moves bytes '(16 - len)' to '15' of the corresponding
  33216. vector. For the load function, any bytes of the result vector that are
  33217. not loaded from memory are set to zero. The value of the 'addr'
  33218. argument need not be aligned on a multiple of the vector's element size.
  33219. The 'vec_xlx' and 'vec_xrx' functions extract the single element
  33220. selected by the 'index' argument from the vector represented by the
  33221. 'data' argument. The 'index' argument always specifies a byte offset,
  33222. regardless of the size of the vector element. With 'vec_xlx', 'index'
  33223. is the offset of the first byte of the element to be extracted. With
  33224. 'vec_xrx', 'index' represents the last byte of the element to be
  33225. extracted, measured from the right end of the vector. In other words,
  33226. the last byte of the element to be extracted is found at position '(15 -
  33227. index)'. There is no requirement that 'index' be a multiple of the
  33228. vector element size. However, if the size of the vector element added
  33229. to 'index' is greater than 15, the content of the returned value is
  33230. undefined.
  33231. The following built-in functions are available for the PowerPC family
  33232. of processors when hardware decimal floating point ('-mhard-dfp') is
  33233. available:
  33234. long long __builtin_dxex (_Decimal64);
  33235. long long __builtin_dxexq (_Decimal128);
  33236. _Decimal64 __builtin_ddedpd (int, _Decimal64);
  33237. _Decimal128 __builtin_ddedpdq (int, _Decimal128);
  33238. _Decimal64 __builtin_denbcd (int, _Decimal64);
  33239. _Decimal128 __builtin_denbcdq (int, _Decimal128);
  33240. _Decimal64 __builtin_diex (long long, _Decimal64);
  33241. _Decimal128 _builtin_diexq (long long, _Decimal128);
  33242. _Decimal64 __builtin_dscli (_Decimal64, int);
  33243. _Decimal128 __builtin_dscliq (_Decimal128, int);
  33244. _Decimal64 __builtin_dscri (_Decimal64, int);
  33245. _Decimal128 __builtin_dscriq (_Decimal128, int);
  33246. unsigned long long __builtin_unpack_dec128 (_Decimal128, int);
  33247. _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
  33248. The following built-in functions are available for the PowerPC family
  33249. of processors when the Vector Scalar (vsx) instruction set is available:
  33250. unsigned long long __builtin_unpack_vector_int128 (vector __int128_t, int);
  33251. vector __int128_t __builtin_pack_vector_int128 (unsigned long long,
  33252. unsigned long long);
  33253. 
  33254. 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
  33255. 6.60.22 PowerPC AltiVec Built-in Functions
  33256. ------------------------------------------
  33257. GCC provides an interface for the PowerPC family of processors to access
  33258. the AltiVec operations described in Motorola's AltiVec Programming
  33259. Interface Manual. The interface is made available by including
  33260. '<altivec.h>' and using '-maltivec' and '-mabi=altivec'. The interface
  33261. supports the following vector types.
  33262. vector unsigned char
  33263. vector signed char
  33264. vector bool char
  33265. vector unsigned short
  33266. vector signed short
  33267. vector bool short
  33268. vector pixel
  33269. vector unsigned int
  33270. vector signed int
  33271. vector bool int
  33272. vector float
  33273. If '-mvsx' is used the following additional vector types are
  33274. implemented.
  33275. vector unsigned long
  33276. vector signed long
  33277. vector double
  33278. The long types are only implemented for 64-bit code generation, and the
  33279. long type is only used in the floating point/integer conversion
  33280. instructions.
  33281. GCC's implementation of the high-level language interface available
  33282. from C and C++ code differs from Motorola's documentation in several
  33283. ways.
  33284. * A vector constant is a list of constant expressions within curly
  33285. braces.
  33286. * A vector initializer requires no cast if the vector constant is of
  33287. the same type as the variable it is initializing.
  33288. * If 'signed' or 'unsigned' is omitted, the signedness of the vector
  33289. type is the default signedness of the base type. The default
  33290. varies depending on the operating system, so a portable program
  33291. should always specify the signedness.
  33292. * Compiling with '-maltivec' adds keywords '__vector', 'vector',
  33293. '__pixel', 'pixel', '__bool' and 'bool'. When compiling ISO C, the
  33294. context-sensitive substitution of the keywords 'vector', 'pixel'
  33295. and 'bool' is disabled. To use them, you must include
  33296. '<altivec.h>' instead.
  33297. * GCC allows using a 'typedef' name as the type specifier for a
  33298. vector type, but only under the following circumstances:
  33299. * When using '__vector' instead of 'vector'; for example,
  33300. typedef signed short int16;
  33301. __vector int16 data;
  33302. * When using 'vector' in keyword-and-predefine mode; for
  33303. example,
  33304. typedef signed short int16;
  33305. vector int16 data;
  33306. Note that keyword-and-predefine mode is enabled by disabling
  33307. GNU extensions (e.g., by using '-std=c11') and including
  33308. '<altivec.h>'.
  33309. * For C, overloaded functions are implemented with macros so the
  33310. following does not work:
  33311. vec_add ((vector signed int){1, 2, 3, 4}, foo);
  33312. Since 'vec_add' is a macro, the vector constant in the example is
  33313. treated as four separate arguments. Wrap the entire argument in
  33314. parentheses for this to work.
  33315. _Note:_ Only the '<altivec.h>' interface is supported. Internally, GCC
  33316. uses built-in functions to achieve the functionality in the
  33317. aforementioned header file, but they are not supported and are subject
  33318. to change without notice.
  33319. GCC complies with the OpenPOWER 64-Bit ELF V2 ABI Specification, which
  33320. may be found at
  33321. <http://openpowerfoundation.org/wp-content/uploads/resources/leabi-prd/content/index.html>.
  33322. Appendix A of this document lists the vector API interfaces that must be
  33323. provided by compliant compilers. Programmers should preferentially use
  33324. the interfaces described therein. However, historically GCC has
  33325. provided additional interfaces for access to vector instructions. These
  33326. are briefly described below.
  33327. The following interfaces are supported for the generic and specific
  33328. AltiVec operations and the AltiVec predicates. In cases where there is
  33329. a direct mapping between generic and specific operations, only the
  33330. generic names are shown here, although the specific operations can also
  33331. be used.
  33332. Arguments that are documented as 'const int' require literal integral
  33333. values within the range required for that operation.
  33334. vector signed char vec_abs (vector signed char);
  33335. vector signed short vec_abs (vector signed short);
  33336. vector signed int vec_abs (vector signed int);
  33337. vector float vec_abs (vector float);
  33338. vector signed char vec_abss (vector signed char);
  33339. vector signed short vec_abss (vector signed short);
  33340. vector signed int vec_abss (vector signed int);
  33341. vector signed char vec_add (vector bool char, vector signed char);
  33342. vector signed char vec_add (vector signed char, vector bool char);
  33343. vector signed char vec_add (vector signed char, vector signed char);
  33344. vector unsigned char vec_add (vector bool char, vector unsigned char);
  33345. vector unsigned char vec_add (vector unsigned char, vector bool char);
  33346. vector unsigned char vec_add (vector unsigned char,
  33347. vector unsigned char);
  33348. vector signed short vec_add (vector bool short, vector signed short);
  33349. vector signed short vec_add (vector signed short, vector bool short);
  33350. vector signed short vec_add (vector signed short, vector signed short);
  33351. vector unsigned short vec_add (vector bool short,
  33352. vector unsigned short);
  33353. vector unsigned short vec_add (vector unsigned short,
  33354. vector bool short);
  33355. vector unsigned short vec_add (vector unsigned short,
  33356. vector unsigned short);
  33357. vector signed int vec_add (vector bool int, vector signed int);
  33358. vector signed int vec_add (vector signed int, vector bool int);
  33359. vector signed int vec_add (vector signed int, vector signed int);
  33360. vector unsigned int vec_add (vector bool int, vector unsigned int);
  33361. vector unsigned int vec_add (vector unsigned int, vector bool int);
  33362. vector unsigned int vec_add (vector unsigned int, vector unsigned int);
  33363. vector float vec_add (vector float, vector float);
  33364. vector float vec_vaddfp (vector float, vector float);
  33365. vector signed int vec_vadduwm (vector bool int, vector signed int);
  33366. vector signed int vec_vadduwm (vector signed int, vector bool int);
  33367. vector signed int vec_vadduwm (vector signed int, vector signed int);
  33368. vector unsigned int vec_vadduwm (vector bool int, vector unsigned int);
  33369. vector unsigned int vec_vadduwm (vector unsigned int, vector bool int);
  33370. vector unsigned int vec_vadduwm (vector unsigned int,
  33371. vector unsigned int);
  33372. vector signed short vec_vadduhm (vector bool short,
  33373. vector signed short);
  33374. vector signed short vec_vadduhm (vector signed short,
  33375. vector bool short);
  33376. vector signed short vec_vadduhm (vector signed short,
  33377. vector signed short);
  33378. vector unsigned short vec_vadduhm (vector bool short,
  33379. vector unsigned short);
  33380. vector unsigned short vec_vadduhm (vector unsigned short,
  33381. vector bool short);
  33382. vector unsigned short vec_vadduhm (vector unsigned short,
  33383. vector unsigned short);
  33384. vector signed char vec_vaddubm (vector bool char, vector signed char);
  33385. vector signed char vec_vaddubm (vector signed char, vector bool char);
  33386. vector signed char vec_vaddubm (vector signed char, vector signed char);
  33387. vector unsigned char vec_vaddubm (vector bool char,
  33388. vector unsigned char);
  33389. vector unsigned char vec_vaddubm (vector unsigned char,
  33390. vector bool char);
  33391. vector unsigned char vec_vaddubm (vector unsigned char,
  33392. vector unsigned char);
  33393. vector unsigned int vec_addc (vector unsigned int, vector unsigned int);
  33394. vector unsigned char vec_adds (vector bool char, vector unsigned char);
  33395. vector unsigned char vec_adds (vector unsigned char, vector bool char);
  33396. vector unsigned char vec_adds (vector unsigned char,
  33397. vector unsigned char);
  33398. vector signed char vec_adds (vector bool char, vector signed char);
  33399. vector signed char vec_adds (vector signed char, vector bool char);
  33400. vector signed char vec_adds (vector signed char, vector signed char);
  33401. vector unsigned short vec_adds (vector bool short,
  33402. vector unsigned short);
  33403. vector unsigned short vec_adds (vector unsigned short,
  33404. vector bool short);
  33405. vector unsigned short vec_adds (vector unsigned short,
  33406. vector unsigned short);
  33407. vector signed short vec_adds (vector bool short, vector signed short);
  33408. vector signed short vec_adds (vector signed short, vector bool short);
  33409. vector signed short vec_adds (vector signed short, vector signed short);
  33410. vector unsigned int vec_adds (vector bool int, vector unsigned int);
  33411. vector unsigned int vec_adds (vector unsigned int, vector bool int);
  33412. vector unsigned int vec_adds (vector unsigned int, vector unsigned int);
  33413. vector signed int vec_adds (vector bool int, vector signed int);
  33414. vector signed int vec_adds (vector signed int, vector bool int);
  33415. vector signed int vec_adds (vector signed int, vector signed int);
  33416. vector signed int vec_vaddsws (vector bool int, vector signed int);
  33417. vector signed int vec_vaddsws (vector signed int, vector bool int);
  33418. vector signed int vec_vaddsws (vector signed int, vector signed int);
  33419. vector unsigned int vec_vadduws (vector bool int, vector unsigned int);
  33420. vector unsigned int vec_vadduws (vector unsigned int, vector bool int);
  33421. vector unsigned int vec_vadduws (vector unsigned int,
  33422. vector unsigned int);
  33423. vector signed short vec_vaddshs (vector bool short,
  33424. vector signed short);
  33425. vector signed short vec_vaddshs (vector signed short,
  33426. vector bool short);
  33427. vector signed short vec_vaddshs (vector signed short,
  33428. vector signed short);
  33429. vector unsigned short vec_vadduhs (vector bool short,
  33430. vector unsigned short);
  33431. vector unsigned short vec_vadduhs (vector unsigned short,
  33432. vector bool short);
  33433. vector unsigned short vec_vadduhs (vector unsigned short,
  33434. vector unsigned short);
  33435. vector signed char vec_vaddsbs (vector bool char, vector signed char);
  33436. vector signed char vec_vaddsbs (vector signed char, vector bool char);
  33437. vector signed char vec_vaddsbs (vector signed char, vector signed char);
  33438. vector unsigned char vec_vaddubs (vector bool char,
  33439. vector unsigned char);
  33440. vector unsigned char vec_vaddubs (vector unsigned char,
  33441. vector bool char);
  33442. vector unsigned char vec_vaddubs (vector unsigned char,
  33443. vector unsigned char);
  33444. vector float vec_and (vector float, vector float);
  33445. vector float vec_and (vector float, vector bool int);
  33446. vector float vec_and (vector bool int, vector float);
  33447. vector bool long long vec_and (vector bool long long int,
  33448. vector bool long long);
  33449. vector bool int vec_and (vector bool int, vector bool int);
  33450. vector signed int vec_and (vector bool int, vector signed int);
  33451. vector signed int vec_and (vector signed int, vector bool int);
  33452. vector signed int vec_and (vector signed int, vector signed int);
  33453. vector unsigned int vec_and (vector bool int, vector unsigned int);
  33454. vector unsigned int vec_and (vector unsigned int, vector bool int);
  33455. vector unsigned int vec_and (vector unsigned int, vector unsigned int);
  33456. vector bool short vec_and (vector bool short, vector bool short);
  33457. vector signed short vec_and (vector bool short, vector signed short);
  33458. vector signed short vec_and (vector signed short, vector bool short);
  33459. vector signed short vec_and (vector signed short, vector signed short);
  33460. vector unsigned short vec_and (vector bool short,
  33461. vector unsigned short);
  33462. vector unsigned short vec_and (vector unsigned short,
  33463. vector bool short);
  33464. vector unsigned short vec_and (vector unsigned short,
  33465. vector unsigned short);
  33466. vector signed char vec_and (vector bool char, vector signed char);
  33467. vector bool char vec_and (vector bool char, vector bool char);
  33468. vector signed char vec_and (vector signed char, vector bool char);
  33469. vector signed char vec_and (vector signed char, vector signed char);
  33470. vector unsigned char vec_and (vector bool char, vector unsigned char);
  33471. vector unsigned char vec_and (vector unsigned char, vector bool char);
  33472. vector unsigned char vec_and (vector unsigned char,
  33473. vector unsigned char);
  33474. vector float vec_andc (vector float, vector float);
  33475. vector float vec_andc (vector float, vector bool int);
  33476. vector float vec_andc (vector bool int, vector float);
  33477. vector bool int vec_andc (vector bool int, vector bool int);
  33478. vector signed int vec_andc (vector bool int, vector signed int);
  33479. vector signed int vec_andc (vector signed int, vector bool int);
  33480. vector signed int vec_andc (vector signed int, vector signed int);
  33481. vector unsigned int vec_andc (vector bool int, vector unsigned int);
  33482. vector unsigned int vec_andc (vector unsigned int, vector bool int);
  33483. vector unsigned int vec_andc (vector unsigned int, vector unsigned int);
  33484. vector bool short vec_andc (vector bool short, vector bool short);
  33485. vector signed short vec_andc (vector bool short, vector signed short);
  33486. vector signed short vec_andc (vector signed short, vector bool short);
  33487. vector signed short vec_andc (vector signed short, vector signed short);
  33488. vector unsigned short vec_andc (vector bool short,
  33489. vector unsigned short);
  33490. vector unsigned short vec_andc (vector unsigned short,
  33491. vector bool short);
  33492. vector unsigned short vec_andc (vector unsigned short,
  33493. vector unsigned short);
  33494. vector signed char vec_andc (vector bool char, vector signed char);
  33495. vector bool char vec_andc (vector bool char, vector bool char);
  33496. vector signed char vec_andc (vector signed char, vector bool char);
  33497. vector signed char vec_andc (vector signed char, vector signed char);
  33498. vector unsigned char vec_andc (vector bool char, vector unsigned char);
  33499. vector unsigned char vec_andc (vector unsigned char, vector bool char);
  33500. vector unsigned char vec_andc (vector unsigned char,
  33501. vector unsigned char);
  33502. vector unsigned char vec_avg (vector unsigned char,
  33503. vector unsigned char);
  33504. vector signed char vec_avg (vector signed char, vector signed char);
  33505. vector unsigned short vec_avg (vector unsigned short,
  33506. vector unsigned short);
  33507. vector signed short vec_avg (vector signed short, vector signed short);
  33508. vector unsigned int vec_avg (vector unsigned int, vector unsigned int);
  33509. vector signed int vec_avg (vector signed int, vector signed int);
  33510. vector signed int vec_vavgsw (vector signed int, vector signed int);
  33511. vector unsigned int vec_vavguw (vector unsigned int,
  33512. vector unsigned int);
  33513. vector signed short vec_vavgsh (vector signed short,
  33514. vector signed short);
  33515. vector unsigned short vec_vavguh (vector unsigned short,
  33516. vector unsigned short);
  33517. vector signed char vec_vavgsb (vector signed char, vector signed char);
  33518. vector unsigned char vec_vavgub (vector unsigned char,
  33519. vector unsigned char);
  33520. vector float vec_copysign (vector float);
  33521. vector float vec_ceil (vector float);
  33522. vector signed int vec_cmpb (vector float, vector float);
  33523. vector bool char vec_cmpeq (vector bool char, vector bool char);
  33524. vector bool short vec_cmpeq (vector bool short, vector bool short);
  33525. vector bool int vec_cmpeq (vector bool int, vector bool int);
  33526. vector bool char vec_cmpeq (vector signed char, vector signed char);
  33527. vector bool char vec_cmpeq (vector unsigned char, vector unsigned char);
  33528. vector bool short vec_cmpeq (vector signed short, vector signed short);
  33529. vector bool short vec_cmpeq (vector unsigned short,
  33530. vector unsigned short);
  33531. vector bool int vec_cmpeq (vector signed int, vector signed int);
  33532. vector bool int vec_cmpeq (vector unsigned int, vector unsigned int);
  33533. vector bool int vec_cmpeq (vector float, vector float);
  33534. vector bool int vec_vcmpeqfp (vector float, vector float);
  33535. vector bool int vec_vcmpequw (vector signed int, vector signed int);
  33536. vector bool int vec_vcmpequw (vector unsigned int, vector unsigned int);
  33537. vector bool short vec_vcmpequh (vector signed short,
  33538. vector signed short);
  33539. vector bool short vec_vcmpequh (vector unsigned short,
  33540. vector unsigned short);
  33541. vector bool char vec_vcmpequb (vector signed char, vector signed char);
  33542. vector bool char vec_vcmpequb (vector unsigned char,
  33543. vector unsigned char);
  33544. vector bool int vec_cmpge (vector float, vector float);
  33545. vector bool char vec_cmpgt (vector unsigned char, vector unsigned char);
  33546. vector bool char vec_cmpgt (vector signed char, vector signed char);
  33547. vector bool short vec_cmpgt (vector unsigned short,
  33548. vector unsigned short);
  33549. vector bool short vec_cmpgt (vector signed short, vector signed short);
  33550. vector bool int vec_cmpgt (vector unsigned int, vector unsigned int);
  33551. vector bool int vec_cmpgt (vector signed int, vector signed int);
  33552. vector bool int vec_cmpgt (vector float, vector float);
  33553. vector bool int vec_vcmpgtfp (vector float, vector float);
  33554. vector bool int vec_vcmpgtsw (vector signed int, vector signed int);
  33555. vector bool int vec_vcmpgtuw (vector unsigned int, vector unsigned int);
  33556. vector bool short vec_vcmpgtsh (vector signed short,
  33557. vector signed short);
  33558. vector bool short vec_vcmpgtuh (vector unsigned short,
  33559. vector unsigned short);
  33560. vector bool char vec_vcmpgtsb (vector signed char, vector signed char);
  33561. vector bool char vec_vcmpgtub (vector unsigned char,
  33562. vector unsigned char);
  33563. vector bool int vec_cmple (vector float, vector float);
  33564. vector bool char vec_cmplt (vector unsigned char, vector unsigned char);
  33565. vector bool char vec_cmplt (vector signed char, vector signed char);
  33566. vector bool short vec_cmplt (vector unsigned short,
  33567. vector unsigned short);
  33568. vector bool short vec_cmplt (vector signed short, vector signed short);
  33569. vector bool int vec_cmplt (vector unsigned int, vector unsigned int);
  33570. vector bool int vec_cmplt (vector signed int, vector signed int);
  33571. vector bool int vec_cmplt (vector float, vector float);
  33572. vector float vec_cpsgn (vector float, vector float);
  33573. vector float vec_ctf (vector unsigned int, const int);
  33574. vector float vec_ctf (vector signed int, const int);
  33575. vector double vec_ctf (vector unsigned long, const int);
  33576. vector double vec_ctf (vector signed long, const int);
  33577. vector float vec_vcfsx (vector signed int, const int);
  33578. vector float vec_vcfux (vector unsigned int, const int);
  33579. vector signed int vec_cts (vector float, const int);
  33580. vector signed long vec_cts (vector double, const int);
  33581. vector unsigned int vec_ctu (vector float, const int);
  33582. vector unsigned long vec_ctu (vector double, const int);
  33583. void vec_dss (const int);
  33584. void vec_dssall (void);
  33585. void vec_dst (const vector unsigned char *, int, const int);
  33586. void vec_dst (const vector signed char *, int, const int);
  33587. void vec_dst (const vector bool char *, int, const int);
  33588. void vec_dst (const vector unsigned short *, int, const int);
  33589. void vec_dst (const vector signed short *, int, const int);
  33590. void vec_dst (const vector bool short *, int, const int);
  33591. void vec_dst (const vector pixel *, int, const int);
  33592. void vec_dst (const vector unsigned int *, int, const int);
  33593. void vec_dst (const vector signed int *, int, const int);
  33594. void vec_dst (const vector bool int *, int, const int);
  33595. void vec_dst (const vector float *, int, const int);
  33596. void vec_dst (const unsigned char *, int, const int);
  33597. void vec_dst (const signed char *, int, const int);
  33598. void vec_dst (const unsigned short *, int, const int);
  33599. void vec_dst (const short *, int, const int);
  33600. void vec_dst (const unsigned int *, int, const int);
  33601. void vec_dst (const int *, int, const int);
  33602. void vec_dst (const unsigned long *, int, const int);
  33603. void vec_dst (const long *, int, const int);
  33604. void vec_dst (const float *, int, const int);
  33605. void vec_dstst (const vector unsigned char *, int, const int);
  33606. void vec_dstst (const vector signed char *, int, const int);
  33607. void vec_dstst (const vector bool char *, int, const int);
  33608. void vec_dstst (const vector unsigned short *, int, const int);
  33609. void vec_dstst (const vector signed short *, int, const int);
  33610. void vec_dstst (const vector bool short *, int, const int);
  33611. void vec_dstst (const vector pixel *, int, const int);
  33612. void vec_dstst (const vector unsigned int *, int, const int);
  33613. void vec_dstst (const vector signed int *, int, const int);
  33614. void vec_dstst (const vector bool int *, int, const int);
  33615. void vec_dstst (const vector float *, int, const int);
  33616. void vec_dstst (const unsigned char *, int, const int);
  33617. void vec_dstst (const signed char *, int, const int);
  33618. void vec_dstst (const unsigned short *, int, const int);
  33619. void vec_dstst (const short *, int, const int);
  33620. void vec_dstst (const unsigned int *, int, const int);
  33621. void vec_dstst (const int *, int, const int);
  33622. void vec_dstst (const unsigned long *, int, const int);
  33623. void vec_dstst (const long *, int, const int);
  33624. void vec_dstst (const float *, int, const int);
  33625. void vec_dststt (const vector unsigned char *, int, const int);
  33626. void vec_dststt (const vector signed char *, int, const int);
  33627. void vec_dststt (const vector bool char *, int, const int);
  33628. void vec_dststt (const vector unsigned short *, int, const int);
  33629. void vec_dststt (const vector signed short *, int, const int);
  33630. void vec_dststt (const vector bool short *, int, const int);
  33631. void vec_dststt (const vector pixel *, int, const int);
  33632. void vec_dststt (const vector unsigned int *, int, const int);
  33633. void vec_dststt (const vector signed int *, int, const int);
  33634. void vec_dststt (const vector bool int *, int, const int);
  33635. void vec_dststt (const vector float *, int, const int);
  33636. void vec_dststt (const unsigned char *, int, const int);
  33637. void vec_dststt (const signed char *, int, const int);
  33638. void vec_dststt (const unsigned short *, int, const int);
  33639. void vec_dststt (const short *, int, const int);
  33640. void vec_dststt (const unsigned int *, int, const int);
  33641. void vec_dststt (const int *, int, const int);
  33642. void vec_dststt (const unsigned long *, int, const int);
  33643. void vec_dststt (const long *, int, const int);
  33644. void vec_dststt (const float *, int, const int);
  33645. void vec_dstt (const vector unsigned char *, int, const int);
  33646. void vec_dstt (const vector signed char *, int, const int);
  33647. void vec_dstt (const vector bool char *, int, const int);
  33648. void vec_dstt (const vector unsigned short *, int, const int);
  33649. void vec_dstt (const vector signed short *, int, const int);
  33650. void vec_dstt (const vector bool short *, int, const int);
  33651. void vec_dstt (const vector pixel *, int, const int);
  33652. void vec_dstt (const vector unsigned int *, int, const int);
  33653. void vec_dstt (const vector signed int *, int, const int);
  33654. void vec_dstt (const vector bool int *, int, const int);
  33655. void vec_dstt (const vector float *, int, const int);
  33656. void vec_dstt (const unsigned char *, int, const int);
  33657. void vec_dstt (const signed char *, int, const int);
  33658. void vec_dstt (const unsigned short *, int, const int);
  33659. void vec_dstt (const short *, int, const int);
  33660. void vec_dstt (const unsigned int *, int, const int);
  33661. void vec_dstt (const int *, int, const int);
  33662. void vec_dstt (const unsigned long *, int, const int);
  33663. void vec_dstt (const long *, int, const int);
  33664. void vec_dstt (const float *, int, const int);
  33665. vector float vec_expte (vector float);
  33666. vector float vec_floor (vector float);
  33667. vector float vec_ld (int, const vector float *);
  33668. vector float vec_ld (int, const float *);
  33669. vector bool int vec_ld (int, const vector bool int *);
  33670. vector signed int vec_ld (int, const vector signed int *);
  33671. vector signed int vec_ld (int, const int *);
  33672. vector signed int vec_ld (int, const long *);
  33673. vector unsigned int vec_ld (int, const vector unsigned int *);
  33674. vector unsigned int vec_ld (int, const unsigned int *);
  33675. vector unsigned int vec_ld (int, const unsigned long *);
  33676. vector bool short vec_ld (int, const vector bool short *);
  33677. vector pixel vec_ld (int, const vector pixel *);
  33678. vector signed short vec_ld (int, const vector signed short *);
  33679. vector signed short vec_ld (int, const short *);
  33680. vector unsigned short vec_ld (int, const vector unsigned short *);
  33681. vector unsigned short vec_ld (int, const unsigned short *);
  33682. vector bool char vec_ld (int, const vector bool char *);
  33683. vector signed char vec_ld (int, const vector signed char *);
  33684. vector signed char vec_ld (int, const signed char *);
  33685. vector unsigned char vec_ld (int, const vector unsigned char *);
  33686. vector unsigned char vec_ld (int, const unsigned char *);
  33687. vector signed char vec_lde (int, const signed char *);
  33688. vector unsigned char vec_lde (int, const unsigned char *);
  33689. vector signed short vec_lde (int, const short *);
  33690. vector unsigned short vec_lde (int, const unsigned short *);
  33691. vector float vec_lde (int, const float *);
  33692. vector signed int vec_lde (int, const int *);
  33693. vector unsigned int vec_lde (int, const unsigned int *);
  33694. vector signed int vec_lde (int, const long *);
  33695. vector unsigned int vec_lde (int, const unsigned long *);
  33696. vector float vec_lvewx (int, float *);
  33697. vector signed int vec_lvewx (int, int *);
  33698. vector unsigned int vec_lvewx (int, unsigned int *);
  33699. vector signed int vec_lvewx (int, long *);
  33700. vector unsigned int vec_lvewx (int, unsigned long *);
  33701. vector signed short vec_lvehx (int, short *);
  33702. vector unsigned short vec_lvehx (int, unsigned short *);
  33703. vector signed char vec_lvebx (int, char *);
  33704. vector unsigned char vec_lvebx (int, unsigned char *);
  33705. vector float vec_ldl (int, const vector float *);
  33706. vector float vec_ldl (int, const float *);
  33707. vector bool int vec_ldl (int, const vector bool int *);
  33708. vector signed int vec_ldl (int, const vector signed int *);
  33709. vector signed int vec_ldl (int, const int *);
  33710. vector signed int vec_ldl (int, const long *);
  33711. vector unsigned int vec_ldl (int, const vector unsigned int *);
  33712. vector unsigned int vec_ldl (int, const unsigned int *);
  33713. vector unsigned int vec_ldl (int, const unsigned long *);
  33714. vector bool short vec_ldl (int, const vector bool short *);
  33715. vector pixel vec_ldl (int, const vector pixel *);
  33716. vector signed short vec_ldl (int, const vector signed short *);
  33717. vector signed short vec_ldl (int, const short *);
  33718. vector unsigned short vec_ldl (int, const vector unsigned short *);
  33719. vector unsigned short vec_ldl (int, const unsigned short *);
  33720. vector bool char vec_ldl (int, const vector bool char *);
  33721. vector signed char vec_ldl (int, const vector signed char *);
  33722. vector signed char vec_ldl (int, const signed char *);
  33723. vector unsigned char vec_ldl (int, const vector unsigned char *);
  33724. vector unsigned char vec_ldl (int, const unsigned char *);
  33725. vector float vec_loge (vector float);
  33726. vector unsigned char vec_lvsl (int, const volatile unsigned char *);
  33727. vector unsigned char vec_lvsl (int, const volatile signed char *);
  33728. vector unsigned char vec_lvsl (int, const volatile unsigned short *);
  33729. vector unsigned char vec_lvsl (int, const volatile short *);
  33730. vector unsigned char vec_lvsl (int, const volatile unsigned int *);
  33731. vector unsigned char vec_lvsl (int, const volatile int *);
  33732. vector unsigned char vec_lvsl (int, const volatile unsigned long *);
  33733. vector unsigned char vec_lvsl (int, const volatile long *);
  33734. vector unsigned char vec_lvsl (int, const volatile float *);
  33735. vector unsigned char vec_lvsr (int, const volatile unsigned char *);
  33736. vector unsigned char vec_lvsr (int, const volatile signed char *);
  33737. vector unsigned char vec_lvsr (int, const volatile unsigned short *);
  33738. vector unsigned char vec_lvsr (int, const volatile short *);
  33739. vector unsigned char vec_lvsr (int, const volatile unsigned int *);
  33740. vector unsigned char vec_lvsr (int, const volatile int *);
  33741. vector unsigned char vec_lvsr (int, const volatile unsigned long *);
  33742. vector unsigned char vec_lvsr (int, const volatile long *);
  33743. vector unsigned char vec_lvsr (int, const volatile float *);
  33744. vector float vec_madd (vector float, vector float, vector float);
  33745. vector signed short vec_madds (vector signed short,
  33746. vector signed short,
  33747. vector signed short);
  33748. vector unsigned char vec_max (vector bool char, vector unsigned char);
  33749. vector unsigned char vec_max (vector unsigned char, vector bool char);
  33750. vector unsigned char vec_max (vector unsigned char,
  33751. vector unsigned char);
  33752. vector signed char vec_max (vector bool char, vector signed char);
  33753. vector signed char vec_max (vector signed char, vector bool char);
  33754. vector signed char vec_max (vector signed char, vector signed char);
  33755. vector unsigned short vec_max (vector bool short,
  33756. vector unsigned short);
  33757. vector unsigned short vec_max (vector unsigned short,
  33758. vector bool short);
  33759. vector unsigned short vec_max (vector unsigned short,
  33760. vector unsigned short);
  33761. vector signed short vec_max (vector bool short, vector signed short);
  33762. vector signed short vec_max (vector signed short, vector bool short);
  33763. vector signed short vec_max (vector signed short, vector signed short);
  33764. vector unsigned int vec_max (vector bool int, vector unsigned int);
  33765. vector unsigned int vec_max (vector unsigned int, vector bool int);
  33766. vector unsigned int vec_max (vector unsigned int, vector unsigned int);
  33767. vector signed int vec_max (vector bool int, vector signed int);
  33768. vector signed int vec_max (vector signed int, vector bool int);
  33769. vector signed int vec_max (vector signed int, vector signed int);
  33770. vector float vec_max (vector float, vector float);
  33771. vector float vec_vmaxfp (vector float, vector float);
  33772. vector signed int vec_vmaxsw (vector bool int, vector signed int);
  33773. vector signed int vec_vmaxsw (vector signed int, vector bool int);
  33774. vector signed int vec_vmaxsw (vector signed int, vector signed int);
  33775. vector unsigned int vec_vmaxuw (vector bool int, vector unsigned int);
  33776. vector unsigned int vec_vmaxuw (vector unsigned int, vector bool int);
  33777. vector unsigned int vec_vmaxuw (vector unsigned int,
  33778. vector unsigned int);
  33779. vector signed short vec_vmaxsh (vector bool short, vector signed short);
  33780. vector signed short vec_vmaxsh (vector signed short, vector bool short);
  33781. vector signed short vec_vmaxsh (vector signed short,
  33782. vector signed short);
  33783. vector unsigned short vec_vmaxuh (vector bool short,
  33784. vector unsigned short);
  33785. vector unsigned short vec_vmaxuh (vector unsigned short,
  33786. vector bool short);
  33787. vector unsigned short vec_vmaxuh (vector unsigned short,
  33788. vector unsigned short);
  33789. vector signed char vec_vmaxsb (vector bool char, vector signed char);
  33790. vector signed char vec_vmaxsb (vector signed char, vector bool char);
  33791. vector signed char vec_vmaxsb (vector signed char, vector signed char);
  33792. vector unsigned char vec_vmaxub (vector bool char,
  33793. vector unsigned char);
  33794. vector unsigned char vec_vmaxub (vector unsigned char,
  33795. vector bool char);
  33796. vector unsigned char vec_vmaxub (vector unsigned char,
  33797. vector unsigned char);
  33798. vector bool char vec_mergeh (vector bool char, vector bool char);
  33799. vector signed char vec_mergeh (vector signed char, vector signed char);
  33800. vector unsigned char vec_mergeh (vector unsigned char,
  33801. vector unsigned char);
  33802. vector bool short vec_mergeh (vector bool short, vector bool short);
  33803. vector pixel vec_mergeh (vector pixel, vector pixel);
  33804. vector signed short vec_mergeh (vector signed short,
  33805. vector signed short);
  33806. vector unsigned short vec_mergeh (vector unsigned short,
  33807. vector unsigned short);
  33808. vector float vec_mergeh (vector float, vector float);
  33809. vector bool int vec_mergeh (vector bool int, vector bool int);
  33810. vector signed int vec_mergeh (vector signed int, vector signed int);
  33811. vector unsigned int vec_mergeh (vector unsigned int,
  33812. vector unsigned int);
  33813. vector float vec_vmrghw (vector float, vector float);
  33814. vector bool int vec_vmrghw (vector bool int, vector bool int);
  33815. vector signed int vec_vmrghw (vector signed int, vector signed int);
  33816. vector unsigned int vec_vmrghw (vector unsigned int,
  33817. vector unsigned int);
  33818. vector bool short vec_vmrghh (vector bool short, vector bool short);
  33819. vector signed short vec_vmrghh (vector signed short,
  33820. vector signed short);
  33821. vector unsigned short vec_vmrghh (vector unsigned short,
  33822. vector unsigned short);
  33823. vector pixel vec_vmrghh (vector pixel, vector pixel);
  33824. vector bool char vec_vmrghb (vector bool char, vector bool char);
  33825. vector signed char vec_vmrghb (vector signed char, vector signed char);
  33826. vector unsigned char vec_vmrghb (vector unsigned char,
  33827. vector unsigned char);
  33828. vector bool char vec_mergel (vector bool char, vector bool char);
  33829. vector signed char vec_mergel (vector signed char, vector signed char);
  33830. vector unsigned char vec_mergel (vector unsigned char,
  33831. vector unsigned char);
  33832. vector bool short vec_mergel (vector bool short, vector bool short);
  33833. vector pixel vec_mergel (vector pixel, vector pixel);
  33834. vector signed short vec_mergel (vector signed short,
  33835. vector signed short);
  33836. vector unsigned short vec_mergel (vector unsigned short,
  33837. vector unsigned short);
  33838. vector float vec_mergel (vector float, vector float);
  33839. vector bool int vec_mergel (vector bool int, vector bool int);
  33840. vector signed int vec_mergel (vector signed int, vector signed int);
  33841. vector unsigned int vec_mergel (vector unsigned int,
  33842. vector unsigned int);
  33843. vector float vec_vmrglw (vector float, vector float);
  33844. vector signed int vec_vmrglw (vector signed int, vector signed int);
  33845. vector unsigned int vec_vmrglw (vector unsigned int,
  33846. vector unsigned int);
  33847. vector bool int vec_vmrglw (vector bool int, vector bool int);
  33848. vector bool short vec_vmrglh (vector bool short, vector bool short);
  33849. vector signed short vec_vmrglh (vector signed short,
  33850. vector signed short);
  33851. vector unsigned short vec_vmrglh (vector unsigned short,
  33852. vector unsigned short);
  33853. vector pixel vec_vmrglh (vector pixel, vector pixel);
  33854. vector bool char vec_vmrglb (vector bool char, vector bool char);
  33855. vector signed char vec_vmrglb (vector signed char, vector signed char);
  33856. vector unsigned char vec_vmrglb (vector unsigned char,
  33857. vector unsigned char);
  33858. vector unsigned short vec_mfvscr (void);
  33859. vector unsigned char vec_min (vector bool char, vector unsigned char);
  33860. vector unsigned char vec_min (vector unsigned char, vector bool char);
  33861. vector unsigned char vec_min (vector unsigned char,
  33862. vector unsigned char);
  33863. vector signed char vec_min (vector bool char, vector signed char);
  33864. vector signed char vec_min (vector signed char, vector bool char);
  33865. vector signed char vec_min (vector signed char, vector signed char);
  33866. vector unsigned short vec_min (vector bool short,
  33867. vector unsigned short);
  33868. vector unsigned short vec_min (vector unsigned short,
  33869. vector bool short);
  33870. vector unsigned short vec_min (vector unsigned short,
  33871. vector unsigned short);
  33872. vector signed short vec_min (vector bool short, vector signed short);
  33873. vector signed short vec_min (vector signed short, vector bool short);
  33874. vector signed short vec_min (vector signed short, vector signed short);
  33875. vector unsigned int vec_min (vector bool int, vector unsigned int);
  33876. vector unsigned int vec_min (vector unsigned int, vector bool int);
  33877. vector unsigned int vec_min (vector unsigned int, vector unsigned int);
  33878. vector signed int vec_min (vector bool int, vector signed int);
  33879. vector signed int vec_min (vector signed int, vector bool int);
  33880. vector signed int vec_min (vector signed int, vector signed int);
  33881. vector float vec_min (vector float, vector float);
  33882. vector float vec_vminfp (vector float, vector float);
  33883. vector signed int vec_vminsw (vector bool int, vector signed int);
  33884. vector signed int vec_vminsw (vector signed int, vector bool int);
  33885. vector signed int vec_vminsw (vector signed int, vector signed int);
  33886. vector unsigned int vec_vminuw (vector bool int, vector unsigned int);
  33887. vector unsigned int vec_vminuw (vector unsigned int, vector bool int);
  33888. vector unsigned int vec_vminuw (vector unsigned int,
  33889. vector unsigned int);
  33890. vector signed short vec_vminsh (vector bool short, vector signed short);
  33891. vector signed short vec_vminsh (vector signed short, vector bool short);
  33892. vector signed short vec_vminsh (vector signed short,
  33893. vector signed short);
  33894. vector unsigned short vec_vminuh (vector bool short,
  33895. vector unsigned short);
  33896. vector unsigned short vec_vminuh (vector unsigned short,
  33897. vector bool short);
  33898. vector unsigned short vec_vminuh (vector unsigned short,
  33899. vector unsigned short);
  33900. vector signed char vec_vminsb (vector bool char, vector signed char);
  33901. vector signed char vec_vminsb (vector signed char, vector bool char);
  33902. vector signed char vec_vminsb (vector signed char, vector signed char);
  33903. vector unsigned char vec_vminub (vector bool char,
  33904. vector unsigned char);
  33905. vector unsigned char vec_vminub (vector unsigned char,
  33906. vector bool char);
  33907. vector unsigned char vec_vminub (vector unsigned char,
  33908. vector unsigned char);
  33909. vector signed short vec_mladd (vector signed short,
  33910. vector signed short,
  33911. vector signed short);
  33912. vector signed short vec_mladd (vector signed short,
  33913. vector unsigned short,
  33914. vector unsigned short);
  33915. vector signed short vec_mladd (vector unsigned short,
  33916. vector signed short,
  33917. vector signed short);
  33918. vector unsigned short vec_mladd (vector unsigned short,
  33919. vector unsigned short,
  33920. vector unsigned short);
  33921. vector signed short vec_mradds (vector signed short,
  33922. vector signed short,
  33923. vector signed short);
  33924. vector unsigned int vec_msum (vector unsigned char,
  33925. vector unsigned char,
  33926. vector unsigned int);
  33927. vector signed int vec_msum (vector signed char,
  33928. vector unsigned char,
  33929. vector signed int);
  33930. vector unsigned int vec_msum (vector unsigned short,
  33931. vector unsigned short,
  33932. vector unsigned int);
  33933. vector signed int vec_msum (vector signed short,
  33934. vector signed short,
  33935. vector signed int);
  33936. vector signed int vec_vmsumshm (vector signed short,
  33937. vector signed short,
  33938. vector signed int);
  33939. vector unsigned int vec_vmsumuhm (vector unsigned short,
  33940. vector unsigned short,
  33941. vector unsigned int);
  33942. vector signed int vec_vmsummbm (vector signed char,
  33943. vector unsigned char,
  33944. vector signed int);
  33945. vector unsigned int vec_vmsumubm (vector unsigned char,
  33946. vector unsigned char,
  33947. vector unsigned int);
  33948. vector unsigned int vec_msums (vector unsigned short,
  33949. vector unsigned short,
  33950. vector unsigned int);
  33951. vector signed int vec_msums (vector signed short,
  33952. vector signed short,
  33953. vector signed int);
  33954. vector signed int vec_vmsumshs (vector signed short,
  33955. vector signed short,
  33956. vector signed int);
  33957. vector unsigned int vec_vmsumuhs (vector unsigned short,
  33958. vector unsigned short,
  33959. vector unsigned int);
  33960. void vec_mtvscr (vector signed int);
  33961. void vec_mtvscr (vector unsigned int);
  33962. void vec_mtvscr (vector bool int);
  33963. void vec_mtvscr (vector signed short);
  33964. void vec_mtvscr (vector unsigned short);
  33965. void vec_mtvscr (vector bool short);
  33966. void vec_mtvscr (vector pixel);
  33967. void vec_mtvscr (vector signed char);
  33968. void vec_mtvscr (vector unsigned char);
  33969. void vec_mtvscr (vector bool char);
  33970. vector unsigned short vec_mule (vector unsigned char,
  33971. vector unsigned char);
  33972. vector signed short vec_mule (vector signed char,
  33973. vector signed char);
  33974. vector unsigned int vec_mule (vector unsigned short,
  33975. vector unsigned short);
  33976. vector signed int vec_mule (vector signed short, vector signed short);
  33977. vector signed int vec_vmulesh (vector signed short,
  33978. vector signed short);
  33979. vector unsigned int vec_vmuleuh (vector unsigned short,
  33980. vector unsigned short);
  33981. vector signed short vec_vmulesb (vector signed char,
  33982. vector signed char);
  33983. vector unsigned short vec_vmuleub (vector unsigned char,
  33984. vector unsigned char);
  33985. vector unsigned short vec_mulo (vector unsigned char,
  33986. vector unsigned char);
  33987. vector signed short vec_mulo (vector signed char, vector signed char);
  33988. vector unsigned int vec_mulo (vector unsigned short,
  33989. vector unsigned short);
  33990. vector signed int vec_mulo (vector signed short, vector signed short);
  33991. vector signed int vec_vmulosh (vector signed short,
  33992. vector signed short);
  33993. vector unsigned int vec_vmulouh (vector unsigned short,
  33994. vector unsigned short);
  33995. vector signed short vec_vmulosb (vector signed char,
  33996. vector signed char);
  33997. vector unsigned short vec_vmuloub (vector unsigned char,
  33998. vector unsigned char);
  33999. vector float vec_nmsub (vector float, vector float, vector float);
  34000. vector signed char vec_nabs (vector signed char);
  34001. vector signed short vec_nabs (vector signed short);
  34002. vector signed int vec_nabs (vector signed int);
  34003. vector float vec_nabs (vector float);
  34004. vector double vec_nabs (vector double);
  34005. vector float vec_nor (vector float, vector float);
  34006. vector signed int vec_nor (vector signed int, vector signed int);
  34007. vector unsigned int vec_nor (vector unsigned int, vector unsigned int);
  34008. vector bool int vec_nor (vector bool int, vector bool int);
  34009. vector signed short vec_nor (vector signed short, vector signed short);
  34010. vector unsigned short vec_nor (vector unsigned short,
  34011. vector unsigned short);
  34012. vector bool short vec_nor (vector bool short, vector bool short);
  34013. vector signed char vec_nor (vector signed char, vector signed char);
  34014. vector unsigned char vec_nor (vector unsigned char,
  34015. vector unsigned char);
  34016. vector bool char vec_nor (vector bool char, vector bool char);
  34017. vector float vec_or (vector float, vector float);
  34018. vector float vec_or (vector float, vector bool int);
  34019. vector float vec_or (vector bool int, vector float);
  34020. vector bool int vec_or (vector bool int, vector bool int);
  34021. vector signed int vec_or (vector bool int, vector signed int);
  34022. vector signed int vec_or (vector signed int, vector bool int);
  34023. vector signed int vec_or (vector signed int, vector signed int);
  34024. vector unsigned int vec_or (vector bool int, vector unsigned int);
  34025. vector unsigned int vec_or (vector unsigned int, vector bool int);
  34026. vector unsigned int vec_or (vector unsigned int, vector unsigned int);
  34027. vector bool short vec_or (vector bool short, vector bool short);
  34028. vector signed short vec_or (vector bool short, vector signed short);
  34029. vector signed short vec_or (vector signed short, vector bool short);
  34030. vector signed short vec_or (vector signed short, vector signed short);
  34031. vector unsigned short vec_or (vector bool short, vector unsigned short);
  34032. vector unsigned short vec_or (vector unsigned short, vector bool short);
  34033. vector unsigned short vec_or (vector unsigned short,
  34034. vector unsigned short);
  34035. vector signed char vec_or (vector bool char, vector signed char);
  34036. vector bool char vec_or (vector bool char, vector bool char);
  34037. vector signed char vec_or (vector signed char, vector bool char);
  34038. vector signed char vec_or (vector signed char, vector signed char);
  34039. vector unsigned char vec_or (vector bool char, vector unsigned char);
  34040. vector unsigned char vec_or (vector unsigned char, vector bool char);
  34041. vector unsigned char vec_or (vector unsigned char,
  34042. vector unsigned char);
  34043. vector signed char vec_pack (vector signed short, vector signed short);
  34044. vector unsigned char vec_pack (vector unsigned short,
  34045. vector unsigned short);
  34046. vector bool char vec_pack (vector bool short, vector bool short);
  34047. vector signed short vec_pack (vector signed int, vector signed int);
  34048. vector unsigned short vec_pack (vector unsigned int,
  34049. vector unsigned int);
  34050. vector bool short vec_pack (vector bool int, vector bool int);
  34051. vector bool short vec_vpkuwum (vector bool int, vector bool int);
  34052. vector signed short vec_vpkuwum (vector signed int, vector signed int);
  34053. vector unsigned short vec_vpkuwum (vector unsigned int,
  34054. vector unsigned int);
  34055. vector bool char vec_vpkuhum (vector bool short, vector bool short);
  34056. vector signed char vec_vpkuhum (vector signed short,
  34057. vector signed short);
  34058. vector unsigned char vec_vpkuhum (vector unsigned short,
  34059. vector unsigned short);
  34060. vector pixel vec_packpx (vector unsigned int, vector unsigned int);
  34061. vector unsigned char vec_packs (vector unsigned short,
  34062. vector unsigned short);
  34063. vector signed char vec_packs (vector signed short, vector signed short);
  34064. vector unsigned short vec_packs (vector unsigned int,
  34065. vector unsigned int);
  34066. vector signed short vec_packs (vector signed int, vector signed int);
  34067. vector signed short vec_vpkswss (vector signed int, vector signed int);
  34068. vector unsigned short vec_vpkuwus (vector unsigned int,
  34069. vector unsigned int);
  34070. vector signed char vec_vpkshss (vector signed short,
  34071. vector signed short);
  34072. vector unsigned char vec_vpkuhus (vector unsigned short,
  34073. vector unsigned short);
  34074. vector unsigned char vec_packsu (vector unsigned short,
  34075. vector unsigned short);
  34076. vector unsigned char vec_packsu (vector signed short,
  34077. vector signed short);
  34078. vector unsigned short vec_packsu (vector unsigned int,
  34079. vector unsigned int);
  34080. vector unsigned short vec_packsu (vector signed int, vector signed int);
  34081. vector unsigned short vec_vpkswus (vector signed int,
  34082. vector signed int);
  34083. vector unsigned char vec_vpkshus (vector signed short,
  34084. vector signed short);
  34085. vector float vec_perm (vector float,
  34086. vector float,
  34087. vector unsigned char);
  34088. vector signed int vec_perm (vector signed int,
  34089. vector signed int,
  34090. vector unsigned char);
  34091. vector unsigned int vec_perm (vector unsigned int,
  34092. vector unsigned int,
  34093. vector unsigned char);
  34094. vector bool int vec_perm (vector bool int,
  34095. vector bool int,
  34096. vector unsigned char);
  34097. vector signed short vec_perm (vector signed short,
  34098. vector signed short,
  34099. vector unsigned char);
  34100. vector unsigned short vec_perm (vector unsigned short,
  34101. vector unsigned short,
  34102. vector unsigned char);
  34103. vector bool short vec_perm (vector bool short,
  34104. vector bool short,
  34105. vector unsigned char);
  34106. vector pixel vec_perm (vector pixel,
  34107. vector pixel,
  34108. vector unsigned char);
  34109. vector signed char vec_perm (vector signed char,
  34110. vector signed char,
  34111. vector unsigned char);
  34112. vector unsigned char vec_perm (vector unsigned char,
  34113. vector unsigned char,
  34114. vector unsigned char);
  34115. vector bool char vec_perm (vector bool char,
  34116. vector bool char,
  34117. vector unsigned char);
  34118. vector float vec_re (vector float);
  34119. vector signed char vec_rl (vector signed char,
  34120. vector unsigned char);
  34121. vector unsigned char vec_rl (vector unsigned char,
  34122. vector unsigned char);
  34123. vector signed short vec_rl (vector signed short, vector unsigned short);
  34124. vector unsigned short vec_rl (vector unsigned short,
  34125. vector unsigned short);
  34126. vector signed int vec_rl (vector signed int, vector unsigned int);
  34127. vector unsigned int vec_rl (vector unsigned int, vector unsigned int);
  34128. vector signed int vec_vrlw (vector signed int, vector unsigned int);
  34129. vector unsigned int vec_vrlw (vector unsigned int, vector unsigned int);
  34130. vector signed short vec_vrlh (vector signed short,
  34131. vector unsigned short);
  34132. vector unsigned short vec_vrlh (vector unsigned short,
  34133. vector unsigned short);
  34134. vector signed char vec_vrlb (vector signed char, vector unsigned char);
  34135. vector unsigned char vec_vrlb (vector unsigned char,
  34136. vector unsigned char);
  34137. vector float vec_round (vector float);
  34138. vector float vec_recip (vector float, vector float);
  34139. vector float vec_rsqrt (vector float);
  34140. vector float vec_rsqrte (vector float);
  34141. vector float vec_sel (vector float, vector float, vector bool int);
  34142. vector float vec_sel (vector float, vector float, vector unsigned int);
  34143. vector signed int vec_sel (vector signed int,
  34144. vector signed int,
  34145. vector bool int);
  34146. vector signed int vec_sel (vector signed int,
  34147. vector signed int,
  34148. vector unsigned int);
  34149. vector unsigned int vec_sel (vector unsigned int,
  34150. vector unsigned int,
  34151. vector bool int);
  34152. vector unsigned int vec_sel (vector unsigned int,
  34153. vector unsigned int,
  34154. vector unsigned int);
  34155. vector bool int vec_sel (vector bool int,
  34156. vector bool int,
  34157. vector bool int);
  34158. vector bool int vec_sel (vector bool int,
  34159. vector bool int,
  34160. vector unsigned int);
  34161. vector signed short vec_sel (vector signed short,
  34162. vector signed short,
  34163. vector bool short);
  34164. vector signed short vec_sel (vector signed short,
  34165. vector signed short,
  34166. vector unsigned short);
  34167. vector unsigned short vec_sel (vector unsigned short,
  34168. vector unsigned short,
  34169. vector bool short);
  34170. vector unsigned short vec_sel (vector unsigned short,
  34171. vector unsigned short,
  34172. vector unsigned short);
  34173. vector bool short vec_sel (vector bool short,
  34174. vector bool short,
  34175. vector bool short);
  34176. vector bool short vec_sel (vector bool short,
  34177. vector bool short,
  34178. vector unsigned short);
  34179. vector signed char vec_sel (vector signed char,
  34180. vector signed char,
  34181. vector bool char);
  34182. vector signed char vec_sel (vector signed char,
  34183. vector signed char,
  34184. vector unsigned char);
  34185. vector unsigned char vec_sel (vector unsigned char,
  34186. vector unsigned char,
  34187. vector bool char);
  34188. vector unsigned char vec_sel (vector unsigned char,
  34189. vector unsigned char,
  34190. vector unsigned char);
  34191. vector bool char vec_sel (vector bool char,
  34192. vector bool char,
  34193. vector bool char);
  34194. vector bool char vec_sel (vector bool char,
  34195. vector bool char,
  34196. vector unsigned char);
  34197. vector signed char vec_sl (vector signed char,
  34198. vector unsigned char);
  34199. vector unsigned char vec_sl (vector unsigned char,
  34200. vector unsigned char);
  34201. vector signed short vec_sl (vector signed short, vector unsigned short);
  34202. vector unsigned short vec_sl (vector unsigned short,
  34203. vector unsigned short);
  34204. vector signed int vec_sl (vector signed int, vector unsigned int);
  34205. vector unsigned int vec_sl (vector unsigned int, vector unsigned int);
  34206. vector signed int vec_vslw (vector signed int, vector unsigned int);
  34207. vector unsigned int vec_vslw (vector unsigned int, vector unsigned int);
  34208. vector signed short vec_vslh (vector signed short,
  34209. vector unsigned short);
  34210. vector unsigned short vec_vslh (vector unsigned short,
  34211. vector unsigned short);
  34212. vector signed char vec_vslb (vector signed char, vector unsigned char);
  34213. vector unsigned char vec_vslb (vector unsigned char,
  34214. vector unsigned char);
  34215. vector float vec_sld (vector float, vector float, const int);
  34216. vector double vec_sld (vector double, vector double, const int);
  34217. vector signed int vec_sld (vector signed int,
  34218. vector signed int,
  34219. const int);
  34220. vector unsigned int vec_sld (vector unsigned int,
  34221. vector unsigned int,
  34222. const int);
  34223. vector bool int vec_sld (vector bool int,
  34224. vector bool int,
  34225. const int);
  34226. vector signed short vec_sld (vector signed short,
  34227. vector signed short,
  34228. const int);
  34229. vector unsigned short vec_sld (vector unsigned short,
  34230. vector unsigned short,
  34231. const int);
  34232. vector bool short vec_sld (vector bool short,
  34233. vector bool short,
  34234. const int);
  34235. vector pixel vec_sld (vector pixel,
  34236. vector pixel,
  34237. const int);
  34238. vector signed char vec_sld (vector signed char,
  34239. vector signed char,
  34240. const int);
  34241. vector unsigned char vec_sld (vector unsigned char,
  34242. vector unsigned char,
  34243. const int);
  34244. vector bool char vec_sld (vector bool char,
  34245. vector bool char,
  34246. const int);
  34247. vector bool long long int vec_sld (vector bool long long int,
  34248. vector bool long long int, const int);
  34249. vector long long int vec_sld (vector long long int,
  34250. vector long long int, const int);
  34251. vector unsigned long long int vec_sld (vector unsigned long long int,
  34252. vector unsigned long long int,
  34253. const int);
  34254. vector signed int vec_sll (vector signed int,
  34255. vector unsigned int);
  34256. vector signed int vec_sll (vector signed int,
  34257. vector unsigned short);
  34258. vector signed int vec_sll (vector signed int,
  34259. vector unsigned char);
  34260. vector unsigned int vec_sll (vector unsigned int,
  34261. vector unsigned int);
  34262. vector unsigned int vec_sll (vector unsigned int,
  34263. vector unsigned short);
  34264. vector unsigned int vec_sll (vector unsigned int,
  34265. vector unsigned char);
  34266. vector bool int vec_sll (vector bool int,
  34267. vector unsigned int);
  34268. vector bool int vec_sll (vector bool int,
  34269. vector unsigned short);
  34270. vector bool int vec_sll (vector bool int,
  34271. vector unsigned char);
  34272. vector signed short vec_sll (vector signed short,
  34273. vector unsigned int);
  34274. vector signed short vec_sll (vector signed short,
  34275. vector unsigned short);
  34276. vector signed short vec_sll (vector signed short,
  34277. vector unsigned char);
  34278. vector unsigned short vec_sll (vector unsigned short,
  34279. vector unsigned int);
  34280. vector unsigned short vec_sll (vector unsigned short,
  34281. vector unsigned short);
  34282. vector unsigned short vec_sll (vector unsigned short,
  34283. vector unsigned char);
  34284. vector long long int vec_sll (vector long long int,
  34285. vector unsigned char);
  34286. vector unsigned long long int vec_sll (vector unsigned long long int,
  34287. vector unsigned char);
  34288. vector bool short vec_sll (vector bool short, vector unsigned int);
  34289. vector bool short vec_sll (vector bool short, vector unsigned short);
  34290. vector bool short vec_sll (vector bool short, vector unsigned char);
  34291. vector pixel vec_sll (vector pixel, vector unsigned int);
  34292. vector pixel vec_sll (vector pixel, vector unsigned short);
  34293. vector pixel vec_sll (vector pixel, vector unsigned char);
  34294. vector signed char vec_sll (vector signed char, vector unsigned int);
  34295. vector signed char vec_sll (vector signed char, vector unsigned short);
  34296. vector signed char vec_sll (vector signed char, vector unsigned char);
  34297. vector unsigned char vec_sll (vector unsigned char,
  34298. vector unsigned int);
  34299. vector unsigned char vec_sll (vector unsigned char,
  34300. vector unsigned short);
  34301. vector unsigned char vec_sll (vector unsigned char,
  34302. vector unsigned char);
  34303. vector bool char vec_sll (vector bool char, vector unsigned int);
  34304. vector bool char vec_sll (vector bool char, vector unsigned short);
  34305. vector bool char vec_sll (vector bool char, vector unsigned char);
  34306. vector float vec_slo (vector float, vector signed char);
  34307. vector float vec_slo (vector float, vector unsigned char);
  34308. vector signed int vec_slo (vector signed int, vector signed char);
  34309. vector signed int vec_slo (vector signed int, vector unsigned char);
  34310. vector unsigned int vec_slo (vector unsigned int, vector signed char);
  34311. vector unsigned int vec_slo (vector unsigned int, vector unsigned char);
  34312. vector signed short vec_slo (vector signed short, vector signed char);
  34313. vector signed short vec_slo (vector signed short, vector unsigned char);
  34314. vector unsigned short vec_slo (vector unsigned short,
  34315. vector signed char);
  34316. vector unsigned short vec_slo (vector unsigned short,
  34317. vector unsigned char);
  34318. vector pixel vec_slo (vector pixel, vector signed char);
  34319. vector pixel vec_slo (vector pixel, vector unsigned char);
  34320. vector signed char vec_slo (vector signed char, vector signed char);
  34321. vector signed char vec_slo (vector signed char, vector unsigned char);
  34322. vector unsigned char vec_slo (vector unsigned char, vector signed char);
  34323. vector unsigned char vec_slo (vector unsigned char,
  34324. vector unsigned char);
  34325. vector signed char vec_splat (vector signed char, const int);
  34326. vector unsigned char vec_splat (vector unsigned char, const int);
  34327. vector bool char vec_splat (vector bool char, const int);
  34328. vector signed short vec_splat (vector signed short, const int);
  34329. vector unsigned short vec_splat (vector unsigned short, const int);
  34330. vector bool short vec_splat (vector bool short, const int);
  34331. vector pixel vec_splat (vector pixel, const int);
  34332. vector float vec_splat (vector float, const int);
  34333. vector signed int vec_splat (vector signed int, const int);
  34334. vector unsigned int vec_splat (vector unsigned int, const int);
  34335. vector bool int vec_splat (vector bool int, const int);
  34336. vector signed long vec_splat (vector signed long, const int);
  34337. vector unsigned long vec_splat (vector unsigned long, const int);
  34338. vector signed char vec_splats (signed char);
  34339. vector unsigned char vec_splats (unsigned char);
  34340. vector signed short vec_splats (signed short);
  34341. vector unsigned short vec_splats (unsigned short);
  34342. vector signed int vec_splats (signed int);
  34343. vector unsigned int vec_splats (unsigned int);
  34344. vector float vec_splats (float);
  34345. vector float vec_vspltw (vector float, const int);
  34346. vector signed int vec_vspltw (vector signed int, const int);
  34347. vector unsigned int vec_vspltw (vector unsigned int, const int);
  34348. vector bool int vec_vspltw (vector bool int, const int);
  34349. vector bool short vec_vsplth (vector bool short, const int);
  34350. vector signed short vec_vsplth (vector signed short, const int);
  34351. vector unsigned short vec_vsplth (vector unsigned short, const int);
  34352. vector pixel vec_vsplth (vector pixel, const int);
  34353. vector signed char vec_vspltb (vector signed char, const int);
  34354. vector unsigned char vec_vspltb (vector unsigned char, const int);
  34355. vector bool char vec_vspltb (vector bool char, const int);
  34356. vector signed char vec_splat_s8 (const int);
  34357. vector signed short vec_splat_s16 (const int);
  34358. vector signed int vec_splat_s32 (const int);
  34359. vector unsigned char vec_splat_u8 (const int);
  34360. vector unsigned short vec_splat_u16 (const int);
  34361. vector unsigned int vec_splat_u32 (const int);
  34362. vector signed char vec_sr (vector signed char, vector unsigned char);
  34363. vector unsigned char vec_sr (vector unsigned char,
  34364. vector unsigned char);
  34365. vector signed short vec_sr (vector signed short,
  34366. vector unsigned short);
  34367. vector unsigned short vec_sr (vector unsigned short,
  34368. vector unsigned short);
  34369. vector signed int vec_sr (vector signed int, vector unsigned int);
  34370. vector unsigned int vec_sr (vector unsigned int, vector unsigned int);
  34371. vector signed int vec_vsrw (vector signed int, vector unsigned int);
  34372. vector unsigned int vec_vsrw (vector unsigned int, vector unsigned int);
  34373. vector signed short vec_vsrh (vector signed short,
  34374. vector unsigned short);
  34375. vector unsigned short vec_vsrh (vector unsigned short,
  34376. vector unsigned short);
  34377. vector signed char vec_vsrb (vector signed char, vector unsigned char);
  34378. vector unsigned char vec_vsrb (vector unsigned char,
  34379. vector unsigned char);
  34380. vector signed char vec_sra (vector signed char, vector unsigned char);
  34381. vector unsigned char vec_sra (vector unsigned char,
  34382. vector unsigned char);
  34383. vector signed short vec_sra (vector signed short,
  34384. vector unsigned short);
  34385. vector unsigned short vec_sra (vector unsigned short,
  34386. vector unsigned short);
  34387. vector signed int vec_sra (vector signed int, vector unsigned int);
  34388. vector unsigned int vec_sra (vector unsigned int, vector unsigned int);
  34389. vector signed int vec_vsraw (vector signed int, vector unsigned int);
  34390. vector unsigned int vec_vsraw (vector unsigned int,
  34391. vector unsigned int);
  34392. vector signed short vec_vsrah (vector signed short,
  34393. vector unsigned short);
  34394. vector unsigned short vec_vsrah (vector unsigned short,
  34395. vector unsigned short);
  34396. vector signed char vec_vsrab (vector signed char, vector unsigned char);
  34397. vector unsigned char vec_vsrab (vector unsigned char,
  34398. vector unsigned char);
  34399. vector signed int vec_srl (vector signed int, vector unsigned int);
  34400. vector signed int vec_srl (vector signed int, vector unsigned short);
  34401. vector signed int vec_srl (vector signed int, vector unsigned char);
  34402. vector unsigned int vec_srl (vector unsigned int, vector unsigned int);
  34403. vector unsigned int vec_srl (vector unsigned int,
  34404. vector unsigned short);
  34405. vector unsigned int vec_srl (vector unsigned int, vector unsigned char);
  34406. vector bool int vec_srl (vector bool int, vector unsigned int);
  34407. vector bool int vec_srl (vector bool int, vector unsigned short);
  34408. vector bool int vec_srl (vector bool int, vector unsigned char);
  34409. vector signed short vec_srl (vector signed short, vector unsigned int);
  34410. vector signed short vec_srl (vector signed short,
  34411. vector unsigned short);
  34412. vector signed short vec_srl (vector signed short, vector unsigned char);
  34413. vector unsigned short vec_srl (vector unsigned short,
  34414. vector unsigned int);
  34415. vector unsigned short vec_srl (vector unsigned short,
  34416. vector unsigned short);
  34417. vector unsigned short vec_srl (vector unsigned short,
  34418. vector unsigned char);
  34419. vector long long int vec_srl (vector long long int,
  34420. vector unsigned char);
  34421. vector unsigned long long int vec_srl (vector unsigned long long int,
  34422. vector unsigned char);
  34423. vector bool short vec_srl (vector bool short, vector unsigned int);
  34424. vector bool short vec_srl (vector bool short, vector unsigned short);
  34425. vector bool short vec_srl (vector bool short, vector unsigned char);
  34426. vector pixel vec_srl (vector pixel, vector unsigned int);
  34427. vector pixel vec_srl (vector pixel, vector unsigned short);
  34428. vector pixel vec_srl (vector pixel, vector unsigned char);
  34429. vector signed char vec_srl (vector signed char, vector unsigned int);
  34430. vector signed char vec_srl (vector signed char, vector unsigned short);
  34431. vector signed char vec_srl (vector signed char, vector unsigned char);
  34432. vector unsigned char vec_srl (vector unsigned char,
  34433. vector unsigned int);
  34434. vector unsigned char vec_srl (vector unsigned char,
  34435. vector unsigned short);
  34436. vector unsigned char vec_srl (vector unsigned char,
  34437. vector unsigned char);
  34438. vector bool char vec_srl (vector bool char, vector unsigned int);
  34439. vector bool char vec_srl (vector bool char, vector unsigned short);
  34440. vector bool char vec_srl (vector bool char, vector unsigned char);
  34441. vector float vec_sro (vector float, vector signed char);
  34442. vector float vec_sro (vector float, vector unsigned char);
  34443. vector signed int vec_sro (vector signed int, vector signed char);
  34444. vector signed int vec_sro (vector signed int, vector unsigned char);
  34445. vector unsigned int vec_sro (vector unsigned int, vector signed char);
  34446. vector unsigned int vec_sro (vector unsigned int, vector unsigned char);
  34447. vector signed short vec_sro (vector signed short, vector signed char);
  34448. vector signed short vec_sro (vector signed short, vector unsigned char);
  34449. vector unsigned short vec_sro (vector unsigned short,
  34450. vector signed char);
  34451. vector unsigned short vec_sro (vector unsigned short,
  34452. vector unsigned char);
  34453. vector long long int vec_sro (vector long long int,
  34454. vector char);
  34455. vector long long int vec_sro (vector long long int,
  34456. vector unsigned char);
  34457. vector unsigned long long int vec_sro (vector unsigned long long int,
  34458. vector char);
  34459. vector unsigned long long int vec_sro (vector unsigned long long int,
  34460. vector unsigned char);
  34461. vector pixel vec_sro (vector pixel, vector signed char);
  34462. vector pixel vec_sro (vector pixel, vector unsigned char);
  34463. vector signed char vec_sro (vector signed char, vector signed char);
  34464. vector signed char vec_sro (vector signed char, vector unsigned char);
  34465. vector unsigned char vec_sro (vector unsigned char, vector signed char);
  34466. vector unsigned char vec_sro (vector unsigned char,
  34467. vector unsigned char);
  34468. void vec_st (vector float, int, vector float *);
  34469. void vec_st (vector float, int, float *);
  34470. void vec_st (vector signed int, int, vector signed int *);
  34471. void vec_st (vector signed int, int, int *);
  34472. void vec_st (vector unsigned int, int, vector unsigned int *);
  34473. void vec_st (vector unsigned int, int, unsigned int *);
  34474. void vec_st (vector bool int, int, vector bool int *);
  34475. void vec_st (vector bool int, int, unsigned int *);
  34476. void vec_st (vector bool int, int, int *);
  34477. void vec_st (vector signed short, int, vector signed short *);
  34478. void vec_st (vector signed short, int, short *);
  34479. void vec_st (vector unsigned short, int, vector unsigned short *);
  34480. void vec_st (vector unsigned short, int, unsigned short *);
  34481. void vec_st (vector bool short, int, vector bool short *);
  34482. void vec_st (vector bool short, int, unsigned short *);
  34483. void vec_st (vector pixel, int, vector pixel *);
  34484. void vec_st (vector pixel, int, unsigned short *);
  34485. void vec_st (vector pixel, int, short *);
  34486. void vec_st (vector bool short, int, short *);
  34487. void vec_st (vector signed char, int, vector signed char *);
  34488. void vec_st (vector signed char, int, signed char *);
  34489. void vec_st (vector unsigned char, int, vector unsigned char *);
  34490. void vec_st (vector unsigned char, int, unsigned char *);
  34491. void vec_st (vector bool char, int, vector bool char *);
  34492. void vec_st (vector bool char, int, unsigned char *);
  34493. void vec_st (vector bool char, int, signed char *);
  34494. void vec_ste (vector signed char, int, signed char *);
  34495. void vec_ste (vector unsigned char, int, unsigned char *);
  34496. void vec_ste (vector bool char, int, signed char *);
  34497. void vec_ste (vector bool char, int, unsigned char *);
  34498. void vec_ste (vector signed short, int, short *);
  34499. void vec_ste (vector unsigned short, int, unsigned short *);
  34500. void vec_ste (vector bool short, int, short *);
  34501. void vec_ste (vector bool short, int, unsigned short *);
  34502. void vec_ste (vector pixel, int, short *);
  34503. void vec_ste (vector pixel, int, unsigned short *);
  34504. void vec_ste (vector float, int, float *);
  34505. void vec_ste (vector signed int, int, int *);
  34506. void vec_ste (vector unsigned int, int, unsigned int *);
  34507. void vec_ste (vector bool int, int, int *);
  34508. void vec_ste (vector bool int, int, unsigned int *);
  34509. void vec_stvewx (vector float, int, float *);
  34510. void vec_stvewx (vector signed int, int, int *);
  34511. void vec_stvewx (vector unsigned int, int, unsigned int *);
  34512. void vec_stvewx (vector bool int, int, int *);
  34513. void vec_stvewx (vector bool int, int, unsigned int *);
  34514. void vec_stvehx (vector signed short, int, short *);
  34515. void vec_stvehx (vector unsigned short, int, unsigned short *);
  34516. void vec_stvehx (vector bool short, int, short *);
  34517. void vec_stvehx (vector bool short, int, unsigned short *);
  34518. void vec_stvehx (vector pixel, int, short *);
  34519. void vec_stvehx (vector pixel, int, unsigned short *);
  34520. void vec_stvebx (vector signed char, int, signed char *);
  34521. void vec_stvebx (vector unsigned char, int, unsigned char *);
  34522. void vec_stvebx (vector bool char, int, signed char *);
  34523. void vec_stvebx (vector bool char, int, unsigned char *);
  34524. void vec_stl (vector float, int, vector float *);
  34525. void vec_stl (vector float, int, float *);
  34526. void vec_stl (vector signed int, int, vector signed int *);
  34527. void vec_stl (vector signed int, int, int *);
  34528. void vec_stl (vector unsigned int, int, vector unsigned int *);
  34529. void vec_stl (vector unsigned int, int, unsigned int *);
  34530. void vec_stl (vector bool int, int, vector bool int *);
  34531. void vec_stl (vector bool int, int, unsigned int *);
  34532. void vec_stl (vector bool int, int, int *);
  34533. void vec_stl (vector signed short, int, vector signed short *);
  34534. void vec_stl (vector signed short, int, short *);
  34535. void vec_stl (vector unsigned short, int, vector unsigned short *);
  34536. void vec_stl (vector unsigned short, int, unsigned short *);
  34537. void vec_stl (vector bool short, int, vector bool short *);
  34538. void vec_stl (vector bool short, int, unsigned short *);
  34539. void vec_stl (vector bool short, int, short *);
  34540. void vec_stl (vector pixel, int, vector pixel *);
  34541. void vec_stl (vector pixel, int, unsigned short *);
  34542. void vec_stl (vector pixel, int, short *);
  34543. void vec_stl (vector signed char, int, vector signed char *);
  34544. void vec_stl (vector signed char, int, signed char *);
  34545. void vec_stl (vector unsigned char, int, vector unsigned char *);
  34546. void vec_stl (vector unsigned char, int, unsigned char *);
  34547. void vec_stl (vector bool char, int, vector bool char *);
  34548. void vec_stl (vector bool char, int, unsigned char *);
  34549. void vec_stl (vector bool char, int, signed char *);
  34550. vector signed char vec_sub (vector bool char, vector signed char);
  34551. vector signed char vec_sub (vector signed char, vector bool char);
  34552. vector signed char vec_sub (vector signed char, vector signed char);
  34553. vector unsigned char vec_sub (vector bool char, vector unsigned char);
  34554. vector unsigned char vec_sub (vector unsigned char, vector bool char);
  34555. vector unsigned char vec_sub (vector unsigned char,
  34556. vector unsigned char);
  34557. vector signed short vec_sub (vector bool short, vector signed short);
  34558. vector signed short vec_sub (vector signed short, vector bool short);
  34559. vector signed short vec_sub (vector signed short, vector signed short);
  34560. vector unsigned short vec_sub (vector bool short,
  34561. vector unsigned short);
  34562. vector unsigned short vec_sub (vector unsigned short,
  34563. vector bool short);
  34564. vector unsigned short vec_sub (vector unsigned short,
  34565. vector unsigned short);
  34566. vector signed int vec_sub (vector bool int, vector signed int);
  34567. vector signed int vec_sub (vector signed int, vector bool int);
  34568. vector signed int vec_sub (vector signed int, vector signed int);
  34569. vector unsigned int vec_sub (vector bool int, vector unsigned int);
  34570. vector unsigned int vec_sub (vector unsigned int, vector bool int);
  34571. vector unsigned int vec_sub (vector unsigned int, vector unsigned int);
  34572. vector float vec_sub (vector float, vector float);
  34573. vector float vec_vsubfp (vector float, vector float);
  34574. vector signed int vec_vsubuwm (vector bool int, vector signed int);
  34575. vector signed int vec_vsubuwm (vector signed int, vector bool int);
  34576. vector signed int vec_vsubuwm (vector signed int, vector signed int);
  34577. vector unsigned int vec_vsubuwm (vector bool int, vector unsigned int);
  34578. vector unsigned int vec_vsubuwm (vector unsigned int, vector bool int);
  34579. vector unsigned int vec_vsubuwm (vector unsigned int,
  34580. vector unsigned int);
  34581. vector signed short vec_vsubuhm (vector bool short,
  34582. vector signed short);
  34583. vector signed short vec_vsubuhm (vector signed short,
  34584. vector bool short);
  34585. vector signed short vec_vsubuhm (vector signed short,
  34586. vector signed short);
  34587. vector unsigned short vec_vsubuhm (vector bool short,
  34588. vector unsigned short);
  34589. vector unsigned short vec_vsubuhm (vector unsigned short,
  34590. vector bool short);
  34591. vector unsigned short vec_vsubuhm (vector unsigned short,
  34592. vector unsigned short);
  34593. vector signed char vec_vsububm (vector bool char, vector signed char);
  34594. vector signed char vec_vsububm (vector signed char, vector bool char);
  34595. vector signed char vec_vsububm (vector signed char, vector signed char);
  34596. vector unsigned char vec_vsububm (vector bool char,
  34597. vector unsigned char);
  34598. vector unsigned char vec_vsububm (vector unsigned char,
  34599. vector bool char);
  34600. vector unsigned char vec_vsububm (vector unsigned char,
  34601. vector unsigned char);
  34602. vector unsigned int vec_subc (vector unsigned int, vector unsigned int);
  34603. vector unsigned char vec_subs (vector bool char, vector unsigned char);
  34604. vector unsigned char vec_subs (vector unsigned char, vector bool char);
  34605. vector unsigned char vec_subs (vector unsigned char,
  34606. vector unsigned char);
  34607. vector signed char vec_subs (vector bool char, vector signed char);
  34608. vector signed char vec_subs (vector signed char, vector bool char);
  34609. vector signed char vec_subs (vector signed char, vector signed char);
  34610. vector unsigned short vec_subs (vector bool short,
  34611. vector unsigned short);
  34612. vector unsigned short vec_subs (vector unsigned short,
  34613. vector bool short);
  34614. vector unsigned short vec_subs (vector unsigned short,
  34615. vector unsigned short);
  34616. vector signed short vec_subs (vector bool short, vector signed short);
  34617. vector signed short vec_subs (vector signed short, vector bool short);
  34618. vector signed short vec_subs (vector signed short, vector signed short);
  34619. vector unsigned int vec_subs (vector bool int, vector unsigned int);
  34620. vector unsigned int vec_subs (vector unsigned int, vector bool int);
  34621. vector unsigned int vec_subs (vector unsigned int, vector unsigned int);
  34622. vector signed int vec_subs (vector bool int, vector signed int);
  34623. vector signed int vec_subs (vector signed int, vector bool int);
  34624. vector signed int vec_subs (vector signed int, vector signed int);
  34625. vector signed int vec_vsubsws (vector bool int, vector signed int);
  34626. vector signed int vec_vsubsws (vector signed int, vector bool int);
  34627. vector signed int vec_vsubsws (vector signed int, vector signed int);
  34628. vector unsigned int vec_vsubuws (vector bool int, vector unsigned int);
  34629. vector unsigned int vec_vsubuws (vector unsigned int, vector bool int);
  34630. vector unsigned int vec_vsubuws (vector unsigned int,
  34631. vector unsigned int);
  34632. vector signed short vec_vsubshs (vector bool short,
  34633. vector signed short);
  34634. vector signed short vec_vsubshs (vector signed short,
  34635. vector bool short);
  34636. vector signed short vec_vsubshs (vector signed short,
  34637. vector signed short);
  34638. vector unsigned short vec_vsubuhs (vector bool short,
  34639. vector unsigned short);
  34640. vector unsigned short vec_vsubuhs (vector unsigned short,
  34641. vector bool short);
  34642. vector unsigned short vec_vsubuhs (vector unsigned short,
  34643. vector unsigned short);
  34644. vector signed char vec_vsubsbs (vector bool char, vector signed char);
  34645. vector signed char vec_vsubsbs (vector signed char, vector bool char);
  34646. vector signed char vec_vsubsbs (vector signed char, vector signed char);
  34647. vector unsigned char vec_vsububs (vector bool char,
  34648. vector unsigned char);
  34649. vector unsigned char vec_vsububs (vector unsigned char,
  34650. vector bool char);
  34651. vector unsigned char vec_vsububs (vector unsigned char,
  34652. vector unsigned char);
  34653. vector unsigned int vec_sum4s (vector unsigned char,
  34654. vector unsigned int);
  34655. vector signed int vec_sum4s (vector signed char, vector signed int);
  34656. vector signed int vec_sum4s (vector signed short, vector signed int);
  34657. vector signed int vec_vsum4shs (vector signed short, vector signed int);
  34658. vector signed int vec_vsum4sbs (vector signed char, vector signed int);
  34659. vector unsigned int vec_vsum4ubs (vector unsigned char,
  34660. vector unsigned int);
  34661. vector signed int vec_sum2s (vector signed int, vector signed int);
  34662. vector signed int vec_sums (vector signed int, vector signed int);
  34663. vector float vec_trunc (vector float);
  34664. vector signed short vec_unpackh (vector signed char);
  34665. vector bool short vec_unpackh (vector bool char);
  34666. vector signed int vec_unpackh (vector signed short);
  34667. vector bool int vec_unpackh (vector bool short);
  34668. vector unsigned int vec_unpackh (vector pixel);
  34669. vector double vec_unpackh (vector float);
  34670. vector bool int vec_vupkhsh (vector bool short);
  34671. vector signed int vec_vupkhsh (vector signed short);
  34672. vector unsigned int vec_vupkhpx (vector pixel);
  34673. vector bool short vec_vupkhsb (vector bool char);
  34674. vector signed short vec_vupkhsb (vector signed char);
  34675. vector signed short vec_unpackl (vector signed char);
  34676. vector bool short vec_unpackl (vector bool char);
  34677. vector unsigned int vec_unpackl (vector pixel);
  34678. vector signed int vec_unpackl (vector signed short);
  34679. vector bool int vec_unpackl (vector bool short);
  34680. vector double vec_unpackl (vector float);
  34681. vector unsigned int vec_vupklpx (vector pixel);
  34682. vector bool int vec_vupklsh (vector bool short);
  34683. vector signed int vec_vupklsh (vector signed short);
  34684. vector bool short vec_vupklsb (vector bool char);
  34685. vector signed short vec_vupklsb (vector signed char);
  34686. vector float vec_xor (vector float, vector float);
  34687. vector float vec_xor (vector float, vector bool int);
  34688. vector float vec_xor (vector bool int, vector float);
  34689. vector bool int vec_xor (vector bool int, vector bool int);
  34690. vector signed int vec_xor (vector bool int, vector signed int);
  34691. vector signed int vec_xor (vector signed int, vector bool int);
  34692. vector signed int vec_xor (vector signed int, vector signed int);
  34693. vector unsigned int vec_xor (vector bool int, vector unsigned int);
  34694. vector unsigned int vec_xor (vector unsigned int, vector bool int);
  34695. vector unsigned int vec_xor (vector unsigned int, vector unsigned int);
  34696. vector bool short vec_xor (vector bool short, vector bool short);
  34697. vector signed short vec_xor (vector bool short, vector signed short);
  34698. vector signed short vec_xor (vector signed short, vector bool short);
  34699. vector signed short vec_xor (vector signed short, vector signed short);
  34700. vector unsigned short vec_xor (vector bool short,
  34701. vector unsigned short);
  34702. vector unsigned short vec_xor (vector unsigned short,
  34703. vector bool short);
  34704. vector unsigned short vec_xor (vector unsigned short,
  34705. vector unsigned short);
  34706. vector signed char vec_xor (vector bool char, vector signed char);
  34707. vector bool char vec_xor (vector bool char, vector bool char);
  34708. vector signed char vec_xor (vector signed char, vector bool char);
  34709. vector signed char vec_xor (vector signed char, vector signed char);
  34710. vector unsigned char vec_xor (vector bool char, vector unsigned char);
  34711. vector unsigned char vec_xor (vector unsigned char, vector bool char);
  34712. vector unsigned char vec_xor (vector unsigned char,
  34713. vector unsigned char);
  34714. int vec_all_eq (vector signed char, vector bool char);
  34715. int vec_all_eq (vector signed char, vector signed char);
  34716. int vec_all_eq (vector unsigned char, vector bool char);
  34717. int vec_all_eq (vector unsigned char, vector unsigned char);
  34718. int vec_all_eq (vector bool char, vector bool char);
  34719. int vec_all_eq (vector bool char, vector unsigned char);
  34720. int vec_all_eq (vector bool char, vector signed char);
  34721. int vec_all_eq (vector signed short, vector bool short);
  34722. int vec_all_eq (vector signed short, vector signed short);
  34723. int vec_all_eq (vector unsigned short, vector bool short);
  34724. int vec_all_eq (vector unsigned short, vector unsigned short);
  34725. int vec_all_eq (vector bool short, vector bool short);
  34726. int vec_all_eq (vector bool short, vector unsigned short);
  34727. int vec_all_eq (vector bool short, vector signed short);
  34728. int vec_all_eq (vector pixel, vector pixel);
  34729. int vec_all_eq (vector signed int, vector bool int);
  34730. int vec_all_eq (vector signed int, vector signed int);
  34731. int vec_all_eq (vector unsigned int, vector bool int);
  34732. int vec_all_eq (vector unsigned int, vector unsigned int);
  34733. int vec_all_eq (vector bool int, vector bool int);
  34734. int vec_all_eq (vector bool int, vector unsigned int);
  34735. int vec_all_eq (vector bool int, vector signed int);
  34736. int vec_all_eq (vector float, vector float);
  34737. int vec_all_ge (vector bool char, vector unsigned char);
  34738. int vec_all_ge (vector unsigned char, vector bool char);
  34739. int vec_all_ge (vector unsigned char, vector unsigned char);
  34740. int vec_all_ge (vector bool char, vector signed char);
  34741. int vec_all_ge (vector signed char, vector bool char);
  34742. int vec_all_ge (vector signed char, vector signed char);
  34743. int vec_all_ge (vector bool short, vector unsigned short);
  34744. int vec_all_ge (vector unsigned short, vector bool short);
  34745. int vec_all_ge (vector unsigned short, vector unsigned short);
  34746. int vec_all_ge (vector signed short, vector signed short);
  34747. int vec_all_ge (vector bool short, vector signed short);
  34748. int vec_all_ge (vector signed short, vector bool short);
  34749. int vec_all_ge (vector bool int, vector unsigned int);
  34750. int vec_all_ge (vector unsigned int, vector bool int);
  34751. int vec_all_ge (vector unsigned int, vector unsigned int);
  34752. int vec_all_ge (vector bool int, vector signed int);
  34753. int vec_all_ge (vector signed int, vector bool int);
  34754. int vec_all_ge (vector signed int, vector signed int);
  34755. int vec_all_ge (vector float, vector float);
  34756. int vec_all_gt (vector bool char, vector unsigned char);
  34757. int vec_all_gt (vector unsigned char, vector bool char);
  34758. int vec_all_gt (vector unsigned char, vector unsigned char);
  34759. int vec_all_gt (vector bool char, vector signed char);
  34760. int vec_all_gt (vector signed char, vector bool char);
  34761. int vec_all_gt (vector signed char, vector signed char);
  34762. int vec_all_gt (vector bool short, vector unsigned short);
  34763. int vec_all_gt (vector unsigned short, vector bool short);
  34764. int vec_all_gt (vector unsigned short, vector unsigned short);
  34765. int vec_all_gt (vector bool short, vector signed short);
  34766. int vec_all_gt (vector signed short, vector bool short);
  34767. int vec_all_gt (vector signed short, vector signed short);
  34768. int vec_all_gt (vector bool int, vector unsigned int);
  34769. int vec_all_gt (vector unsigned int, vector bool int);
  34770. int vec_all_gt (vector unsigned int, vector unsigned int);
  34771. int vec_all_gt (vector bool int, vector signed int);
  34772. int vec_all_gt (vector signed int, vector bool int);
  34773. int vec_all_gt (vector signed int, vector signed int);
  34774. int vec_all_gt (vector float, vector float);
  34775. int vec_all_in (vector float, vector float);
  34776. int vec_all_le (vector bool char, vector unsigned char);
  34777. int vec_all_le (vector unsigned char, vector bool char);
  34778. int vec_all_le (vector unsigned char, vector unsigned char);
  34779. int vec_all_le (vector bool char, vector signed char);
  34780. int vec_all_le (vector signed char, vector bool char);
  34781. int vec_all_le (vector signed char, vector signed char);
  34782. int vec_all_le (vector bool short, vector unsigned short);
  34783. int vec_all_le (vector unsigned short, vector bool short);
  34784. int vec_all_le (vector unsigned short, vector unsigned short);
  34785. int vec_all_le (vector bool short, vector signed short);
  34786. int vec_all_le (vector signed short, vector bool short);
  34787. int vec_all_le (vector signed short, vector signed short);
  34788. int vec_all_le (vector bool int, vector unsigned int);
  34789. int vec_all_le (vector unsigned int, vector bool int);
  34790. int vec_all_le (vector unsigned int, vector unsigned int);
  34791. int vec_all_le (vector bool int, vector signed int);
  34792. int vec_all_le (vector signed int, vector bool int);
  34793. int vec_all_le (vector signed int, vector signed int);
  34794. int vec_all_le (vector float, vector float);
  34795. int vec_all_lt (vector bool char, vector unsigned char);
  34796. int vec_all_lt (vector unsigned char, vector bool char);
  34797. int vec_all_lt (vector unsigned char, vector unsigned char);
  34798. int vec_all_lt (vector bool char, vector signed char);
  34799. int vec_all_lt (vector signed char, vector bool char);
  34800. int vec_all_lt (vector signed char, vector signed char);
  34801. int vec_all_lt (vector bool short, vector unsigned short);
  34802. int vec_all_lt (vector unsigned short, vector bool short);
  34803. int vec_all_lt (vector unsigned short, vector unsigned short);
  34804. int vec_all_lt (vector bool short, vector signed short);
  34805. int vec_all_lt (vector signed short, vector bool short);
  34806. int vec_all_lt (vector signed short, vector signed short);
  34807. int vec_all_lt (vector bool int, vector unsigned int);
  34808. int vec_all_lt (vector unsigned int, vector bool int);
  34809. int vec_all_lt (vector unsigned int, vector unsigned int);
  34810. int vec_all_lt (vector bool int, vector signed int);
  34811. int vec_all_lt (vector signed int, vector bool int);
  34812. int vec_all_lt (vector signed int, vector signed int);
  34813. int vec_all_lt (vector float, vector float);
  34814. int vec_all_nan (vector float);
  34815. int vec_all_ne (vector signed char, vector bool char);
  34816. int vec_all_ne (vector signed char, vector signed char);
  34817. int vec_all_ne (vector unsigned char, vector bool char);
  34818. int vec_all_ne (vector unsigned char, vector unsigned char);
  34819. int vec_all_ne (vector bool char, vector bool char);
  34820. int vec_all_ne (vector bool char, vector unsigned char);
  34821. int vec_all_ne (vector bool char, vector signed char);
  34822. int vec_all_ne (vector signed short, vector bool short);
  34823. int vec_all_ne (vector signed short, vector signed short);
  34824. int vec_all_ne (vector unsigned short, vector bool short);
  34825. int vec_all_ne (vector unsigned short, vector unsigned short);
  34826. int vec_all_ne (vector bool short, vector bool short);
  34827. int vec_all_ne (vector bool short, vector unsigned short);
  34828. int vec_all_ne (vector bool short, vector signed short);
  34829. int vec_all_ne (vector pixel, vector pixel);
  34830. int vec_all_ne (vector signed int, vector bool int);
  34831. int vec_all_ne (vector signed int, vector signed int);
  34832. int vec_all_ne (vector unsigned int, vector bool int);
  34833. int vec_all_ne (vector unsigned int, vector unsigned int);
  34834. int vec_all_ne (vector bool int, vector bool int);
  34835. int vec_all_ne (vector bool int, vector unsigned int);
  34836. int vec_all_ne (vector bool int, vector signed int);
  34837. int vec_all_ne (vector float, vector float);
  34838. int vec_all_nge (vector float, vector float);
  34839. int vec_all_ngt (vector float, vector float);
  34840. int vec_all_nle (vector float, vector float);
  34841. int vec_all_nlt (vector float, vector float);
  34842. int vec_all_numeric (vector float);
  34843. int vec_any_eq (vector signed char, vector bool char);
  34844. int vec_any_eq (vector signed char, vector signed char);
  34845. int vec_any_eq (vector unsigned char, vector bool char);
  34846. int vec_any_eq (vector unsigned char, vector unsigned char);
  34847. int vec_any_eq (vector bool char, vector bool char);
  34848. int vec_any_eq (vector bool char, vector unsigned char);
  34849. int vec_any_eq (vector bool char, vector signed char);
  34850. int vec_any_eq (vector signed short, vector bool short);
  34851. int vec_any_eq (vector signed short, vector signed short);
  34852. int vec_any_eq (vector unsigned short, vector bool short);
  34853. int vec_any_eq (vector unsigned short, vector unsigned short);
  34854. int vec_any_eq (vector bool short, vector bool short);
  34855. int vec_any_eq (vector bool short, vector unsigned short);
  34856. int vec_any_eq (vector bool short, vector signed short);
  34857. int vec_any_eq (vector pixel, vector pixel);
  34858. int vec_any_eq (vector signed int, vector bool int);
  34859. int vec_any_eq (vector signed int, vector signed int);
  34860. int vec_any_eq (vector unsigned int, vector bool int);
  34861. int vec_any_eq (vector unsigned int, vector unsigned int);
  34862. int vec_any_eq (vector bool int, vector bool int);
  34863. int vec_any_eq (vector bool int, vector unsigned int);
  34864. int vec_any_eq (vector bool int, vector signed int);
  34865. int vec_any_eq (vector float, vector float);
  34866. int vec_any_ge (vector signed char, vector bool char);
  34867. int vec_any_ge (vector unsigned char, vector bool char);
  34868. int vec_any_ge (vector unsigned char, vector unsigned char);
  34869. int vec_any_ge (vector signed char, vector signed char);
  34870. int vec_any_ge (vector bool char, vector unsigned char);
  34871. int vec_any_ge (vector bool char, vector signed char);
  34872. int vec_any_ge (vector unsigned short, vector bool short);
  34873. int vec_any_ge (vector unsigned short, vector unsigned short);
  34874. int vec_any_ge (vector signed short, vector signed short);
  34875. int vec_any_ge (vector signed short, vector bool short);
  34876. int vec_any_ge (vector bool short, vector unsigned short);
  34877. int vec_any_ge (vector bool short, vector signed short);
  34878. int vec_any_ge (vector signed int, vector bool int);
  34879. int vec_any_ge (vector unsigned int, vector bool int);
  34880. int vec_any_ge (vector unsigned int, vector unsigned int);
  34881. int vec_any_ge (vector signed int, vector signed int);
  34882. int vec_any_ge (vector bool int, vector unsigned int);
  34883. int vec_any_ge (vector bool int, vector signed int);
  34884. int vec_any_ge (vector float, vector float);
  34885. int vec_any_gt (vector bool char, vector unsigned char);
  34886. int vec_any_gt (vector unsigned char, vector bool char);
  34887. int vec_any_gt (vector unsigned char, vector unsigned char);
  34888. int vec_any_gt (vector bool char, vector signed char);
  34889. int vec_any_gt (vector signed char, vector bool char);
  34890. int vec_any_gt (vector signed char, vector signed char);
  34891. int vec_any_gt (vector bool short, vector unsigned short);
  34892. int vec_any_gt (vector unsigned short, vector bool short);
  34893. int vec_any_gt (vector unsigned short, vector unsigned short);
  34894. int vec_any_gt (vector bool short, vector signed short);
  34895. int vec_any_gt (vector signed short, vector bool short);
  34896. int vec_any_gt (vector signed short, vector signed short);
  34897. int vec_any_gt (vector bool int, vector unsigned int);
  34898. int vec_any_gt (vector unsigned int, vector bool int);
  34899. int vec_any_gt (vector unsigned int, vector unsigned int);
  34900. int vec_any_gt (vector bool int, vector signed int);
  34901. int vec_any_gt (vector signed int, vector bool int);
  34902. int vec_any_gt (vector signed int, vector signed int);
  34903. int vec_any_gt (vector float, vector float);
  34904. int vec_any_le (vector bool char, vector unsigned char);
  34905. int vec_any_le (vector unsigned char, vector bool char);
  34906. int vec_any_le (vector unsigned char, vector unsigned char);
  34907. int vec_any_le (vector bool char, vector signed char);
  34908. int vec_any_le (vector signed char, vector bool char);
  34909. int vec_any_le (vector signed char, vector signed char);
  34910. int vec_any_le (vector bool short, vector unsigned short);
  34911. int vec_any_le (vector unsigned short, vector bool short);
  34912. int vec_any_le (vector unsigned short, vector unsigned short);
  34913. int vec_any_le (vector bool short, vector signed short);
  34914. int vec_any_le (vector signed short, vector bool short);
  34915. int vec_any_le (vector signed short, vector signed short);
  34916. int vec_any_le (vector bool int, vector unsigned int);
  34917. int vec_any_le (vector unsigned int, vector bool int);
  34918. int vec_any_le (vector unsigned int, vector unsigned int);
  34919. int vec_any_le (vector bool int, vector signed int);
  34920. int vec_any_le (vector signed int, vector bool int);
  34921. int vec_any_le (vector signed int, vector signed int);
  34922. int vec_any_le (vector float, vector float);
  34923. int vec_any_lt (vector bool char, vector unsigned char);
  34924. int vec_any_lt (vector unsigned char, vector bool char);
  34925. int vec_any_lt (vector unsigned char, vector unsigned char);
  34926. int vec_any_lt (vector bool char, vector signed char);
  34927. int vec_any_lt (vector signed char, vector bool char);
  34928. int vec_any_lt (vector signed char, vector signed char);
  34929. int vec_any_lt (vector bool short, vector unsigned short);
  34930. int vec_any_lt (vector unsigned short, vector bool short);
  34931. int vec_any_lt (vector unsigned short, vector unsigned short);
  34932. int vec_any_lt (vector bool short, vector signed short);
  34933. int vec_any_lt (vector signed short, vector bool short);
  34934. int vec_any_lt (vector signed short, vector signed short);
  34935. int vec_any_lt (vector bool int, vector unsigned int);
  34936. int vec_any_lt (vector unsigned int, vector bool int);
  34937. int vec_any_lt (vector unsigned int, vector unsigned int);
  34938. int vec_any_lt (vector bool int, vector signed int);
  34939. int vec_any_lt (vector signed int, vector bool int);
  34940. int vec_any_lt (vector signed int, vector signed int);
  34941. int vec_any_lt (vector float, vector float);
  34942. int vec_any_nan (vector float);
  34943. int vec_any_ne (vector signed char, vector bool char);
  34944. int vec_any_ne (vector signed char, vector signed char);
  34945. int vec_any_ne (vector unsigned char, vector bool char);
  34946. int vec_any_ne (vector unsigned char, vector unsigned char);
  34947. int vec_any_ne (vector bool char, vector bool char);
  34948. int vec_any_ne (vector bool char, vector unsigned char);
  34949. int vec_any_ne (vector bool char, vector signed char);
  34950. int vec_any_ne (vector signed short, vector bool short);
  34951. int vec_any_ne (vector signed short, vector signed short);
  34952. int vec_any_ne (vector unsigned short, vector bool short);
  34953. int vec_any_ne (vector unsigned short, vector unsigned short);
  34954. int vec_any_ne (vector bool short, vector bool short);
  34955. int vec_any_ne (vector bool short, vector unsigned short);
  34956. int vec_any_ne (vector bool short, vector signed short);
  34957. int vec_any_ne (vector pixel, vector pixel);
  34958. int vec_any_ne (vector signed int, vector bool int);
  34959. int vec_any_ne (vector signed int, vector signed int);
  34960. int vec_any_ne (vector unsigned int, vector bool int);
  34961. int vec_any_ne (vector unsigned int, vector unsigned int);
  34962. int vec_any_ne (vector bool int, vector bool int);
  34963. int vec_any_ne (vector bool int, vector unsigned int);
  34964. int vec_any_ne (vector bool int, vector signed int);
  34965. int vec_any_ne (vector float, vector float);
  34966. int vec_any_nge (vector float, vector float);
  34967. int vec_any_ngt (vector float, vector float);
  34968. int vec_any_nle (vector float, vector float);
  34969. int vec_any_nlt (vector float, vector float);
  34970. int vec_any_numeric (vector float);
  34971. int vec_any_out (vector float, vector float);
  34972. If the vector/scalar (VSX) instruction set is available, the following
  34973. additional functions are available:
  34974. vector double vec_abs (vector double);
  34975. vector double vec_add (vector double, vector double);
  34976. vector double vec_and (vector double, vector double);
  34977. vector double vec_and (vector double, vector bool long);
  34978. vector double vec_and (vector bool long, vector double);
  34979. vector long vec_and (vector long, vector long);
  34980. vector long vec_and (vector long, vector bool long);
  34981. vector long vec_and (vector bool long, vector long);
  34982. vector unsigned long vec_and (vector unsigned long, vector unsigned long);
  34983. vector unsigned long vec_and (vector unsigned long, vector bool long);
  34984. vector unsigned long vec_and (vector bool long, vector unsigned long);
  34985. vector double vec_andc (vector double, vector double);
  34986. vector double vec_andc (vector double, vector bool long);
  34987. vector double vec_andc (vector bool long, vector double);
  34988. vector long vec_andc (vector long, vector long);
  34989. vector long vec_andc (vector long, vector bool long);
  34990. vector long vec_andc (vector bool long, vector long);
  34991. vector unsigned long vec_andc (vector unsigned long, vector unsigned long);
  34992. vector unsigned long vec_andc (vector unsigned long, vector bool long);
  34993. vector unsigned long vec_andc (vector bool long, vector unsigned long);
  34994. vector double vec_ceil (vector double);
  34995. vector bool long vec_cmpeq (vector double, vector double);
  34996. vector bool long vec_cmpge (vector double, vector double);
  34997. vector bool long vec_cmpgt (vector double, vector double);
  34998. vector bool long vec_cmple (vector double, vector double);
  34999. vector bool long vec_cmplt (vector double, vector double);
  35000. vector double vec_cpsgn (vector double, vector double);
  35001. vector float vec_div (vector float, vector float);
  35002. vector double vec_div (vector double, vector double);
  35003. vector long vec_div (vector long, vector long);
  35004. vector unsigned long vec_div (vector unsigned long, vector unsigned long);
  35005. vector double vec_floor (vector double);
  35006. vector signed long long vec_ld (int, const vector signed long long *);
  35007. vector signed long long vec_ld (int, const signed long long *);
  35008. vector unsigned long long vec_ld (int, const vector unsigned long long *);
  35009. vector unsigned long long vec_ld (int, const unsigned long long *);
  35010. vector double vec_ld (int, const vector double *);
  35011. vector double vec_ld (int, const double *);
  35012. vector double vec_ldl (int, const vector double *);
  35013. vector double vec_ldl (int, const double *);
  35014. vector unsigned char vec_lvsl (int, const volatile double *);
  35015. vector unsigned char vec_lvsr (int, const volatile double *);
  35016. vector double vec_madd (vector double, vector double, vector double);
  35017. vector double vec_max (vector double, vector double);
  35018. vector signed long vec_mergeh (vector signed long, vector signed long);
  35019. vector signed long vec_mergeh (vector signed long, vector bool long);
  35020. vector signed long vec_mergeh (vector bool long, vector signed long);
  35021. vector unsigned long vec_mergeh (vector unsigned long, vector unsigned long);
  35022. vector unsigned long vec_mergeh (vector unsigned long, vector bool long);
  35023. vector unsigned long vec_mergeh (vector bool long, vector unsigned long);
  35024. vector signed long vec_mergel (vector signed long, vector signed long);
  35025. vector signed long vec_mergel (vector signed long, vector bool long);
  35026. vector signed long vec_mergel (vector bool long, vector signed long);
  35027. vector unsigned long vec_mergel (vector unsigned long, vector unsigned long);
  35028. vector unsigned long vec_mergel (vector unsigned long, vector bool long);
  35029. vector unsigned long vec_mergel (vector bool long, vector unsigned long);
  35030. vector double vec_min (vector double, vector double);
  35031. vector float vec_msub (vector float, vector float, vector float);
  35032. vector double vec_msub (vector double, vector double, vector double);
  35033. vector float vec_mul (vector float, vector float);
  35034. vector double vec_mul (vector double, vector double);
  35035. vector long vec_mul (vector long, vector long);
  35036. vector unsigned long vec_mul (vector unsigned long, vector unsigned long);
  35037. vector float vec_nearbyint (vector float);
  35038. vector double vec_nearbyint (vector double);
  35039. vector float vec_nmadd (vector float, vector float, vector float);
  35040. vector double vec_nmadd (vector double, vector double, vector double);
  35041. vector double vec_nmsub (vector double, vector double, vector double);
  35042. vector double vec_nor (vector double, vector double);
  35043. vector long vec_nor (vector long, vector long);
  35044. vector long vec_nor (vector long, vector bool long);
  35045. vector long vec_nor (vector bool long, vector long);
  35046. vector unsigned long vec_nor (vector unsigned long, vector unsigned long);
  35047. vector unsigned long vec_nor (vector unsigned long, vector bool long);
  35048. vector unsigned long vec_nor (vector bool long, vector unsigned long);
  35049. vector double vec_or (vector double, vector double);
  35050. vector double vec_or (vector double, vector bool long);
  35051. vector double vec_or (vector bool long, vector double);
  35052. vector long vec_or (vector long, vector long);
  35053. vector long vec_or (vector long, vector bool long);
  35054. vector long vec_or (vector bool long, vector long);
  35055. vector unsigned long vec_or (vector unsigned long, vector unsigned long);
  35056. vector unsigned long vec_or (vector unsigned long, vector bool long);
  35057. vector unsigned long vec_or (vector bool long, vector unsigned long);
  35058. vector double vec_perm (vector double, vector double, vector unsigned char);
  35059. vector long vec_perm (vector long, vector long, vector unsigned char);
  35060. vector unsigned long vec_perm (vector unsigned long, vector unsigned long,
  35061. vector unsigned char);
  35062. vector double vec_rint (vector double);
  35063. vector double vec_recip (vector double, vector double);
  35064. vector double vec_rsqrt (vector double);
  35065. vector double vec_rsqrte (vector double);
  35066. vector double vec_sel (vector double, vector double, vector bool long);
  35067. vector double vec_sel (vector double, vector double, vector unsigned long);
  35068. vector long vec_sel (vector long, vector long, vector long);
  35069. vector long vec_sel (vector long, vector long, vector unsigned long);
  35070. vector long vec_sel (vector long, vector long, vector bool long);
  35071. vector unsigned long vec_sel (vector unsigned long, vector unsigned long,
  35072. vector long);
  35073. vector unsigned long vec_sel (vector unsigned long, vector unsigned long,
  35074. vector unsigned long);
  35075. vector unsigned long vec_sel (vector unsigned long, vector unsigned long,
  35076. vector bool long);
  35077. vector double vec_splats (double);
  35078. vector signed long vec_splats (signed long);
  35079. vector unsigned long vec_splats (unsigned long);
  35080. vector float vec_sqrt (vector float);
  35081. vector double vec_sqrt (vector double);
  35082. void vec_st (vector signed long long, int, vector signed long long *);
  35083. void vec_st (vector signed long long, int, signed long long *);
  35084. void vec_st (vector unsigned long long, int, vector unsigned long long *);
  35085. void vec_st (vector unsigned long long, int, unsigned long long *);
  35086. void vec_st (vector bool long long, int, vector bool long long *);
  35087. void vec_st (vector bool long long, int, signed long long *);
  35088. void vec_st (vector bool long long, int, unsigned long long *);
  35089. void vec_st (vector double, int, vector double *);
  35090. void vec_st (vector double, int, double *);
  35091. vector double vec_sub (vector double, vector double);
  35092. vector double vec_trunc (vector double);
  35093. vector double vec_xl (int, vector double *);
  35094. vector double vec_xl (int, double *);
  35095. vector long long vec_xl (int, vector long long *);
  35096. vector long long vec_xl (int, long long *);
  35097. vector unsigned long long vec_xl (int, vector unsigned long long *);
  35098. vector unsigned long long vec_xl (int, unsigned long long *);
  35099. vector float vec_xl (int, vector float *);
  35100. vector float vec_xl (int, float *);
  35101. vector int vec_xl (int, vector int *);
  35102. vector int vec_xl (int, int *);
  35103. vector unsigned int vec_xl (int, vector unsigned int *);
  35104. vector unsigned int vec_xl (int, unsigned int *);
  35105. vector double vec_xor (vector double, vector double);
  35106. vector double vec_xor (vector double, vector bool long);
  35107. vector double vec_xor (vector bool long, vector double);
  35108. vector long vec_xor (vector long, vector long);
  35109. vector long vec_xor (vector long, vector bool long);
  35110. vector long vec_xor (vector bool long, vector long);
  35111. vector unsigned long vec_xor (vector unsigned long, vector unsigned long);
  35112. vector unsigned long vec_xor (vector unsigned long, vector bool long);
  35113. vector unsigned long vec_xor (vector bool long, vector unsigned long);
  35114. void vec_xst (vector double, int, vector double *);
  35115. void vec_xst (vector double, int, double *);
  35116. void vec_xst (vector long long, int, vector long long *);
  35117. void vec_xst (vector long long, int, long long *);
  35118. void vec_xst (vector unsigned long long, int, vector unsigned long long *);
  35119. void vec_xst (vector unsigned long long, int, unsigned long long *);
  35120. void vec_xst (vector float, int, vector float *);
  35121. void vec_xst (vector float, int, float *);
  35122. void vec_xst (vector int, int, vector int *);
  35123. void vec_xst (vector int, int, int *);
  35124. void vec_xst (vector unsigned int, int, vector unsigned int *);
  35125. void vec_xst (vector unsigned int, int, unsigned int *);
  35126. int vec_all_eq (vector double, vector double);
  35127. int vec_all_ge (vector double, vector double);
  35128. int vec_all_gt (vector double, vector double);
  35129. int vec_all_le (vector double, vector double);
  35130. int vec_all_lt (vector double, vector double);
  35131. int vec_all_nan (vector double);
  35132. int vec_all_ne (vector double, vector double);
  35133. int vec_all_nge (vector double, vector double);
  35134. int vec_all_ngt (vector double, vector double);
  35135. int vec_all_nle (vector double, vector double);
  35136. int vec_all_nlt (vector double, vector double);
  35137. int vec_all_numeric (vector double);
  35138. int vec_any_eq (vector double, vector double);
  35139. int vec_any_ge (vector double, vector double);
  35140. int vec_any_gt (vector double, vector double);
  35141. int vec_any_le (vector double, vector double);
  35142. int vec_any_lt (vector double, vector double);
  35143. int vec_any_nan (vector double);
  35144. int vec_any_ne (vector double, vector double);
  35145. int vec_any_nge (vector double, vector double);
  35146. int vec_any_ngt (vector double, vector double);
  35147. int vec_any_nle (vector double, vector double);
  35148. int vec_any_nlt (vector double, vector double);
  35149. int vec_any_numeric (vector double);
  35150. vector double vec_vsx_ld (int, const vector double *);
  35151. vector double vec_vsx_ld (int, const double *);
  35152. vector float vec_vsx_ld (int, const vector float *);
  35153. vector float vec_vsx_ld (int, const float *);
  35154. vector bool int vec_vsx_ld (int, const vector bool int *);
  35155. vector signed int vec_vsx_ld (int, const vector signed int *);
  35156. vector signed int vec_vsx_ld (int, const int *);
  35157. vector signed int vec_vsx_ld (int, const long *);
  35158. vector unsigned int vec_vsx_ld (int, const vector unsigned int *);
  35159. vector unsigned int vec_vsx_ld (int, const unsigned int *);
  35160. vector unsigned int vec_vsx_ld (int, const unsigned long *);
  35161. vector bool short vec_vsx_ld (int, const vector bool short *);
  35162. vector pixel vec_vsx_ld (int, const vector pixel *);
  35163. vector signed short vec_vsx_ld (int, const vector signed short *);
  35164. vector signed short vec_vsx_ld (int, const short *);
  35165. vector unsigned short vec_vsx_ld (int, const vector unsigned short *);
  35166. vector unsigned short vec_vsx_ld (int, const unsigned short *);
  35167. vector bool char vec_vsx_ld (int, const vector bool char *);
  35168. vector signed char vec_vsx_ld (int, const vector signed char *);
  35169. vector signed char vec_vsx_ld (int, const signed char *);
  35170. vector unsigned char vec_vsx_ld (int, const vector unsigned char *);
  35171. vector unsigned char vec_vsx_ld (int, const unsigned char *);
  35172. void vec_vsx_st (vector double, int, vector double *);
  35173. void vec_vsx_st (vector double, int, double *);
  35174. void vec_vsx_st (vector float, int, vector float *);
  35175. void vec_vsx_st (vector float, int, float *);
  35176. void vec_vsx_st (vector signed int, int, vector signed int *);
  35177. void vec_vsx_st (vector signed int, int, int *);
  35178. void vec_vsx_st (vector unsigned int, int, vector unsigned int *);
  35179. void vec_vsx_st (vector unsigned int, int, unsigned int *);
  35180. void vec_vsx_st (vector bool int, int, vector bool int *);
  35181. void vec_vsx_st (vector bool int, int, unsigned int *);
  35182. void vec_vsx_st (vector bool int, int, int *);
  35183. void vec_vsx_st (vector signed short, int, vector signed short *);
  35184. void vec_vsx_st (vector signed short, int, short *);
  35185. void vec_vsx_st (vector unsigned short, int, vector unsigned short *);
  35186. void vec_vsx_st (vector unsigned short, int, unsigned short *);
  35187. void vec_vsx_st (vector bool short, int, vector bool short *);
  35188. void vec_vsx_st (vector bool short, int, unsigned short *);
  35189. void vec_vsx_st (vector pixel, int, vector pixel *);
  35190. void vec_vsx_st (vector pixel, int, unsigned short *);
  35191. void vec_vsx_st (vector pixel, int, short *);
  35192. void vec_vsx_st (vector bool short, int, short *);
  35193. void vec_vsx_st (vector signed char, int, vector signed char *);
  35194. void vec_vsx_st (vector signed char, int, signed char *);
  35195. void vec_vsx_st (vector unsigned char, int, vector unsigned char *);
  35196. void vec_vsx_st (vector unsigned char, int, unsigned char *);
  35197. void vec_vsx_st (vector bool char, int, vector bool char *);
  35198. void vec_vsx_st (vector bool char, int, unsigned char *);
  35199. void vec_vsx_st (vector bool char, int, signed char *);
  35200. vector double vec_xxpermdi (vector double, vector double, const int);
  35201. vector float vec_xxpermdi (vector float, vector float, const int);
  35202. vector long long vec_xxpermdi (vector long long, vector long long, const int);
  35203. vector unsigned long long vec_xxpermdi (vector unsigned long long,
  35204. vector unsigned long long, const int);
  35205. vector int vec_xxpermdi (vector int, vector int, const int);
  35206. vector unsigned int vec_xxpermdi (vector unsigned int,
  35207. vector unsigned int, const int);
  35208. vector short vec_xxpermdi (vector short, vector short, const int);
  35209. vector unsigned short vec_xxpermdi (vector unsigned short,
  35210. vector unsigned short, const int);
  35211. vector signed char vec_xxpermdi (vector signed char, vector signed char,
  35212. const int);
  35213. vector unsigned char vec_xxpermdi (vector unsigned char,
  35214. vector unsigned char, const int);
  35215. vector double vec_xxsldi (vector double, vector double, int);
  35216. vector float vec_xxsldi (vector float, vector float, int);
  35217. vector long long vec_xxsldi (vector long long, vector long long, int);
  35218. vector unsigned long long vec_xxsldi (vector unsigned long long,
  35219. vector unsigned long long, int);
  35220. vector int vec_xxsldi (vector int, vector int, int);
  35221. vector unsigned int vec_xxsldi (vector unsigned int, vector unsigned int, int);
  35222. vector short vec_xxsldi (vector short, vector short, int);
  35223. vector unsigned short vec_xxsldi (vector unsigned short,
  35224. vector unsigned short, int);
  35225. vector signed char vec_xxsldi (vector signed char, vector signed char, int);
  35226. vector unsigned char vec_xxsldi (vector unsigned char,
  35227. vector unsigned char, int);
  35228. Note that the 'vec_ld' and 'vec_st' built-in functions always generate
  35229. the AltiVec 'LVX' and 'STVX' instructions even if the VSX instruction
  35230. set is available. The 'vec_vsx_ld' and 'vec_vsx_st' built-in functions
  35231. always generate the VSX 'LXVD2X', 'LXVW4X', 'STXVD2X', and 'STXVW4X'
  35232. instructions.
  35233. If the ISA 2.07 additions to the vector/scalar (power8-vector)
  35234. instruction set are available, the following additional functions are
  35235. available for both 32-bit and 64-bit targets. For 64-bit targets, you
  35236. can use VECTOR LONG instead of VECTOR LONG LONG, VECTOR BOOL LONG
  35237. instead of VECTOR BOOL LONG LONG, and VECTOR UNSIGNED LONG instead of
  35238. VECTOR UNSIGNED LONG LONG.
  35239. vector long long vec_abs (vector long long);
  35240. vector long long vec_add (vector long long, vector long long);
  35241. vector unsigned long long vec_add (vector unsigned long long,
  35242. vector unsigned long long);
  35243. int vec_all_eq (vector long long, vector long long);
  35244. int vec_all_eq (vector unsigned long long, vector unsigned long long);
  35245. int vec_all_ge (vector long long, vector long long);
  35246. int vec_all_ge (vector unsigned long long, vector unsigned long long);
  35247. int vec_all_gt (vector long long, vector long long);
  35248. int vec_all_gt (vector unsigned long long, vector unsigned long long);
  35249. int vec_all_le (vector long long, vector long long);
  35250. int vec_all_le (vector unsigned long long, vector unsigned long long);
  35251. int vec_all_lt (vector long long, vector long long);
  35252. int vec_all_lt (vector unsigned long long, vector unsigned long long);
  35253. int vec_all_ne (vector long long, vector long long);
  35254. int vec_all_ne (vector unsigned long long, vector unsigned long long);
  35255. int vec_any_eq (vector long long, vector long long);
  35256. int vec_any_eq (vector unsigned long long, vector unsigned long long);
  35257. int vec_any_ge (vector long long, vector long long);
  35258. int vec_any_ge (vector unsigned long long, vector unsigned long long);
  35259. int vec_any_gt (vector long long, vector long long);
  35260. int vec_any_gt (vector unsigned long long, vector unsigned long long);
  35261. int vec_any_le (vector long long, vector long long);
  35262. int vec_any_le (vector unsigned long long, vector unsigned long long);
  35263. int vec_any_lt (vector long long, vector long long);
  35264. int vec_any_lt (vector unsigned long long, vector unsigned long long);
  35265. int vec_any_ne (vector long long, vector long long);
  35266. int vec_any_ne (vector unsigned long long, vector unsigned long long);
  35267. vector bool long long vec_cmpeq (vector bool long long, vector bool long long);
  35268. vector long long vec_eqv (vector long long, vector long long);
  35269. vector long long vec_eqv (vector bool long long, vector long long);
  35270. vector long long vec_eqv (vector long long, vector bool long long);
  35271. vector unsigned long long vec_eqv (vector unsigned long long,
  35272. vector unsigned long long);
  35273. vector unsigned long long vec_eqv (vector bool long long,
  35274. vector unsigned long long);
  35275. vector unsigned long long vec_eqv (vector unsigned long long,
  35276. vector bool long long);
  35277. vector int vec_eqv (vector int, vector int);
  35278. vector int vec_eqv (vector bool int, vector int);
  35279. vector int vec_eqv (vector int, vector bool int);
  35280. vector unsigned int vec_eqv (vector unsigned int, vector unsigned int);
  35281. vector unsigned int vec_eqv (vector bool unsigned int,
  35282. vector unsigned int);
  35283. vector unsigned int vec_eqv (vector unsigned int,
  35284. vector bool unsigned int);
  35285. vector short vec_eqv (vector short, vector short);
  35286. vector short vec_eqv (vector bool short, vector short);
  35287. vector short vec_eqv (vector short, vector bool short);
  35288. vector unsigned short vec_eqv (vector unsigned short, vector unsigned short);
  35289. vector unsigned short vec_eqv (vector bool unsigned short,
  35290. vector unsigned short);
  35291. vector unsigned short vec_eqv (vector unsigned short,
  35292. vector bool unsigned short);
  35293. vector signed char vec_eqv (vector signed char, vector signed char);
  35294. vector signed char vec_eqv (vector bool signed char, vector signed char);
  35295. vector signed char vec_eqv (vector signed char, vector bool signed char);
  35296. vector unsigned char vec_eqv (vector unsigned char, vector unsigned char);
  35297. vector unsigned char vec_eqv (vector bool unsigned char, vector unsigned char);
  35298. vector unsigned char vec_eqv (vector unsigned char, vector bool unsigned char);
  35299. vector long long vec_max (vector long long, vector long long);
  35300. vector unsigned long long vec_max (vector unsigned long long,
  35301. vector unsigned long long);
  35302. vector signed int vec_mergee (vector signed int, vector signed int);
  35303. vector unsigned int vec_mergee (vector unsigned int, vector unsigned int);
  35304. vector bool int vec_mergee (vector bool int, vector bool int);
  35305. vector signed int vec_mergeo (vector signed int, vector signed int);
  35306. vector unsigned int vec_mergeo (vector unsigned int, vector unsigned int);
  35307. vector bool int vec_mergeo (vector bool int, vector bool int);
  35308. vector long long vec_min (vector long long, vector long long);
  35309. vector unsigned long long vec_min (vector unsigned long long,
  35310. vector unsigned long long);
  35311. vector signed long long vec_nabs (vector signed long long);
  35312. vector long long vec_nand (vector long long, vector long long);
  35313. vector long long vec_nand (vector bool long long, vector long long);
  35314. vector long long vec_nand (vector long long, vector bool long long);
  35315. vector unsigned long long vec_nand (vector unsigned long long,
  35316. vector unsigned long long);
  35317. vector unsigned long long vec_nand (vector bool long long,
  35318. vector unsigned long long);
  35319. vector unsigned long long vec_nand (vector unsigned long long,
  35320. vector bool long long);
  35321. vector int vec_nand (vector int, vector int);
  35322. vector int vec_nand (vector bool int, vector int);
  35323. vector int vec_nand (vector int, vector bool int);
  35324. vector unsigned int vec_nand (vector unsigned int, vector unsigned int);
  35325. vector unsigned int vec_nand (vector bool unsigned int,
  35326. vector unsigned int);
  35327. vector unsigned int vec_nand (vector unsigned int,
  35328. vector bool unsigned int);
  35329. vector short vec_nand (vector short, vector short);
  35330. vector short vec_nand (vector bool short, vector short);
  35331. vector short vec_nand (vector short, vector bool short);
  35332. vector unsigned short vec_nand (vector unsigned short, vector unsigned short);
  35333. vector unsigned short vec_nand (vector bool unsigned short,
  35334. vector unsigned short);
  35335. vector unsigned short vec_nand (vector unsigned short,
  35336. vector bool unsigned short);
  35337. vector signed char vec_nand (vector signed char, vector signed char);
  35338. vector signed char vec_nand (vector bool signed char, vector signed char);
  35339. vector signed char vec_nand (vector signed char, vector bool signed char);
  35340. vector unsigned char vec_nand (vector unsigned char, vector unsigned char);
  35341. vector unsigned char vec_nand (vector bool unsigned char, vector unsigned char);
  35342. vector unsigned char vec_nand (vector unsigned char, vector bool unsigned char);
  35343. vector long long vec_orc (vector long long, vector long long);
  35344. vector long long vec_orc (vector bool long long, vector long long);
  35345. vector long long vec_orc (vector long long, vector bool long long);
  35346. vector unsigned long long vec_orc (vector unsigned long long,
  35347. vector unsigned long long);
  35348. vector unsigned long long vec_orc (vector bool long long,
  35349. vector unsigned long long);
  35350. vector unsigned long long vec_orc (vector unsigned long long,
  35351. vector bool long long);
  35352. vector int vec_orc (vector int, vector int);
  35353. vector int vec_orc (vector bool int, vector int);
  35354. vector int vec_orc (vector int, vector bool int);
  35355. vector unsigned int vec_orc (vector unsigned int, vector unsigned int);
  35356. vector unsigned int vec_orc (vector bool unsigned int,
  35357. vector unsigned int);
  35358. vector unsigned int vec_orc (vector unsigned int,
  35359. vector bool unsigned int);
  35360. vector short vec_orc (vector short, vector short);
  35361. vector short vec_orc (vector bool short, vector short);
  35362. vector short vec_orc (vector short, vector bool short);
  35363. vector unsigned short vec_orc (vector unsigned short, vector unsigned short);
  35364. vector unsigned short vec_orc (vector bool unsigned short,
  35365. vector unsigned short);
  35366. vector unsigned short vec_orc (vector unsigned short,
  35367. vector bool unsigned short);
  35368. vector signed char vec_orc (vector signed char, vector signed char);
  35369. vector signed char vec_orc (vector bool signed char, vector signed char);
  35370. vector signed char vec_orc (vector signed char, vector bool signed char);
  35371. vector unsigned char vec_orc (vector unsigned char, vector unsigned char);
  35372. vector unsigned char vec_orc (vector bool unsigned char, vector unsigned char);
  35373. vector unsigned char vec_orc (vector unsigned char, vector bool unsigned char);
  35374. vector int vec_pack (vector long long, vector long long);
  35375. vector unsigned int vec_pack (vector unsigned long long,
  35376. vector unsigned long long);
  35377. vector bool int vec_pack (vector bool long long, vector bool long long);
  35378. vector float vec_pack (vector double, vector double);
  35379. vector int vec_packs (vector long long, vector long long);
  35380. vector unsigned int vec_packs (vector unsigned long long,
  35381. vector unsigned long long);
  35382. test_vsi_packsu_vssi_vssi (vector signed short x,
  35383. vector unsigned char vec_packsu (vector signed short, vector signed short )
  35384. vector unsigned char vec_packsu (vector unsigned short, vector unsigned short )
  35385. vector unsigned short int vec_packsu (vector signed int, vector signed int);
  35386. vector unsigned short int vec_packsu (vector unsigned int,
  35387. vector unsigned int);
  35388. vector unsigned int vec_packsu (vector long long, vector long long);
  35389. vector unsigned int vec_packsu (vector unsigned long long,
  35390. vector unsigned long long);
  35391. vector unsigned int vec_packsu (vector signed long long,
  35392. vector signed long long);
  35393. vector long long vec_rl (vector long long,
  35394. vector unsigned long long);
  35395. vector long long vec_rl (vector unsigned long long,
  35396. vector unsigned long long);
  35397. vector long long vec_sl (vector long long, vector unsigned long long);
  35398. vector long long vec_sl (vector unsigned long long,
  35399. vector unsigned long long);
  35400. vector long long vec_sr (vector long long, vector unsigned long long);
  35401. vector unsigned long long char vec_sr (vector unsigned long long,
  35402. vector unsigned long long);
  35403. vector long long vec_sra (vector long long, vector unsigned long long);
  35404. vector unsigned long long vec_sra (vector unsigned long long,
  35405. vector unsigned long long);
  35406. vector long long vec_sub (vector long long, vector long long);
  35407. vector unsigned long long vec_sub (vector unsigned long long,
  35408. vector unsigned long long);
  35409. vector long long vec_unpackh (vector int);
  35410. vector unsigned long long vec_unpackh (vector unsigned int);
  35411. vector long long vec_unpackl (vector int);
  35412. vector unsigned long long vec_unpackl (vector unsigned int);
  35413. vector long long vec_vaddudm (vector long long, vector long long);
  35414. vector long long vec_vaddudm (vector bool long long, vector long long);
  35415. vector long long vec_vaddudm (vector long long, vector bool long long);
  35416. vector unsigned long long vec_vaddudm (vector unsigned long long,
  35417. vector unsigned long long);
  35418. vector unsigned long long vec_vaddudm (vector bool unsigned long long,
  35419. vector unsigned long long);
  35420. vector unsigned long long vec_vaddudm (vector unsigned long long,
  35421. vector bool unsigned long long);
  35422. vector long long vec_vbpermq (vector signed char, vector signed char);
  35423. vector long long vec_vbpermq (vector unsigned char, vector unsigned char);
  35424. vector unsigned char vec_bperm (vector unsigned char, vector unsigned char);
  35425. vector unsigned long long vec_bperm (vector unsigned __int128,
  35426. vector unsigned char);
  35427. vector long long vec_cntlz (vector long long);
  35428. vector unsigned long long vec_cntlz (vector unsigned long long);
  35429. vector int vec_cntlz (vector int);
  35430. vector unsigned int vec_cntlz (vector int);
  35431. vector short vec_cntlz (vector short);
  35432. vector unsigned short vec_cntlz (vector unsigned short);
  35433. vector signed char vec_cntlz (vector signed char);
  35434. vector unsigned char vec_cntlz (vector unsigned char);
  35435. vector long long vec_vclz (vector long long);
  35436. vector unsigned long long vec_vclz (vector unsigned long long);
  35437. vector int vec_vclz (vector int);
  35438. vector unsigned int vec_vclz (vector int);
  35439. vector short vec_vclz (vector short);
  35440. vector unsigned short vec_vclz (vector unsigned short);
  35441. vector signed char vec_vclz (vector signed char);
  35442. vector unsigned char vec_vclz (vector unsigned char);
  35443. vector signed char vec_vclzb (vector signed char);
  35444. vector unsigned char vec_vclzb (vector unsigned char);
  35445. vector long long vec_vclzd (vector long long);
  35446. vector unsigned long long vec_vclzd (vector unsigned long long);
  35447. vector short vec_vclzh (vector short);
  35448. vector unsigned short vec_vclzh (vector unsigned short);
  35449. vector int vec_vclzw (vector int);
  35450. vector unsigned int vec_vclzw (vector int);
  35451. vector signed char vec_vgbbd (vector signed char);
  35452. vector unsigned char vec_vgbbd (vector unsigned char);
  35453. vector long long vec_vmaxsd (vector long long, vector long long);
  35454. vector unsigned long long vec_vmaxud (vector unsigned long long,
  35455. unsigned vector long long);
  35456. vector long long vec_vminsd (vector long long, vector long long);
  35457. vector unsigned long long vec_vminud (vector long long,
  35458. vector long long);
  35459. vector int vec_vpksdss (vector long long, vector long long);
  35460. vector unsigned int vec_vpksdss (vector long long, vector long long);
  35461. vector unsigned int vec_vpkudus (vector unsigned long long,
  35462. vector unsigned long long);
  35463. vector int vec_vpkudum (vector long long, vector long long);
  35464. vector unsigned int vec_vpkudum (vector unsigned long long,
  35465. vector unsigned long long);
  35466. vector bool int vec_vpkudum (vector bool long long, vector bool long long);
  35467. vector long long vec_vpopcnt (vector long long);
  35468. vector unsigned long long vec_vpopcnt (vector unsigned long long);
  35469. vector int vec_vpopcnt (vector int);
  35470. vector unsigned int vec_vpopcnt (vector int);
  35471. vector short vec_vpopcnt (vector short);
  35472. vector unsigned short vec_vpopcnt (vector unsigned short);
  35473. vector signed char vec_vpopcnt (vector signed char);
  35474. vector unsigned char vec_vpopcnt (vector unsigned char);
  35475. vector signed char vec_vpopcntb (vector signed char);
  35476. vector unsigned char vec_vpopcntb (vector unsigned char);
  35477. vector long long vec_vpopcntd (vector long long);
  35478. vector unsigned long long vec_vpopcntd (vector unsigned long long);
  35479. vector short vec_vpopcnth (vector short);
  35480. vector unsigned short vec_vpopcnth (vector unsigned short);
  35481. vector int vec_vpopcntw (vector int);
  35482. vector unsigned int vec_vpopcntw (vector int);
  35483. vector long long vec_vrld (vector long long, vector unsigned long long);
  35484. vector unsigned long long vec_vrld (vector unsigned long long,
  35485. vector unsigned long long);
  35486. vector long long vec_vsld (vector long long, vector unsigned long long);
  35487. vector long long vec_vsld (vector unsigned long long,
  35488. vector unsigned long long);
  35489. vector long long vec_vsrad (vector long long, vector unsigned long long);
  35490. vector unsigned long long vec_vsrad (vector unsigned long long,
  35491. vector unsigned long long);
  35492. vector long long vec_vsrd (vector long long, vector unsigned long long);
  35493. vector unsigned long long char vec_vsrd (vector unsigned long long,
  35494. vector unsigned long long);
  35495. vector long long vec_vsubudm (vector long long, vector long long);
  35496. vector long long vec_vsubudm (vector bool long long, vector long long);
  35497. vector long long vec_vsubudm (vector long long, vector bool long long);
  35498. vector unsigned long long vec_vsubudm (vector unsigned long long,
  35499. vector unsigned long long);
  35500. vector unsigned long long vec_vsubudm (vector bool long long,
  35501. vector unsigned long long);
  35502. vector unsigned long long vec_vsubudm (vector unsigned long long,
  35503. vector bool long long);
  35504. vector long long vec_vupkhsw (vector int);
  35505. vector unsigned long long vec_vupkhsw (vector unsigned int);
  35506. vector long long vec_vupklsw (vector int);
  35507. vector unsigned long long vec_vupklsw (vector int);
  35508. If the ISA 2.07 additions to the vector/scalar (power8-vector)
  35509. instruction set are available, the following additional functions are
  35510. available for 64-bit targets. New vector types (VECTOR __INT128_T and
  35511. VECTOR __UINT128_T) are available to hold the __INT128_T and __UINT128_T
  35512. types to use these builtins.
  35513. The normal vector extract, and set operations work on VECTOR __INT128_T
  35514. and VECTOR __UINT128_T types, but the index value must be 0.
  35515. vector __int128_t vec_vaddcuq (vector __int128_t, vector __int128_t);
  35516. vector __uint128_t vec_vaddcuq (vector __uint128_t, vector __uint128_t);
  35517. vector __int128_t vec_vadduqm (vector __int128_t, vector __int128_t);
  35518. vector __uint128_t vec_vadduqm (vector __uint128_t, vector __uint128_t);
  35519. vector __int128_t vec_vaddecuq (vector __int128_t, vector __int128_t,
  35520. vector __int128_t);
  35521. vector __uint128_t vec_vaddecuq (vector __uint128_t, vector __uint128_t,
  35522. vector __uint128_t);
  35523. vector __int128_t vec_vaddeuqm (vector __int128_t, vector __int128_t,
  35524. vector __int128_t);
  35525. vector __uint128_t vec_vaddeuqm (vector __uint128_t, vector __uint128_t,
  35526. vector __uint128_t);
  35527. vector __int128_t vec_vsubecuq (vector __int128_t, vector __int128_t,
  35528. vector __int128_t);
  35529. vector __uint128_t vec_vsubecuq (vector __uint128_t, vector __uint128_t,
  35530. vector __uint128_t);
  35531. vector __int128_t vec_vsubeuqm (vector __int128_t, vector __int128_t,
  35532. vector __int128_t);
  35533. vector __uint128_t vec_vsubeuqm (vector __uint128_t, vector __uint128_t,
  35534. vector __uint128_t);
  35535. vector __int128_t vec_vsubcuq (vector __int128_t, vector __int128_t);
  35536. vector __uint128_t vec_vsubcuq (vector __uint128_t, vector __uint128_t);
  35537. __int128_t vec_vsubuqm (__int128_t, __int128_t);
  35538. __uint128_t vec_vsubuqm (__uint128_t, __uint128_t);
  35539. vector __int128_t __builtin_bcdadd (vector __int128_t, vector__int128_t);
  35540. int __builtin_bcdadd_lt (vector __int128_t, vector__int128_t);
  35541. int __builtin_bcdadd_eq (vector __int128_t, vector__int128_t);
  35542. int __builtin_bcdadd_gt (vector __int128_t, vector__int128_t);
  35543. int __builtin_bcdadd_ov (vector __int128_t, vector__int128_t);
  35544. vector __int128_t bcdsub (vector __int128_t, vector__int128_t);
  35545. int __builtin_bcdsub_lt (vector __int128_t, vector__int128_t);
  35546. int __builtin_bcdsub_eq (vector __int128_t, vector__int128_t);
  35547. int __builtin_bcdsub_gt (vector __int128_t, vector__int128_t);
  35548. int __builtin_bcdsub_ov (vector __int128_t, vector__int128_t);
  35549. If the ISA 3.0 instruction set additions ('-mcpu=power9') are
  35550. available:
  35551. vector unsigned long long vec_bperm (vector unsigned long long,
  35552. vector unsigned char);
  35553. vector bool char vec_cmpne (vector bool char, vector bool char);
  35554. vector bool char vec_cmpne (vector signed char, vector signed char);
  35555. vector bool char vec_cmpne (vector unsigned char, vector unsigned char);
  35556. vector bool int vec_cmpne (vector bool int, vector bool int);
  35557. vector bool int vec_cmpne (vector signed int, vector signed int);
  35558. vector bool int vec_cmpne (vector unsigned int, vector unsigned int);
  35559. vector bool long long vec_cmpne (vector bool long long, vector bool long long);
  35560. vector bool long long vec_cmpne (vector signed long long,
  35561. vector signed long long);
  35562. vector bool long long vec_cmpne (vector unsigned long long,
  35563. vector unsigned long long);
  35564. vector bool short vec_cmpne (vector bool short, vector bool short);
  35565. vector bool short vec_cmpne (vector signed short, vector signed short);
  35566. vector bool short vec_cmpne (vector unsigned short, vector unsigned short);
  35567. vector bool long long vec_cmpne (vector double, vector double);
  35568. vector bool int vec_cmpne (vector float, vector float);
  35569. vector float vec_extract_fp32_from_shorth (vector unsigned short);
  35570. vector float vec_extract_fp32_from_shortl (vector unsigned short);
  35571. vector long long vec_vctz (vector long long);
  35572. vector unsigned long long vec_vctz (vector unsigned long long);
  35573. vector int vec_vctz (vector int);
  35574. vector unsigned int vec_vctz (vector int);
  35575. vector short vec_vctz (vector short);
  35576. vector unsigned short vec_vctz (vector unsigned short);
  35577. vector signed char vec_vctz (vector signed char);
  35578. vector unsigned char vec_vctz (vector unsigned char);
  35579. vector signed char vec_vctzb (vector signed char);
  35580. vector unsigned char vec_vctzb (vector unsigned char);
  35581. vector long long vec_vctzd (vector long long);
  35582. vector unsigned long long vec_vctzd (vector unsigned long long);
  35583. vector short vec_vctzh (vector short);
  35584. vector unsigned short vec_vctzh (vector unsigned short);
  35585. vector int vec_vctzw (vector int);
  35586. vector unsigned int vec_vctzw (vector int);
  35587. long long vec_extract4b (const vector unsigned char, const int);
  35588. vector unsigned char vec_insert4b (vector signed int, vector unsigned char,
  35589. const int);
  35590. vector unsigned char vec_insert4b (vector unsigned int, vector unsigned char,
  35591. const int);
  35592. vector int vec_vprtyb (vector int);
  35593. vector unsigned int vec_vprtyb (vector unsigned int);
  35594. vector long long vec_vprtyb (vector long long);
  35595. vector unsigned long long vec_vprtyb (vector unsigned long long);
  35596. vector int vec_vprtybw (vector int);
  35597. vector unsigned int vec_vprtybw (vector unsigned int);
  35598. vector long long vec_vprtybd (vector long long);
  35599. vector unsigned long long vec_vprtybd (vector unsigned long long);
  35600. On 64-bit targets, if the ISA 3.0 additions ('-mcpu=power9') are
  35601. available:
  35602. vector long vec_vprtyb (vector long);
  35603. vector unsigned long vec_vprtyb (vector unsigned long);
  35604. vector __int128_t vec_vprtyb (vector __int128_t);
  35605. vector __uint128_t vec_vprtyb (vector __uint128_t);
  35606. vector long vec_vprtybd (vector long);
  35607. vector unsigned long vec_vprtybd (vector unsigned long);
  35608. vector __int128_t vec_vprtybq (vector __int128_t);
  35609. vector __uint128_t vec_vprtybd (vector __uint128_t);
  35610. The following built-in vector functions are available for the PowerPC
  35611. family of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  35612. __vector unsigned char
  35613. vec_slv (__vector unsigned char src, __vector unsigned char shift_distance);
  35614. __vector unsigned char
  35615. vec_srv (__vector unsigned char src, __vector unsigned char shift_distance);
  35616. The 'vec_slv' and 'vec_srv' functions operate on all of the bytes of
  35617. their 'src' and 'shift_distance' arguments in parallel. The behavior of
  35618. the 'vec_slv' is as if there existed a temporary array of 17 unsigned
  35619. characters 'slv_array' within which elements 0 through 15 are the same
  35620. as the entries in the 'src' array and element 16 equals 0. The result
  35621. returned from the 'vec_slv' function is a '__vector' of 16 unsigned
  35622. characters within which element 'i' is computed using the C expression
  35623. '0xff & (*((unsigned short *)(slv_array + i)) << (0x07 &
  35624. shift_distance[i]))', with this resulting value coerced to the 'unsigned
  35625. char' type. The behavior of the 'vec_srv' is as if there existed a
  35626. temporary array of 17 unsigned characters 'srv_array' within which
  35627. element 0 equals zero and elements 1 through 16 equal the elements 0
  35628. through 15 of the 'src' array. The result returned from the 'vec_srv'
  35629. function is a '__vector' of 16 unsigned characters within which element
  35630. 'i' is computed using the C expression '0xff & (*((unsigned short
  35631. *)(srv_array + i)) >> (0x07 & shift_distance[i]))', with this resulting
  35632. value coerced to the 'unsigned char' type.
  35633. The following built-in functions are available for the PowerPC family
  35634. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  35635. __vector unsigned char
  35636. vec_absd (__vector unsigned char arg1, __vector unsigned char arg2);
  35637. __vector unsigned short
  35638. vec_absd (__vector unsigned short arg1, __vector unsigned short arg2);
  35639. __vector unsigned int
  35640. vec_absd (__vector unsigned int arg1, __vector unsigned int arg2);
  35641. __vector unsigned char
  35642. vec_absdb (__vector unsigned char arg1, __vector unsigned char arg2);
  35643. __vector unsigned short
  35644. vec_absdh (__vector unsigned short arg1, __vector unsigned short arg2);
  35645. __vector unsigned int
  35646. vec_absdw (__vector unsigned int arg1, __vector unsigned int arg2);
  35647. The 'vec_absd', 'vec_absdb', 'vec_absdh', and 'vec_absdw' built-in
  35648. functions each computes the absolute differences of the pairs of vector
  35649. elements supplied in its two vector arguments, placing the absolute
  35650. differences into the corresponding elements of the vector result.
  35651. The following built-in functions are available for the PowerPC family
  35652. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  35653. __vector unsigned int
  35654. vec_extract_exp (__vector float source);
  35655. __vector unsigned long long int
  35656. vec_extract_exp (__vector double source);
  35657. __vector unsigned int
  35658. vec_extract_sig (__vector float source);
  35659. __vector unsigned long long int
  35660. vec_extract_sig (__vector double source);
  35661. __vector float
  35662. vec_insert_exp (__vector unsigned int significands,
  35663. __vector unsigned int exponents);
  35664. __vector float
  35665. vec_insert_exp (__vector unsigned float significands,
  35666. __vector unsigned int exponents);
  35667. __vector double
  35668. vec_insert_exp (__vector unsigned long long int significands,
  35669. __vector unsigned long long int exponents);
  35670. __vector double
  35671. vec_insert_exp (__vector unsigned double significands,
  35672. __vector unsigned long long int exponents);
  35673. __vector bool int vec_test_data_class (__vector float source,
  35674. const int condition);
  35675. __vector bool long long int vec_test_data_class (__vector double source,
  35676. const int condition);
  35677. The 'vec_extract_sig' and 'vec_extract_exp' built-in functions return
  35678. vectors representing the significands and biased exponent values of
  35679. their 'source' arguments respectively. Within the result vector
  35680. returned by 'vec_extract_sig', the '0x800000' bit of each vector element
  35681. returned when the function's 'source' argument is of type 'float' is set
  35682. to 1 if the corresponding floating point value is in normalized form.
  35683. Otherwise, this bit is set to 0. When the 'source' argument is of type
  35684. 'double', the '0x10000000000000' bit within each of the result vector's
  35685. elements is set according to the same rules. Note that the sign of the
  35686. significand is not represented in the result returned from the
  35687. 'vec_extract_sig' function. To extract the sign bits, use the
  35688. 'vec_cpsgn' function, which returns a new vector within which all of the
  35689. sign bits of its second argument vector are overwritten with the sign
  35690. bits copied from the coresponding elements of its first argument vector,
  35691. and all other (non-sign) bits of the second argument vector are copied
  35692. unchanged into the result vector.
  35693. The 'vec_insert_exp' built-in functions return a vector of single- or
  35694. double-precision floating point values constructed by assembling the
  35695. values of their 'significands' and 'exponents' arguments into the
  35696. corresponding elements of the returned vector. The sign of each element
  35697. of the result is copied from the most significant bit of the
  35698. corresponding entry within the 'significands' argument. Note that the
  35699. relevant bits of the 'significands' argument are the same, for both
  35700. integer and floating point types. The significand and exponent
  35701. components of each element of the result are composed of the least
  35702. significant bits of the corresponding 'significands' element and the
  35703. least significant bits of the corresponding 'exponents' element.
  35704. The 'vec_test_data_class' built-in function returns a vector
  35705. representing the results of testing the 'source' vector for the
  35706. condition selected by the 'condition' argument. The 'condition'
  35707. argument must be a compile-time constant integer with value not
  35708. exceeding 127. The 'condition' argument is encoded as a bitmask with
  35709. each bit enabling the testing of a different condition, as characterized
  35710. by the following:
  35711. 0x40 Test for NaN
  35712. 0x20 Test for +Infinity
  35713. 0x10 Test for -Infinity
  35714. 0x08 Test for +Zero
  35715. 0x04 Test for -Zero
  35716. 0x02 Test for +Denormal
  35717. 0x01 Test for -Denormal
  35718. If any of the enabled test conditions is true, the corresponding entry
  35719. in the result vector is -1. Otherwise (all of the enabled test
  35720. conditions are false), the corresponding entry of the result vector is
  35721. 0.
  35722. The following built-in functions are available for the PowerPC family
  35723. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  35724. vector unsigned int vec_rlmi (vector unsigned int, vector unsigned int,
  35725. vector unsigned int);
  35726. vector unsigned long long vec_rlmi (vector unsigned long long,
  35727. vector unsigned long long,
  35728. vector unsigned long long);
  35729. vector unsigned int vec_rlnm (vector unsigned int, vector unsigned int,
  35730. vector unsigned int);
  35731. vector unsigned long long vec_rlnm (vector unsigned long long,
  35732. vector unsigned long long,
  35733. vector unsigned long long);
  35734. vector unsigned int vec_vrlnm (vector unsigned int, vector unsigned int);
  35735. vector unsigned long long vec_vrlnm (vector unsigned long long,
  35736. vector unsigned long long);
  35737. The result of 'vec_rlmi' is obtained by rotating each element of the
  35738. first argument vector left and inserting it under mask into the second
  35739. argument vector. The third argument vector contains the mask beginning
  35740. in bits 11:15, the mask end in bits 19:23, and the shift count in bits
  35741. 27:31, of each element.
  35742. The result of 'vec_rlnm' is obtained by rotating each element of the
  35743. first argument vector left and ANDing it with a mask specified by the
  35744. second and third argument vectors. The second argument vector contains
  35745. the shift count for each element in the low-order byte. The third
  35746. argument vector contains the mask end for each element in the low-order
  35747. byte, with the mask begin in the next higher byte.
  35748. The result of 'vec_vrlnm' is obtained by rotating each element of the
  35749. first argument vector left and ANDing it with a mask. The second
  35750. argument vector contains the mask beginning in bits 11:15, the mask end
  35751. in bits 19:23, and the shift count in bits 27:31, of each element.
  35752. If the ISA 3.0 instruction set additions ('-mcpu=power9') are
  35753. available:
  35754. vector signed char vec_revb (vector signed char);
  35755. vector unsigned char vec_revb (vector unsigned char);
  35756. vector short vec_revb (vector short);
  35757. vector unsigned short vec_revb (vector unsigned short);
  35758. vector int vec_revb (vector int);
  35759. vector unsigned int vec_revb (vector unsigned int);
  35760. vector float vec_revb (vector float);
  35761. vector long long vec_revb (vector long long);
  35762. vector unsigned long long vec_revb (vector unsigned long long);
  35763. vector double vec_revb (vector double);
  35764. On 64-bit targets, if the ISA 3.0 additions ('-mcpu=power9') are
  35765. available:
  35766. vector long vec_revb (vector long);
  35767. vector unsigned long vec_revb (vector unsigned long);
  35768. vector __int128_t vec_revb (vector __int128_t);
  35769. vector __uint128_t vec_revb (vector __uint128_t);
  35770. The 'vec_revb' built-in function reverses the bytes on an element by
  35771. element basis. A vector of 'vector unsigned char' or 'vector signed
  35772. char' reverses the bytes in the whole word.
  35773. If the cryptographic instructions are enabled ('-mcrypto' or
  35774. '-mcpu=power8'), the following builtins are enabled.
  35775. vector unsigned long long __builtin_crypto_vsbox (vector unsigned long long);
  35776. vector unsigned char vec_sbox_be (vector unsigned char);
  35777. vector unsigned long long __builtin_crypto_vcipher (vector unsigned long long,
  35778. vector unsigned long long);
  35779. vector unsigned char vec_cipher_be (vector unsigned char, vector unsigned char);
  35780. vector unsigned long long __builtin_crypto_vcipherlast
  35781. (vector unsigned long long,
  35782. vector unsigned long long);
  35783. vector unsigned char vec_cipherlast_be (vector unsigned char,
  35784. vector unsigned char);
  35785. vector unsigned long long __builtin_crypto_vncipher (vector unsigned long long,
  35786. vector unsigned long long);
  35787. vector unsigned char vec_ncipher_be (vector unsigned char,
  35788. vector unsigned char);
  35789. vector unsigned long long __builtin_crypto_vncipherlast
  35790. (vector unsigned long long,
  35791. vector unsigned long long);
  35792. vector unsigned char vec_ncipherlast_be (vector unsigned char,
  35793. vector unsigned char);
  35794. vector unsigned char __builtin_crypto_vpermxor (vector unsigned char,
  35795. vector unsigned char,
  35796. vector unsigned char);
  35797. vector unsigned short __builtin_crypto_vpermxor (vector unsigned short,
  35798. vector unsigned short,
  35799. vector unsigned short);
  35800. vector unsigned int __builtin_crypto_vpermxor (vector unsigned int,
  35801. vector unsigned int,
  35802. vector unsigned int);
  35803. vector unsigned long long __builtin_crypto_vpermxor (vector unsigned long long,
  35804. vector unsigned long long,
  35805. vector unsigned long long);
  35806. vector unsigned char __builtin_crypto_vpmsumb (vector unsigned char,
  35807. vector unsigned char);
  35808. vector unsigned short __builtin_crypto_vpmsumb (vector unsigned short,
  35809. vector unsigned short);
  35810. vector unsigned int __builtin_crypto_vpmsumb (vector unsigned int,
  35811. vector unsigned int);
  35812. vector unsigned long long __builtin_crypto_vpmsumb (vector unsigned long long,
  35813. vector unsigned long long);
  35814. vector unsigned long long __builtin_crypto_vshasigmad
  35815. (vector unsigned long long, int, int);
  35816. vector unsigned int __builtin_crypto_vshasigmaw (vector unsigned int,
  35817. int, int);
  35818. The second argument to __BUILTIN_CRYPTO_VSHASIGMAD and
  35819. __BUILTIN_CRYPTO_VSHASIGMAW must be a constant integer that is 0 or 1.
  35820. The third argument to these built-in functions must be a constant
  35821. integer in the range of 0 to 15.
  35822. If the ISA 3.0 instruction set additions are enabled ('-mcpu=power9'),
  35823. the following additional functions are available for both 32-bit and
  35824. 64-bit targets.
  35825. vector short vec_xl (int, vector short *); vector short vec_xl (int,
  35826. short *); vector unsigned short vec_xl (int, vector unsigned short *);
  35827. vector unsigned short vec_xl (int, unsigned short *); vector char vec_xl
  35828. (int, vector char *); vector char vec_xl (int, char *); vector unsigned
  35829. char vec_xl (int, vector unsigned char *); vector unsigned char vec_xl
  35830. (int, unsigned char *);
  35831. void vec_xst (vector short, int, vector short *); void vec_xst (vector
  35832. short, int, short *); void vec_xst (vector unsigned short, int, vector
  35833. unsigned short *); void vec_xst (vector unsigned short, int, unsigned
  35834. short *); void vec_xst (vector char, int, vector char *); void vec_xst
  35835. (vector char, int, char *); void vec_xst (vector unsigned char, int,
  35836. vector unsigned char *); void vec_xst (vector unsigned char, int,
  35837. unsigned char *);
  35838. 
  35839. File: gcc.info, Node: PowerPC Hardware Transactional Memory Built-in Functions, Next: RX Built-in Functions, Prev: PowerPC AltiVec/VSX Built-in Functions, Up: Target Builtins
  35840. 6.60.23 PowerPC Hardware Transactional Memory Built-in Functions
  35841. ----------------------------------------------------------------
  35842. GCC provides two interfaces for accessing the Hardware Transactional
  35843. Memory (HTM) instructions available on some of the PowerPC family of
  35844. processors (eg, POWER8). The two interfaces come in a low level
  35845. interface, consisting of built-in functions specific to PowerPC and a
  35846. higher level interface consisting of inline functions that are common
  35847. between PowerPC and S/390.
  35848. 6.60.23.1 PowerPC HTM Low Level Built-in Functions
  35849. ..................................................
  35850. The following low level built-in functions are available with '-mhtm' or
  35851. '-mcpu=CPU' where CPU is 'power8' or later. They all generate the
  35852. machine instruction that is part of the name.
  35853. The HTM builtins (with the exception of '__builtin_tbegin') return the
  35854. full 4-bit condition register value set by their associated hardware
  35855. instruction. The header file 'htmintrin.h' defines some macros that can
  35856. be used to decipher the return value. The '__builtin_tbegin' builtin
  35857. returns a simple true or false value depending on whether a transaction
  35858. was successfully started or not. The arguments of the builtins match
  35859. exactly the type and order of the associated hardware instruction's
  35860. operands, except for the '__builtin_tcheck' builtin, which does not take
  35861. any input arguments. Refer to the ISA manual for a description of each
  35862. instruction's operands.
  35863. unsigned int __builtin_tbegin (unsigned int)
  35864. unsigned int __builtin_tend (unsigned int)
  35865. unsigned int __builtin_tabort (unsigned int)
  35866. unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int)
  35867. unsigned int __builtin_tabortdci (unsigned int, unsigned int, int)
  35868. unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int)
  35869. unsigned int __builtin_tabortwci (unsigned int, unsigned int, int)
  35870. unsigned int __builtin_tcheck (void)
  35871. unsigned int __builtin_treclaim (unsigned int)
  35872. unsigned int __builtin_trechkpt (void)
  35873. unsigned int __builtin_tsr (unsigned int)
  35874. In addition to the above HTM built-ins, we have added built-ins for
  35875. some common extended mnemonics of the HTM instructions:
  35876. unsigned int __builtin_tendall (void)
  35877. unsigned int __builtin_tresume (void)
  35878. unsigned int __builtin_tsuspend (void)
  35879. Note that the semantics of the above HTM builtins are required to mimic
  35880. the locking semantics used for critical sections. Builtins that are
  35881. used to create a new transaction or restart a suspended transaction must
  35882. have lock acquisition like semantics while those builtins that end or
  35883. suspend a transaction must have lock release like semantics.
  35884. Specifically, this must mimic lock semantics as specified by C++11, for
  35885. example: Lock acquisition is as-if an execution of
  35886. __atomic_exchange_n(&globallock,1,__ATOMIC_ACQUIRE) that returns 0, and
  35887. lock release is as-if an execution of
  35888. __atomic_store(&globallock,0,__ATOMIC_RELEASE), with globallock being an
  35889. implicit implementation-defined lock used for all transactions. The HTM
  35890. instructions associated with with the builtins inherently provide the
  35891. correct acquisition and release hardware barriers required. However,
  35892. the compiler must also be prohibited from moving loads and stores across
  35893. the builtins in a way that would violate their semantics. This has been
  35894. accomplished by adding memory barriers to the associated HTM
  35895. instructions (which is a conservative approach to provide acquire and
  35896. release semantics). Earlier versions of the compiler did not treat the
  35897. HTM instructions as memory barriers. A '__TM_FENCE__' macro has been
  35898. added, which can be used to determine whether the current compiler
  35899. treats HTM instructions as memory barriers or not. This allows the user
  35900. to explicitly add memory barriers to their code when using an older
  35901. version of the compiler.
  35902. The following set of built-in functions are available to gain access to
  35903. the HTM specific special purpose registers.
  35904. unsigned long __builtin_get_texasr (void)
  35905. unsigned long __builtin_get_texasru (void)
  35906. unsigned long __builtin_get_tfhar (void)
  35907. unsigned long __builtin_get_tfiar (void)
  35908. void __builtin_set_texasr (unsigned long);
  35909. void __builtin_set_texasru (unsigned long);
  35910. void __builtin_set_tfhar (unsigned long);
  35911. void __builtin_set_tfiar (unsigned long);
  35912. Example usage of these low level built-in functions may look like:
  35913. #include <htmintrin.h>
  35914. int num_retries = 10;
  35915. while (1)
  35916. {
  35917. if (__builtin_tbegin (0))
  35918. {
  35919. /* Transaction State Initiated. */
  35920. if (is_locked (lock))
  35921. __builtin_tabort (0);
  35922. ... transaction code...
  35923. __builtin_tend (0);
  35924. break;
  35925. }
  35926. else
  35927. {
  35928. /* Transaction State Failed. Use locks if the transaction
  35929. failure is "persistent" or we've tried too many times. */
  35930. if (num_retries-- <= 0
  35931. || _TEXASRU_FAILURE_PERSISTENT (__builtin_get_texasru ()))
  35932. {
  35933. acquire_lock (lock);
  35934. ... non transactional fallback path...
  35935. release_lock (lock);
  35936. break;
  35937. }
  35938. }
  35939. }
  35940. One final built-in function has been added that returns the value of
  35941. the 2-bit Transaction State field of the Machine Status Register (MSR)
  35942. as stored in 'CR0'.
  35943. unsigned long __builtin_ttest (void)
  35944. This built-in can be used to determine the current transaction state
  35945. using the following code example:
  35946. #include <htmintrin.h>
  35947. unsigned char tx_state = _HTM_STATE (__builtin_ttest ());
  35948. if (tx_state == _HTM_TRANSACTIONAL)
  35949. {
  35950. /* Code to use in transactional state. */
  35951. }
  35952. else if (tx_state == _HTM_NONTRANSACTIONAL)
  35953. {
  35954. /* Code to use in non-transactional state. */
  35955. }
  35956. else if (tx_state == _HTM_SUSPENDED)
  35957. {
  35958. /* Code to use in transaction suspended state. */
  35959. }
  35960. 6.60.23.2 PowerPC HTM High Level Inline Functions
  35961. .................................................
  35962. The following high level HTM interface is made available by including
  35963. '<htmxlintrin.h>' and using '-mhtm' or '-mcpu=CPU' where CPU is 'power8'
  35964. or later. This interface is common between PowerPC and S/390, allowing
  35965. users to write one HTM source implementation that can be compiled and
  35966. executed on either system.
  35967. long __TM_simple_begin (void)
  35968. long __TM_begin (void* const TM_buff)
  35969. long __TM_end (void)
  35970. void __TM_abort (void)
  35971. void __TM_named_abort (unsigned char const code)
  35972. void __TM_resume (void)
  35973. void __TM_suspend (void)
  35974. long __TM_is_user_abort (void* const TM_buff)
  35975. long __TM_is_named_user_abort (void* const TM_buff, unsigned char *code)
  35976. long __TM_is_illegal (void* const TM_buff)
  35977. long __TM_is_footprint_exceeded (void* const TM_buff)
  35978. long __TM_nesting_depth (void* const TM_buff)
  35979. long __TM_is_nested_too_deep(void* const TM_buff)
  35980. long __TM_is_conflict(void* const TM_buff)
  35981. long __TM_is_failure_persistent(void* const TM_buff)
  35982. long __TM_failure_address(void* const TM_buff)
  35983. long long __TM_failure_code(void* const TM_buff)
  35984. Using these common set of HTM inline functions, we can create a more
  35985. portable version of the HTM example in the previous section that will
  35986. work on either PowerPC or S/390:
  35987. #include <htmxlintrin.h>
  35988. int num_retries = 10;
  35989. TM_buff_type TM_buff;
  35990. while (1)
  35991. {
  35992. if (__TM_begin (TM_buff) == _HTM_TBEGIN_STARTED)
  35993. {
  35994. /* Transaction State Initiated. */
  35995. if (is_locked (lock))
  35996. __TM_abort ();
  35997. ... transaction code...
  35998. __TM_end ();
  35999. break;
  36000. }
  36001. else
  36002. {
  36003. /* Transaction State Failed. Use locks if the transaction
  36004. failure is "persistent" or we've tried too many times. */
  36005. if (num_retries-- <= 0
  36006. || __TM_is_failure_persistent (TM_buff))
  36007. {
  36008. acquire_lock (lock);
  36009. ... non transactional fallback path...
  36010. release_lock (lock);
  36011. break;
  36012. }
  36013. }
  36014. }
  36015. 
  36016. File: gcc.info, Node: RX Built-in Functions, Next: S/390 System z Built-in Functions, Prev: PowerPC Hardware Transactional Memory Built-in Functions, Up: Target Builtins
  36017. 6.60.24 RX Built-in Functions
  36018. -----------------------------
  36019. GCC supports some of the RX instructions which cannot be expressed in
  36020. the C programming language via the use of built-in functions. The
  36021. following functions are supported:
  36022. -- Built-in Function: void __builtin_rx_brk (void)
  36023. Generates the 'brk' machine instruction.
  36024. -- Built-in Function: void __builtin_rx_clrpsw (int)
  36025. Generates the 'clrpsw' machine instruction to clear the specified
  36026. bit in the processor status word.
  36027. -- Built-in Function: void __builtin_rx_int (int)
  36028. Generates the 'int' machine instruction to generate an interrupt
  36029. with the specified value.
  36030. -- Built-in Function: void __builtin_rx_machi (int, int)
  36031. Generates the 'machi' machine instruction to add the result of
  36032. multiplying the top 16 bits of the two arguments into the
  36033. accumulator.
  36034. -- Built-in Function: void __builtin_rx_maclo (int, int)
  36035. Generates the 'maclo' machine instruction to add the result of
  36036. multiplying the bottom 16 bits of the two arguments into the
  36037. accumulator.
  36038. -- Built-in Function: void __builtin_rx_mulhi (int, int)
  36039. Generates the 'mulhi' machine instruction to place the result of
  36040. multiplying the top 16 bits of the two arguments into the
  36041. accumulator.
  36042. -- Built-in Function: void __builtin_rx_mullo (int, int)
  36043. Generates the 'mullo' machine instruction to place the result of
  36044. multiplying the bottom 16 bits of the two arguments into the
  36045. accumulator.
  36046. -- Built-in Function: int __builtin_rx_mvfachi (void)
  36047. Generates the 'mvfachi' machine instruction to read the top 32 bits
  36048. of the accumulator.
  36049. -- Built-in Function: int __builtin_rx_mvfacmi (void)
  36050. Generates the 'mvfacmi' machine instruction to read the middle 32
  36051. bits of the accumulator.
  36052. -- Built-in Function: int __builtin_rx_mvfc (int)
  36053. Generates the 'mvfc' machine instruction which reads the control
  36054. register specified in its argument and returns its value.
  36055. -- Built-in Function: void __builtin_rx_mvtachi (int)
  36056. Generates the 'mvtachi' machine instruction to set the top 32 bits
  36057. of the accumulator.
  36058. -- Built-in Function: void __builtin_rx_mvtaclo (int)
  36059. Generates the 'mvtaclo' machine instruction to set the bottom 32
  36060. bits of the accumulator.
  36061. -- Built-in Function: void __builtin_rx_mvtc (int reg, int val)
  36062. Generates the 'mvtc' machine instruction which sets control
  36063. register number 'reg' to 'val'.
  36064. -- Built-in Function: void __builtin_rx_mvtipl (int)
  36065. Generates the 'mvtipl' machine instruction set the interrupt
  36066. priority level.
  36067. -- Built-in Function: void __builtin_rx_racw (int)
  36068. Generates the 'racw' machine instruction to round the accumulator
  36069. according to the specified mode.
  36070. -- Built-in Function: int __builtin_rx_revw (int)
  36071. Generates the 'revw' machine instruction which swaps the bytes in
  36072. the argument so that bits 0-7 now occupy bits 8-15 and vice versa,
  36073. and also bits 16-23 occupy bits 24-31 and vice versa.
  36074. -- Built-in Function: void __builtin_rx_rmpa (void)
  36075. Generates the 'rmpa' machine instruction which initiates a repeated
  36076. multiply and accumulate sequence.
  36077. -- Built-in Function: void __builtin_rx_round (float)
  36078. Generates the 'round' machine instruction which returns the
  36079. floating-point argument rounded according to the current rounding
  36080. mode set in the floating-point status word register.
  36081. -- Built-in Function: int __builtin_rx_sat (int)
  36082. Generates the 'sat' machine instruction which returns the saturated
  36083. value of the argument.
  36084. -- Built-in Function: void __builtin_rx_setpsw (int)
  36085. Generates the 'setpsw' machine instruction to set the specified bit
  36086. in the processor status word.
  36087. -- Built-in Function: void __builtin_rx_wait (void)
  36088. Generates the 'wait' machine instruction.
  36089. 
  36090. File: gcc.info, Node: S/390 System z Built-in Functions, Next: SH Built-in Functions, Prev: RX Built-in Functions, Up: Target Builtins
  36091. 6.60.25 S/390 System z Built-in Functions
  36092. -----------------------------------------
  36093. -- Built-in Function: int __builtin_tbegin (void*)
  36094. Generates the 'tbegin' machine instruction starting a
  36095. non-constrained hardware transaction. If the parameter is non-NULL
  36096. the memory area is used to store the transaction diagnostic buffer
  36097. and will be passed as first operand to 'tbegin'. This buffer can
  36098. be defined using the 'struct __htm_tdb' C struct defined in
  36099. 'htmintrin.h' and must reside on a double-word boundary. The
  36100. second tbegin operand is set to '0xff0c'. This enables
  36101. save/restore of all GPRs and disables aborts for FPR and AR
  36102. manipulations inside the transaction body. The condition code set
  36103. by the tbegin instruction is returned as integer value. The tbegin
  36104. instruction by definition overwrites the content of all FPRs. The
  36105. compiler will generate code which saves and restores the FPRs. For
  36106. soft-float code it is recommended to used the '*_nofloat' variant.
  36107. In order to prevent a TDB from being written it is required to pass
  36108. a constant zero value as parameter. Passing a zero value through a
  36109. variable is not sufficient. Although modifications of access
  36110. registers inside the transaction will not trigger an transaction
  36111. abort it is not supported to actually modify them. Access
  36112. registers do not get saved when entering a transaction. They will
  36113. have undefined state when reaching the abort code.
  36114. Macros for the possible return codes of tbegin are defined in the
  36115. 'htmintrin.h' header file:
  36116. '_HTM_TBEGIN_STARTED'
  36117. 'tbegin' has been executed as part of normal processing. The
  36118. transaction body is supposed to be executed.
  36119. '_HTM_TBEGIN_INDETERMINATE'
  36120. The transaction was aborted due to an indeterminate condition which
  36121. might be persistent.
  36122. '_HTM_TBEGIN_TRANSIENT'
  36123. The transaction aborted due to a transient failure. The
  36124. transaction should be re-executed in that case.
  36125. '_HTM_TBEGIN_PERSISTENT'
  36126. The transaction aborted due to a persistent failure. Re-execution
  36127. under same circumstances will not be productive.
  36128. -- Macro: _HTM_FIRST_USER_ABORT_CODE
  36129. The '_HTM_FIRST_USER_ABORT_CODE' defined in 'htmintrin.h' specifies
  36130. the first abort code which can be used for '__builtin_tabort'.
  36131. Values below this threshold are reserved for machine use.
  36132. -- Data type: struct __htm_tdb
  36133. The 'struct __htm_tdb' defined in 'htmintrin.h' describes the
  36134. structure of the transaction diagnostic block as specified in the
  36135. Principles of Operation manual chapter 5-91.
  36136. -- Built-in Function: int __builtin_tbegin_nofloat (void*)
  36137. Same as '__builtin_tbegin' but without FPR saves and restores.
  36138. Using this variant in code making use of FPRs will leave the FPRs
  36139. in undefined state when entering the transaction abort handler
  36140. code.
  36141. -- Built-in Function: int __builtin_tbegin_retry (void*, int)
  36142. In addition to '__builtin_tbegin' a loop for transient failures is
  36143. generated. If tbegin returns a condition code of 2 the transaction
  36144. will be retried as often as specified in the second argument. The
  36145. perform processor assist instruction is used to tell the CPU about
  36146. the number of fails so far.
  36147. -- Built-in Function: int __builtin_tbegin_retry_nofloat (void*, int)
  36148. Same as '__builtin_tbegin_retry' but without FPR saves and
  36149. restores. Using this variant in code making use of FPRs will leave
  36150. the FPRs in undefined state when entering the transaction abort
  36151. handler code.
  36152. -- Built-in Function: void __builtin_tbeginc (void)
  36153. Generates the 'tbeginc' machine instruction starting a constrained
  36154. hardware transaction. The second operand is set to '0xff08'.
  36155. -- Built-in Function: int __builtin_tend (void)
  36156. Generates the 'tend' machine instruction finishing a transaction
  36157. and making the changes visible to other threads. The condition
  36158. code generated by tend is returned as integer value.
  36159. -- Built-in Function: void __builtin_tabort (int)
  36160. Generates the 'tabort' machine instruction with the specified abort
  36161. code. Abort codes from 0 through 255 are reserved and will result
  36162. in an error message.
  36163. -- Built-in Function: void __builtin_tx_assist (int)
  36164. Generates the 'ppa rX,rY,1' machine instruction. Where the integer
  36165. parameter is loaded into rX and a value of zero is loaded into rY.
  36166. The integer parameter specifies the number of times the transaction
  36167. repeatedly aborted.
  36168. -- Built-in Function: int __builtin_tx_nesting_depth (void)
  36169. Generates the 'etnd' machine instruction. The current nesting
  36170. depth is returned as integer value. For a nesting depth of 0 the
  36171. code is not executed as part of an transaction.
  36172. -- Built-in Function: void __builtin_non_tx_store (uint64_t *,
  36173. uint64_t)
  36174. Generates the 'ntstg' machine instruction. The second argument is
  36175. written to the first arguments location. The store operation will
  36176. not be rolled-back in case of an transaction abort.
  36177. 
  36178. 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
  36179. 6.60.26 SH Built-in Functions
  36180. -----------------------------
  36181. The following built-in functions are supported on the SH1, SH2, SH3 and
  36182. SH4 families of processors:
  36183. -- Built-in Function: void __builtin_set_thread_pointer (void *PTR)
  36184. Sets the 'GBR' register to the specified value PTR. This is
  36185. usually used by system code that manages threads and execution
  36186. contexts. The compiler normally does not generate code that
  36187. modifies the contents of 'GBR' and thus the value is preserved
  36188. across function calls. Changing the 'GBR' value in user code must
  36189. be done with caution, since the compiler might use 'GBR' in order
  36190. to access thread local variables.
  36191. -- Built-in Function: void * __builtin_thread_pointer (void)
  36192. Returns the value that is currently set in the 'GBR' register.
  36193. Memory loads and stores that use the thread pointer as a base
  36194. address are turned into 'GBR' based displacement loads and stores,
  36195. if possible. For example:
  36196. struct my_tcb
  36197. {
  36198. int a, b, c, d, e;
  36199. };
  36200. int get_tcb_value (void)
  36201. {
  36202. // Generate 'mov.l @(8,gbr),r0' instruction
  36203. return ((my_tcb*)__builtin_thread_pointer ())->c;
  36204. }
  36205. -- Built-in Function: unsigned int __builtin_sh_get_fpscr (void)
  36206. Returns the value that is currently set in the 'FPSCR' register.
  36207. -- Built-in Function: void __builtin_sh_set_fpscr (unsigned int VAL)
  36208. Sets the 'FPSCR' register to the specified value VAL, while
  36209. preserving the current values of the FR, SZ and PR bits.
  36210. 
  36211. File: gcc.info, Node: SPARC VIS Built-in Functions, Next: SPU Built-in Functions, Prev: SH Built-in Functions, Up: Target Builtins
  36212. 6.60.27 SPARC VIS Built-in Functions
  36213. ------------------------------------
  36214. GCC supports SIMD operations on the SPARC using both the generic vector
  36215. extensions (*note Vector Extensions::) as well as built-in functions for
  36216. the SPARC Visual Instruction Set (VIS). When you use the '-mvis' switch,
  36217. the VIS extension is exposed as the following built-in functions:
  36218. typedef int v1si __attribute__ ((vector_size (4)));
  36219. typedef int v2si __attribute__ ((vector_size (8)));
  36220. typedef short v4hi __attribute__ ((vector_size (8)));
  36221. typedef short v2hi __attribute__ ((vector_size (4)));
  36222. typedef unsigned char v8qi __attribute__ ((vector_size (8)));
  36223. typedef unsigned char v4qi __attribute__ ((vector_size (4)));
  36224. void __builtin_vis_write_gsr (int64_t);
  36225. int64_t __builtin_vis_read_gsr (void);
  36226. void * __builtin_vis_alignaddr (void *, long);
  36227. void * __builtin_vis_alignaddrl (void *, long);
  36228. int64_t __builtin_vis_faligndatadi (int64_t, int64_t);
  36229. v2si __builtin_vis_faligndatav2si (v2si, v2si);
  36230. v4hi __builtin_vis_faligndatav4hi (v4si, v4si);
  36231. v8qi __builtin_vis_faligndatav8qi (v8qi, v8qi);
  36232. v4hi __builtin_vis_fexpand (v4qi);
  36233. v4hi __builtin_vis_fmul8x16 (v4qi, v4hi);
  36234. v4hi __builtin_vis_fmul8x16au (v4qi, v2hi);
  36235. v4hi __builtin_vis_fmul8x16al (v4qi, v2hi);
  36236. v4hi __builtin_vis_fmul8sux16 (v8qi, v4hi);
  36237. v4hi __builtin_vis_fmul8ulx16 (v8qi, v4hi);
  36238. v2si __builtin_vis_fmuld8sux16 (v4qi, v2hi);
  36239. v2si __builtin_vis_fmuld8ulx16 (v4qi, v2hi);
  36240. v4qi __builtin_vis_fpack16 (v4hi);
  36241. v8qi __builtin_vis_fpack32 (v2si, v8qi);
  36242. v2hi __builtin_vis_fpackfix (v2si);
  36243. v8qi __builtin_vis_fpmerge (v4qi, v4qi);
  36244. int64_t __builtin_vis_pdist (v8qi, v8qi, int64_t);
  36245. long __builtin_vis_edge8 (void *, void *);
  36246. long __builtin_vis_edge8l (void *, void *);
  36247. long __builtin_vis_edge16 (void *, void *);
  36248. long __builtin_vis_edge16l (void *, void *);
  36249. long __builtin_vis_edge32 (void *, void *);
  36250. long __builtin_vis_edge32l (void *, void *);
  36251. long __builtin_vis_fcmple16 (v4hi, v4hi);
  36252. long __builtin_vis_fcmple32 (v2si, v2si);
  36253. long __builtin_vis_fcmpne16 (v4hi, v4hi);
  36254. long __builtin_vis_fcmpne32 (v2si, v2si);
  36255. long __builtin_vis_fcmpgt16 (v4hi, v4hi);
  36256. long __builtin_vis_fcmpgt32 (v2si, v2si);
  36257. long __builtin_vis_fcmpeq16 (v4hi, v4hi);
  36258. long __builtin_vis_fcmpeq32 (v2si, v2si);
  36259. v4hi __builtin_vis_fpadd16 (v4hi, v4hi);
  36260. v2hi __builtin_vis_fpadd16s (v2hi, v2hi);
  36261. v2si __builtin_vis_fpadd32 (v2si, v2si);
  36262. v1si __builtin_vis_fpadd32s (v1si, v1si);
  36263. v4hi __builtin_vis_fpsub16 (v4hi, v4hi);
  36264. v2hi __builtin_vis_fpsub16s (v2hi, v2hi);
  36265. v2si __builtin_vis_fpsub32 (v2si, v2si);
  36266. v1si __builtin_vis_fpsub32s (v1si, v1si);
  36267. long __builtin_vis_array8 (long, long);
  36268. long __builtin_vis_array16 (long, long);
  36269. long __builtin_vis_array32 (long, long);
  36270. When you use the '-mvis2' switch, the VIS version 2.0 built-in
  36271. functions also become available:
  36272. long __builtin_vis_bmask (long, long);
  36273. int64_t __builtin_vis_bshuffledi (int64_t, int64_t);
  36274. v2si __builtin_vis_bshufflev2si (v2si, v2si);
  36275. v4hi __builtin_vis_bshufflev2si (v4hi, v4hi);
  36276. v8qi __builtin_vis_bshufflev2si (v8qi, v8qi);
  36277. long __builtin_vis_edge8n (void *, void *);
  36278. long __builtin_vis_edge8ln (void *, void *);
  36279. long __builtin_vis_edge16n (void *, void *);
  36280. long __builtin_vis_edge16ln (void *, void *);
  36281. long __builtin_vis_edge32n (void *, void *);
  36282. long __builtin_vis_edge32ln (void *, void *);
  36283. When you use the '-mvis3' switch, the VIS version 3.0 built-in
  36284. functions also become available:
  36285. void __builtin_vis_cmask8 (long);
  36286. void __builtin_vis_cmask16 (long);
  36287. void __builtin_vis_cmask32 (long);
  36288. v4hi __builtin_vis_fchksm16 (v4hi, v4hi);
  36289. v4hi __builtin_vis_fsll16 (v4hi, v4hi);
  36290. v4hi __builtin_vis_fslas16 (v4hi, v4hi);
  36291. v4hi __builtin_vis_fsrl16 (v4hi, v4hi);
  36292. v4hi __builtin_vis_fsra16 (v4hi, v4hi);
  36293. v2si __builtin_vis_fsll16 (v2si, v2si);
  36294. v2si __builtin_vis_fslas16 (v2si, v2si);
  36295. v2si __builtin_vis_fsrl16 (v2si, v2si);
  36296. v2si __builtin_vis_fsra16 (v2si, v2si);
  36297. long __builtin_vis_pdistn (v8qi, v8qi);
  36298. v4hi __builtin_vis_fmean16 (v4hi, v4hi);
  36299. int64_t __builtin_vis_fpadd64 (int64_t, int64_t);
  36300. int64_t __builtin_vis_fpsub64 (int64_t, int64_t);
  36301. v4hi __builtin_vis_fpadds16 (v4hi, v4hi);
  36302. v2hi __builtin_vis_fpadds16s (v2hi, v2hi);
  36303. v4hi __builtin_vis_fpsubs16 (v4hi, v4hi);
  36304. v2hi __builtin_vis_fpsubs16s (v2hi, v2hi);
  36305. v2si __builtin_vis_fpadds32 (v2si, v2si);
  36306. v1si __builtin_vis_fpadds32s (v1si, v1si);
  36307. v2si __builtin_vis_fpsubs32 (v2si, v2si);
  36308. v1si __builtin_vis_fpsubs32s (v1si, v1si);
  36309. long __builtin_vis_fucmple8 (v8qi, v8qi);
  36310. long __builtin_vis_fucmpne8 (v8qi, v8qi);
  36311. long __builtin_vis_fucmpgt8 (v8qi, v8qi);
  36312. long __builtin_vis_fucmpeq8 (v8qi, v8qi);
  36313. float __builtin_vis_fhadds (float, float);
  36314. double __builtin_vis_fhaddd (double, double);
  36315. float __builtin_vis_fhsubs (float, float);
  36316. double __builtin_vis_fhsubd (double, double);
  36317. float __builtin_vis_fnhadds (float, float);
  36318. double __builtin_vis_fnhaddd (double, double);
  36319. int64_t __builtin_vis_umulxhi (int64_t, int64_t);
  36320. int64_t __builtin_vis_xmulx (int64_t, int64_t);
  36321. int64_t __builtin_vis_xmulxhi (int64_t, int64_t);
  36322. When you use the '-mvis4' switch, the VIS version 4.0 built-in
  36323. functions also become available:
  36324. v8qi __builtin_vis_fpadd8 (v8qi, v8qi);
  36325. v8qi __builtin_vis_fpadds8 (v8qi, v8qi);
  36326. v8qi __builtin_vis_fpaddus8 (v8qi, v8qi);
  36327. v4hi __builtin_vis_fpaddus16 (v4hi, v4hi);
  36328. v8qi __builtin_vis_fpsub8 (v8qi, v8qi);
  36329. v8qi __builtin_vis_fpsubs8 (v8qi, v8qi);
  36330. v8qi __builtin_vis_fpsubus8 (v8qi, v8qi);
  36331. v4hi __builtin_vis_fpsubus16 (v4hi, v4hi);
  36332. long __builtin_vis_fpcmple8 (v8qi, v8qi);
  36333. long __builtin_vis_fpcmpgt8 (v8qi, v8qi);
  36334. long __builtin_vis_fpcmpule16 (v4hi, v4hi);
  36335. long __builtin_vis_fpcmpugt16 (v4hi, v4hi);
  36336. long __builtin_vis_fpcmpule32 (v2si, v2si);
  36337. long __builtin_vis_fpcmpugt32 (v2si, v2si);
  36338. v8qi __builtin_vis_fpmax8 (v8qi, v8qi);
  36339. v4hi __builtin_vis_fpmax16 (v4hi, v4hi);
  36340. v2si __builtin_vis_fpmax32 (v2si, v2si);
  36341. v8qi __builtin_vis_fpmaxu8 (v8qi, v8qi);
  36342. v4hi __builtin_vis_fpmaxu16 (v4hi, v4hi);
  36343. v2si __builtin_vis_fpmaxu32 (v2si, v2si);
  36344. v8qi __builtin_vis_fpmin8 (v8qi, v8qi);
  36345. v4hi __builtin_vis_fpmin16 (v4hi, v4hi);
  36346. v2si __builtin_vis_fpmin32 (v2si, v2si);
  36347. v8qi __builtin_vis_fpminu8 (v8qi, v8qi);
  36348. v4hi __builtin_vis_fpminu16 (v4hi, v4hi);
  36349. v2si __builtin_vis_fpminu32 (v2si, v2si);
  36350. When you use the '-mvis4b' switch, the VIS version 4.0B built-in
  36351. functions also become available:
  36352. v8qi __builtin_vis_dictunpack8 (double, int);
  36353. v4hi __builtin_vis_dictunpack16 (double, int);
  36354. v2si __builtin_vis_dictunpack32 (double, int);
  36355. long __builtin_vis_fpcmple8shl (v8qi, v8qi, int);
  36356. long __builtin_vis_fpcmpgt8shl (v8qi, v8qi, int);
  36357. long __builtin_vis_fpcmpeq8shl (v8qi, v8qi, int);
  36358. long __builtin_vis_fpcmpne8shl (v8qi, v8qi, int);
  36359. long __builtin_vis_fpcmple16shl (v4hi, v4hi, int);
  36360. long __builtin_vis_fpcmpgt16shl (v4hi, v4hi, int);
  36361. long __builtin_vis_fpcmpeq16shl (v4hi, v4hi, int);
  36362. long __builtin_vis_fpcmpne16shl (v4hi, v4hi, int);
  36363. long __builtin_vis_fpcmple32shl (v2si, v2si, int);
  36364. long __builtin_vis_fpcmpgt32shl (v2si, v2si, int);
  36365. long __builtin_vis_fpcmpeq32shl (v2si, v2si, int);
  36366. long __builtin_vis_fpcmpne32shl (v2si, v2si, int);
  36367. long __builtin_vis_fpcmpule8shl (v8qi, v8qi, int);
  36368. long __builtin_vis_fpcmpugt8shl (v8qi, v8qi, int);
  36369. long __builtin_vis_fpcmpule16shl (v4hi, v4hi, int);
  36370. long __builtin_vis_fpcmpugt16shl (v4hi, v4hi, int);
  36371. long __builtin_vis_fpcmpule32shl (v2si, v2si, int);
  36372. long __builtin_vis_fpcmpugt32shl (v2si, v2si, int);
  36373. long __builtin_vis_fpcmpde8shl (v8qi, v8qi, int);
  36374. long __builtin_vis_fpcmpde16shl (v4hi, v4hi, int);
  36375. long __builtin_vis_fpcmpde32shl (v2si, v2si, int);
  36376. long __builtin_vis_fpcmpur8shl (v8qi, v8qi, int);
  36377. long __builtin_vis_fpcmpur16shl (v4hi, v4hi, int);
  36378. long __builtin_vis_fpcmpur32shl (v2si, v2si, int);
  36379. 
  36380. File: gcc.info, Node: SPU Built-in Functions, Next: TI C6X Built-in Functions, Prev: SPARC VIS Built-in Functions, Up: Target Builtins
  36381. 6.60.28 SPU Built-in Functions
  36382. ------------------------------
  36383. GCC provides extensions for the SPU processor as described in the
  36384. Sony/Toshiba/IBM SPU Language Extensions Specification. GCC's
  36385. implementation differs in several ways.
  36386. * The optional extension of specifying vector constants in
  36387. parentheses is not supported.
  36388. * A vector initializer requires no cast if the vector constant is of
  36389. the same type as the variable it is initializing.
  36390. * If 'signed' or 'unsigned' is omitted, the signedness of the vector
  36391. type is the default signedness of the base type. The default
  36392. varies depending on the operating system, so a portable program
  36393. should always specify the signedness.
  36394. * By default, the keyword '__vector' is added. The macro 'vector' is
  36395. defined in '<spu_intrinsics.h>' and can be undefined.
  36396. * GCC allows using a 'typedef' name as the type specifier for a
  36397. vector type.
  36398. * For C, overloaded functions are implemented with macros so the
  36399. following does not work:
  36400. spu_add ((vector signed int){1, 2, 3, 4}, foo);
  36401. Since 'spu_add' is a macro, the vector constant in the example is
  36402. treated as four separate arguments. Wrap the entire argument in
  36403. parentheses for this to work.
  36404. * The extended version of '__builtin_expect' is not supported.
  36405. _Note:_ Only the interface described in the aforementioned
  36406. specification is supported. Internally, GCC uses built-in functions to
  36407. implement the required functionality, but these are not supported and
  36408. are subject to change without notice.
  36409. 
  36410. File: gcc.info, Node: TI C6X Built-in Functions, Next: TILE-Gx Built-in Functions, Prev: SPU Built-in Functions, Up: Target Builtins
  36411. 6.60.29 TI C6X Built-in Functions
  36412. ---------------------------------
  36413. GCC provides intrinsics to access certain instructions of the TI C6X
  36414. processors. These intrinsics, listed below, are available after
  36415. inclusion of the 'c6x_intrinsics.h' header file. They map directly to
  36416. C6X instructions.
  36417. int _sadd (int, int)
  36418. int _ssub (int, int)
  36419. int _sadd2 (int, int)
  36420. int _ssub2 (int, int)
  36421. long long _mpy2 (int, int)
  36422. long long _smpy2 (int, int)
  36423. int _add4 (int, int)
  36424. int _sub4 (int, int)
  36425. int _saddu4 (int, int)
  36426. int _smpy (int, int)
  36427. int _smpyh (int, int)
  36428. int _smpyhl (int, int)
  36429. int _smpylh (int, int)
  36430. int _sshl (int, int)
  36431. int _subc (int, int)
  36432. int _avg2 (int, int)
  36433. int _avgu4 (int, int)
  36434. int _clrr (int, int)
  36435. int _extr (int, int)
  36436. int _extru (int, int)
  36437. int _abs (int)
  36438. int _abs2 (int)
  36439. 
  36440. File: gcc.info, Node: TILE-Gx Built-in Functions, Next: TILEPro Built-in Functions, Prev: TI C6X Built-in Functions, Up: Target Builtins
  36441. 6.60.30 TILE-Gx Built-in Functions
  36442. ----------------------------------
  36443. GCC provides intrinsics to access every instruction of the TILE-Gx
  36444. processor. The intrinsics are of the form:
  36445. unsigned long long __insn_OP (...)
  36446. Where OP is the name of the instruction. Refer to the ISA manual for
  36447. the complete list of instructions.
  36448. GCC also provides intrinsics to directly access the network registers.
  36449. The intrinsics are:
  36450. unsigned long long __tile_idn0_receive (void)
  36451. unsigned long long __tile_idn1_receive (void)
  36452. unsigned long long __tile_udn0_receive (void)
  36453. unsigned long long __tile_udn1_receive (void)
  36454. unsigned long long __tile_udn2_receive (void)
  36455. unsigned long long __tile_udn3_receive (void)
  36456. void __tile_idn_send (unsigned long long)
  36457. void __tile_udn_send (unsigned long long)
  36458. The intrinsic 'void __tile_network_barrier (void)' is used to guarantee
  36459. that no network operations before it are reordered with those after it.
  36460. 
  36461. File: gcc.info, Node: TILEPro Built-in Functions, Next: x86 Built-in Functions, Prev: TILE-Gx Built-in Functions, Up: Target Builtins
  36462. 6.60.31 TILEPro Built-in Functions
  36463. ----------------------------------
  36464. GCC provides intrinsics to access every instruction of the TILEPro
  36465. processor. The intrinsics are of the form:
  36466. unsigned __insn_OP (...)
  36467. where OP is the name of the instruction. Refer to the ISA manual for
  36468. the complete list of instructions.
  36469. GCC also provides intrinsics to directly access the network registers.
  36470. The intrinsics are:
  36471. unsigned __tile_idn0_receive (void)
  36472. unsigned __tile_idn1_receive (void)
  36473. unsigned __tile_sn_receive (void)
  36474. unsigned __tile_udn0_receive (void)
  36475. unsigned __tile_udn1_receive (void)
  36476. unsigned __tile_udn2_receive (void)
  36477. unsigned __tile_udn3_receive (void)
  36478. void __tile_idn_send (unsigned)
  36479. void __tile_sn_send (unsigned)
  36480. void __tile_udn_send (unsigned)
  36481. The intrinsic 'void __tile_network_barrier (void)' is used to guarantee
  36482. that no network operations before it are reordered with those after it.
  36483. 
  36484. File: gcc.info, Node: x86 Built-in Functions, Next: x86 transactional memory intrinsics, Prev: TILEPro Built-in Functions, Up: Target Builtins
  36485. 6.60.32 x86 Built-in Functions
  36486. ------------------------------
  36487. These built-in functions are available for the x86-32 and x86-64 family
  36488. of computers, depending on the command-line switches used.
  36489. If you specify command-line switches such as '-msse', the compiler
  36490. could use the extended instruction sets even if the built-ins are not
  36491. used explicitly in the program. For this reason, applications that
  36492. perform run-time CPU detection must compile separate files for each
  36493. supported architecture, using the appropriate flags. In particular, the
  36494. file containing the CPU detection code should be compiled without these
  36495. options.
  36496. The following machine modes are available for use with MMX built-in
  36497. functions (*note Vector Extensions::): 'V2SI' for a vector of two 32-bit
  36498. integers, 'V4HI' for a vector of four 16-bit integers, and 'V8QI' for a
  36499. vector of eight 8-bit integers. Some of the built-in functions operate
  36500. on MMX registers as a whole 64-bit entity, these use 'V1DI' as their
  36501. mode.
  36502. If 3DNow! extensions are enabled, 'V2SF' is used as a mode for a vector
  36503. of two 32-bit floating-point values.
  36504. If SSE extensions are enabled, 'V4SF' is used for a vector of four
  36505. 32-bit floating-point values. Some instructions use a vector of four
  36506. 32-bit integers, these use 'V4SI'. Finally, some instructions operate
  36507. on an entire vector register, interpreting it as a 128-bit integer,
  36508. these use mode 'TI'.
  36509. The x86-32 and x86-64 family of processors use additional built-in
  36510. functions for efficient use of 'TF' ('__float128') 128-bit floating
  36511. point and 'TC' 128-bit complex floating-point values.
  36512. The following floating-point built-in functions are always available.
  36513. All of them implement the function that is part of the name.
  36514. __float128 __builtin_fabsq (__float128)
  36515. __float128 __builtin_copysignq (__float128, __float128)
  36516. The following built-in functions are always available.
  36517. '__float128 __builtin_infq (void)'
  36518. Similar to '__builtin_inf', except the return type is '__float128'.
  36519. '__float128 __builtin_huge_valq (void)'
  36520. Similar to '__builtin_huge_val', except the return type is
  36521. '__float128'.
  36522. '__float128 __builtin_nanq (void)'
  36523. Similar to '__builtin_nan', except the return type is '__float128'.
  36524. '__float128 __builtin_nansq (void)'
  36525. Similar to '__builtin_nans', except the return type is
  36526. '__float128'.
  36527. The following built-in function is always available.
  36528. 'void __builtin_ia32_pause (void)'
  36529. Generates the 'pause' machine instruction with a compiler memory
  36530. barrier.
  36531. The following built-in functions are always available and can be used
  36532. to check the target platform type.
  36533. -- Built-in Function: void __builtin_cpu_init (void)
  36534. This function runs the CPU detection code to check the type of CPU
  36535. and the features supported. This built-in function needs to be
  36536. invoked along with the built-in functions to check CPU type and
  36537. features, '__builtin_cpu_is' and '__builtin_cpu_supports', only
  36538. when used in a function that is executed before any constructors
  36539. are called. The CPU detection code is automatically executed in a
  36540. very high priority constructor.
  36541. For example, this function has to be used in 'ifunc' resolvers that
  36542. check for CPU type using the built-in functions '__builtin_cpu_is'
  36543. and '__builtin_cpu_supports', or in constructors on targets that
  36544. don't support constructor priority.
  36545. static void (*resolve_memcpy (void)) (void)
  36546. {
  36547. // ifunc resolvers fire before constructors, explicitly call the init
  36548. // function.
  36549. __builtin_cpu_init ();
  36550. if (__builtin_cpu_supports ("ssse3"))
  36551. return ssse3_memcpy; // super fast memcpy with ssse3 instructions.
  36552. else
  36553. return default_memcpy;
  36554. }
  36555. void *memcpy (void *, const void *, size_t)
  36556. __attribute__ ((ifunc ("resolve_memcpy")));
  36557. -- Built-in Function: int __builtin_cpu_is (const char *CPUNAME)
  36558. This function returns a positive integer if the run-time CPU is of
  36559. type CPUNAME and returns '0' otherwise. The following CPU names
  36560. can be detected:
  36561. 'intel'
  36562. Intel CPU.
  36563. 'atom'
  36564. Intel Atom CPU.
  36565. 'core2'
  36566. Intel Core 2 CPU.
  36567. 'corei7'
  36568. Intel Core i7 CPU.
  36569. 'nehalem'
  36570. Intel Core i7 Nehalem CPU.
  36571. 'westmere'
  36572. Intel Core i7 Westmere CPU.
  36573. 'sandybridge'
  36574. Intel Core i7 Sandy Bridge CPU.
  36575. 'amd'
  36576. AMD CPU.
  36577. 'amdfam10h'
  36578. AMD Family 10h CPU.
  36579. 'barcelona'
  36580. AMD Family 10h Barcelona CPU.
  36581. 'shanghai'
  36582. AMD Family 10h Shanghai CPU.
  36583. 'istanbul'
  36584. AMD Family 10h Istanbul CPU.
  36585. 'btver1'
  36586. AMD Family 14h CPU.
  36587. 'amdfam15h'
  36588. AMD Family 15h CPU.
  36589. 'bdver1'
  36590. AMD Family 15h Bulldozer version 1.
  36591. 'bdver2'
  36592. AMD Family 15h Bulldozer version 2.
  36593. 'bdver3'
  36594. AMD Family 15h Bulldozer version 3.
  36595. 'bdver4'
  36596. AMD Family 15h Bulldozer version 4.
  36597. 'btver2'
  36598. AMD Family 16h CPU.
  36599. 'amdfam17h'
  36600. AMD Family 17h CPU.
  36601. 'znver1'
  36602. AMD Family 17h Zen version 1.
  36603. Here is an example:
  36604. if (__builtin_cpu_is ("corei7"))
  36605. {
  36606. do_corei7 (); // Core i7 specific implementation.
  36607. }
  36608. else
  36609. {
  36610. do_generic (); // Generic implementation.
  36611. }
  36612. -- Built-in Function: int __builtin_cpu_supports (const char *FEATURE)
  36613. This function returns a positive integer if the run-time CPU
  36614. supports FEATURE and returns '0' otherwise. The following features
  36615. can be detected:
  36616. 'cmov'
  36617. CMOV instruction.
  36618. 'mmx'
  36619. MMX instructions.
  36620. 'popcnt'
  36621. POPCNT instruction.
  36622. 'sse'
  36623. SSE instructions.
  36624. 'sse2'
  36625. SSE2 instructions.
  36626. 'sse3'
  36627. SSE3 instructions.
  36628. 'ssse3'
  36629. SSSE3 instructions.
  36630. 'sse4.1'
  36631. SSE4.1 instructions.
  36632. 'sse4.2'
  36633. SSE4.2 instructions.
  36634. 'avx'
  36635. AVX instructions.
  36636. 'avx2'
  36637. AVX2 instructions.
  36638. 'avx512f'
  36639. AVX512F instructions.
  36640. Here is an example:
  36641. if (__builtin_cpu_supports ("popcnt"))
  36642. {
  36643. asm("popcnt %1,%0" : "=r"(count) : "rm"(n) : "cc");
  36644. }
  36645. else
  36646. {
  36647. count = generic_countbits (n); //generic implementation.
  36648. }
  36649. The following built-in functions are made available by '-mmmx'. All of
  36650. them generate the machine instruction that is part of the name.
  36651. v8qi __builtin_ia32_paddb (v8qi, v8qi)
  36652. v4hi __builtin_ia32_paddw (v4hi, v4hi)
  36653. v2si __builtin_ia32_paddd (v2si, v2si)
  36654. v8qi __builtin_ia32_psubb (v8qi, v8qi)
  36655. v4hi __builtin_ia32_psubw (v4hi, v4hi)
  36656. v2si __builtin_ia32_psubd (v2si, v2si)
  36657. v8qi __builtin_ia32_paddsb (v8qi, v8qi)
  36658. v4hi __builtin_ia32_paddsw (v4hi, v4hi)
  36659. v8qi __builtin_ia32_psubsb (v8qi, v8qi)
  36660. v4hi __builtin_ia32_psubsw (v4hi, v4hi)
  36661. v8qi __builtin_ia32_paddusb (v8qi, v8qi)
  36662. v4hi __builtin_ia32_paddusw (v4hi, v4hi)
  36663. v8qi __builtin_ia32_psubusb (v8qi, v8qi)
  36664. v4hi __builtin_ia32_psubusw (v4hi, v4hi)
  36665. v4hi __builtin_ia32_pmullw (v4hi, v4hi)
  36666. v4hi __builtin_ia32_pmulhw (v4hi, v4hi)
  36667. di __builtin_ia32_pand (di, di)
  36668. di __builtin_ia32_pandn (di,di)
  36669. di __builtin_ia32_por (di, di)
  36670. di __builtin_ia32_pxor (di, di)
  36671. v8qi __builtin_ia32_pcmpeqb (v8qi, v8qi)
  36672. v4hi __builtin_ia32_pcmpeqw (v4hi, v4hi)
  36673. v2si __builtin_ia32_pcmpeqd (v2si, v2si)
  36674. v8qi __builtin_ia32_pcmpgtb (v8qi, v8qi)
  36675. v4hi __builtin_ia32_pcmpgtw (v4hi, v4hi)
  36676. v2si __builtin_ia32_pcmpgtd (v2si, v2si)
  36677. v8qi __builtin_ia32_punpckhbw (v8qi, v8qi)
  36678. v4hi __builtin_ia32_punpckhwd (v4hi, v4hi)
  36679. v2si __builtin_ia32_punpckhdq (v2si, v2si)
  36680. v8qi __builtin_ia32_punpcklbw (v8qi, v8qi)
  36681. v4hi __builtin_ia32_punpcklwd (v4hi, v4hi)
  36682. v2si __builtin_ia32_punpckldq (v2si, v2si)
  36683. v8qi __builtin_ia32_packsswb (v4hi, v4hi)
  36684. v4hi __builtin_ia32_packssdw (v2si, v2si)
  36685. v8qi __builtin_ia32_packuswb (v4hi, v4hi)
  36686. v4hi __builtin_ia32_psllw (v4hi, v4hi)
  36687. v2si __builtin_ia32_pslld (v2si, v2si)
  36688. v1di __builtin_ia32_psllq (v1di, v1di)
  36689. v4hi __builtin_ia32_psrlw (v4hi, v4hi)
  36690. v2si __builtin_ia32_psrld (v2si, v2si)
  36691. v1di __builtin_ia32_psrlq (v1di, v1di)
  36692. v4hi __builtin_ia32_psraw (v4hi, v4hi)
  36693. v2si __builtin_ia32_psrad (v2si, v2si)
  36694. v4hi __builtin_ia32_psllwi (v4hi, int)
  36695. v2si __builtin_ia32_pslldi (v2si, int)
  36696. v1di __builtin_ia32_psllqi (v1di, int)
  36697. v4hi __builtin_ia32_psrlwi (v4hi, int)
  36698. v2si __builtin_ia32_psrldi (v2si, int)
  36699. v1di __builtin_ia32_psrlqi (v1di, int)
  36700. v4hi __builtin_ia32_psrawi (v4hi, int)
  36701. v2si __builtin_ia32_psradi (v2si, int)
  36702. The following built-in functions are made available either with
  36703. '-msse', or with '-m3dnowa'. All of them generate the machine
  36704. instruction that is part of the name.
  36705. v4hi __builtin_ia32_pmulhuw (v4hi, v4hi)
  36706. v8qi __builtin_ia32_pavgb (v8qi, v8qi)
  36707. v4hi __builtin_ia32_pavgw (v4hi, v4hi)
  36708. v1di __builtin_ia32_psadbw (v8qi, v8qi)
  36709. v8qi __builtin_ia32_pmaxub (v8qi, v8qi)
  36710. v4hi __builtin_ia32_pmaxsw (v4hi, v4hi)
  36711. v8qi __builtin_ia32_pminub (v8qi, v8qi)
  36712. v4hi __builtin_ia32_pminsw (v4hi, v4hi)
  36713. int __builtin_ia32_pmovmskb (v8qi)
  36714. void __builtin_ia32_maskmovq (v8qi, v8qi, char *)
  36715. void __builtin_ia32_movntq (di *, di)
  36716. void __builtin_ia32_sfence (void)
  36717. The following built-in functions are available when '-msse' is used.
  36718. All of them generate the machine instruction that is part of the name.
  36719. int __builtin_ia32_comieq (v4sf, v4sf)
  36720. int __builtin_ia32_comineq (v4sf, v4sf)
  36721. int __builtin_ia32_comilt (v4sf, v4sf)
  36722. int __builtin_ia32_comile (v4sf, v4sf)
  36723. int __builtin_ia32_comigt (v4sf, v4sf)
  36724. int __builtin_ia32_comige (v4sf, v4sf)
  36725. int __builtin_ia32_ucomieq (v4sf, v4sf)
  36726. int __builtin_ia32_ucomineq (v4sf, v4sf)
  36727. int __builtin_ia32_ucomilt (v4sf, v4sf)
  36728. int __builtin_ia32_ucomile (v4sf, v4sf)
  36729. int __builtin_ia32_ucomigt (v4sf, v4sf)
  36730. int __builtin_ia32_ucomige (v4sf, v4sf)
  36731. v4sf __builtin_ia32_addps (v4sf, v4sf)
  36732. v4sf __builtin_ia32_subps (v4sf, v4sf)
  36733. v4sf __builtin_ia32_mulps (v4sf, v4sf)
  36734. v4sf __builtin_ia32_divps (v4sf, v4sf)
  36735. v4sf __builtin_ia32_addss (v4sf, v4sf)
  36736. v4sf __builtin_ia32_subss (v4sf, v4sf)
  36737. v4sf __builtin_ia32_mulss (v4sf, v4sf)
  36738. v4sf __builtin_ia32_divss (v4sf, v4sf)
  36739. v4sf __builtin_ia32_cmpeqps (v4sf, v4sf)
  36740. v4sf __builtin_ia32_cmpltps (v4sf, v4sf)
  36741. v4sf __builtin_ia32_cmpleps (v4sf, v4sf)
  36742. v4sf __builtin_ia32_cmpgtps (v4sf, v4sf)
  36743. v4sf __builtin_ia32_cmpgeps (v4sf, v4sf)
  36744. v4sf __builtin_ia32_cmpunordps (v4sf, v4sf)
  36745. v4sf __builtin_ia32_cmpneqps (v4sf, v4sf)
  36746. v4sf __builtin_ia32_cmpnltps (v4sf, v4sf)
  36747. v4sf __builtin_ia32_cmpnleps (v4sf, v4sf)
  36748. v4sf __builtin_ia32_cmpngtps (v4sf, v4sf)
  36749. v4sf __builtin_ia32_cmpngeps (v4sf, v4sf)
  36750. v4sf __builtin_ia32_cmpordps (v4sf, v4sf)
  36751. v4sf __builtin_ia32_cmpeqss (v4sf, v4sf)
  36752. v4sf __builtin_ia32_cmpltss (v4sf, v4sf)
  36753. v4sf __builtin_ia32_cmpless (v4sf, v4sf)
  36754. v4sf __builtin_ia32_cmpunordss (v4sf, v4sf)
  36755. v4sf __builtin_ia32_cmpneqss (v4sf, v4sf)
  36756. v4sf __builtin_ia32_cmpnltss (v4sf, v4sf)
  36757. v4sf __builtin_ia32_cmpnless (v4sf, v4sf)
  36758. v4sf __builtin_ia32_cmpordss (v4sf, v4sf)
  36759. v4sf __builtin_ia32_maxps (v4sf, v4sf)
  36760. v4sf __builtin_ia32_maxss (v4sf, v4sf)
  36761. v4sf __builtin_ia32_minps (v4sf, v4sf)
  36762. v4sf __builtin_ia32_minss (v4sf, v4sf)
  36763. v4sf __builtin_ia32_andps (v4sf, v4sf)
  36764. v4sf __builtin_ia32_andnps (v4sf, v4sf)
  36765. v4sf __builtin_ia32_orps (v4sf, v4sf)
  36766. v4sf __builtin_ia32_xorps (v4sf, v4sf)
  36767. v4sf __builtin_ia32_movss (v4sf, v4sf)
  36768. v4sf __builtin_ia32_movhlps (v4sf, v4sf)
  36769. v4sf __builtin_ia32_movlhps (v4sf, v4sf)
  36770. v4sf __builtin_ia32_unpckhps (v4sf, v4sf)
  36771. v4sf __builtin_ia32_unpcklps (v4sf, v4sf)
  36772. v4sf __builtin_ia32_cvtpi2ps (v4sf, v2si)
  36773. v4sf __builtin_ia32_cvtsi2ss (v4sf, int)
  36774. v2si __builtin_ia32_cvtps2pi (v4sf)
  36775. int __builtin_ia32_cvtss2si (v4sf)
  36776. v2si __builtin_ia32_cvttps2pi (v4sf)
  36777. int __builtin_ia32_cvttss2si (v4sf)
  36778. v4sf __builtin_ia32_rcpps (v4sf)
  36779. v4sf __builtin_ia32_rsqrtps (v4sf)
  36780. v4sf __builtin_ia32_sqrtps (v4sf)
  36781. v4sf __builtin_ia32_rcpss (v4sf)
  36782. v4sf __builtin_ia32_rsqrtss (v4sf)
  36783. v4sf __builtin_ia32_sqrtss (v4sf)
  36784. v4sf __builtin_ia32_shufps (v4sf, v4sf, int)
  36785. void __builtin_ia32_movntps (float *, v4sf)
  36786. int __builtin_ia32_movmskps (v4sf)
  36787. The following built-in functions are available when '-msse' is used.
  36788. 'v4sf __builtin_ia32_loadups (float *)'
  36789. Generates the 'movups' machine instruction as a load from memory.
  36790. 'void __builtin_ia32_storeups (float *, v4sf)'
  36791. Generates the 'movups' machine instruction as a store to memory.
  36792. 'v4sf __builtin_ia32_loadss (float *)'
  36793. Generates the 'movss' machine instruction as a load from memory.
  36794. 'v4sf __builtin_ia32_loadhps (v4sf, const v2sf *)'
  36795. Generates the 'movhps' machine instruction as a load from memory.
  36796. 'v4sf __builtin_ia32_loadlps (v4sf, const v2sf *)'
  36797. Generates the 'movlps' machine instruction as a load from memory
  36798. 'void __builtin_ia32_storehps (v2sf *, v4sf)'
  36799. Generates the 'movhps' machine instruction as a store to memory.
  36800. 'void __builtin_ia32_storelps (v2sf *, v4sf)'
  36801. Generates the 'movlps' machine instruction as a store to memory.
  36802. The following built-in functions are available when '-msse2' is used.
  36803. All of them generate the machine instruction that is part of the name.
  36804. int __builtin_ia32_comisdeq (v2df, v2df)
  36805. int __builtin_ia32_comisdlt (v2df, v2df)
  36806. int __builtin_ia32_comisdle (v2df, v2df)
  36807. int __builtin_ia32_comisdgt (v2df, v2df)
  36808. int __builtin_ia32_comisdge (v2df, v2df)
  36809. int __builtin_ia32_comisdneq (v2df, v2df)
  36810. int __builtin_ia32_ucomisdeq (v2df, v2df)
  36811. int __builtin_ia32_ucomisdlt (v2df, v2df)
  36812. int __builtin_ia32_ucomisdle (v2df, v2df)
  36813. int __builtin_ia32_ucomisdgt (v2df, v2df)
  36814. int __builtin_ia32_ucomisdge (v2df, v2df)
  36815. int __builtin_ia32_ucomisdneq (v2df, v2df)
  36816. v2df __builtin_ia32_cmpeqpd (v2df, v2df)
  36817. v2df __builtin_ia32_cmpltpd (v2df, v2df)
  36818. v2df __builtin_ia32_cmplepd (v2df, v2df)
  36819. v2df __builtin_ia32_cmpgtpd (v2df, v2df)
  36820. v2df __builtin_ia32_cmpgepd (v2df, v2df)
  36821. v2df __builtin_ia32_cmpunordpd (v2df, v2df)
  36822. v2df __builtin_ia32_cmpneqpd (v2df, v2df)
  36823. v2df __builtin_ia32_cmpnltpd (v2df, v2df)
  36824. v2df __builtin_ia32_cmpnlepd (v2df, v2df)
  36825. v2df __builtin_ia32_cmpngtpd (v2df, v2df)
  36826. v2df __builtin_ia32_cmpngepd (v2df, v2df)
  36827. v2df __builtin_ia32_cmpordpd (v2df, v2df)
  36828. v2df __builtin_ia32_cmpeqsd (v2df, v2df)
  36829. v2df __builtin_ia32_cmpltsd (v2df, v2df)
  36830. v2df __builtin_ia32_cmplesd (v2df, v2df)
  36831. v2df __builtin_ia32_cmpunordsd (v2df, v2df)
  36832. v2df __builtin_ia32_cmpneqsd (v2df, v2df)
  36833. v2df __builtin_ia32_cmpnltsd (v2df, v2df)
  36834. v2df __builtin_ia32_cmpnlesd (v2df, v2df)
  36835. v2df __builtin_ia32_cmpordsd (v2df, v2df)
  36836. v2di __builtin_ia32_paddq (v2di, v2di)
  36837. v2di __builtin_ia32_psubq (v2di, v2di)
  36838. v2df __builtin_ia32_addpd (v2df, v2df)
  36839. v2df __builtin_ia32_subpd (v2df, v2df)
  36840. v2df __builtin_ia32_mulpd (v2df, v2df)
  36841. v2df __builtin_ia32_divpd (v2df, v2df)
  36842. v2df __builtin_ia32_addsd (v2df, v2df)
  36843. v2df __builtin_ia32_subsd (v2df, v2df)
  36844. v2df __builtin_ia32_mulsd (v2df, v2df)
  36845. v2df __builtin_ia32_divsd (v2df, v2df)
  36846. v2df __builtin_ia32_minpd (v2df, v2df)
  36847. v2df __builtin_ia32_maxpd (v2df, v2df)
  36848. v2df __builtin_ia32_minsd (v2df, v2df)
  36849. v2df __builtin_ia32_maxsd (v2df, v2df)
  36850. v2df __builtin_ia32_andpd (v2df, v2df)
  36851. v2df __builtin_ia32_andnpd (v2df, v2df)
  36852. v2df __builtin_ia32_orpd (v2df, v2df)
  36853. v2df __builtin_ia32_xorpd (v2df, v2df)
  36854. v2df __builtin_ia32_movsd (v2df, v2df)
  36855. v2df __builtin_ia32_unpckhpd (v2df, v2df)
  36856. v2df __builtin_ia32_unpcklpd (v2df, v2df)
  36857. v16qi __builtin_ia32_paddb128 (v16qi, v16qi)
  36858. v8hi __builtin_ia32_paddw128 (v8hi, v8hi)
  36859. v4si __builtin_ia32_paddd128 (v4si, v4si)
  36860. v2di __builtin_ia32_paddq128 (v2di, v2di)
  36861. v16qi __builtin_ia32_psubb128 (v16qi, v16qi)
  36862. v8hi __builtin_ia32_psubw128 (v8hi, v8hi)
  36863. v4si __builtin_ia32_psubd128 (v4si, v4si)
  36864. v2di __builtin_ia32_psubq128 (v2di, v2di)
  36865. v8hi __builtin_ia32_pmullw128 (v8hi, v8hi)
  36866. v8hi __builtin_ia32_pmulhw128 (v8hi, v8hi)
  36867. v2di __builtin_ia32_pand128 (v2di, v2di)
  36868. v2di __builtin_ia32_pandn128 (v2di, v2di)
  36869. v2di __builtin_ia32_por128 (v2di, v2di)
  36870. v2di __builtin_ia32_pxor128 (v2di, v2di)
  36871. v16qi __builtin_ia32_pavgb128 (v16qi, v16qi)
  36872. v8hi __builtin_ia32_pavgw128 (v8hi, v8hi)
  36873. v16qi __builtin_ia32_pcmpeqb128 (v16qi, v16qi)
  36874. v8hi __builtin_ia32_pcmpeqw128 (v8hi, v8hi)
  36875. v4si __builtin_ia32_pcmpeqd128 (v4si, v4si)
  36876. v16qi __builtin_ia32_pcmpgtb128 (v16qi, v16qi)
  36877. v8hi __builtin_ia32_pcmpgtw128 (v8hi, v8hi)
  36878. v4si __builtin_ia32_pcmpgtd128 (v4si, v4si)
  36879. v16qi __builtin_ia32_pmaxub128 (v16qi, v16qi)
  36880. v8hi __builtin_ia32_pmaxsw128 (v8hi, v8hi)
  36881. v16qi __builtin_ia32_pminub128 (v16qi, v16qi)
  36882. v8hi __builtin_ia32_pminsw128 (v8hi, v8hi)
  36883. v16qi __builtin_ia32_punpckhbw128 (v16qi, v16qi)
  36884. v8hi __builtin_ia32_punpckhwd128 (v8hi, v8hi)
  36885. v4si __builtin_ia32_punpckhdq128 (v4si, v4si)
  36886. v2di __builtin_ia32_punpckhqdq128 (v2di, v2di)
  36887. v16qi __builtin_ia32_punpcklbw128 (v16qi, v16qi)
  36888. v8hi __builtin_ia32_punpcklwd128 (v8hi, v8hi)
  36889. v4si __builtin_ia32_punpckldq128 (v4si, v4si)
  36890. v2di __builtin_ia32_punpcklqdq128 (v2di, v2di)
  36891. v16qi __builtin_ia32_packsswb128 (v8hi, v8hi)
  36892. v8hi __builtin_ia32_packssdw128 (v4si, v4si)
  36893. v16qi __builtin_ia32_packuswb128 (v8hi, v8hi)
  36894. v8hi __builtin_ia32_pmulhuw128 (v8hi, v8hi)
  36895. void __builtin_ia32_maskmovdqu (v16qi, v16qi)
  36896. v2df __builtin_ia32_loadupd (double *)
  36897. void __builtin_ia32_storeupd (double *, v2df)
  36898. v2df __builtin_ia32_loadhpd (v2df, double const *)
  36899. v2df __builtin_ia32_loadlpd (v2df, double const *)
  36900. int __builtin_ia32_movmskpd (v2df)
  36901. int __builtin_ia32_pmovmskb128 (v16qi)
  36902. void __builtin_ia32_movnti (int *, int)
  36903. void __builtin_ia32_movnti64 (long long int *, long long int)
  36904. void __builtin_ia32_movntpd (double *, v2df)
  36905. void __builtin_ia32_movntdq (v2df *, v2df)
  36906. v4si __builtin_ia32_pshufd (v4si, int)
  36907. v8hi __builtin_ia32_pshuflw (v8hi, int)
  36908. v8hi __builtin_ia32_pshufhw (v8hi, int)
  36909. v2di __builtin_ia32_psadbw128 (v16qi, v16qi)
  36910. v2df __builtin_ia32_sqrtpd (v2df)
  36911. v2df __builtin_ia32_sqrtsd (v2df)
  36912. v2df __builtin_ia32_shufpd (v2df, v2df, int)
  36913. v2df __builtin_ia32_cvtdq2pd (v4si)
  36914. v4sf __builtin_ia32_cvtdq2ps (v4si)
  36915. v4si __builtin_ia32_cvtpd2dq (v2df)
  36916. v2si __builtin_ia32_cvtpd2pi (v2df)
  36917. v4sf __builtin_ia32_cvtpd2ps (v2df)
  36918. v4si __builtin_ia32_cvttpd2dq (v2df)
  36919. v2si __builtin_ia32_cvttpd2pi (v2df)
  36920. v2df __builtin_ia32_cvtpi2pd (v2si)
  36921. int __builtin_ia32_cvtsd2si (v2df)
  36922. int __builtin_ia32_cvttsd2si (v2df)
  36923. long long __builtin_ia32_cvtsd2si64 (v2df)
  36924. long long __builtin_ia32_cvttsd2si64 (v2df)
  36925. v4si __builtin_ia32_cvtps2dq (v4sf)
  36926. v2df __builtin_ia32_cvtps2pd (v4sf)
  36927. v4si __builtin_ia32_cvttps2dq (v4sf)
  36928. v2df __builtin_ia32_cvtsi2sd (v2df, int)
  36929. v2df __builtin_ia32_cvtsi642sd (v2df, long long)
  36930. v4sf __builtin_ia32_cvtsd2ss (v4sf, v2df)
  36931. v2df __builtin_ia32_cvtss2sd (v2df, v4sf)
  36932. void __builtin_ia32_clflush (const void *)
  36933. void __builtin_ia32_lfence (void)
  36934. void __builtin_ia32_mfence (void)
  36935. v16qi __builtin_ia32_loaddqu (const char *)
  36936. void __builtin_ia32_storedqu (char *, v16qi)
  36937. v1di __builtin_ia32_pmuludq (v2si, v2si)
  36938. v2di __builtin_ia32_pmuludq128 (v4si, v4si)
  36939. v8hi __builtin_ia32_psllw128 (v8hi, v8hi)
  36940. v4si __builtin_ia32_pslld128 (v4si, v4si)
  36941. v2di __builtin_ia32_psllq128 (v2di, v2di)
  36942. v8hi __builtin_ia32_psrlw128 (v8hi, v8hi)
  36943. v4si __builtin_ia32_psrld128 (v4si, v4si)
  36944. v2di __builtin_ia32_psrlq128 (v2di, v2di)
  36945. v8hi __builtin_ia32_psraw128 (v8hi, v8hi)
  36946. v4si __builtin_ia32_psrad128 (v4si, v4si)
  36947. v2di __builtin_ia32_pslldqi128 (v2di, int)
  36948. v8hi __builtin_ia32_psllwi128 (v8hi, int)
  36949. v4si __builtin_ia32_pslldi128 (v4si, int)
  36950. v2di __builtin_ia32_psllqi128 (v2di, int)
  36951. v2di __builtin_ia32_psrldqi128 (v2di, int)
  36952. v8hi __builtin_ia32_psrlwi128 (v8hi, int)
  36953. v4si __builtin_ia32_psrldi128 (v4si, int)
  36954. v2di __builtin_ia32_psrlqi128 (v2di, int)
  36955. v8hi __builtin_ia32_psrawi128 (v8hi, int)
  36956. v4si __builtin_ia32_psradi128 (v4si, int)
  36957. v4si __builtin_ia32_pmaddwd128 (v8hi, v8hi)
  36958. v2di __builtin_ia32_movq128 (v2di)
  36959. The following built-in functions are available when '-msse3' is used.
  36960. All of them generate the machine instruction that is part of the name.
  36961. v2df __builtin_ia32_addsubpd (v2df, v2df)
  36962. v4sf __builtin_ia32_addsubps (v4sf, v4sf)
  36963. v2df __builtin_ia32_haddpd (v2df, v2df)
  36964. v4sf __builtin_ia32_haddps (v4sf, v4sf)
  36965. v2df __builtin_ia32_hsubpd (v2df, v2df)
  36966. v4sf __builtin_ia32_hsubps (v4sf, v4sf)
  36967. v16qi __builtin_ia32_lddqu (char const *)
  36968. void __builtin_ia32_monitor (void *, unsigned int, unsigned int)
  36969. v4sf __builtin_ia32_movshdup (v4sf)
  36970. v4sf __builtin_ia32_movsldup (v4sf)
  36971. void __builtin_ia32_mwait (unsigned int, unsigned int)
  36972. The following built-in functions are available when '-mssse3' is used.
  36973. All of them generate the machine instruction that is part of the name.
  36974. v2si __builtin_ia32_phaddd (v2si, v2si)
  36975. v4hi __builtin_ia32_phaddw (v4hi, v4hi)
  36976. v4hi __builtin_ia32_phaddsw (v4hi, v4hi)
  36977. v2si __builtin_ia32_phsubd (v2si, v2si)
  36978. v4hi __builtin_ia32_phsubw (v4hi, v4hi)
  36979. v4hi __builtin_ia32_phsubsw (v4hi, v4hi)
  36980. v4hi __builtin_ia32_pmaddubsw (v8qi, v8qi)
  36981. v4hi __builtin_ia32_pmulhrsw (v4hi, v4hi)
  36982. v8qi __builtin_ia32_pshufb (v8qi, v8qi)
  36983. v8qi __builtin_ia32_psignb (v8qi, v8qi)
  36984. v2si __builtin_ia32_psignd (v2si, v2si)
  36985. v4hi __builtin_ia32_psignw (v4hi, v4hi)
  36986. v1di __builtin_ia32_palignr (v1di, v1di, int)
  36987. v8qi __builtin_ia32_pabsb (v8qi)
  36988. v2si __builtin_ia32_pabsd (v2si)
  36989. v4hi __builtin_ia32_pabsw (v4hi)
  36990. The following built-in functions are available when '-mssse3' is used.
  36991. All of them generate the machine instruction that is part of the name.
  36992. v4si __builtin_ia32_phaddd128 (v4si, v4si)
  36993. v8hi __builtin_ia32_phaddw128 (v8hi, v8hi)
  36994. v8hi __builtin_ia32_phaddsw128 (v8hi, v8hi)
  36995. v4si __builtin_ia32_phsubd128 (v4si, v4si)
  36996. v8hi __builtin_ia32_phsubw128 (v8hi, v8hi)
  36997. v8hi __builtin_ia32_phsubsw128 (v8hi, v8hi)
  36998. v8hi __builtin_ia32_pmaddubsw128 (v16qi, v16qi)
  36999. v8hi __builtin_ia32_pmulhrsw128 (v8hi, v8hi)
  37000. v16qi __builtin_ia32_pshufb128 (v16qi, v16qi)
  37001. v16qi __builtin_ia32_psignb128 (v16qi, v16qi)
  37002. v4si __builtin_ia32_psignd128 (v4si, v4si)
  37003. v8hi __builtin_ia32_psignw128 (v8hi, v8hi)
  37004. v2di __builtin_ia32_palignr128 (v2di, v2di, int)
  37005. v16qi __builtin_ia32_pabsb128 (v16qi)
  37006. v4si __builtin_ia32_pabsd128 (v4si)
  37007. v8hi __builtin_ia32_pabsw128 (v8hi)
  37008. The following built-in functions are available when '-msse4.1' is used.
  37009. All of them generate the machine instruction that is part of the name.
  37010. v2df __builtin_ia32_blendpd (v2df, v2df, const int)
  37011. v4sf __builtin_ia32_blendps (v4sf, v4sf, const int)
  37012. v2df __builtin_ia32_blendvpd (v2df, v2df, v2df)
  37013. v4sf __builtin_ia32_blendvps (v4sf, v4sf, v4sf)
  37014. v2df __builtin_ia32_dppd (v2df, v2df, const int)
  37015. v4sf __builtin_ia32_dpps (v4sf, v4sf, const int)
  37016. v4sf __builtin_ia32_insertps128 (v4sf, v4sf, const int)
  37017. v2di __builtin_ia32_movntdqa (v2di *);
  37018. v16qi __builtin_ia32_mpsadbw128 (v16qi, v16qi, const int)
  37019. v8hi __builtin_ia32_packusdw128 (v4si, v4si)
  37020. v16qi __builtin_ia32_pblendvb128 (v16qi, v16qi, v16qi)
  37021. v8hi __builtin_ia32_pblendw128 (v8hi, v8hi, const int)
  37022. v2di __builtin_ia32_pcmpeqq (v2di, v2di)
  37023. v8hi __builtin_ia32_phminposuw128 (v8hi)
  37024. v16qi __builtin_ia32_pmaxsb128 (v16qi, v16qi)
  37025. v4si __builtin_ia32_pmaxsd128 (v4si, v4si)
  37026. v4si __builtin_ia32_pmaxud128 (v4si, v4si)
  37027. v8hi __builtin_ia32_pmaxuw128 (v8hi, v8hi)
  37028. v16qi __builtin_ia32_pminsb128 (v16qi, v16qi)
  37029. v4si __builtin_ia32_pminsd128 (v4si, v4si)
  37030. v4si __builtin_ia32_pminud128 (v4si, v4si)
  37031. v8hi __builtin_ia32_pminuw128 (v8hi, v8hi)
  37032. v4si __builtin_ia32_pmovsxbd128 (v16qi)
  37033. v2di __builtin_ia32_pmovsxbq128 (v16qi)
  37034. v8hi __builtin_ia32_pmovsxbw128 (v16qi)
  37035. v2di __builtin_ia32_pmovsxdq128 (v4si)
  37036. v4si __builtin_ia32_pmovsxwd128 (v8hi)
  37037. v2di __builtin_ia32_pmovsxwq128 (v8hi)
  37038. v4si __builtin_ia32_pmovzxbd128 (v16qi)
  37039. v2di __builtin_ia32_pmovzxbq128 (v16qi)
  37040. v8hi __builtin_ia32_pmovzxbw128 (v16qi)
  37041. v2di __builtin_ia32_pmovzxdq128 (v4si)
  37042. v4si __builtin_ia32_pmovzxwd128 (v8hi)
  37043. v2di __builtin_ia32_pmovzxwq128 (v8hi)
  37044. v2di __builtin_ia32_pmuldq128 (v4si, v4si)
  37045. v4si __builtin_ia32_pmulld128 (v4si, v4si)
  37046. int __builtin_ia32_ptestc128 (v2di, v2di)
  37047. int __builtin_ia32_ptestnzc128 (v2di, v2di)
  37048. int __builtin_ia32_ptestz128 (v2di, v2di)
  37049. v2df __builtin_ia32_roundpd (v2df, const int)
  37050. v4sf __builtin_ia32_roundps (v4sf, const int)
  37051. v2df __builtin_ia32_roundsd (v2df, v2df, const int)
  37052. v4sf __builtin_ia32_roundss (v4sf, v4sf, const int)
  37053. The following built-in functions are available when '-msse4.1' is used.
  37054. 'v4sf __builtin_ia32_vec_set_v4sf (v4sf, float, const int)'
  37055. Generates the 'insertps' machine instruction.
  37056. 'int __builtin_ia32_vec_ext_v16qi (v16qi, const int)'
  37057. Generates the 'pextrb' machine instruction.
  37058. 'v16qi __builtin_ia32_vec_set_v16qi (v16qi, int, const int)'
  37059. Generates the 'pinsrb' machine instruction.
  37060. 'v4si __builtin_ia32_vec_set_v4si (v4si, int, const int)'
  37061. Generates the 'pinsrd' machine instruction.
  37062. 'v2di __builtin_ia32_vec_set_v2di (v2di, long long, const int)'
  37063. Generates the 'pinsrq' machine instruction in 64bit mode.
  37064. The following built-in functions are changed to generate new SSE4.1
  37065. instructions when '-msse4.1' is used.
  37066. 'float __builtin_ia32_vec_ext_v4sf (v4sf, const int)'
  37067. Generates the 'extractps' machine instruction.
  37068. 'int __builtin_ia32_vec_ext_v4si (v4si, const int)'
  37069. Generates the 'pextrd' machine instruction.
  37070. 'long long __builtin_ia32_vec_ext_v2di (v2di, const int)'
  37071. Generates the 'pextrq' machine instruction in 64bit mode.
  37072. The following built-in functions are available when '-msse4.2' is used.
  37073. All of them generate the machine instruction that is part of the name.
  37074. v16qi __builtin_ia32_pcmpestrm128 (v16qi, int, v16qi, int, const int)
  37075. int __builtin_ia32_pcmpestri128 (v16qi, int, v16qi, int, const int)
  37076. int __builtin_ia32_pcmpestria128 (v16qi, int, v16qi, int, const int)
  37077. int __builtin_ia32_pcmpestric128 (v16qi, int, v16qi, int, const int)
  37078. int __builtin_ia32_pcmpestrio128 (v16qi, int, v16qi, int, const int)
  37079. int __builtin_ia32_pcmpestris128 (v16qi, int, v16qi, int, const int)
  37080. int __builtin_ia32_pcmpestriz128 (v16qi, int, v16qi, int, const int)
  37081. v16qi __builtin_ia32_pcmpistrm128 (v16qi, v16qi, const int)
  37082. int __builtin_ia32_pcmpistri128 (v16qi, v16qi, const int)
  37083. int __builtin_ia32_pcmpistria128 (v16qi, v16qi, const int)
  37084. int __builtin_ia32_pcmpistric128 (v16qi, v16qi, const int)
  37085. int __builtin_ia32_pcmpistrio128 (v16qi, v16qi, const int)
  37086. int __builtin_ia32_pcmpistris128 (v16qi, v16qi, const int)
  37087. int __builtin_ia32_pcmpistriz128 (v16qi, v16qi, const int)
  37088. v2di __builtin_ia32_pcmpgtq (v2di, v2di)
  37089. The following built-in functions are available when '-msse4.2' is used.
  37090. 'unsigned int __builtin_ia32_crc32qi (unsigned int, unsigned char)'
  37091. Generates the 'crc32b' machine instruction.
  37092. 'unsigned int __builtin_ia32_crc32hi (unsigned int, unsigned short)'
  37093. Generates the 'crc32w' machine instruction.
  37094. 'unsigned int __builtin_ia32_crc32si (unsigned int, unsigned int)'
  37095. Generates the 'crc32l' machine instruction.
  37096. 'unsigned long long __builtin_ia32_crc32di (unsigned long long, unsigned long long)'
  37097. Generates the 'crc32q' machine instruction.
  37098. The following built-in functions are changed to generate new SSE4.2
  37099. instructions when '-msse4.2' is used.
  37100. 'int __builtin_popcount (unsigned int)'
  37101. Generates the 'popcntl' machine instruction.
  37102. 'int __builtin_popcountl (unsigned long)'
  37103. Generates the 'popcntl' or 'popcntq' machine instruction, depending
  37104. on the size of 'unsigned long'.
  37105. 'int __builtin_popcountll (unsigned long long)'
  37106. Generates the 'popcntq' machine instruction.
  37107. The following built-in functions are available when '-mavx' is used.
  37108. All of them generate the machine instruction that is part of the name.
  37109. v4df __builtin_ia32_addpd256 (v4df,v4df)
  37110. v8sf __builtin_ia32_addps256 (v8sf,v8sf)
  37111. v4df __builtin_ia32_addsubpd256 (v4df,v4df)
  37112. v8sf __builtin_ia32_addsubps256 (v8sf,v8sf)
  37113. v4df __builtin_ia32_andnpd256 (v4df,v4df)
  37114. v8sf __builtin_ia32_andnps256 (v8sf,v8sf)
  37115. v4df __builtin_ia32_andpd256 (v4df,v4df)
  37116. v8sf __builtin_ia32_andps256 (v8sf,v8sf)
  37117. v4df __builtin_ia32_blendpd256 (v4df,v4df,int)
  37118. v8sf __builtin_ia32_blendps256 (v8sf,v8sf,int)
  37119. v4df __builtin_ia32_blendvpd256 (v4df,v4df,v4df)
  37120. v8sf __builtin_ia32_blendvps256 (v8sf,v8sf,v8sf)
  37121. v2df __builtin_ia32_cmppd (v2df,v2df,int)
  37122. v4df __builtin_ia32_cmppd256 (v4df,v4df,int)
  37123. v4sf __builtin_ia32_cmpps (v4sf,v4sf,int)
  37124. v8sf __builtin_ia32_cmpps256 (v8sf,v8sf,int)
  37125. v2df __builtin_ia32_cmpsd (v2df,v2df,int)
  37126. v4sf __builtin_ia32_cmpss (v4sf,v4sf,int)
  37127. v4df __builtin_ia32_cvtdq2pd256 (v4si)
  37128. v8sf __builtin_ia32_cvtdq2ps256 (v8si)
  37129. v4si __builtin_ia32_cvtpd2dq256 (v4df)
  37130. v4sf __builtin_ia32_cvtpd2ps256 (v4df)
  37131. v8si __builtin_ia32_cvtps2dq256 (v8sf)
  37132. v4df __builtin_ia32_cvtps2pd256 (v4sf)
  37133. v4si __builtin_ia32_cvttpd2dq256 (v4df)
  37134. v8si __builtin_ia32_cvttps2dq256 (v8sf)
  37135. v4df __builtin_ia32_divpd256 (v4df,v4df)
  37136. v8sf __builtin_ia32_divps256 (v8sf,v8sf)
  37137. v8sf __builtin_ia32_dpps256 (v8sf,v8sf,int)
  37138. v4df __builtin_ia32_haddpd256 (v4df,v4df)
  37139. v8sf __builtin_ia32_haddps256 (v8sf,v8sf)
  37140. v4df __builtin_ia32_hsubpd256 (v4df,v4df)
  37141. v8sf __builtin_ia32_hsubps256 (v8sf,v8sf)
  37142. v32qi __builtin_ia32_lddqu256 (pcchar)
  37143. v32qi __builtin_ia32_loaddqu256 (pcchar)
  37144. v4df __builtin_ia32_loadupd256 (pcdouble)
  37145. v8sf __builtin_ia32_loadups256 (pcfloat)
  37146. v2df __builtin_ia32_maskloadpd (pcv2df,v2df)
  37147. v4df __builtin_ia32_maskloadpd256 (pcv4df,v4df)
  37148. v4sf __builtin_ia32_maskloadps (pcv4sf,v4sf)
  37149. v8sf __builtin_ia32_maskloadps256 (pcv8sf,v8sf)
  37150. void __builtin_ia32_maskstorepd (pv2df,v2df,v2df)
  37151. void __builtin_ia32_maskstorepd256 (pv4df,v4df,v4df)
  37152. void __builtin_ia32_maskstoreps (pv4sf,v4sf,v4sf)
  37153. void __builtin_ia32_maskstoreps256 (pv8sf,v8sf,v8sf)
  37154. v4df __builtin_ia32_maxpd256 (v4df,v4df)
  37155. v8sf __builtin_ia32_maxps256 (v8sf,v8sf)
  37156. v4df __builtin_ia32_minpd256 (v4df,v4df)
  37157. v8sf __builtin_ia32_minps256 (v8sf,v8sf)
  37158. v4df __builtin_ia32_movddup256 (v4df)
  37159. int __builtin_ia32_movmskpd256 (v4df)
  37160. int __builtin_ia32_movmskps256 (v8sf)
  37161. v8sf __builtin_ia32_movshdup256 (v8sf)
  37162. v8sf __builtin_ia32_movsldup256 (v8sf)
  37163. v4df __builtin_ia32_mulpd256 (v4df,v4df)
  37164. v8sf __builtin_ia32_mulps256 (v8sf,v8sf)
  37165. v4df __builtin_ia32_orpd256 (v4df,v4df)
  37166. v8sf __builtin_ia32_orps256 (v8sf,v8sf)
  37167. v2df __builtin_ia32_pd_pd256 (v4df)
  37168. v4df __builtin_ia32_pd256_pd (v2df)
  37169. v4sf __builtin_ia32_ps_ps256 (v8sf)
  37170. v8sf __builtin_ia32_ps256_ps (v4sf)
  37171. int __builtin_ia32_ptestc256 (v4di,v4di,ptest)
  37172. int __builtin_ia32_ptestnzc256 (v4di,v4di,ptest)
  37173. int __builtin_ia32_ptestz256 (v4di,v4di,ptest)
  37174. v8sf __builtin_ia32_rcpps256 (v8sf)
  37175. v4df __builtin_ia32_roundpd256 (v4df,int)
  37176. v8sf __builtin_ia32_roundps256 (v8sf,int)
  37177. v8sf __builtin_ia32_rsqrtps_nr256 (v8sf)
  37178. v8sf __builtin_ia32_rsqrtps256 (v8sf)
  37179. v4df __builtin_ia32_shufpd256 (v4df,v4df,int)
  37180. v8sf __builtin_ia32_shufps256 (v8sf,v8sf,int)
  37181. v4si __builtin_ia32_si_si256 (v8si)
  37182. v8si __builtin_ia32_si256_si (v4si)
  37183. v4df __builtin_ia32_sqrtpd256 (v4df)
  37184. v8sf __builtin_ia32_sqrtps_nr256 (v8sf)
  37185. v8sf __builtin_ia32_sqrtps256 (v8sf)
  37186. void __builtin_ia32_storedqu256 (pchar,v32qi)
  37187. void __builtin_ia32_storeupd256 (pdouble,v4df)
  37188. void __builtin_ia32_storeups256 (pfloat,v8sf)
  37189. v4df __builtin_ia32_subpd256 (v4df,v4df)
  37190. v8sf __builtin_ia32_subps256 (v8sf,v8sf)
  37191. v4df __builtin_ia32_unpckhpd256 (v4df,v4df)
  37192. v8sf __builtin_ia32_unpckhps256 (v8sf,v8sf)
  37193. v4df __builtin_ia32_unpcklpd256 (v4df,v4df)
  37194. v8sf __builtin_ia32_unpcklps256 (v8sf,v8sf)
  37195. v4df __builtin_ia32_vbroadcastf128_pd256 (pcv2df)
  37196. v8sf __builtin_ia32_vbroadcastf128_ps256 (pcv4sf)
  37197. v4df __builtin_ia32_vbroadcastsd256 (pcdouble)
  37198. v4sf __builtin_ia32_vbroadcastss (pcfloat)
  37199. v8sf __builtin_ia32_vbroadcastss256 (pcfloat)
  37200. v2df __builtin_ia32_vextractf128_pd256 (v4df,int)
  37201. v4sf __builtin_ia32_vextractf128_ps256 (v8sf,int)
  37202. v4si __builtin_ia32_vextractf128_si256 (v8si,int)
  37203. v4df __builtin_ia32_vinsertf128_pd256 (v4df,v2df,int)
  37204. v8sf __builtin_ia32_vinsertf128_ps256 (v8sf,v4sf,int)
  37205. v8si __builtin_ia32_vinsertf128_si256 (v8si,v4si,int)
  37206. v4df __builtin_ia32_vperm2f128_pd256 (v4df,v4df,int)
  37207. v8sf __builtin_ia32_vperm2f128_ps256 (v8sf,v8sf,int)
  37208. v8si __builtin_ia32_vperm2f128_si256 (v8si,v8si,int)
  37209. v2df __builtin_ia32_vpermil2pd (v2df,v2df,v2di,int)
  37210. v4df __builtin_ia32_vpermil2pd256 (v4df,v4df,v4di,int)
  37211. v4sf __builtin_ia32_vpermil2ps (v4sf,v4sf,v4si,int)
  37212. v8sf __builtin_ia32_vpermil2ps256 (v8sf,v8sf,v8si,int)
  37213. v2df __builtin_ia32_vpermilpd (v2df,int)
  37214. v4df __builtin_ia32_vpermilpd256 (v4df,int)
  37215. v4sf __builtin_ia32_vpermilps (v4sf,int)
  37216. v8sf __builtin_ia32_vpermilps256 (v8sf,int)
  37217. v2df __builtin_ia32_vpermilvarpd (v2df,v2di)
  37218. v4df __builtin_ia32_vpermilvarpd256 (v4df,v4di)
  37219. v4sf __builtin_ia32_vpermilvarps (v4sf,v4si)
  37220. v8sf __builtin_ia32_vpermilvarps256 (v8sf,v8si)
  37221. int __builtin_ia32_vtestcpd (v2df,v2df,ptest)
  37222. int __builtin_ia32_vtestcpd256 (v4df,v4df,ptest)
  37223. int __builtin_ia32_vtestcps (v4sf,v4sf,ptest)
  37224. int __builtin_ia32_vtestcps256 (v8sf,v8sf,ptest)
  37225. int __builtin_ia32_vtestnzcpd (v2df,v2df,ptest)
  37226. int __builtin_ia32_vtestnzcpd256 (v4df,v4df,ptest)
  37227. int __builtin_ia32_vtestnzcps (v4sf,v4sf,ptest)
  37228. int __builtin_ia32_vtestnzcps256 (v8sf,v8sf,ptest)
  37229. int __builtin_ia32_vtestzpd (v2df,v2df,ptest)
  37230. int __builtin_ia32_vtestzpd256 (v4df,v4df,ptest)
  37231. int __builtin_ia32_vtestzps (v4sf,v4sf,ptest)
  37232. int __builtin_ia32_vtestzps256 (v8sf,v8sf,ptest)
  37233. void __builtin_ia32_vzeroall (void)
  37234. void __builtin_ia32_vzeroupper (void)
  37235. v4df __builtin_ia32_xorpd256 (v4df,v4df)
  37236. v8sf __builtin_ia32_xorps256 (v8sf,v8sf)
  37237. The following built-in functions are available when '-mavx2' is used.
  37238. All of them generate the machine instruction that is part of the name.
  37239. v32qi __builtin_ia32_mpsadbw256 (v32qi,v32qi,int)
  37240. v32qi __builtin_ia32_pabsb256 (v32qi)
  37241. v16hi __builtin_ia32_pabsw256 (v16hi)
  37242. v8si __builtin_ia32_pabsd256 (v8si)
  37243. v16hi __builtin_ia32_packssdw256 (v8si,v8si)
  37244. v32qi __builtin_ia32_packsswb256 (v16hi,v16hi)
  37245. v16hi __builtin_ia32_packusdw256 (v8si,v8si)
  37246. v32qi __builtin_ia32_packuswb256 (v16hi,v16hi)
  37247. v32qi __builtin_ia32_paddb256 (v32qi,v32qi)
  37248. v16hi __builtin_ia32_paddw256 (v16hi,v16hi)
  37249. v8si __builtin_ia32_paddd256 (v8si,v8si)
  37250. v4di __builtin_ia32_paddq256 (v4di,v4di)
  37251. v32qi __builtin_ia32_paddsb256 (v32qi,v32qi)
  37252. v16hi __builtin_ia32_paddsw256 (v16hi,v16hi)
  37253. v32qi __builtin_ia32_paddusb256 (v32qi,v32qi)
  37254. v16hi __builtin_ia32_paddusw256 (v16hi,v16hi)
  37255. v4di __builtin_ia32_palignr256 (v4di,v4di,int)
  37256. v4di __builtin_ia32_andsi256 (v4di,v4di)
  37257. v4di __builtin_ia32_andnotsi256 (v4di,v4di)
  37258. v32qi __builtin_ia32_pavgb256 (v32qi,v32qi)
  37259. v16hi __builtin_ia32_pavgw256 (v16hi,v16hi)
  37260. v32qi __builtin_ia32_pblendvb256 (v32qi,v32qi,v32qi)
  37261. v16hi __builtin_ia32_pblendw256 (v16hi,v16hi,int)
  37262. v32qi __builtin_ia32_pcmpeqb256 (v32qi,v32qi)
  37263. v16hi __builtin_ia32_pcmpeqw256 (v16hi,v16hi)
  37264. v8si __builtin_ia32_pcmpeqd256 (c8si,v8si)
  37265. v4di __builtin_ia32_pcmpeqq256 (v4di,v4di)
  37266. v32qi __builtin_ia32_pcmpgtb256 (v32qi,v32qi)
  37267. v16hi __builtin_ia32_pcmpgtw256 (16hi,v16hi)
  37268. v8si __builtin_ia32_pcmpgtd256 (v8si,v8si)
  37269. v4di __builtin_ia32_pcmpgtq256 (v4di,v4di)
  37270. v16hi __builtin_ia32_phaddw256 (v16hi,v16hi)
  37271. v8si __builtin_ia32_phaddd256 (v8si,v8si)
  37272. v16hi __builtin_ia32_phaddsw256 (v16hi,v16hi)
  37273. v16hi __builtin_ia32_phsubw256 (v16hi,v16hi)
  37274. v8si __builtin_ia32_phsubd256 (v8si,v8si)
  37275. v16hi __builtin_ia32_phsubsw256 (v16hi,v16hi)
  37276. v32qi __builtin_ia32_pmaddubsw256 (v32qi,v32qi)
  37277. v16hi __builtin_ia32_pmaddwd256 (v16hi,v16hi)
  37278. v32qi __builtin_ia32_pmaxsb256 (v32qi,v32qi)
  37279. v16hi __builtin_ia32_pmaxsw256 (v16hi,v16hi)
  37280. v8si __builtin_ia32_pmaxsd256 (v8si,v8si)
  37281. v32qi __builtin_ia32_pmaxub256 (v32qi,v32qi)
  37282. v16hi __builtin_ia32_pmaxuw256 (v16hi,v16hi)
  37283. v8si __builtin_ia32_pmaxud256 (v8si,v8si)
  37284. v32qi __builtin_ia32_pminsb256 (v32qi,v32qi)
  37285. v16hi __builtin_ia32_pminsw256 (v16hi,v16hi)
  37286. v8si __builtin_ia32_pminsd256 (v8si,v8si)
  37287. v32qi __builtin_ia32_pminub256 (v32qi,v32qi)
  37288. v16hi __builtin_ia32_pminuw256 (v16hi,v16hi)
  37289. v8si __builtin_ia32_pminud256 (v8si,v8si)
  37290. int __builtin_ia32_pmovmskb256 (v32qi)
  37291. v16hi __builtin_ia32_pmovsxbw256 (v16qi)
  37292. v8si __builtin_ia32_pmovsxbd256 (v16qi)
  37293. v4di __builtin_ia32_pmovsxbq256 (v16qi)
  37294. v8si __builtin_ia32_pmovsxwd256 (v8hi)
  37295. v4di __builtin_ia32_pmovsxwq256 (v8hi)
  37296. v4di __builtin_ia32_pmovsxdq256 (v4si)
  37297. v16hi __builtin_ia32_pmovzxbw256 (v16qi)
  37298. v8si __builtin_ia32_pmovzxbd256 (v16qi)
  37299. v4di __builtin_ia32_pmovzxbq256 (v16qi)
  37300. v8si __builtin_ia32_pmovzxwd256 (v8hi)
  37301. v4di __builtin_ia32_pmovzxwq256 (v8hi)
  37302. v4di __builtin_ia32_pmovzxdq256 (v4si)
  37303. v4di __builtin_ia32_pmuldq256 (v8si,v8si)
  37304. v16hi __builtin_ia32_pmulhrsw256 (v16hi, v16hi)
  37305. v16hi __builtin_ia32_pmulhuw256 (v16hi,v16hi)
  37306. v16hi __builtin_ia32_pmulhw256 (v16hi,v16hi)
  37307. v16hi __builtin_ia32_pmullw256 (v16hi,v16hi)
  37308. v8si __builtin_ia32_pmulld256 (v8si,v8si)
  37309. v4di __builtin_ia32_pmuludq256 (v8si,v8si)
  37310. v4di __builtin_ia32_por256 (v4di,v4di)
  37311. v16hi __builtin_ia32_psadbw256 (v32qi,v32qi)
  37312. v32qi __builtin_ia32_pshufb256 (v32qi,v32qi)
  37313. v8si __builtin_ia32_pshufd256 (v8si,int)
  37314. v16hi __builtin_ia32_pshufhw256 (v16hi,int)
  37315. v16hi __builtin_ia32_pshuflw256 (v16hi,int)
  37316. v32qi __builtin_ia32_psignb256 (v32qi,v32qi)
  37317. v16hi __builtin_ia32_psignw256 (v16hi,v16hi)
  37318. v8si __builtin_ia32_psignd256 (v8si,v8si)
  37319. v4di __builtin_ia32_pslldqi256 (v4di,int)
  37320. v16hi __builtin_ia32_psllwi256 (16hi,int)
  37321. v16hi __builtin_ia32_psllw256(v16hi,v8hi)
  37322. v8si __builtin_ia32_pslldi256 (v8si,int)
  37323. v8si __builtin_ia32_pslld256(v8si,v4si)
  37324. v4di __builtin_ia32_psllqi256 (v4di,int)
  37325. v4di __builtin_ia32_psllq256(v4di,v2di)
  37326. v16hi __builtin_ia32_psrawi256 (v16hi,int)
  37327. v16hi __builtin_ia32_psraw256 (v16hi,v8hi)
  37328. v8si __builtin_ia32_psradi256 (v8si,int)
  37329. v8si __builtin_ia32_psrad256 (v8si,v4si)
  37330. v4di __builtin_ia32_psrldqi256 (v4di, int)
  37331. v16hi __builtin_ia32_psrlwi256 (v16hi,int)
  37332. v16hi __builtin_ia32_psrlw256 (v16hi,v8hi)
  37333. v8si __builtin_ia32_psrldi256 (v8si,int)
  37334. v8si __builtin_ia32_psrld256 (v8si,v4si)
  37335. v4di __builtin_ia32_psrlqi256 (v4di,int)
  37336. v4di __builtin_ia32_psrlq256(v4di,v2di)
  37337. v32qi __builtin_ia32_psubb256 (v32qi,v32qi)
  37338. v32hi __builtin_ia32_psubw256 (v16hi,v16hi)
  37339. v8si __builtin_ia32_psubd256 (v8si,v8si)
  37340. v4di __builtin_ia32_psubq256 (v4di,v4di)
  37341. v32qi __builtin_ia32_psubsb256 (v32qi,v32qi)
  37342. v16hi __builtin_ia32_psubsw256 (v16hi,v16hi)
  37343. v32qi __builtin_ia32_psubusb256 (v32qi,v32qi)
  37344. v16hi __builtin_ia32_psubusw256 (v16hi,v16hi)
  37345. v32qi __builtin_ia32_punpckhbw256 (v32qi,v32qi)
  37346. v16hi __builtin_ia32_punpckhwd256 (v16hi,v16hi)
  37347. v8si __builtin_ia32_punpckhdq256 (v8si,v8si)
  37348. v4di __builtin_ia32_punpckhqdq256 (v4di,v4di)
  37349. v32qi __builtin_ia32_punpcklbw256 (v32qi,v32qi)
  37350. v16hi __builtin_ia32_punpcklwd256 (v16hi,v16hi)
  37351. v8si __builtin_ia32_punpckldq256 (v8si,v8si)
  37352. v4di __builtin_ia32_punpcklqdq256 (v4di,v4di)
  37353. v4di __builtin_ia32_pxor256 (v4di,v4di)
  37354. v4di __builtin_ia32_movntdqa256 (pv4di)
  37355. v4sf __builtin_ia32_vbroadcastss_ps (v4sf)
  37356. v8sf __builtin_ia32_vbroadcastss_ps256 (v4sf)
  37357. v4df __builtin_ia32_vbroadcastsd_pd256 (v2df)
  37358. v4di __builtin_ia32_vbroadcastsi256 (v2di)
  37359. v4si __builtin_ia32_pblendd128 (v4si,v4si)
  37360. v8si __builtin_ia32_pblendd256 (v8si,v8si)
  37361. v32qi __builtin_ia32_pbroadcastb256 (v16qi)
  37362. v16hi __builtin_ia32_pbroadcastw256 (v8hi)
  37363. v8si __builtin_ia32_pbroadcastd256 (v4si)
  37364. v4di __builtin_ia32_pbroadcastq256 (v2di)
  37365. v16qi __builtin_ia32_pbroadcastb128 (v16qi)
  37366. v8hi __builtin_ia32_pbroadcastw128 (v8hi)
  37367. v4si __builtin_ia32_pbroadcastd128 (v4si)
  37368. v2di __builtin_ia32_pbroadcastq128 (v2di)
  37369. v8si __builtin_ia32_permvarsi256 (v8si,v8si)
  37370. v4df __builtin_ia32_permdf256 (v4df,int)
  37371. v8sf __builtin_ia32_permvarsf256 (v8sf,v8sf)
  37372. v4di __builtin_ia32_permdi256 (v4di,int)
  37373. v4di __builtin_ia32_permti256 (v4di,v4di,int)
  37374. v4di __builtin_ia32_extract128i256 (v4di,int)
  37375. v4di __builtin_ia32_insert128i256 (v4di,v2di,int)
  37376. v8si __builtin_ia32_maskloadd256 (pcv8si,v8si)
  37377. v4di __builtin_ia32_maskloadq256 (pcv4di,v4di)
  37378. v4si __builtin_ia32_maskloadd (pcv4si,v4si)
  37379. v2di __builtin_ia32_maskloadq (pcv2di,v2di)
  37380. void __builtin_ia32_maskstored256 (pv8si,v8si,v8si)
  37381. void __builtin_ia32_maskstoreq256 (pv4di,v4di,v4di)
  37382. void __builtin_ia32_maskstored (pv4si,v4si,v4si)
  37383. void __builtin_ia32_maskstoreq (pv2di,v2di,v2di)
  37384. v8si __builtin_ia32_psllv8si (v8si,v8si)
  37385. v4si __builtin_ia32_psllv4si (v4si,v4si)
  37386. v4di __builtin_ia32_psllv4di (v4di,v4di)
  37387. v2di __builtin_ia32_psllv2di (v2di,v2di)
  37388. v8si __builtin_ia32_psrav8si (v8si,v8si)
  37389. v4si __builtin_ia32_psrav4si (v4si,v4si)
  37390. v8si __builtin_ia32_psrlv8si (v8si,v8si)
  37391. v4si __builtin_ia32_psrlv4si (v4si,v4si)
  37392. v4di __builtin_ia32_psrlv4di (v4di,v4di)
  37393. v2di __builtin_ia32_psrlv2di (v2di,v2di)
  37394. v2df __builtin_ia32_gathersiv2df (v2df, pcdouble,v4si,v2df,int)
  37395. v4df __builtin_ia32_gathersiv4df (v4df, pcdouble,v4si,v4df,int)
  37396. v2df __builtin_ia32_gatherdiv2df (v2df, pcdouble,v2di,v2df,int)
  37397. v4df __builtin_ia32_gatherdiv4df (v4df, pcdouble,v4di,v4df,int)
  37398. v4sf __builtin_ia32_gathersiv4sf (v4sf, pcfloat,v4si,v4sf,int)
  37399. v8sf __builtin_ia32_gathersiv8sf (v8sf, pcfloat,v8si,v8sf,int)
  37400. v4sf __builtin_ia32_gatherdiv4sf (v4sf, pcfloat,v2di,v4sf,int)
  37401. v4sf __builtin_ia32_gatherdiv4sf256 (v4sf, pcfloat,v4di,v4sf,int)
  37402. v2di __builtin_ia32_gathersiv2di (v2di, pcint64,v4si,v2di,int)
  37403. v4di __builtin_ia32_gathersiv4di (v4di, pcint64,v4si,v4di,int)
  37404. v2di __builtin_ia32_gatherdiv2di (v2di, pcint64,v2di,v2di,int)
  37405. v4di __builtin_ia32_gatherdiv4di (v4di, pcint64,v4di,v4di,int)
  37406. v4si __builtin_ia32_gathersiv4si (v4si, pcint,v4si,v4si,int)
  37407. v8si __builtin_ia32_gathersiv8si (v8si, pcint,v8si,v8si,int)
  37408. v4si __builtin_ia32_gatherdiv4si (v4si, pcint,v2di,v4si,int)
  37409. v4si __builtin_ia32_gatherdiv4si256 (v4si, pcint,v4di,v4si,int)
  37410. The following built-in functions are available when '-maes' is used.
  37411. All of them generate the machine instruction that is part of the name.
  37412. v2di __builtin_ia32_aesenc128 (v2di, v2di)
  37413. v2di __builtin_ia32_aesenclast128 (v2di, v2di)
  37414. v2di __builtin_ia32_aesdec128 (v2di, v2di)
  37415. v2di __builtin_ia32_aesdeclast128 (v2di, v2di)
  37416. v2di __builtin_ia32_aeskeygenassist128 (v2di, const int)
  37417. v2di __builtin_ia32_aesimc128 (v2di)
  37418. The following built-in function is available when '-mpclmul' is used.
  37419. 'v2di __builtin_ia32_pclmulqdq128 (v2di, v2di, const int)'
  37420. Generates the 'pclmulqdq' machine instruction.
  37421. The following built-in function is available when '-mfsgsbase' is used.
  37422. All of them generate the machine instruction that is part of the name.
  37423. unsigned int __builtin_ia32_rdfsbase32 (void)
  37424. unsigned long long __builtin_ia32_rdfsbase64 (void)
  37425. unsigned int __builtin_ia32_rdgsbase32 (void)
  37426. unsigned long long __builtin_ia32_rdgsbase64 (void)
  37427. void _writefsbase_u32 (unsigned int)
  37428. void _writefsbase_u64 (unsigned long long)
  37429. void _writegsbase_u32 (unsigned int)
  37430. void _writegsbase_u64 (unsigned long long)
  37431. The following built-in function is available when '-mrdrnd' is used.
  37432. All of them generate the machine instruction that is part of the name.
  37433. unsigned int __builtin_ia32_rdrand16_step (unsigned short *)
  37434. unsigned int __builtin_ia32_rdrand32_step (unsigned int *)
  37435. unsigned int __builtin_ia32_rdrand64_step (unsigned long long *)
  37436. The following built-in functions are available when '-msse4a' is used.
  37437. All of them generate the machine instruction that is part of the name.
  37438. void __builtin_ia32_movntsd (double *, v2df)
  37439. void __builtin_ia32_movntss (float *, v4sf)
  37440. v2di __builtin_ia32_extrq (v2di, v16qi)
  37441. v2di __builtin_ia32_extrqi (v2di, const unsigned int, const unsigned int)
  37442. v2di __builtin_ia32_insertq (v2di, v2di)
  37443. v2di __builtin_ia32_insertqi (v2di, v2di, const unsigned int, const unsigned int)
  37444. The following built-in functions are available when '-mxop' is used.
  37445. v2df __builtin_ia32_vfrczpd (v2df)
  37446. v4sf __builtin_ia32_vfrczps (v4sf)
  37447. v2df __builtin_ia32_vfrczsd (v2df)
  37448. v4sf __builtin_ia32_vfrczss (v4sf)
  37449. v4df __builtin_ia32_vfrczpd256 (v4df)
  37450. v8sf __builtin_ia32_vfrczps256 (v8sf)
  37451. v2di __builtin_ia32_vpcmov (v2di, v2di, v2di)
  37452. v2di __builtin_ia32_vpcmov_v2di (v2di, v2di, v2di)
  37453. v4si __builtin_ia32_vpcmov_v4si (v4si, v4si, v4si)
  37454. v8hi __builtin_ia32_vpcmov_v8hi (v8hi, v8hi, v8hi)
  37455. v16qi __builtin_ia32_vpcmov_v16qi (v16qi, v16qi, v16qi)
  37456. v2df __builtin_ia32_vpcmov_v2df (v2df, v2df, v2df)
  37457. v4sf __builtin_ia32_vpcmov_v4sf (v4sf, v4sf, v4sf)
  37458. v4di __builtin_ia32_vpcmov_v4di256 (v4di, v4di, v4di)
  37459. v8si __builtin_ia32_vpcmov_v8si256 (v8si, v8si, v8si)
  37460. v16hi __builtin_ia32_vpcmov_v16hi256 (v16hi, v16hi, v16hi)
  37461. v32qi __builtin_ia32_vpcmov_v32qi256 (v32qi, v32qi, v32qi)
  37462. v4df __builtin_ia32_vpcmov_v4df256 (v4df, v4df, v4df)
  37463. v8sf __builtin_ia32_vpcmov_v8sf256 (v8sf, v8sf, v8sf)
  37464. v16qi __builtin_ia32_vpcomeqb (v16qi, v16qi)
  37465. v8hi __builtin_ia32_vpcomeqw (v8hi, v8hi)
  37466. v4si __builtin_ia32_vpcomeqd (v4si, v4si)
  37467. v2di __builtin_ia32_vpcomeqq (v2di, v2di)
  37468. v16qi __builtin_ia32_vpcomequb (v16qi, v16qi)
  37469. v4si __builtin_ia32_vpcomequd (v4si, v4si)
  37470. v2di __builtin_ia32_vpcomequq (v2di, v2di)
  37471. v8hi __builtin_ia32_vpcomequw (v8hi, v8hi)
  37472. v8hi __builtin_ia32_vpcomeqw (v8hi, v8hi)
  37473. v16qi __builtin_ia32_vpcomfalseb (v16qi, v16qi)
  37474. v4si __builtin_ia32_vpcomfalsed (v4si, v4si)
  37475. v2di __builtin_ia32_vpcomfalseq (v2di, v2di)
  37476. v16qi __builtin_ia32_vpcomfalseub (v16qi, v16qi)
  37477. v4si __builtin_ia32_vpcomfalseud (v4si, v4si)
  37478. v2di __builtin_ia32_vpcomfalseuq (v2di, v2di)
  37479. v8hi __builtin_ia32_vpcomfalseuw (v8hi, v8hi)
  37480. v8hi __builtin_ia32_vpcomfalsew (v8hi, v8hi)
  37481. v16qi __builtin_ia32_vpcomgeb (v16qi, v16qi)
  37482. v4si __builtin_ia32_vpcomged (v4si, v4si)
  37483. v2di __builtin_ia32_vpcomgeq (v2di, v2di)
  37484. v16qi __builtin_ia32_vpcomgeub (v16qi, v16qi)
  37485. v4si __builtin_ia32_vpcomgeud (v4si, v4si)
  37486. v2di __builtin_ia32_vpcomgeuq (v2di, v2di)
  37487. v8hi __builtin_ia32_vpcomgeuw (v8hi, v8hi)
  37488. v8hi __builtin_ia32_vpcomgew (v8hi, v8hi)
  37489. v16qi __builtin_ia32_vpcomgtb (v16qi, v16qi)
  37490. v4si __builtin_ia32_vpcomgtd (v4si, v4si)
  37491. v2di __builtin_ia32_vpcomgtq (v2di, v2di)
  37492. v16qi __builtin_ia32_vpcomgtub (v16qi, v16qi)
  37493. v4si __builtin_ia32_vpcomgtud (v4si, v4si)
  37494. v2di __builtin_ia32_vpcomgtuq (v2di, v2di)
  37495. v8hi __builtin_ia32_vpcomgtuw (v8hi, v8hi)
  37496. v8hi __builtin_ia32_vpcomgtw (v8hi, v8hi)
  37497. v16qi __builtin_ia32_vpcomleb (v16qi, v16qi)
  37498. v4si __builtin_ia32_vpcomled (v4si, v4si)
  37499. v2di __builtin_ia32_vpcomleq (v2di, v2di)
  37500. v16qi __builtin_ia32_vpcomleub (v16qi, v16qi)
  37501. v4si __builtin_ia32_vpcomleud (v4si, v4si)
  37502. v2di __builtin_ia32_vpcomleuq (v2di, v2di)
  37503. v8hi __builtin_ia32_vpcomleuw (v8hi, v8hi)
  37504. v8hi __builtin_ia32_vpcomlew (v8hi, v8hi)
  37505. v16qi __builtin_ia32_vpcomltb (v16qi, v16qi)
  37506. v4si __builtin_ia32_vpcomltd (v4si, v4si)
  37507. v2di __builtin_ia32_vpcomltq (v2di, v2di)
  37508. v16qi __builtin_ia32_vpcomltub (v16qi, v16qi)
  37509. v4si __builtin_ia32_vpcomltud (v4si, v4si)
  37510. v2di __builtin_ia32_vpcomltuq (v2di, v2di)
  37511. v8hi __builtin_ia32_vpcomltuw (v8hi, v8hi)
  37512. v8hi __builtin_ia32_vpcomltw (v8hi, v8hi)
  37513. v16qi __builtin_ia32_vpcomneb (v16qi, v16qi)
  37514. v4si __builtin_ia32_vpcomned (v4si, v4si)
  37515. v2di __builtin_ia32_vpcomneq (v2di, v2di)
  37516. v16qi __builtin_ia32_vpcomneub (v16qi, v16qi)
  37517. v4si __builtin_ia32_vpcomneud (v4si, v4si)
  37518. v2di __builtin_ia32_vpcomneuq (v2di, v2di)
  37519. v8hi __builtin_ia32_vpcomneuw (v8hi, v8hi)
  37520. v8hi __builtin_ia32_vpcomnew (v8hi, v8hi)
  37521. v16qi __builtin_ia32_vpcomtrueb (v16qi, v16qi)
  37522. v4si __builtin_ia32_vpcomtrued (v4si, v4si)
  37523. v2di __builtin_ia32_vpcomtrueq (v2di, v2di)
  37524. v16qi __builtin_ia32_vpcomtrueub (v16qi, v16qi)
  37525. v4si __builtin_ia32_vpcomtrueud (v4si, v4si)
  37526. v2di __builtin_ia32_vpcomtrueuq (v2di, v2di)
  37527. v8hi __builtin_ia32_vpcomtrueuw (v8hi, v8hi)
  37528. v8hi __builtin_ia32_vpcomtruew (v8hi, v8hi)
  37529. v4si __builtin_ia32_vphaddbd (v16qi)
  37530. v2di __builtin_ia32_vphaddbq (v16qi)
  37531. v8hi __builtin_ia32_vphaddbw (v16qi)
  37532. v2di __builtin_ia32_vphadddq (v4si)
  37533. v4si __builtin_ia32_vphaddubd (v16qi)
  37534. v2di __builtin_ia32_vphaddubq (v16qi)
  37535. v8hi __builtin_ia32_vphaddubw (v16qi)
  37536. v2di __builtin_ia32_vphaddudq (v4si)
  37537. v4si __builtin_ia32_vphadduwd (v8hi)
  37538. v2di __builtin_ia32_vphadduwq (v8hi)
  37539. v4si __builtin_ia32_vphaddwd (v8hi)
  37540. v2di __builtin_ia32_vphaddwq (v8hi)
  37541. v8hi __builtin_ia32_vphsubbw (v16qi)
  37542. v2di __builtin_ia32_vphsubdq (v4si)
  37543. v4si __builtin_ia32_vphsubwd (v8hi)
  37544. v4si __builtin_ia32_vpmacsdd (v4si, v4si, v4si)
  37545. v2di __builtin_ia32_vpmacsdqh (v4si, v4si, v2di)
  37546. v2di __builtin_ia32_vpmacsdql (v4si, v4si, v2di)
  37547. v4si __builtin_ia32_vpmacssdd (v4si, v4si, v4si)
  37548. v2di __builtin_ia32_vpmacssdqh (v4si, v4si, v2di)
  37549. v2di __builtin_ia32_vpmacssdql (v4si, v4si, v2di)
  37550. v4si __builtin_ia32_vpmacsswd (v8hi, v8hi, v4si)
  37551. v8hi __builtin_ia32_vpmacssww (v8hi, v8hi, v8hi)
  37552. v4si __builtin_ia32_vpmacswd (v8hi, v8hi, v4si)
  37553. v8hi __builtin_ia32_vpmacsww (v8hi, v8hi, v8hi)
  37554. v4si __builtin_ia32_vpmadcsswd (v8hi, v8hi, v4si)
  37555. v4si __builtin_ia32_vpmadcswd (v8hi, v8hi, v4si)
  37556. v16qi __builtin_ia32_vpperm (v16qi, v16qi, v16qi)
  37557. v16qi __builtin_ia32_vprotb (v16qi, v16qi)
  37558. v4si __builtin_ia32_vprotd (v4si, v4si)
  37559. v2di __builtin_ia32_vprotq (v2di, v2di)
  37560. v8hi __builtin_ia32_vprotw (v8hi, v8hi)
  37561. v16qi __builtin_ia32_vpshab (v16qi, v16qi)
  37562. v4si __builtin_ia32_vpshad (v4si, v4si)
  37563. v2di __builtin_ia32_vpshaq (v2di, v2di)
  37564. v8hi __builtin_ia32_vpshaw (v8hi, v8hi)
  37565. v16qi __builtin_ia32_vpshlb (v16qi, v16qi)
  37566. v4si __builtin_ia32_vpshld (v4si, v4si)
  37567. v2di __builtin_ia32_vpshlq (v2di, v2di)
  37568. v8hi __builtin_ia32_vpshlw (v8hi, v8hi)
  37569. The following built-in functions are available when '-mfma4' is used.
  37570. All of them generate the machine instruction that is part of the name.
  37571. v2df __builtin_ia32_vfmaddpd (v2df, v2df, v2df)
  37572. v4sf __builtin_ia32_vfmaddps (v4sf, v4sf, v4sf)
  37573. v2df __builtin_ia32_vfmaddsd (v2df, v2df, v2df)
  37574. v4sf __builtin_ia32_vfmaddss (v4sf, v4sf, v4sf)
  37575. v2df __builtin_ia32_vfmsubpd (v2df, v2df, v2df)
  37576. v4sf __builtin_ia32_vfmsubps (v4sf, v4sf, v4sf)
  37577. v2df __builtin_ia32_vfmsubsd (v2df, v2df, v2df)
  37578. v4sf __builtin_ia32_vfmsubss (v4sf, v4sf, v4sf)
  37579. v2df __builtin_ia32_vfnmaddpd (v2df, v2df, v2df)
  37580. v4sf __builtin_ia32_vfnmaddps (v4sf, v4sf, v4sf)
  37581. v2df __builtin_ia32_vfnmaddsd (v2df, v2df, v2df)
  37582. v4sf __builtin_ia32_vfnmaddss (v4sf, v4sf, v4sf)
  37583. v2df __builtin_ia32_vfnmsubpd (v2df, v2df, v2df)
  37584. v4sf __builtin_ia32_vfnmsubps (v4sf, v4sf, v4sf)
  37585. v2df __builtin_ia32_vfnmsubsd (v2df, v2df, v2df)
  37586. v4sf __builtin_ia32_vfnmsubss (v4sf, v4sf, v4sf)
  37587. v2df __builtin_ia32_vfmaddsubpd (v2df, v2df, v2df)
  37588. v4sf __builtin_ia32_vfmaddsubps (v4sf, v4sf, v4sf)
  37589. v2df __builtin_ia32_vfmsubaddpd (v2df, v2df, v2df)
  37590. v4sf __builtin_ia32_vfmsubaddps (v4sf, v4sf, v4sf)
  37591. v4df __builtin_ia32_vfmaddpd256 (v4df, v4df, v4df)
  37592. v8sf __builtin_ia32_vfmaddps256 (v8sf, v8sf, v8sf)
  37593. v4df __builtin_ia32_vfmsubpd256 (v4df, v4df, v4df)
  37594. v8sf __builtin_ia32_vfmsubps256 (v8sf, v8sf, v8sf)
  37595. v4df __builtin_ia32_vfnmaddpd256 (v4df, v4df, v4df)
  37596. v8sf __builtin_ia32_vfnmaddps256 (v8sf, v8sf, v8sf)
  37597. v4df __builtin_ia32_vfnmsubpd256 (v4df, v4df, v4df)
  37598. v8sf __builtin_ia32_vfnmsubps256 (v8sf, v8sf, v8sf)
  37599. v4df __builtin_ia32_vfmaddsubpd256 (v4df, v4df, v4df)
  37600. v8sf __builtin_ia32_vfmaddsubps256 (v8sf, v8sf, v8sf)
  37601. v4df __builtin_ia32_vfmsubaddpd256 (v4df, v4df, v4df)
  37602. v8sf __builtin_ia32_vfmsubaddps256 (v8sf, v8sf, v8sf)
  37603. The following built-in functions are available when '-mlwp' is used.
  37604. void __builtin_ia32_llwpcb16 (void *);
  37605. void __builtin_ia32_llwpcb32 (void *);
  37606. void __builtin_ia32_llwpcb64 (void *);
  37607. void * __builtin_ia32_llwpcb16 (void);
  37608. void * __builtin_ia32_llwpcb32 (void);
  37609. void * __builtin_ia32_llwpcb64 (void);
  37610. void __builtin_ia32_lwpval16 (unsigned short, unsigned int, unsigned short)
  37611. void __builtin_ia32_lwpval32 (unsigned int, unsigned int, unsigned int)
  37612. void __builtin_ia32_lwpval64 (unsigned __int64, unsigned int, unsigned int)
  37613. unsigned char __builtin_ia32_lwpins16 (unsigned short, unsigned int, unsigned short)
  37614. unsigned char __builtin_ia32_lwpins32 (unsigned int, unsigned int, unsigned int)
  37615. unsigned char __builtin_ia32_lwpins64 (unsigned __int64, unsigned int, unsigned int)
  37616. The following built-in functions are available when '-mbmi' is used.
  37617. All of them generate the machine instruction that is part of the name.
  37618. unsigned int __builtin_ia32_bextr_u32(unsigned int, unsigned int);
  37619. unsigned long long __builtin_ia32_bextr_u64 (unsigned long long, unsigned long long);
  37620. The following built-in functions are available when '-mbmi2' is used.
  37621. All of them generate the machine instruction that is part of the name.
  37622. unsigned int _bzhi_u32 (unsigned int, unsigned int)
  37623. unsigned int _pdep_u32 (unsigned int, unsigned int)
  37624. unsigned int _pext_u32 (unsigned int, unsigned int)
  37625. unsigned long long _bzhi_u64 (unsigned long long, unsigned long long)
  37626. unsigned long long _pdep_u64 (unsigned long long, unsigned long long)
  37627. unsigned long long _pext_u64 (unsigned long long, unsigned long long)
  37628. The following built-in functions are available when '-mlzcnt' is used.
  37629. All of them generate the machine instruction that is part of the name.
  37630. unsigned short __builtin_ia32_lzcnt_u16(unsigned short);
  37631. unsigned int __builtin_ia32_lzcnt_u32(unsigned int);
  37632. unsigned long long __builtin_ia32_lzcnt_u64 (unsigned long long);
  37633. The following built-in functions are available when '-mfxsr' is used.
  37634. All of them generate the machine instruction that is part of the name.
  37635. void __builtin_ia32_fxsave (void *)
  37636. void __builtin_ia32_fxrstor (void *)
  37637. void __builtin_ia32_fxsave64 (void *)
  37638. void __builtin_ia32_fxrstor64 (void *)
  37639. The following built-in functions are available when '-mxsave' is used.
  37640. All of them generate the machine instruction that is part of the name.
  37641. void __builtin_ia32_xsave (void *, long long)
  37642. void __builtin_ia32_xrstor (void *, long long)
  37643. void __builtin_ia32_xsave64 (void *, long long)
  37644. void __builtin_ia32_xrstor64 (void *, long long)
  37645. The following built-in functions are available when '-mxsaveopt' is
  37646. used. All of them generate the machine instruction that is part of the
  37647. name.
  37648. void __builtin_ia32_xsaveopt (void *, long long)
  37649. void __builtin_ia32_xsaveopt64 (void *, long long)
  37650. The following built-in functions are available when '-mtbm' is used.
  37651. Both of them generate the immediate form of the bextr machine
  37652. instruction.
  37653. unsigned int __builtin_ia32_bextri_u32 (unsigned int,
  37654. const unsigned int);
  37655. unsigned long long __builtin_ia32_bextri_u64 (unsigned long long,
  37656. const unsigned long long);
  37657. The following built-in functions are available when '-m3dnow' is used.
  37658. All of them generate the machine instruction that is part of the name.
  37659. void __builtin_ia32_femms (void)
  37660. v8qi __builtin_ia32_pavgusb (v8qi, v8qi)
  37661. v2si __builtin_ia32_pf2id (v2sf)
  37662. v2sf __builtin_ia32_pfacc (v2sf, v2sf)
  37663. v2sf __builtin_ia32_pfadd (v2sf, v2sf)
  37664. v2si __builtin_ia32_pfcmpeq (v2sf, v2sf)
  37665. v2si __builtin_ia32_pfcmpge (v2sf, v2sf)
  37666. v2si __builtin_ia32_pfcmpgt (v2sf, v2sf)
  37667. v2sf __builtin_ia32_pfmax (v2sf, v2sf)
  37668. v2sf __builtin_ia32_pfmin (v2sf, v2sf)
  37669. v2sf __builtin_ia32_pfmul (v2sf, v2sf)
  37670. v2sf __builtin_ia32_pfrcp (v2sf)
  37671. v2sf __builtin_ia32_pfrcpit1 (v2sf, v2sf)
  37672. v2sf __builtin_ia32_pfrcpit2 (v2sf, v2sf)
  37673. v2sf __builtin_ia32_pfrsqrt (v2sf)
  37674. v2sf __builtin_ia32_pfsub (v2sf, v2sf)
  37675. v2sf __builtin_ia32_pfsubr (v2sf, v2sf)
  37676. v2sf __builtin_ia32_pi2fd (v2si)
  37677. v4hi __builtin_ia32_pmulhrw (v4hi, v4hi)
  37678. The following built-in functions are available when '-m3dnowa' is used.
  37679. All of them generate the machine instruction that is part of the name.
  37680. v2si __builtin_ia32_pf2iw (v2sf)
  37681. v2sf __builtin_ia32_pfnacc (v2sf, v2sf)
  37682. v2sf __builtin_ia32_pfpnacc (v2sf, v2sf)
  37683. v2sf __builtin_ia32_pi2fw (v2si)
  37684. v2sf __builtin_ia32_pswapdsf (v2sf)
  37685. v2si __builtin_ia32_pswapdsi (v2si)
  37686. The following built-in functions are available when '-mrtm' is used
  37687. They are used for restricted transactional memory. These are the
  37688. internal low level functions. Normally the functions in *note x86
  37689. transactional memory intrinsics:: should be used instead.
  37690. int __builtin_ia32_xbegin ()
  37691. void __builtin_ia32_xend ()
  37692. void __builtin_ia32_xabort (status)
  37693. int __builtin_ia32_xtest ()
  37694. The following built-in functions are available when '-mmwaitx' is used.
  37695. All of them generate the machine instruction that is part of the name.
  37696. void __builtin_ia32_monitorx (void *, unsigned int, unsigned int)
  37697. void __builtin_ia32_mwaitx (unsigned int, unsigned int, unsigned int)
  37698. The following built-in functions are available when '-mclzero' is used.
  37699. All of them generate the machine instruction that is part of the name.
  37700. void __builtin_i32_clzero (void *)
  37701. The following built-in functions are available when '-mpku' is used.
  37702. They generate reads and writes to PKRU.
  37703. void __builtin_ia32_wrpkru (unsigned int)
  37704. unsigned int __builtin_ia32_rdpkru ()
  37705. 
  37706. File: gcc.info, Node: x86 transactional memory intrinsics, Prev: x86 Built-in Functions, Up: Target Builtins
  37707. 6.60.33 x86 Transactional Memory Intrinsics
  37708. -------------------------------------------
  37709. These hardware transactional memory intrinsics for x86 allow you to use
  37710. memory transactions with RTM (Restricted Transactional Memory). This
  37711. support is enabled with the '-mrtm' option. For using HLE (Hardware
  37712. Lock Elision) see *note x86 specific memory model extensions for
  37713. transactional memory:: instead.
  37714. A memory transaction commits all changes to memory in an atomic way, as
  37715. visible to other threads. If the transaction fails it is rolled back
  37716. and all side effects discarded.
  37717. Generally there is no guarantee that a memory transaction ever succeeds
  37718. and suitable fallback code always needs to be supplied.
  37719. -- RTM Function: unsigned _xbegin ()
  37720. Start a RTM (Restricted Transactional Memory) transaction. Returns
  37721. '_XBEGIN_STARTED' when the transaction started successfully (note
  37722. this is not 0, so the constant has to be explicitly tested).
  37723. If the transaction aborts, all side-effects are undone and an abort
  37724. code encoded as a bit mask is returned. The following macros are
  37725. defined:
  37726. '_XABORT_EXPLICIT'
  37727. Transaction was explicitly aborted with '_xabort'. The
  37728. parameter passed to '_xabort' is available with
  37729. '_XABORT_CODE(status)'.
  37730. '_XABORT_RETRY'
  37731. Transaction retry is possible.
  37732. '_XABORT_CONFLICT'
  37733. Transaction abort due to a memory conflict with another
  37734. thread.
  37735. '_XABORT_CAPACITY'
  37736. Transaction abort due to the transaction using too much
  37737. memory.
  37738. '_XABORT_DEBUG'
  37739. Transaction abort due to a debug trap.
  37740. '_XABORT_NESTED'
  37741. Transaction abort in an inner nested transaction.
  37742. There is no guarantee any transaction ever succeeds, so there
  37743. always needs to be a valid fallback path.
  37744. -- RTM Function: void _xend ()
  37745. Commit the current transaction. When no transaction is active this
  37746. faults. All memory side-effects of the transaction become visible
  37747. to other threads in an atomic manner.
  37748. -- RTM Function: int _xtest ()
  37749. Return a nonzero value if a transaction is currently active,
  37750. otherwise 0.
  37751. -- RTM Function: void _xabort (status)
  37752. Abort the current transaction. When no transaction is active this
  37753. is a no-op. The STATUS is an 8-bit constant; its value is encoded
  37754. in the return value from '_xbegin'.
  37755. Here is an example showing handling for '_XABORT_RETRY' and a fallback
  37756. path for other failures:
  37757. #include <immintrin.h>
  37758. int n_tries, max_tries;
  37759. unsigned status = _XABORT_EXPLICIT;
  37760. ...
  37761. for (n_tries = 0; n_tries < max_tries; n_tries++)
  37762. {
  37763. status = _xbegin ();
  37764. if (status == _XBEGIN_STARTED || !(status & _XABORT_RETRY))
  37765. break;
  37766. }
  37767. if (status == _XBEGIN_STARTED)
  37768. {
  37769. ... transaction code...
  37770. _xend ();
  37771. }
  37772. else
  37773. {
  37774. ... non-transactional fallback path...
  37775. }
  37776. Note that, in most cases, the transactional and non-transactional code
  37777. must synchronize together to ensure consistency.
  37778. 
  37779. File: gcc.info, Node: Target Format Checks, Next: Pragmas, Prev: Target Builtins, Up: C Extensions
  37780. 6.61 Format Checks Specific to Particular Target Machines
  37781. =========================================================
  37782. For some target machines, GCC supports additional options to the format
  37783. attribute (*note Declaring Attributes of Functions: Function
  37784. Attributes.).
  37785. * Menu:
  37786. * Solaris Format Checks::
  37787. * Darwin Format Checks::
  37788. 
  37789. File: gcc.info, Node: Solaris Format Checks, Next: Darwin Format Checks, Up: Target Format Checks
  37790. 6.61.1 Solaris Format Checks
  37791. ----------------------------
  37792. Solaris targets support the 'cmn_err' (or '__cmn_err__') format check.
  37793. 'cmn_err' accepts a subset of the standard 'printf' conversions, and the
  37794. two-argument '%b' conversion for displaying bit-fields. See the Solaris
  37795. man page for 'cmn_err' for more information.
  37796. 
  37797. File: gcc.info, Node: Darwin Format Checks, Prev: Solaris Format Checks, Up: Target Format Checks
  37798. 6.61.2 Darwin Format Checks
  37799. ---------------------------
  37800. Darwin targets support the 'CFString' (or '__CFString__') in the format
  37801. attribute context. Declarations made with such attribution are parsed
  37802. for correct syntax and format argument types. However, parsing of the
  37803. format string itself is currently undefined and is not carried out by
  37804. this version of the compiler.
  37805. Additionally, 'CFStringRefs' (defined by the 'CoreFoundation' headers)
  37806. may also be used as format arguments. Note that the relevant headers
  37807. are only likely to be available on Darwin (OSX) installations. On such
  37808. installations, the XCode and system documentation provide descriptions
  37809. of 'CFString', 'CFStringRefs' and associated functions.
  37810. 
  37811. File: gcc.info, Node: Pragmas, Next: Unnamed Fields, Prev: Target Format Checks, Up: C Extensions
  37812. 6.62 Pragmas Accepted by GCC
  37813. ============================
  37814. GCC supports several types of pragmas, primarily in order to compile
  37815. code originally written for other compilers. Note that in general we do
  37816. not recommend the use of pragmas; *Note Function Attributes::, for
  37817. further explanation.
  37818. * Menu:
  37819. * AArch64 Pragmas::
  37820. * ARM Pragmas::
  37821. * M32C Pragmas::
  37822. * MeP Pragmas::
  37823. * RS/6000 and PowerPC Pragmas::
  37824. * S/390 Pragmas::
  37825. * Darwin Pragmas::
  37826. * Solaris Pragmas::
  37827. * Symbol-Renaming Pragmas::
  37828. * Structure-Layout Pragmas::
  37829. * Weak Pragmas::
  37830. * Diagnostic Pragmas::
  37831. * Visibility Pragmas::
  37832. * Push/Pop Macro Pragmas::
  37833. * Function Specific Option Pragmas::
  37834. * Loop-Specific Pragmas::
  37835. 
  37836. File: gcc.info, Node: AArch64 Pragmas, Next: ARM Pragmas, Up: Pragmas
  37837. 6.62.1 AArch64 Pragmas
  37838. ----------------------
  37839. The pragmas defined by the AArch64 target correspond to the AArch64
  37840. target function attributes. They can be specified as below:
  37841. #pragma GCC target("string")
  37842. where 'STRING' can be any string accepted as an AArch64 target
  37843. attribute. *Note AArch64 Function Attributes::, for more details on the
  37844. permissible values of 'string'.
  37845. 
  37846. File: gcc.info, Node: ARM Pragmas, Next: M32C Pragmas, Prev: AArch64 Pragmas, Up: Pragmas
  37847. 6.62.2 ARM Pragmas
  37848. ------------------
  37849. The ARM target defines pragmas for controlling the default addition of
  37850. 'long_call' and 'short_call' attributes to functions. *Note Function
  37851. Attributes::, for information about the effects of these attributes.
  37852. 'long_calls'
  37853. Set all subsequent functions to have the 'long_call' attribute.
  37854. 'no_long_calls'
  37855. Set all subsequent functions to have the 'short_call' attribute.
  37856. 'long_calls_off'
  37857. Do not affect the 'long_call' or 'short_call' attributes of
  37858. subsequent functions.
  37859. 
  37860. File: gcc.info, Node: M32C Pragmas, Next: MeP Pragmas, Prev: ARM Pragmas, Up: Pragmas
  37861. 6.62.3 M32C Pragmas
  37862. -------------------
  37863. 'GCC memregs NUMBER'
  37864. Overrides the command-line option '-memregs=' for the current file.
  37865. Use with care! This pragma must be before any function in the
  37866. file, and mixing different memregs values in different objects may
  37867. make them incompatible. This pragma is useful when a
  37868. performance-critical function uses a memreg for temporary values,
  37869. as it may allow you to reduce the number of memregs used.
  37870. 'ADDRESS NAME ADDRESS'
  37871. For any declared symbols matching NAME, this does three things to
  37872. that symbol: it forces the symbol to be located at the given
  37873. address (a number), it forces the symbol to be volatile, and it
  37874. changes the symbol's scope to be static. This pragma exists for
  37875. compatibility with other compilers, but note that the common
  37876. '1234H' numeric syntax is not supported (use '0x1234' instead).
  37877. Example:
  37878. #pragma ADDRESS port3 0x103
  37879. char port3;
  37880. 
  37881. File: gcc.info, Node: MeP Pragmas, Next: RS/6000 and PowerPC Pragmas, Prev: M32C Pragmas, Up: Pragmas
  37882. 6.62.4 MeP Pragmas
  37883. ------------------
  37884. 'custom io_volatile (on|off)'
  37885. Overrides the command-line option '-mio-volatile' for the current
  37886. file. Note that for compatibility with future GCC releases, this
  37887. option should only be used once before any 'io' variables in each
  37888. file.
  37889. 'GCC coprocessor available REGISTERS'
  37890. Specifies which coprocessor registers are available to the register
  37891. allocator. REGISTERS may be a single register, register range
  37892. separated by ellipses, or comma-separated list of those. Example:
  37893. #pragma GCC coprocessor available $c0...$c10, $c28
  37894. 'GCC coprocessor call_saved REGISTERS'
  37895. Specifies which coprocessor registers are to be saved and restored
  37896. by any function using them. REGISTERS may be a single register,
  37897. register range separated by ellipses, or comma-separated list of
  37898. those. Example:
  37899. #pragma GCC coprocessor call_saved $c4...$c6, $c31
  37900. 'GCC coprocessor subclass '(A|B|C|D)' = REGISTERS'
  37901. Creates and defines a register class. These register classes can
  37902. be used by inline 'asm' constructs. REGISTERS may be a single
  37903. register, register range separated by ellipses, or comma-separated
  37904. list of those. Example:
  37905. #pragma GCC coprocessor subclass 'B' = $c2, $c4, $c6
  37906. asm ("cpfoo %0" : "=B" (x));
  37907. 'GCC disinterrupt NAME , NAME ...'
  37908. For the named functions, the compiler adds code to disable
  37909. interrupts for the duration of those functions. If any functions
  37910. so named are not encountered in the source, a warning is emitted
  37911. that the pragma is not used. Examples:
  37912. #pragma disinterrupt foo
  37913. #pragma disinterrupt bar, grill
  37914. int foo () { ... }
  37915. 'GCC call NAME , NAME ...'
  37916. For the named functions, the compiler always uses a
  37917. register-indirect call model when calling the named functions.
  37918. Examples:
  37919. extern int foo ();
  37920. #pragma call foo
  37921. 
  37922. File: gcc.info, Node: RS/6000 and PowerPC Pragmas, Next: S/390 Pragmas, Prev: MeP Pragmas, Up: Pragmas
  37923. 6.62.5 RS/6000 and PowerPC Pragmas
  37924. ----------------------------------
  37925. The RS/6000 and PowerPC targets define one pragma for controlling
  37926. whether or not the 'longcall' attribute is added to function
  37927. declarations by default. This pragma overrides the '-mlongcall' option,
  37928. but not the 'longcall' and 'shortcall' attributes. *Note RS/6000 and
  37929. PowerPC Options::, for more information about when long calls are and
  37930. are not necessary.
  37931. 'longcall (1)'
  37932. Apply the 'longcall' attribute to all subsequent function
  37933. declarations.
  37934. 'longcall (0)'
  37935. Do not apply the 'longcall' attribute to subsequent function
  37936. declarations.
  37937. 
  37938. File: gcc.info, Node: S/390 Pragmas, Next: Darwin Pragmas, Prev: RS/6000 and PowerPC Pragmas, Up: Pragmas
  37939. 6.62.6 S/390 Pragmas
  37940. --------------------
  37941. The pragmas defined by the S/390 target correspond to the S/390 target
  37942. function attributes and some the additional options:
  37943. 'zvector'
  37944. 'no-zvector'
  37945. Note that options of the pragma, unlike options of the target
  37946. attribute, do change the value of preprocessor macros like '__VEC__'.
  37947. They can be specified as below:
  37948. #pragma GCC target("string[,string]...")
  37949. #pragma GCC target("string"[,"string"]...)
  37950. 
  37951. File: gcc.info, Node: Darwin Pragmas, Next: Solaris Pragmas, Prev: S/390 Pragmas, Up: Pragmas
  37952. 6.62.7 Darwin Pragmas
  37953. ---------------------
  37954. The following pragmas are available for all architectures running the
  37955. Darwin operating system. These are useful for compatibility with other
  37956. Mac OS compilers.
  37957. 'mark TOKENS...'
  37958. This pragma is accepted, but has no effect.
  37959. 'options align=ALIGNMENT'
  37960. This pragma sets the alignment of fields in structures. The values
  37961. of ALIGNMENT may be 'mac68k', to emulate m68k alignment, or
  37962. 'power', to emulate PowerPC alignment. Uses of this pragma nest
  37963. properly; to restore the previous setting, use 'reset' for the
  37964. ALIGNMENT.
  37965. 'segment TOKENS...'
  37966. This pragma is accepted, but has no effect.
  37967. 'unused (VAR [, VAR]...)'
  37968. This pragma declares variables to be possibly unused. GCC does not
  37969. produce warnings for the listed variables. The effect is similar
  37970. to that of the 'unused' attribute, except that this pragma may
  37971. appear anywhere within the variables' scopes.
  37972. 
  37973. File: gcc.info, Node: Solaris Pragmas, Next: Symbol-Renaming Pragmas, Prev: Darwin Pragmas, Up: Pragmas
  37974. 6.62.8 Solaris Pragmas
  37975. ----------------------
  37976. The Solaris target supports '#pragma redefine_extname' (*note
  37977. Symbol-Renaming Pragmas::). It also supports additional '#pragma'
  37978. directives for compatibility with the system compiler.
  37979. 'align ALIGNMENT (VARIABLE [, VARIABLE]...)'
  37980. Increase the minimum alignment of each VARIABLE to ALIGNMENT. This
  37981. is the same as GCC's 'aligned' attribute *note Variable
  37982. Attributes::). Macro expansion occurs on the arguments to this
  37983. pragma when compiling C and Objective-C. It does not currently
  37984. occur when compiling C++, but this is a bug which may be fixed in a
  37985. future release.
  37986. 'fini (FUNCTION [, FUNCTION]...)'
  37987. This pragma causes each listed FUNCTION to be called after main, or
  37988. during shared module unloading, by adding a call to the '.fini'
  37989. section.
  37990. 'init (FUNCTION [, FUNCTION]...)'
  37991. This pragma causes each listed FUNCTION to be called during
  37992. initialization (before 'main') or during shared module loading, by
  37993. adding a call to the '.init' section.
  37994. 
  37995. File: gcc.info, Node: Symbol-Renaming Pragmas, Next: Structure-Layout Pragmas, Prev: Solaris Pragmas, Up: Pragmas
  37996. 6.62.9 Symbol-Renaming Pragmas
  37997. ------------------------------
  37998. GCC supports a '#pragma' directive that changes the name used in
  37999. assembly for a given declaration. While this pragma is supported on all
  38000. platforms, it is intended primarily to provide compatibility with the
  38001. Solaris system headers. This effect can also be achieved using the asm
  38002. labels extension (*note Asm Labels::).
  38003. 'redefine_extname OLDNAME NEWNAME'
  38004. This pragma gives the C function OLDNAME the assembly symbol
  38005. NEWNAME. The preprocessor macro '__PRAGMA_REDEFINE_EXTNAME' is
  38006. defined if this pragma is available (currently on all platforms).
  38007. This pragma and the asm labels extension interact in a complicated
  38008. manner. Here are some corner cases you may want to be aware of:
  38009. 1. This pragma silently applies only to declarations with external
  38010. linkage. Asm labels do not have this restriction.
  38011. 2. In C++, this pragma silently applies only to declarations with "C"
  38012. linkage. Again, asm labels do not have this restriction.
  38013. 3. If either of the ways of changing the assembly name of a
  38014. declaration are applied to a declaration whose assembly name has
  38015. already been determined (either by a previous use of one of these
  38016. features, or because the compiler needed the assembly name in order
  38017. to generate code), and the new name is different, a warning issues
  38018. and the name does not change.
  38019. 4. The OLDNAME used by '#pragma redefine_extname' is always the
  38020. C-language name.
  38021. 
  38022. File: gcc.info, Node: Structure-Layout Pragmas, Next: Weak Pragmas, Prev: Symbol-Renaming Pragmas, Up: Pragmas
  38023. 6.62.10 Structure-Layout Pragmas
  38024. --------------------------------
  38025. For compatibility with Microsoft Windows compilers, GCC supports a set
  38026. of '#pragma' directives that change the maximum alignment of members of
  38027. structures (other than zero-width bit-fields), unions, and classes
  38028. subsequently defined. The N value below always is required to be a
  38029. small power of two and specifies the new alignment in bytes.
  38030. 1. '#pragma pack(N)' simply sets the new alignment.
  38031. 2. '#pragma pack()' sets the alignment to the one that was in effect
  38032. when compilation started (see also command-line option
  38033. '-fpack-struct[=N]' *note Code Gen Options::).
  38034. 3. '#pragma pack(push[,N])' pushes the current alignment setting on an
  38035. internal stack and then optionally sets the new alignment.
  38036. 4. '#pragma pack(pop)' restores the alignment setting to the one saved
  38037. at the top of the internal stack (and removes that stack entry).
  38038. Note that '#pragma pack([N])' does not influence this internal
  38039. stack; thus it is possible to have '#pragma pack(push)' followed by
  38040. multiple '#pragma pack(N)' instances and finalized by a single
  38041. '#pragma pack(pop)'.
  38042. Some targets, e.g. x86 and PowerPC, support the '#pragma ms_struct'
  38043. directive which lays out structures and unions subsequently defined as
  38044. the documented '__attribute__ ((ms_struct))'.
  38045. 1. '#pragma ms_struct on' turns on the Microsoft layout.
  38046. 2. '#pragma ms_struct off' turns off the Microsoft layout.
  38047. 3. '#pragma ms_struct reset' goes back to the default layout.
  38048. Most targets also support the '#pragma scalar_storage_order' directive
  38049. which lays out structures and unions subsequently defined as the
  38050. documented '__attribute__ ((scalar_storage_order))'.
  38051. 1. '#pragma scalar_storage_order big-endian' sets the storage order of
  38052. the scalar fields to big-endian.
  38053. 2. '#pragma scalar_storage_order little-endian' sets the storage order
  38054. of the scalar fields to little-endian.
  38055. 3. '#pragma scalar_storage_order default' goes back to the endianness
  38056. that was in effect when compilation started (see also command-line
  38057. option '-fsso-struct=ENDIANNESS' *note C Dialect Options::).
  38058. 
  38059. File: gcc.info, Node: Weak Pragmas, Next: Diagnostic Pragmas, Prev: Structure-Layout Pragmas, Up: Pragmas
  38060. 6.62.11 Weak Pragmas
  38061. --------------------
  38062. For compatibility with SVR4, GCC supports a set of '#pragma' directives
  38063. for declaring symbols to be weak, and defining weak aliases.
  38064. '#pragma weak SYMBOL'
  38065. This pragma declares SYMBOL to be weak, as if the declaration had
  38066. the attribute of the same name. The pragma may appear before or
  38067. after the declaration of SYMBOL. It is not an error for SYMBOL to
  38068. never be defined at all.
  38069. '#pragma weak SYMBOL1 = SYMBOL2'
  38070. This pragma declares SYMBOL1 to be a weak alias of SYMBOL2. It is
  38071. an error if SYMBOL2 is not defined in the current translation unit.
  38072. 
  38073. File: gcc.info, Node: Diagnostic Pragmas, Next: Visibility Pragmas, Prev: Weak Pragmas, Up: Pragmas
  38074. 6.62.12 Diagnostic Pragmas
  38075. --------------------------
  38076. GCC allows the user to selectively enable or disable certain types of
  38077. diagnostics, and change the kind of the diagnostic. For example, a
  38078. project's policy might require that all sources compile with '-Werror'
  38079. but certain files might have exceptions allowing specific types of
  38080. warnings. Or, a project might selectively enable diagnostics and treat
  38081. them as errors depending on which preprocessor macros are defined.
  38082. '#pragma GCC diagnostic KIND OPTION'
  38083. Modifies the disposition of a diagnostic. Note that not all
  38084. diagnostics are modifiable; at the moment only warnings (normally
  38085. controlled by '-W...') can be controlled, and not all of them. Use
  38086. '-fdiagnostics-show-option' to determine which diagnostics are
  38087. controllable and which option controls them.
  38088. KIND is 'error' to treat this diagnostic as an error, 'warning' to
  38089. treat it like a warning (even if '-Werror' is in effect), or
  38090. 'ignored' if the diagnostic is to be ignored. OPTION is a double
  38091. quoted string that matches the command-line option.
  38092. #pragma GCC diagnostic warning "-Wformat"
  38093. #pragma GCC diagnostic error "-Wformat"
  38094. #pragma GCC diagnostic ignored "-Wformat"
  38095. Note that these pragmas override any command-line options. GCC
  38096. keeps track of the location of each pragma, and issues diagnostics
  38097. according to the state as of that point in the source file. Thus,
  38098. pragmas occurring after a line do not affect diagnostics caused by
  38099. that line.
  38100. '#pragma GCC diagnostic push'
  38101. '#pragma GCC diagnostic pop'
  38102. Causes GCC to remember the state of the diagnostics as of each
  38103. 'push', and restore to that point at each 'pop'. If a 'pop' has no
  38104. matching 'push', the command-line options are restored.
  38105. #pragma GCC diagnostic error "-Wuninitialized"
  38106. foo(a); /* error is given for this one */
  38107. #pragma GCC diagnostic push
  38108. #pragma GCC diagnostic ignored "-Wuninitialized"
  38109. foo(b); /* no diagnostic for this one */
  38110. #pragma GCC diagnostic pop
  38111. foo(c); /* error is given for this one */
  38112. #pragma GCC diagnostic pop
  38113. foo(d); /* depends on command-line options */
  38114. GCC also offers a simple mechanism for printing messages during
  38115. compilation.
  38116. '#pragma message STRING'
  38117. Prints STRING as a compiler message on compilation. The message is
  38118. informational only, and is neither a compilation warning nor an
  38119. error.
  38120. #pragma message "Compiling " __FILE__ "..."
  38121. STRING may be parenthesized, and is printed with location
  38122. information. For example,
  38123. #define DO_PRAGMA(x) _Pragma (#x)
  38124. #define TODO(x) DO_PRAGMA(message ("TODO - " #x))
  38125. TODO(Remember to fix this)
  38126. prints '/tmp/file.c:4: note: #pragma message: TODO - Remember to
  38127. fix this'.
  38128. 
  38129. File: gcc.info, Node: Visibility Pragmas, Next: Push/Pop Macro Pragmas, Prev: Diagnostic Pragmas, Up: Pragmas
  38130. 6.62.13 Visibility Pragmas
  38131. --------------------------
  38132. '#pragma GCC visibility push(VISIBILITY)'
  38133. '#pragma GCC visibility pop'
  38134. This pragma allows the user to set the visibility for multiple
  38135. declarations without having to give each a visibility attribute
  38136. (*note Function Attributes::).
  38137. In C++, '#pragma GCC visibility' affects only namespace-scope
  38138. declarations. Class members and template specializations are not
  38139. affected; if you want to override the visibility for a particular
  38140. member or instantiation, you must use an attribute.
  38141. 
  38142. File: gcc.info, Node: Push/Pop Macro Pragmas, Next: Function Specific Option Pragmas, Prev: Visibility Pragmas, Up: Pragmas
  38143. 6.62.14 Push/Pop Macro Pragmas
  38144. ------------------------------
  38145. For compatibility with Microsoft Windows compilers, GCC supports
  38146. '#pragma push_macro("MACRO_NAME")' and '#pragma
  38147. pop_macro("MACRO_NAME")'.
  38148. '#pragma push_macro("MACRO_NAME")'
  38149. This pragma saves the value of the macro named as MACRO_NAME to the
  38150. top of the stack for this macro.
  38151. '#pragma pop_macro("MACRO_NAME")'
  38152. This pragma sets the value of the macro named as MACRO_NAME to the
  38153. value on top of the stack for this macro. If the stack for
  38154. MACRO_NAME is empty, the value of the macro remains unchanged.
  38155. For example:
  38156. #define X 1
  38157. #pragma push_macro("X")
  38158. #undef X
  38159. #define X -1
  38160. #pragma pop_macro("X")
  38161. int x [X];
  38162. In this example, the definition of X as 1 is saved by '#pragma
  38163. push_macro' and restored by '#pragma pop_macro'.
  38164. 
  38165. File: gcc.info, Node: Function Specific Option Pragmas, Next: Loop-Specific Pragmas, Prev: Push/Pop Macro Pragmas, Up: Pragmas
  38166. 6.62.15 Function Specific Option Pragmas
  38167. ----------------------------------------
  38168. '#pragma GCC target ("STRING"...)'
  38169. This pragma allows you to set target specific options for functions
  38170. defined later in the source file. One or more strings can be
  38171. specified. Each function that is defined after this point is as if
  38172. 'attribute((target("STRING")))' was specified for that function.
  38173. The parenthesis around the options is optional. *Note Function
  38174. Attributes::, for more information about the 'target' attribute and
  38175. the attribute syntax.
  38176. The '#pragma GCC target' pragma is presently implemented for x86,
  38177. PowerPC, and Nios II targets only.
  38178. '#pragma GCC optimize ("STRING"...)'
  38179. This pragma allows you to set global optimization options for
  38180. functions defined later in the source file. One or more strings
  38181. can be specified. Each function that is defined after this point
  38182. is as if 'attribute((optimize("STRING")))' was specified for that
  38183. function. The parenthesis around the options is optional. *Note
  38184. Function Attributes::, for more information about the 'optimize'
  38185. attribute and the attribute syntax.
  38186. '#pragma GCC push_options'
  38187. '#pragma GCC pop_options'
  38188. These pragmas maintain a stack of the current target and
  38189. optimization options. It is intended for include files where you
  38190. temporarily want to switch to using a different '#pragma GCC
  38191. target' or '#pragma GCC optimize' and then to pop back to the
  38192. previous options.
  38193. '#pragma GCC reset_options'
  38194. This pragma clears the current '#pragma GCC target' and '#pragma
  38195. GCC optimize' to use the default switches as specified on the
  38196. command line.
  38197. 
  38198. File: gcc.info, Node: Loop-Specific Pragmas, Prev: Function Specific Option Pragmas, Up: Pragmas
  38199. 6.62.16 Loop-Specific Pragmas
  38200. -----------------------------
  38201. '#pragma GCC ivdep'
  38202. With this pragma, the programmer asserts that there are no loop-carried
  38203. dependencies which would prevent consecutive iterations of the following
  38204. loop from executing concurrently with SIMD (single instruction multiple
  38205. data) instructions.
  38206. For example, the compiler can only unconditionally vectorize the
  38207. following loop with the pragma:
  38208. void foo (int n, int *a, int *b, int *c)
  38209. {
  38210. int i, j;
  38211. #pragma GCC ivdep
  38212. for (i = 0; i < n; ++i)
  38213. a[i] = b[i] + c[i];
  38214. }
  38215. In this example, using the 'restrict' qualifier had the same effect. In
  38216. the following example, that would not be possible. Assume k < -m or k
  38217. >= m. Only with the pragma, the compiler knows that it can
  38218. unconditionally vectorize the following loop:
  38219. void ignore_vec_dep (int *a, int k, int c, int m)
  38220. {
  38221. #pragma GCC ivdep
  38222. for (int i = 0; i < m; i++)
  38223. a[i] = a[i + k] * c;
  38224. }
  38225. 
  38226. File: gcc.info, Node: Unnamed Fields, Next: Thread-Local, Prev: Pragmas, Up: C Extensions
  38227. 6.63 Unnamed Structure and Union Fields
  38228. =======================================
  38229. As permitted by ISO C11 and for compatibility with other compilers, GCC
  38230. allows you to define a structure or union that contains, as fields,
  38231. structures and unions without names. For example:
  38232. struct {
  38233. int a;
  38234. union {
  38235. int b;
  38236. float c;
  38237. };
  38238. int d;
  38239. } foo;
  38240. In this example, you are able to access members of the unnamed union
  38241. with code like 'foo.b'. Note that only unnamed structs and unions are
  38242. allowed, you may not have, for example, an unnamed 'int'.
  38243. You must never create such structures that cause ambiguous field
  38244. definitions. For example, in this structure:
  38245. struct {
  38246. int a;
  38247. struct {
  38248. int a;
  38249. };
  38250. } foo;
  38251. it is ambiguous which 'a' is being referred to with 'foo.a'. The
  38252. compiler gives errors for such constructs.
  38253. Unless '-fms-extensions' is used, the unnamed field must be a structure
  38254. or union definition without a tag (for example, 'struct { int a; };').
  38255. If '-fms-extensions' is used, the field may also be a definition with a
  38256. tag such as 'struct foo { int a; };', a reference to a previously
  38257. defined structure or union such as 'struct foo;', or a reference to a
  38258. 'typedef' name for a previously defined structure or union type.
  38259. The option '-fplan9-extensions' enables '-fms-extensions' as well as
  38260. two other extensions. First, a pointer to a structure is automatically
  38261. converted to a pointer to an anonymous field for assignments and
  38262. function calls. For example:
  38263. struct s1 { int a; };
  38264. struct s2 { struct s1; };
  38265. extern void f1 (struct s1 *);
  38266. void f2 (struct s2 *p) { f1 (p); }
  38267. In the call to 'f1' inside 'f2', the pointer 'p' is converted into a
  38268. pointer to the anonymous field.
  38269. Second, when the type of an anonymous field is a 'typedef' for a
  38270. 'struct' or 'union', code may refer to the field using the name of the
  38271. 'typedef'.
  38272. typedef struct { int a; } s1;
  38273. struct s2 { s1; };
  38274. s1 f1 (struct s2 *p) { return p->s1; }
  38275. These usages are only permitted when they are not ambiguous.
  38276. 
  38277. File: gcc.info, Node: Thread-Local, Next: Binary constants, Prev: Unnamed Fields, Up: C Extensions
  38278. 6.64 Thread-Local Storage
  38279. =========================
  38280. Thread-local storage (TLS) is a mechanism by which variables are
  38281. allocated such that there is one instance of the variable per extant
  38282. thread. The runtime model GCC uses to implement this originates in the
  38283. IA-64 processor-specific ABI, but has since been migrated to other
  38284. processors as well. It requires significant support from the linker
  38285. ('ld'), dynamic linker ('ld.so'), and system libraries ('libc.so' and
  38286. 'libpthread.so'), so it is not available everywhere.
  38287. At the user level, the extension is visible with a new storage class
  38288. keyword: '__thread'. For example:
  38289. __thread int i;
  38290. extern __thread struct state s;
  38291. static __thread char *p;
  38292. The '__thread' specifier may be used alone, with the 'extern' or
  38293. 'static' specifiers, but with no other storage class specifier. When
  38294. used with 'extern' or 'static', '__thread' must appear immediately after
  38295. the other storage class specifier.
  38296. The '__thread' specifier may be applied to any global, file-scoped
  38297. static, function-scoped static, or static data member of a class. It
  38298. may not be applied to block-scoped automatic or non-static data member.
  38299. When the address-of operator is applied to a thread-local variable, it
  38300. is evaluated at run time and returns the address of the current thread's
  38301. instance of that variable. An address so obtained may be used by any
  38302. thread. When a thread terminates, any pointers to thread-local
  38303. variables in that thread become invalid.
  38304. No static initialization may refer to the address of a thread-local
  38305. variable.
  38306. In C++, if an initializer is present for a thread-local variable, it
  38307. must be a CONSTANT-EXPRESSION, as defined in 5.19.2 of the ANSI/ISO C++
  38308. standard.
  38309. See ELF Handling For Thread-Local Storage
  38310. (https://www.akkadia.org/drepper/tls.pdf) for a detailed explanation of
  38311. the four thread-local storage addressing models, and how the runtime is
  38312. expected to function.
  38313. * Menu:
  38314. * C99 Thread-Local Edits::
  38315. * C++98 Thread-Local Edits::
  38316. 
  38317. File: gcc.info, Node: C99 Thread-Local Edits, Next: C++98 Thread-Local Edits, Up: Thread-Local
  38318. 6.64.1 ISO/IEC 9899:1999 Edits for Thread-Local Storage
  38319. -------------------------------------------------------
  38320. The following are a set of changes to ISO/IEC 9899:1999 (aka C99) that
  38321. document the exact semantics of the language extension.
  38322. * '5.1.2 Execution environments'
  38323. Add new text after paragraph 1
  38324. Within either execution environment, a "thread" is a flow of
  38325. control within a program. It is implementation defined
  38326. whether or not there may be more than one thread associated
  38327. with a program. It is implementation defined how threads
  38328. beyond the first are created, the name and type of the
  38329. function called at thread startup, and how threads may be
  38330. terminated. However, objects with thread storage duration
  38331. shall be initialized before thread startup.
  38332. * '6.2.4 Storage durations of objects'
  38333. Add new text before paragraph 3
  38334. An object whose identifier is declared with the storage-class
  38335. specifier '__thread' has "thread storage duration". Its
  38336. lifetime is the entire execution of the thread, and its stored
  38337. value is initialized only once, prior to thread startup.
  38338. * '6.4.1 Keywords'
  38339. Add '__thread'.
  38340. * '6.7.1 Storage-class specifiers'
  38341. Add '__thread' to the list of storage class specifiers in paragraph
  38342. 1.
  38343. Change paragraph 2 to
  38344. With the exception of '__thread', at most one storage-class
  38345. specifier may be given [...]. The '__thread' specifier may be
  38346. used alone, or immediately following 'extern' or 'static'.
  38347. Add new text after paragraph 6
  38348. The declaration of an identifier for a variable that has block
  38349. scope that specifies '__thread' shall also specify either
  38350. 'extern' or 'static'.
  38351. The '__thread' specifier shall be used only with variables.
  38352. 
  38353. File: gcc.info, Node: C++98 Thread-Local Edits, Prev: C99 Thread-Local Edits, Up: Thread-Local
  38354. 6.64.2 ISO/IEC 14882:1998 Edits for Thread-Local Storage
  38355. --------------------------------------------------------
  38356. The following are a set of changes to ISO/IEC 14882:1998 (aka C++98)
  38357. that document the exact semantics of the language extension.
  38358. * [intro.execution]
  38359. New text after paragraph 4
  38360. A "thread" is a flow of control within the abstract machine.
  38361. It is implementation defined whether or not there may be more
  38362. than one thread.
  38363. New text after paragraph 7
  38364. It is unspecified whether additional action must be taken to
  38365. ensure when and whether side effects are visible to other
  38366. threads.
  38367. * [lex.key]
  38368. Add '__thread'.
  38369. * [basic.start.main]
  38370. Add after paragraph 5
  38371. The thread that begins execution at the 'main' function is
  38372. called the "main thread". It is implementation defined how
  38373. functions beginning threads other than the main thread are
  38374. designated or typed. A function so designated, as well as the
  38375. 'main' function, is called a "thread startup function". It is
  38376. implementation defined what happens if a thread startup
  38377. function returns. It is implementation defined what happens
  38378. to other threads when any thread calls 'exit'.
  38379. * [basic.start.init]
  38380. Add after paragraph 4
  38381. The storage for an object of thread storage duration shall be
  38382. statically initialized before the first statement of the
  38383. thread startup function. An object of thread storage duration
  38384. shall not require dynamic initialization.
  38385. * [basic.start.term]
  38386. Add after paragraph 3
  38387. The type of an object with thread storage duration shall not
  38388. have a non-trivial destructor, nor shall it be an array type
  38389. whose elements (directly or indirectly) have non-trivial
  38390. destructors.
  38391. * [basic.stc]
  38392. Add "thread storage duration" to the list in paragraph 1.
  38393. Change paragraph 2
  38394. Thread, static, and automatic storage durations are associated
  38395. with objects introduced by declarations [...].
  38396. Add '__thread' to the list of specifiers in paragraph 3.
  38397. * [basic.stc.thread]
  38398. New section before [basic.stc.static]
  38399. The keyword '__thread' applied to a non-local object gives the
  38400. object thread storage duration.
  38401. A local variable or class data member declared both 'static'
  38402. and '__thread' gives the variable or member thread storage
  38403. duration.
  38404. * [basic.stc.static]
  38405. Change paragraph 1
  38406. All objects that have neither thread storage duration, dynamic
  38407. storage duration nor are local [...].
  38408. * [dcl.stc]
  38409. Add '__thread' to the list in paragraph 1.
  38410. Change paragraph 1
  38411. With the exception of '__thread', at most one
  38412. STORAGE-CLASS-SPECIFIER shall appear in a given
  38413. DECL-SPECIFIER-SEQ. The '__thread' specifier may be used
  38414. alone, or immediately following the 'extern' or 'static'
  38415. specifiers. [...]
  38416. Add after paragraph 5
  38417. The '__thread' specifier can be applied only to the names of
  38418. objects and to anonymous unions.
  38419. * [class.mem]
  38420. Add after paragraph 6
  38421. Non-'static' members shall not be '__thread'.
  38422. 
  38423. File: gcc.info, Node: Binary constants, Prev: Thread-Local, Up: C Extensions
  38424. 6.65 Binary Constants using the '0b' Prefix
  38425. ===========================================
  38426. Integer constants can be written as binary constants, consisting of a
  38427. sequence of '0' and '1' digits, prefixed by '0b' or '0B'. This is
  38428. particularly useful in environments that operate a lot on the bit level
  38429. (like microcontrollers).
  38430. The following statements are identical:
  38431. i = 42;
  38432. i = 0x2a;
  38433. i = 052;
  38434. i = 0b101010;
  38435. The type of these constants follows the same rules as for octal or
  38436. hexadecimal integer constants, so suffixes like 'L' or 'UL' can be
  38437. applied.
  38438. 
  38439. File: gcc.info, Node: C++ Extensions, Next: Objective-C, Prev: C Extensions, Up: Top
  38440. 7 Extensions to the C++ Language
  38441. ********************************
  38442. The GNU compiler provides these extensions to the C++ language (and you
  38443. can also use most of the C language extensions in your C++ programs).
  38444. If you want to write code that checks whether these features are
  38445. available, you can test for the GNU compiler the same way as for C
  38446. programs: check for a predefined macro '__GNUC__'. You can also use
  38447. '__GNUG__' to test specifically for GNU C++ (*note Predefined Macros:
  38448. (cpp)Common Predefined Macros.).
  38449. * Menu:
  38450. * C++ Volatiles:: What constitutes an access to a volatile object.
  38451. * Restricted Pointers:: C99 restricted pointers and references.
  38452. * Vague Linkage:: Where G++ puts inlines, vtables and such.
  38453. * C++ Interface:: You can use a single C++ header file for both
  38454. declarations and definitions.
  38455. * Template Instantiation:: Methods for ensuring that exactly one copy of
  38456. each needed template instantiation is emitted.
  38457. * Bound member functions:: You can extract a function pointer to the
  38458. method denoted by a '->*' or '.*' expression.
  38459. * C++ Attributes:: Variable, function, and type attributes for C++ only.
  38460. * Function Multiversioning:: Declaring multiple function versions.
  38461. * Type Traits:: Compiler support for type traits.
  38462. * C++ Concepts:: Improved support for generic programming.
  38463. * Deprecated Features:: Things will disappear from G++.
  38464. * Backwards Compatibility:: Compatibilities with earlier definitions of C++.
  38465. 
  38466. File: gcc.info, Node: C++ Volatiles, Next: Restricted Pointers, Up: C++ Extensions
  38467. 7.1 When is a Volatile C++ Object Accessed?
  38468. ===========================================
  38469. The C++ standard differs from the C standard in its treatment of
  38470. volatile objects. It fails to specify what constitutes a volatile
  38471. access, except to say that C++ should behave in a similar manner to C
  38472. with respect to volatiles, where possible. However, the different
  38473. lvalueness of expressions between C and C++ complicate the behavior.
  38474. G++ behaves the same as GCC for volatile access, *Note Volatiles: C
  38475. Extensions, for a description of GCC's behavior.
  38476. The C and C++ language specifications differ when an object is accessed
  38477. in a void context:
  38478. volatile int *src = SOMEVALUE;
  38479. *src;
  38480. The C++ standard specifies that such expressions do not undergo lvalue
  38481. to rvalue conversion, and that the type of the dereferenced object may
  38482. be incomplete. The C++ standard does not specify explicitly that it is
  38483. lvalue to rvalue conversion that is responsible for causing an access.
  38484. There is reason to believe that it is, because otherwise certain simple
  38485. expressions become undefined. However, because it would surprise most
  38486. programmers, G++ treats dereferencing a pointer to volatile object of
  38487. complete type as GCC would do for an equivalent type in C. When the
  38488. object has incomplete type, G++ issues a warning; if you wish to force
  38489. an error, you must force a conversion to rvalue with, for instance, a
  38490. static cast.
  38491. When using a reference to volatile, G++ does not treat equivalent
  38492. expressions as accesses to volatiles, but instead issues a warning that
  38493. no volatile is accessed. The rationale for this is that otherwise it
  38494. becomes difficult to determine where volatile access occur, and not
  38495. possible to ignore the return value from functions returning volatile
  38496. references. Again, if you wish to force a read, cast the reference to
  38497. an rvalue.
  38498. G++ implements the same behavior as GCC does when assigning to a
  38499. volatile object--there is no reread of the assigned-to object, the
  38500. assigned rvalue is reused. Note that in C++ assignment expressions are
  38501. lvalues, and if used as an lvalue, the volatile object is referred to.
  38502. For instance, VREF refers to VOBJ, as expected, in the following
  38503. example:
  38504. volatile int vobj;
  38505. volatile int &vref = vobj = SOMETHING;
  38506. 
  38507. File: gcc.info, Node: Restricted Pointers, Next: Vague Linkage, Prev: C++ Volatiles, Up: C++ Extensions
  38508. 7.2 Restricting Pointer Aliasing
  38509. ================================
  38510. As with the C front end, G++ understands the C99 feature of restricted
  38511. pointers, specified with the '__restrict__', or '__restrict' type
  38512. qualifier. Because you cannot compile C++ by specifying the '-std=c99'
  38513. language flag, 'restrict' is not a keyword in C++.
  38514. In addition to allowing restricted pointers, you can specify restricted
  38515. references, which indicate that the reference is not aliased in the
  38516. local context.
  38517. void fn (int *__restrict__ rptr, int &__restrict__ rref)
  38518. {
  38519. /* ... */
  38520. }
  38521. In the body of 'fn', RPTR points to an unaliased integer and RREF refers
  38522. to a (different) unaliased integer.
  38523. You may also specify whether a member function's THIS pointer is
  38524. unaliased by using '__restrict__' as a member function qualifier.
  38525. void T::fn () __restrict__
  38526. {
  38527. /* ... */
  38528. }
  38529. Within the body of 'T::fn', THIS has the effective definition 'T
  38530. *__restrict__ const this'. Notice that the interpretation of a
  38531. '__restrict__' member function qualifier is different to that of 'const'
  38532. or 'volatile' qualifier, in that it is applied to the pointer rather
  38533. than the object. This is consistent with other compilers that implement
  38534. restricted pointers.
  38535. As with all outermost parameter qualifiers, '__restrict__' is ignored
  38536. in function definition matching. This means you only need to specify
  38537. '__restrict__' in a function definition, rather than in a function
  38538. prototype as well.
  38539. 
  38540. File: gcc.info, Node: Vague Linkage, Next: C++ Interface, Prev: Restricted Pointers, Up: C++ Extensions
  38541. 7.3 Vague Linkage
  38542. =================
  38543. There are several constructs in C++ that require space in the object
  38544. file but are not clearly tied to a single translation unit. We say that
  38545. these constructs have "vague linkage". Typically such constructs are
  38546. emitted wherever they are needed, though sometimes we can be more
  38547. clever.
  38548. Inline Functions
  38549. Inline functions are typically defined in a header file which can
  38550. be included in many different compilations. Hopefully they can
  38551. usually be inlined, but sometimes an out-of-line copy is necessary,
  38552. if the address of the function is taken or if inlining fails. In
  38553. general, we emit an out-of-line copy in all translation units where
  38554. one is needed. As an exception, we only emit inline virtual
  38555. functions with the vtable, since it always requires a copy.
  38556. Local static variables and string constants used in an inline
  38557. function are also considered to have vague linkage, since they must
  38558. be shared between all inlined and out-of-line instances of the
  38559. function.
  38560. VTables
  38561. C++ virtual functions are implemented in most compilers using a
  38562. lookup table, known as a vtable. The vtable contains pointers to
  38563. the virtual functions provided by a class, and each object of the
  38564. class contains a pointer to its vtable (or vtables, in some
  38565. multiple-inheritance situations). If the class declares any
  38566. non-inline, non-pure virtual functions, the first one is chosen as
  38567. the "key method" for the class, and the vtable is only emitted in
  38568. the translation unit where the key method is defined.
  38569. _Note:_ If the chosen key method is later defined as inline, the
  38570. vtable is still emitted in every translation unit that defines it.
  38571. Make sure that any inline virtuals are declared inline in the class
  38572. body, even if they are not defined there.
  38573. 'type_info' objects
  38574. C++ requires information about types to be written out in order to
  38575. implement 'dynamic_cast', 'typeid' and exception handling. For
  38576. polymorphic classes (classes with virtual functions), the
  38577. 'type_info' object is written out along with the vtable so that
  38578. 'dynamic_cast' can determine the dynamic type of a class object at
  38579. run time. For all other types, we write out the 'type_info' object
  38580. when it is used: when applying 'typeid' to an expression, throwing
  38581. an object, or referring to a type in a catch clause or exception
  38582. specification.
  38583. Template Instantiations
  38584. Most everything in this section also applies to template
  38585. instantiations, but there are other options as well. *Note Where's
  38586. the Template?: Template Instantiation.
  38587. When used with GNU ld version 2.8 or later on an ELF system such as
  38588. GNU/Linux or Solaris 2, or on Microsoft Windows, duplicate copies of
  38589. these constructs will be discarded at link time. This is known as
  38590. COMDAT support.
  38591. On targets that don't support COMDAT, but do support weak symbols, GCC
  38592. uses them. This way one copy overrides all the others, but the unused
  38593. copies still take up space in the executable.
  38594. For targets that do not support either COMDAT or weak symbols, most
  38595. entities with vague linkage are emitted as local symbols to avoid
  38596. duplicate definition errors from the linker. This does not happen for
  38597. local statics in inlines, however, as having multiple copies almost
  38598. certainly breaks things.
  38599. *Note Declarations and Definitions in One Header: C++ Interface, for
  38600. another way to control placement of these constructs.
  38601. 
  38602. File: gcc.info, Node: C++ Interface, Next: Template Instantiation, Prev: Vague Linkage, Up: C++ Extensions
  38603. 7.4 C++ Interface and Implementation Pragmas
  38604. ============================================
  38605. '#pragma interface' and '#pragma implementation' provide the user with a
  38606. way of explicitly directing the compiler to emit entities with vague
  38607. linkage (and debugging information) in a particular translation unit.
  38608. _Note:_ These '#pragma's have been superceded as of GCC 2.7.2 by COMDAT
  38609. support and the "key method" heuristic mentioned in *note Vague
  38610. Linkage::. Using them can actually cause your program to grow due to
  38611. unnecessary out-of-line copies of inline functions.
  38612. '#pragma interface'
  38613. '#pragma interface "SUBDIR/OBJECTS.h"'
  38614. Use this directive in _header files_ that define object classes, to
  38615. save space in most of the object files that use those classes.
  38616. Normally, local copies of certain information (backup copies of
  38617. inline member functions, debugging information, and the internal
  38618. tables that implement virtual functions) must be kept in each
  38619. object file that includes class definitions. You can use this
  38620. pragma to avoid such duplication. When a header file containing
  38621. '#pragma interface' is included in a compilation, this auxiliary
  38622. information is not generated (unless the main input source file
  38623. itself uses '#pragma implementation'). Instead, the object files
  38624. contain references to be resolved at link time.
  38625. The second form of this directive is useful for the case where you
  38626. have multiple headers with the same name in different directories.
  38627. If you use this form, you must specify the same string to '#pragma
  38628. implementation'.
  38629. '#pragma implementation'
  38630. '#pragma implementation "OBJECTS.h"'
  38631. Use this pragma in a _main input file_, when you want full output
  38632. from included header files to be generated (and made globally
  38633. visible). The included header file, in turn, should use '#pragma
  38634. interface'. Backup copies of inline member functions, debugging
  38635. information, and the internal tables used to implement virtual
  38636. functions are all generated in implementation files.
  38637. If you use '#pragma implementation' with no argument, it applies to
  38638. an include file with the same basename(1) as your source file. For
  38639. example, in 'allclass.cc', giving just '#pragma implementation' by
  38640. itself is equivalent to '#pragma implementation "allclass.h"'.
  38641. Use the string argument if you want a single implementation file to
  38642. include code from multiple header files. (You must also use
  38643. '#include' to include the header file; '#pragma implementation'
  38644. only specifies how to use the file--it doesn't actually include
  38645. it.)
  38646. There is no way to split up the contents of a single header file
  38647. into multiple implementation files.
  38648. '#pragma implementation' and '#pragma interface' also have an effect on
  38649. function inlining.
  38650. If you define a class in a header file marked with '#pragma interface',
  38651. the effect on an inline function defined in that class is similar to an
  38652. explicit 'extern' declaration--the compiler emits no code at all to
  38653. define an independent version of the function. Its definition is used
  38654. only for inlining with its callers.
  38655. Conversely, when you include the same header file in a main source file
  38656. that declares it as '#pragma implementation', the compiler emits code
  38657. for the function itself; this defines a version of the function that can
  38658. be found via pointers (or by callers compiled without inlining). If all
  38659. calls to the function can be inlined, you can avoid emitting the
  38660. function by compiling with '-fno-implement-inlines'. If any calls are
  38661. not inlined, you will get linker errors.
  38662. ---------- Footnotes ----------
  38663. (1) A file's "basename" is the name stripped of all leading path
  38664. information and of trailing suffixes, such as '.h' or '.C' or '.cc'.
  38665. 
  38666. File: gcc.info, Node: Template Instantiation, Next: Bound member functions, Prev: C++ Interface, Up: C++ Extensions
  38667. 7.5 Where's the Template?
  38668. =========================
  38669. C++ templates were the first language feature to require more
  38670. intelligence from the environment than was traditionally found on a UNIX
  38671. system. Somehow the compiler and linker have to make sure that each
  38672. template instance occurs exactly once in the executable if it is needed,
  38673. and not at all otherwise. There are two basic approaches to this
  38674. problem, which are referred to as the Borland model and the Cfront
  38675. model.
  38676. Borland model
  38677. Borland C++ solved the template instantiation problem by adding the
  38678. code equivalent of common blocks to their linker; the compiler
  38679. emits template instances in each translation unit that uses them,
  38680. and the linker collapses them together. The advantage of this
  38681. model is that the linker only has to consider the object files
  38682. themselves; there is no external complexity to worry about. The
  38683. disadvantage is that compilation time is increased because the
  38684. template code is being compiled repeatedly. Code written for this
  38685. model tends to include definitions of all templates in the header
  38686. file, since they must be seen to be instantiated.
  38687. Cfront model
  38688. The AT&T C++ translator, Cfront, solved the template instantiation
  38689. problem by creating the notion of a template repository, an
  38690. automatically maintained place where template instances are stored.
  38691. A more modern version of the repository works as follows: As
  38692. individual object files are built, the compiler places any template
  38693. definitions and instantiations encountered in the repository. At
  38694. link time, the link wrapper adds in the objects in the repository
  38695. and compiles any needed instances that were not previously emitted.
  38696. The advantages of this model are more optimal compilation speed and
  38697. the ability to use the system linker; to implement the Borland
  38698. model a compiler vendor also needs to replace the linker. The
  38699. disadvantages are vastly increased complexity, and thus potential
  38700. for error; for some code this can be just as transparent, but in
  38701. practice it can been very difficult to build multiple programs in
  38702. one directory and one program in multiple directories. Code
  38703. written for this model tends to separate definitions of non-inline
  38704. member templates into a separate file, which should be compiled
  38705. separately.
  38706. G++ implements the Borland model on targets where the linker supports
  38707. it, including ELF targets (such as GNU/Linux), Mac OS X and Microsoft
  38708. Windows. Otherwise G++ implements neither automatic model.
  38709. You have the following options for dealing with template
  38710. instantiations:
  38711. 1. Do nothing. Code written for the Borland model works fine, but
  38712. each translation unit contains instances of each of the templates
  38713. it uses. The duplicate instances will be discarded by the linker,
  38714. but in a large program, this can lead to an unacceptable amount of
  38715. code duplication in object files or shared libraries.
  38716. Duplicate instances of a template can be avoided by defining an
  38717. explicit instantiation in one object file, and preventing the
  38718. compiler from doing implicit instantiations in any other object
  38719. files by using an explicit instantiation declaration, using the
  38720. 'extern template' syntax:
  38721. extern template int max (int, int);
  38722. This syntax is defined in the C++ 2011 standard, but has been
  38723. supported by G++ and other compilers since well before 2011.
  38724. Explicit instantiations can be used for the largest or most
  38725. frequently duplicated instances, without having to know exactly
  38726. which other instances are used in the rest of the program. You can
  38727. scatter the explicit instantiations throughout your program,
  38728. perhaps putting them in the translation units where the instances
  38729. are used or the translation units that define the templates
  38730. themselves; you can put all of the explicit instantiations you need
  38731. into one big file; or you can create small files like
  38732. #include "Foo.h"
  38733. #include "Foo.cc"
  38734. template class Foo<int>;
  38735. template ostream& operator <<
  38736. (ostream&, const Foo<int>&);
  38737. for each of the instances you need, and create a template
  38738. instantiation library from those.
  38739. This is the simplest option, but also offers flexibility and
  38740. fine-grained control when necessary. It is also the most portable
  38741. alternative and programs using this approach will work with most
  38742. modern compilers.
  38743. 2. Compile your template-using code with '-frepo'. The compiler
  38744. generates files with the extension '.rpo' listing all of the
  38745. template instantiations used in the corresponding object files that
  38746. could be instantiated there; the link wrapper, 'collect2', then
  38747. updates the '.rpo' files to tell the compiler where to place those
  38748. instantiations and rebuild any affected object files. The
  38749. link-time overhead is negligible after the first pass, as the
  38750. compiler continues to place the instantiations in the same files.
  38751. This can be a suitable option for application code written for the
  38752. Borland model, as it usually just works. Code written for the
  38753. Cfront model needs to be modified so that the template definitions
  38754. are available at one or more points of instantiation; usually this
  38755. is as simple as adding '#include <tmethods.cc>' to the end of each
  38756. template header.
  38757. For library code, if you want the library to provide all of the
  38758. template instantiations it needs, just try to link all of its
  38759. object files together; the link will fail, but cause the
  38760. instantiations to be generated as a side effect. Be warned,
  38761. however, that this may cause conflicts if multiple libraries try to
  38762. provide the same instantiations. For greater control, use explicit
  38763. instantiation as described in the next option.
  38764. 3. Compile your code with '-fno-implicit-templates' to disable the
  38765. implicit generation of template instances, and explicitly
  38766. instantiate all the ones you use. This approach requires more
  38767. knowledge of exactly which instances you need than do the others,
  38768. but it's less mysterious and allows greater control if you want to
  38769. ensure that only the intended instances are used.
  38770. If you are using Cfront-model code, you can probably get away with
  38771. not using '-fno-implicit-templates' when compiling files that don't
  38772. '#include' the member template definitions.
  38773. If you use one big file to do the instantiations, you may want to
  38774. compile it without '-fno-implicit-templates' so you get all of the
  38775. instances required by your explicit instantiations (but not by any
  38776. other files) without having to specify them as well.
  38777. In addition to forward declaration of explicit instantiations (with
  38778. 'extern'), G++ has extended the template instantiation syntax to
  38779. support instantiation of the compiler support data for a template
  38780. class (i.e. the vtable) without instantiating any of its members
  38781. (with 'inline'), and instantiation of only the static data members
  38782. of a template class, without the support data or member functions
  38783. (with 'static'):
  38784. inline template class Foo<int>;
  38785. static template class Foo<int>;
  38786. 
  38787. File: gcc.info, Node: Bound member functions, Next: C++ Attributes, Prev: Template Instantiation, Up: C++ Extensions
  38788. 7.6 Extracting the Function Pointer from a Bound Pointer to Member Function
  38789. ===========================================================================
  38790. In C++, pointer to member functions (PMFs) are implemented using a wide
  38791. pointer of sorts to handle all the possible call mechanisms; the PMF
  38792. needs to store information about how to adjust the 'this' pointer, and
  38793. if the function pointed to is virtual, where to find the vtable, and
  38794. where in the vtable to look for the member function. If you are using
  38795. PMFs in an inner loop, you should really reconsider that decision. If
  38796. that is not an option, you can extract the pointer to the function that
  38797. would be called for a given object/PMF pair and call it directly inside
  38798. the inner loop, to save a bit of time.
  38799. Note that you still pay the penalty for the call through a function
  38800. pointer; on most modern architectures, such a call defeats the branch
  38801. prediction features of the CPU. This is also true of normal virtual
  38802. function calls.
  38803. The syntax for this extension is
  38804. extern A a;
  38805. extern int (A::*fp)();
  38806. typedef int (*fptr)(A *);
  38807. fptr p = (fptr)(a.*fp);
  38808. For PMF constants (i.e. expressions of the form '&Klasse::Member'), no
  38809. object is needed to obtain the address of the function. They can be
  38810. converted to function pointers directly:
  38811. fptr p1 = (fptr)(&A::foo);
  38812. You must specify '-Wno-pmf-conversions' to use this extension.
  38813. 
  38814. File: gcc.info, Node: C++ Attributes, Next: Function Multiversioning, Prev: Bound member functions, Up: C++ Extensions
  38815. 7.7 C++-Specific Variable, Function, and Type Attributes
  38816. ========================================================
  38817. Some attributes only make sense for C++ programs.
  38818. 'abi_tag ("TAG", ...)'
  38819. The 'abi_tag' attribute can be applied to a function, variable, or
  38820. class declaration. It modifies the mangled name of the entity to
  38821. incorporate the tag name, in order to distinguish the function or
  38822. class from an earlier version with a different ABI; perhaps the
  38823. class has changed size, or the function has a different return type
  38824. that is not encoded in the mangled name.
  38825. The attribute can also be applied to an inline namespace, but does
  38826. not affect the mangled name of the namespace; in this case it is
  38827. only used for '-Wabi-tag' warnings and automatic tagging of
  38828. functions and variables. Tagging inline namespaces is generally
  38829. preferable to tagging individual declarations, but the latter is
  38830. sometimes necessary, such as when only certain members of a class
  38831. need to be tagged.
  38832. The argument can be a list of strings of arbitrary length. The
  38833. strings are sorted on output, so the order of the list is
  38834. unimportant.
  38835. A redeclaration of an entity must not add new ABI tags, since doing
  38836. so would change the mangled name.
  38837. The ABI tags apply to a name, so all instantiations and
  38838. specializations of a template have the same tags. The attribute
  38839. will be ignored if applied to an explicit specialization or
  38840. instantiation.
  38841. The '-Wabi-tag' flag enables a warning about a class which does not
  38842. have all the ABI tags used by its subobjects and virtual functions;
  38843. for users with code that needs to coexist with an earlier ABI,
  38844. using this option can help to find all affected types that need to
  38845. be tagged.
  38846. When a type involving an ABI tag is used as the type of a variable
  38847. or return type of a function where that tag is not already present
  38848. in the signature of the function, the tag is automatically applied
  38849. to the variable or function. '-Wabi-tag' also warns about this
  38850. situation; this warning can be avoided by explicitly tagging the
  38851. variable or function or moving it into a tagged inline namespace.
  38852. 'init_priority (PRIORITY)'
  38853. In Standard C++, objects defined at namespace scope are guaranteed
  38854. to be initialized in an order in strict accordance with that of
  38855. their definitions _in a given translation unit_. No guarantee is
  38856. made for initializations across translation units. However, GNU
  38857. C++ allows users to control the order of initialization of objects
  38858. defined at namespace scope with the 'init_priority' attribute by
  38859. specifying a relative PRIORITY, a constant integral expression
  38860. currently bounded between 101 and 65535 inclusive. Lower numbers
  38861. indicate a higher priority.
  38862. In the following example, 'A' would normally be created before 'B',
  38863. but the 'init_priority' attribute reverses that order:
  38864. Some_Class A __attribute__ ((init_priority (2000)));
  38865. Some_Class B __attribute__ ((init_priority (543)));
  38866. Note that the particular values of PRIORITY do not matter; only
  38867. their relative ordering.
  38868. 'warn_unused'
  38869. For C++ types with non-trivial constructors and/or destructors it
  38870. is impossible for the compiler to determine whether a variable of
  38871. this type is truly unused if it is not referenced. This type
  38872. attribute informs the compiler that variables of this type should
  38873. be warned about if they appear to be unused, just like variables of
  38874. fundamental types.
  38875. This attribute is appropriate for types which just represent a
  38876. value, such as 'std::string'; it is not appropriate for types which
  38877. control a resource, such as 'std::lock_guard'.
  38878. This attribute is also accepted in C, but it is unnecessary because
  38879. C does not have constructors or destructors.
  38880. 
  38881. File: gcc.info, Node: Function Multiversioning, Next: Type Traits, Prev: C++ Attributes, Up: C++ Extensions
  38882. 7.8 Function Multiversioning
  38883. ============================
  38884. With the GNU C++ front end, for x86 targets, you may specify multiple
  38885. versions of a function, where each function is specialized for a
  38886. specific target feature. At runtime, the appropriate version of the
  38887. function is automatically executed depending on the characteristics of
  38888. the execution platform. Here is an example.
  38889. __attribute__ ((target ("default")))
  38890. int foo ()
  38891. {
  38892. // The default version of foo.
  38893. return 0;
  38894. }
  38895. __attribute__ ((target ("sse4.2")))
  38896. int foo ()
  38897. {
  38898. // foo version for SSE4.2
  38899. return 1;
  38900. }
  38901. __attribute__ ((target ("arch=atom")))
  38902. int foo ()
  38903. {
  38904. // foo version for the Intel ATOM processor
  38905. return 2;
  38906. }
  38907. __attribute__ ((target ("arch=amdfam10")))
  38908. int foo ()
  38909. {
  38910. // foo version for the AMD Family 0x10 processors.
  38911. return 3;
  38912. }
  38913. int main ()
  38914. {
  38915. int (*p)() = &foo;
  38916. assert ((*p) () == foo ());
  38917. return 0;
  38918. }
  38919. In the above example, four versions of function foo are created. The
  38920. first version of foo with the target attribute "default" is the default
  38921. version. This version gets executed when no other target specific
  38922. version qualifies for execution on a particular platform. A new version
  38923. of foo is created by using the same function signature but with a
  38924. different target string. Function foo is called or a pointer to it is
  38925. taken just like a regular function. GCC takes care of doing the
  38926. dispatching to call the right version at runtime. Refer to the GCC wiki
  38927. on Function Multiversioning
  38928. (http://gcc.gnu.org/wiki/FunctionMultiVersioning) for more details.
  38929. 
  38930. File: gcc.info, Node: Type Traits, Next: C++ Concepts, Prev: Function Multiversioning, Up: C++ Extensions
  38931. 7.9 Type Traits
  38932. ===============
  38933. The C++ front end implements syntactic extensions that allow
  38934. compile-time determination of various characteristics of a type (or of a
  38935. pair of types).
  38936. '__has_nothrow_assign (type)'
  38937. If 'type' is const qualified or is a reference type then the trait
  38938. is false. Otherwise if '__has_trivial_assign (type)' is true then
  38939. the trait is true, else if 'type' is a cv class or union type with
  38940. copy assignment operators that are known not to throw an exception
  38941. then the trait is true, else it is false. Requires: 'type' shall
  38942. be a complete type, (possibly cv-qualified) 'void', or an array of
  38943. unknown bound.
  38944. '__has_nothrow_copy (type)'
  38945. If '__has_trivial_copy (type)' is true then the trait is true, else
  38946. if 'type' is a cv class or union type with copy constructors that
  38947. are known not to throw an exception then the trait is true, else it
  38948. is false. Requires: 'type' shall be a complete type, (possibly
  38949. cv-qualified) 'void', or an array of unknown bound.
  38950. '__has_nothrow_constructor (type)'
  38951. If '__has_trivial_constructor (type)' is true then the trait is
  38952. true, else if 'type' is a cv class or union type (or array thereof)
  38953. with a default constructor that is known not to throw an exception
  38954. then the trait is true, else it is false. Requires: 'type' shall
  38955. be a complete type, (possibly cv-qualified) 'void', or an array of
  38956. unknown bound.
  38957. '__has_trivial_assign (type)'
  38958. If 'type' is const qualified or is a reference type then the trait
  38959. is false. Otherwise if '__is_pod (type)' is true then the trait is
  38960. true, else if 'type' is a cv class or union type with a trivial
  38961. copy assignment ([class.copy]) then the trait is true, else it is
  38962. false. Requires: 'type' shall be a complete type, (possibly
  38963. cv-qualified) 'void', or an array of unknown bound.
  38964. '__has_trivial_copy (type)'
  38965. If '__is_pod (type)' is true or 'type' is a reference type then the
  38966. trait is true, else if 'type' is a cv class or union type with a
  38967. trivial copy constructor ([class.copy]) then the trait is true,
  38968. else it is false. Requires: 'type' shall be a complete type,
  38969. (possibly cv-qualified) 'void', or an array of unknown bound.
  38970. '__has_trivial_constructor (type)'
  38971. If '__is_pod (type)' is true then the trait is true, else if 'type'
  38972. is a cv class or union type (or array thereof) with a trivial
  38973. default constructor ([class.ctor]) then the trait is true, else it
  38974. is false. Requires: 'type' shall be a complete type, (possibly
  38975. cv-qualified) 'void', or an array of unknown bound.
  38976. '__has_trivial_destructor (type)'
  38977. If '__is_pod (type)' is true or 'type' is a reference type then the
  38978. trait is true, else if 'type' is a cv class or union type (or array
  38979. thereof) with a trivial destructor ([class.dtor]) then the trait is
  38980. true, else it is false. Requires: 'type' shall be a complete type,
  38981. (possibly cv-qualified) 'void', or an array of unknown bound.
  38982. '__has_virtual_destructor (type)'
  38983. If 'type' is a class type with a virtual destructor ([class.dtor])
  38984. then the trait is true, else it is false. Requires: 'type' shall
  38985. be a complete type, (possibly cv-qualified) 'void', or an array of
  38986. unknown bound.
  38987. '__is_abstract (type)'
  38988. If 'type' is an abstract class ([class.abstract]) then the trait is
  38989. true, else it is false. Requires: 'type' shall be a complete type,
  38990. (possibly cv-qualified) 'void', or an array of unknown bound.
  38991. '__is_base_of (base_type, derived_type)'
  38992. If 'base_type' is a base class of 'derived_type' ([class.derived])
  38993. then the trait is true, otherwise it is false. Top-level cv
  38994. qualifications of 'base_type' and 'derived_type' are ignored. For
  38995. the purposes of this trait, a class type is considered is own base.
  38996. Requires: if '__is_class (base_type)' and '__is_class
  38997. (derived_type)' are true and 'base_type' and 'derived_type' are not
  38998. the same type (disregarding cv-qualifiers), 'derived_type' shall be
  38999. a complete type. A diagnostic is produced if this requirement is
  39000. not met.
  39001. '__is_class (type)'
  39002. If 'type' is a cv class type, and not a union type
  39003. ([basic.compound]) the trait is true, else it is false.
  39004. '__is_empty (type)'
  39005. If '__is_class (type)' is false then the trait is false. Otherwise
  39006. 'type' is considered empty if and only if: 'type' has no non-static
  39007. data members, or all non-static data members, if any, are
  39008. bit-fields of length 0, and 'type' has no virtual members, and
  39009. 'type' has no virtual base classes, and 'type' has no base classes
  39010. 'base_type' for which '__is_empty (base_type)' is false. Requires:
  39011. 'type' shall be a complete type, (possibly cv-qualified) 'void', or
  39012. an array of unknown bound.
  39013. '__is_enum (type)'
  39014. If 'type' is a cv enumeration type ([basic.compound]) the trait is
  39015. true, else it is false.
  39016. '__is_literal_type (type)'
  39017. If 'type' is a literal type ([basic.types]) the trait is true, else
  39018. it is false. Requires: 'type' shall be a complete type, (possibly
  39019. cv-qualified) 'void', or an array of unknown bound.
  39020. '__is_pod (type)'
  39021. If 'type' is a cv POD type ([basic.types]) then the trait is true,
  39022. else it is false. Requires: 'type' shall be a complete type,
  39023. (possibly cv-qualified) 'void', or an array of unknown bound.
  39024. '__is_polymorphic (type)'
  39025. If 'type' is a polymorphic class ([class.virtual]) then the trait
  39026. is true, else it is false. Requires: 'type' shall be a complete
  39027. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  39028. '__is_standard_layout (type)'
  39029. If 'type' is a standard-layout type ([basic.types]) the trait is
  39030. true, else it is false. Requires: 'type' shall be a complete type,
  39031. (possibly cv-qualified) 'void', or an array of unknown bound.
  39032. '__is_trivial (type)'
  39033. If 'type' is a trivial type ([basic.types]) the trait is true, else
  39034. it is false. Requires: 'type' shall be a complete type, (possibly
  39035. cv-qualified) 'void', or an array of unknown bound.
  39036. '__is_union (type)'
  39037. If 'type' is a cv union type ([basic.compound]) the trait is true,
  39038. else it is false.
  39039. '__underlying_type (type)'
  39040. The underlying type of 'type'. Requires: 'type' shall be an
  39041. enumeration type ([dcl.enum]).
  39042. 
  39043. File: gcc.info, Node: C++ Concepts, Next: Deprecated Features, Prev: Type Traits, Up: C++ Extensions
  39044. 7.10 C++ Concepts
  39045. =================
  39046. C++ concepts provide much-improved support for generic programming. In
  39047. particular, they allow the specification of constraints on template
  39048. arguments. The constraints are used to extend the usual overloading and
  39049. partial specialization capabilities of the language, allowing generic
  39050. data structures and algorithms to be "refined" based on their properties
  39051. rather than their type names.
  39052. The following keywords are reserved for concepts.
  39053. 'assumes'
  39054. States an expression as an assumption, and if possible, verifies
  39055. that the assumption is valid. For example, 'assume(n > 0)'.
  39056. 'axiom'
  39057. Introduces an axiom definition. Axioms introduce requirements on
  39058. values.
  39059. 'forall'
  39060. Introduces a universally quantified object in an axiom. For
  39061. example, 'forall (int n) n + 0 == n').
  39062. 'concept'
  39063. Introduces a concept definition. Concepts are sets of syntactic
  39064. and semantic requirements on types and their values.
  39065. 'requires'
  39066. Introduces constraints on template arguments or requirements for a
  39067. member function of a class template.
  39068. The front end also exposes a number of internal mechanism that can be
  39069. used to simplify the writing of type traits. Note that some of these
  39070. traits are likely to be removed in the future.
  39071. '__is_same (type1, type2)'
  39072. A binary type trait: true whenever the type arguments are the same.
  39073. 
  39074. File: gcc.info, Node: Deprecated Features, Next: Backwards Compatibility, Prev: C++ Concepts, Up: C++ Extensions
  39075. 7.11 Deprecated Features
  39076. ========================
  39077. In the past, the GNU C++ compiler was extended to experiment with new
  39078. features, at a time when the C++ language was still evolving. Now that
  39079. the C++ standard is complete, some of those features are superseded by
  39080. superior alternatives. Using the old features might cause a warning in
  39081. some cases that the feature will be dropped in the future. In other
  39082. cases, the feature might be gone already.
  39083. While the list below is not exhaustive, it documents some of the
  39084. options that are now deprecated:
  39085. '-fexternal-templates'
  39086. '-falt-external-templates'
  39087. These are two of the many ways for G++ to implement template
  39088. instantiation. *Note Template Instantiation::. The C++ standard
  39089. clearly defines how template definitions have to be organized
  39090. across implementation units. G++ has an implicit instantiation
  39091. mechanism that should work just fine for standard-conforming code.
  39092. '-fstrict-prototype'
  39093. '-fno-strict-prototype'
  39094. Previously it was possible to use an empty prototype parameter list
  39095. to indicate an unspecified number of parameters (like C), rather
  39096. than no parameters, as C++ demands. This feature has been removed,
  39097. except where it is required for backwards compatibility. *Note
  39098. Backwards Compatibility::.
  39099. G++ allows a virtual function returning 'void *' to be overridden by
  39100. one returning a different pointer type. This extension to the covariant
  39101. return type rules is now deprecated and will be removed from a future
  39102. version.
  39103. The G++ minimum and maximum operators ('<?' and '>?') and their
  39104. compound forms ('<?=') and '>?=') have been deprecated and are now
  39105. removed from G++. Code using these operators should be modified to use
  39106. 'std::min' and 'std::max' instead.
  39107. The named return value extension has been deprecated, and is now
  39108. removed from G++.
  39109. The use of initializer lists with new expressions has been deprecated,
  39110. and is now removed from G++.
  39111. Floating and complex non-type template parameters have been deprecated,
  39112. and are now removed from G++.
  39113. The implicit typename extension has been deprecated and is now removed
  39114. from G++.
  39115. The use of default arguments in function pointers, function typedefs
  39116. and other places where they are not permitted by the standard is
  39117. deprecated and will be removed from a future version of G++.
  39118. G++ allows floating-point literals to appear in integral constant
  39119. expressions, e.g. ' enum E { e = int(2.2 * 3.7) } ' This extension is
  39120. deprecated and will be removed from a future version.
  39121. G++ allows static data members of const floating-point type to be
  39122. declared with an initializer in a class definition. The standard only
  39123. allows initializers for static members of const integral types and const
  39124. enumeration types so this extension has been deprecated and will be
  39125. removed from a future version.
  39126. 
  39127. File: gcc.info, Node: Backwards Compatibility, Prev: Deprecated Features, Up: C++ Extensions
  39128. 7.12 Backwards Compatibility
  39129. ============================
  39130. Now that there is a definitive ISO standard C++, G++ has a specification
  39131. to adhere to. The C++ language evolved over time, and features that
  39132. used to be acceptable in previous drafts of the standard, such as the
  39133. ARM [Annotated C++ Reference Manual], are no longer accepted. In order
  39134. to allow compilation of C++ written to such drafts, G++ contains some
  39135. backwards compatibilities. _All such backwards compatibility features
  39136. are liable to disappear in future versions of G++._ They should be
  39137. considered deprecated. *Note Deprecated Features::.
  39138. 'For scope'
  39139. If a variable is declared at for scope, it used to remain in scope
  39140. until the end of the scope that contained the for statement (rather
  39141. than just within the for scope). G++ retains this, but issues a
  39142. warning, if such a variable is accessed outside the for scope.
  39143. 'Implicit C language'
  39144. Old C system header files did not contain an 'extern "C" {...}'
  39145. scope to set the language. On such systems, all header files are
  39146. implicitly scoped inside a C language scope. Also, an empty
  39147. prototype '()' is treated as an unspecified number of arguments,
  39148. rather than no arguments, as C++ demands.
  39149. 
  39150. File: gcc.info, Node: Objective-C, Next: Compatibility, Prev: C++ Extensions, Up: Top
  39151. 8 GNU Objective-C Features
  39152. **************************
  39153. This document is meant to describe some of the GNU Objective-C features.
  39154. It is not intended to teach you Objective-C. There are several resources
  39155. on the Internet that present the language.
  39156. * Menu:
  39157. * GNU Objective-C runtime API::
  39158. * Executing code before main::
  39159. * Type encoding::
  39160. * Garbage Collection::
  39161. * Constant string objects::
  39162. * compatibility_alias::
  39163. * Exceptions::
  39164. * Synchronization::
  39165. * Fast enumeration::
  39166. * Messaging with the GNU Objective-C runtime::
  39167. 
  39168. File: gcc.info, Node: GNU Objective-C runtime API, Next: Executing code before main, Up: Objective-C
  39169. 8.1 GNU Objective-C Runtime API
  39170. ===============================
  39171. This section is specific for the GNU Objective-C runtime. If you are
  39172. using a different runtime, you can skip it.
  39173. The GNU Objective-C runtime provides an API that allows you to interact
  39174. with the Objective-C runtime system, querying the live runtime
  39175. structures and even manipulating them. This allows you for example to
  39176. inspect and navigate classes, methods and protocols; to define new
  39177. classes or new methods, and even to modify existing classes or
  39178. protocols.
  39179. If you are using a "Foundation" library such as GNUstep-Base, this
  39180. library will provide you with a rich set of functionality to do most of
  39181. the inspection tasks, and you probably will only need direct access to
  39182. the GNU Objective-C runtime API to define new classes or methods.
  39183. * Menu:
  39184. * Modern GNU Objective-C runtime API::
  39185. * Traditional GNU Objective-C runtime API::
  39186. 
  39187. File: gcc.info, Node: Modern GNU Objective-C runtime API, Next: Traditional GNU Objective-C runtime API, Up: GNU Objective-C runtime API
  39188. 8.1.1 Modern GNU Objective-C Runtime API
  39189. ----------------------------------------
  39190. The GNU Objective-C runtime provides an API which is similar to the one
  39191. provided by the "Objective-C 2.0" Apple/NeXT Objective-C runtime. The
  39192. API is documented in the public header files of the GNU Objective-C
  39193. runtime:
  39194. * 'objc/objc.h': this is the basic Objective-C header file, defining
  39195. the basic Objective-C types such as 'id', 'Class' and 'BOOL'. You
  39196. have to include this header to do almost anything with Objective-C.
  39197. * 'objc/runtime.h': this header declares most of the public runtime
  39198. API functions allowing you to inspect and manipulate the
  39199. Objective-C runtime data structures. These functions are fairly
  39200. standardized across Objective-C runtimes and are almost identical
  39201. to the Apple/NeXT Objective-C runtime ones. It does not declare
  39202. functions in some specialized areas (constructing and forwarding
  39203. message invocations, threading) which are in the other headers
  39204. below. You have to include 'objc/objc.h' and 'objc/runtime.h' to
  39205. use any of the functions, such as 'class_getName()', declared in
  39206. 'objc/runtime.h'.
  39207. * 'objc/message.h': this header declares public functions used to
  39208. construct, deconstruct and forward message invocations. Because
  39209. messaging is done in quite a different way on different runtimes,
  39210. functions in this header are specific to the GNU Objective-C
  39211. runtime implementation.
  39212. * 'objc/objc-exception.h': this header declares some public functions
  39213. related to Objective-C exceptions. For example functions in this
  39214. header allow you to throw an Objective-C exception from plain C/C++
  39215. code.
  39216. * 'objc/objc-sync.h': this header declares some public functions
  39217. related to the Objective-C '@synchronized()' syntax, allowing you
  39218. to emulate an Objective-C '@synchronized()' block in plain C/C++
  39219. code.
  39220. * 'objc/thr.h': this header declares a public runtime API threading
  39221. layer that is only provided by the GNU Objective-C runtime. It
  39222. declares functions such as 'objc_mutex_lock()', which provide a
  39223. platform-independent set of threading functions.
  39224. The header files contain detailed documentation for each function in
  39225. the GNU Objective-C runtime API.
  39226. 
  39227. File: gcc.info, Node: Traditional GNU Objective-C runtime API, Prev: Modern GNU Objective-C runtime API, Up: GNU Objective-C runtime API
  39228. 8.1.2 Traditional GNU Objective-C Runtime API
  39229. ---------------------------------------------
  39230. The GNU Objective-C runtime used to provide a different API, which we
  39231. call the "traditional" GNU Objective-C runtime API. Functions belonging
  39232. to this API are easy to recognize because they use a different naming
  39233. convention, such as 'class_get_super_class()' (traditional API) instead
  39234. of 'class_getSuperclass()' (modern API). Software using this API
  39235. includes the file 'objc/objc-api.h' where it is declared.
  39236. Starting with GCC 4.7.0, the traditional GNU runtime API is no longer
  39237. available.
  39238. 
  39239. File: gcc.info, Node: Executing code before main, Next: Type encoding, Prev: GNU Objective-C runtime API, Up: Objective-C
  39240. 8.2 '+load': Executing Code before 'main'
  39241. =========================================
  39242. This section is specific for the GNU Objective-C runtime. If you are
  39243. using a different runtime, you can skip it.
  39244. The GNU Objective-C runtime provides a way that allows you to execute
  39245. code before the execution of the program enters the 'main' function.
  39246. The code is executed on a per-class and a per-category basis, through a
  39247. special class method '+load'.
  39248. This facility is very useful if you want to initialize global variables
  39249. which can be accessed by the program directly, without sending a message
  39250. to the class first. The usual way to initialize global variables, in
  39251. the '+initialize' method, might not be useful because '+initialize' is
  39252. only called when the first message is sent to a class object, which in
  39253. some cases could be too late.
  39254. Suppose for example you have a 'FileStream' class that declares
  39255. 'Stdin', 'Stdout' and 'Stderr' as global variables, like below:
  39256. FileStream *Stdin = nil;
  39257. FileStream *Stdout = nil;
  39258. FileStream *Stderr = nil;
  39259. @implementation FileStream
  39260. + (void)initialize
  39261. {
  39262. Stdin = [[FileStream new] initWithFd:0];
  39263. Stdout = [[FileStream new] initWithFd:1];
  39264. Stderr = [[FileStream new] initWithFd:2];
  39265. }
  39266. /* Other methods here */
  39267. @end
  39268. In this example, the initialization of 'Stdin', 'Stdout' and 'Stderr'
  39269. in '+initialize' occurs too late. The programmer can send a message to
  39270. one of these objects before the variables are actually initialized, thus
  39271. sending messages to the 'nil' object. The '+initialize' method which
  39272. actually initializes the global variables is not invoked until the first
  39273. message is sent to the class object. The solution would require these
  39274. variables to be initialized just before entering 'main'.
  39275. The correct solution of the above problem is to use the '+load' method
  39276. instead of '+initialize':
  39277. @implementation FileStream
  39278. + (void)load
  39279. {
  39280. Stdin = [[FileStream new] initWithFd:0];
  39281. Stdout = [[FileStream new] initWithFd:1];
  39282. Stderr = [[FileStream new] initWithFd:2];
  39283. }
  39284. /* Other methods here */
  39285. @end
  39286. The '+load' is a method that is not overridden by categories. If a
  39287. class and a category of it both implement '+load', both methods are
  39288. invoked. This allows some additional initializations to be performed in
  39289. a category.
  39290. This mechanism is not intended to be a replacement for '+initialize'.
  39291. You should be aware of its limitations when you decide to use it instead
  39292. of '+initialize'.
  39293. * Menu:
  39294. * What you can and what you cannot do in +load::
  39295. 
  39296. File: gcc.info, Node: What you can and what you cannot do in +load, Up: Executing code before main
  39297. 8.2.1 What You Can and Cannot Do in '+load'
  39298. -------------------------------------------
  39299. '+load' is to be used only as a last resort. Because it is executed
  39300. very early, most of the Objective-C runtime machinery will not be ready
  39301. when '+load' is executed; hence '+load' works best for executing C code
  39302. that is independent on the Objective-C runtime.
  39303. The '+load' implementation in the GNU runtime guarantees you the
  39304. following things:
  39305. * you can write whatever C code you like;
  39306. * you can allocate and send messages to objects whose class is
  39307. implemented in the same file;
  39308. * the '+load' implementation of all super classes of a class are
  39309. executed before the '+load' of that class is executed;
  39310. * the '+load' implementation of a class is executed before the
  39311. '+load' implementation of any category.
  39312. In particular, the following things, even if they can work in a
  39313. particular case, are not guaranteed:
  39314. * allocation of or sending messages to arbitrary objects;
  39315. * allocation of or sending messages to objects whose classes have a
  39316. category implemented in the same file;
  39317. * sending messages to Objective-C constant strings ('@"this is a
  39318. constant string"');
  39319. You should make no assumptions about receiving '+load' in sibling
  39320. classes when you write '+load' of a class. The order in which sibling
  39321. classes receive '+load' is not guaranteed.
  39322. The order in which '+load' and '+initialize' are called could be
  39323. problematic if this matters. If you don't allocate objects inside
  39324. '+load', it is guaranteed that '+load' is called before '+initialize'.
  39325. If you create an object inside '+load' the '+initialize' method of
  39326. object's class is invoked even if '+load' was not invoked. Note if you
  39327. explicitly call '+load' on a class, '+initialize' will be called first.
  39328. To avoid possible problems try to implement only one of these methods.
  39329. The '+load' method is also invoked when a bundle is dynamically loaded
  39330. into your running program. This happens automatically without any
  39331. intervening operation from you. When you write bundles and you need to
  39332. write '+load' you can safely create and send messages to objects whose
  39333. classes already exist in the running program. The same restrictions as
  39334. above apply to classes defined in bundle.
  39335. 
  39336. File: gcc.info, Node: Type encoding, Next: Garbage Collection, Prev: Executing code before main, Up: Objective-C
  39337. 8.3 Type Encoding
  39338. =================
  39339. This is an advanced section. Type encodings are used extensively by the
  39340. compiler and by the runtime, but you generally do not need to know about
  39341. them to use Objective-C.
  39342. The Objective-C compiler generates type encodings for all the types.
  39343. These type encodings are used at runtime to find out information about
  39344. selectors and methods and about objects and classes.
  39345. The types are encoded in the following way:
  39346. '_Bool' 'B'
  39347. 'char' 'c'
  39348. 'unsigned char' 'C'
  39349. 'short' 's'
  39350. 'unsigned short' 'S'
  39351. 'int' 'i'
  39352. 'unsigned int' 'I'
  39353. 'long' 'l'
  39354. 'unsigned long' 'L'
  39355. 'long long' 'q'
  39356. 'unsigned long 'Q'
  39357. long'
  39358. 'float' 'f'
  39359. 'double' 'd'
  39360. 'long double' 'D'
  39361. 'void' 'v'
  39362. 'id' '@'
  39363. 'Class' '#'
  39364. 'SEL' ':'
  39365. 'char*' '*'
  39366. 'enum' an 'enum' is encoded exactly as the integer type
  39367. that the compiler uses for it, which depends on the
  39368. enumeration values. Often the compiler users
  39369. 'unsigned int', which is then encoded as 'I'.
  39370. unknown type '?'
  39371. Complex types 'j' followed by the inner type. For example
  39372. '_Complex double' is encoded as "jd".
  39373. bit-fields 'b' followed by the starting position of the
  39374. bit-field, the type of the bit-field and the size of
  39375. the bit-field (the bit-fields encoding was changed
  39376. from the NeXT's compiler encoding, see below)
  39377. The encoding of bit-fields has changed to allow bit-fields to be
  39378. properly handled by the runtime functions that compute sizes and
  39379. alignments of types that contain bit-fields. The previous encoding
  39380. contained only the size of the bit-field. Using only this information
  39381. it is not possible to reliably compute the size occupied by the
  39382. bit-field. This is very important in the presence of the Boehm's
  39383. garbage collector because the objects are allocated using the typed
  39384. memory facility available in this collector. The typed memory
  39385. allocation requires information about where the pointers are located
  39386. inside the object.
  39387. The position in the bit-field is the position, counting in bits, of the
  39388. bit closest to the beginning of the structure.
  39389. The non-atomic types are encoded as follows:
  39390. pointers '^' followed by the pointed type.
  39391. arrays '[' followed by the number of elements in the array
  39392. followed by the type of the elements followed by ']'
  39393. structures '{' followed by the name of the structure (or '?' if the
  39394. structure is unnamed), the '=' sign, the type of the
  39395. members and by '}'
  39396. unions '(' followed by the name of the structure (or '?' if the
  39397. union is unnamed), the '=' sign, the type of the members
  39398. followed by ')'
  39399. vectors '![' followed by the vector_size (the number of bytes
  39400. composing the vector) followed by a comma, followed by
  39401. the alignment (in bytes) of the vector, followed by the
  39402. type of the elements followed by ']'
  39403. Here are some types and their encodings, as they are generated by the
  39404. compiler on an i386 machine:
  39405. Objective-C type Compiler encoding
  39406. int a[10]; '[10i]'
  39407. struct { '{?=i[3f]b128i3b131i2c}'
  39408. int i;
  39409. float f[3];
  39410. int a:3;
  39411. int b:2;
  39412. char c;
  39413. }
  39414. int a __attribute__ ((vector_size (16)));'![16,16i]' (alignment
  39415. depends on the machine)
  39416. In addition to the types the compiler also encodes the type specifiers.
  39417. The table below describes the encoding of the current Objective-C type
  39418. specifiers:
  39419. Specifier Encoding
  39420. 'const' 'r'
  39421. 'in' 'n'
  39422. 'inout' 'N'
  39423. 'out' 'o'
  39424. 'bycopy' 'O'
  39425. 'byref' 'R'
  39426. 'oneway' 'V'
  39427. The type specifiers are encoded just before the type. Unlike types
  39428. however, the type specifiers are only encoded when they appear in method
  39429. argument types.
  39430. Note how 'const' interacts with pointers:
  39431. Objective-C type Compiler encoding
  39432. const int 'ri'
  39433. const int* '^ri'
  39434. int *const 'r^i'
  39435. 'const int*' is a pointer to a 'const int', and so is encoded as '^ri'.
  39436. 'int* const', instead, is a 'const' pointer to an 'int', and so is
  39437. encoded as 'r^i'.
  39438. Finally, there is a complication when encoding 'const char *' versus
  39439. 'char * const'. Because 'char *' is encoded as '*' and not as '^c',
  39440. there is no way to express the fact that 'r' applies to the pointer or
  39441. to the pointee.
  39442. Hence, it is assumed as a convention that 'r*' means 'const char *'
  39443. (since it is what is most often meant), and there is no way to encode
  39444. 'char *const'. 'char *const' would simply be encoded as '*', and the
  39445. 'const' is lost.
  39446. * Menu:
  39447. * Legacy type encoding::
  39448. * @encode::
  39449. * Method signatures::
  39450. 
  39451. File: gcc.info, Node: Legacy type encoding, Next: @encode, Up: Type encoding
  39452. 8.3.1 Legacy Type Encoding
  39453. --------------------------
  39454. Unfortunately, historically GCC used to have a number of bugs in its
  39455. encoding code. The NeXT runtime expects GCC to emit type encodings in
  39456. this historical format (compatible with GCC-3.3), so when using the NeXT
  39457. runtime, GCC will introduce on purpose a number of incorrect encodings:
  39458. * the read-only qualifier of the pointee gets emitted before the '^'.
  39459. The read-only qualifier of the pointer itself gets ignored, unless
  39460. it is a typedef. Also, the 'r' is only emitted for the outermost
  39461. type.
  39462. * 32-bit longs are encoded as 'l' or 'L', but not always. For
  39463. typedefs, the compiler uses 'i' or 'I' instead if encoding a struct
  39464. field or a pointer.
  39465. * 'enum's are always encoded as 'i' (int) even if they are actually
  39466. unsigned or long.
  39467. In addition to that, the NeXT runtime uses a different encoding for
  39468. bitfields. It encodes them as 'b' followed by the size, without a bit
  39469. offset or the underlying field type.
  39470. 
  39471. File: gcc.info, Node: @encode, Next: Method signatures, Prev: Legacy type encoding, Up: Type encoding
  39472. 8.3.2 '@encode'
  39473. ---------------
  39474. GNU Objective-C supports the '@encode' syntax that allows you to create
  39475. a type encoding from a C/Objective-C type. For example, '@encode(int)'
  39476. is compiled by the compiler into '"i"'.
  39477. '@encode' does not support type qualifiers other than 'const'. For
  39478. example, '@encode(const char*)' is valid and is compiled into '"r*"',
  39479. while '@encode(bycopy char *)' is invalid and will cause a compilation
  39480. error.
  39481. 
  39482. File: gcc.info, Node: Method signatures, Prev: @encode, Up: Type encoding
  39483. 8.3.3 Method Signatures
  39484. -----------------------
  39485. This section documents the encoding of method types, which is rarely
  39486. needed to use Objective-C. You should skip it at a first reading; the
  39487. runtime provides functions that will work on methods and can walk
  39488. through the list of parameters and interpret them for you. These
  39489. functions are part of the public "API" and are the preferred way to
  39490. interact with method signatures from user code.
  39491. But if you need to debug a problem with method signatures and need to
  39492. know how they are implemented (i.e., the "ABI"), read on.
  39493. Methods have their "signature" encoded and made available to the
  39494. runtime. The "signature" encodes all the information required to
  39495. dynamically build invocations of the method at runtime: return type and
  39496. arguments.
  39497. The "signature" is a null-terminated string, composed of the following:
  39498. * The return type, including type qualifiers. For example, a method
  39499. returning 'int' would have 'i' here.
  39500. * The total size (in bytes) required to pass all the parameters.
  39501. This includes the two hidden parameters (the object 'self' and the
  39502. method selector '_cmd').
  39503. * Each argument, with the type encoding, followed by the offset (in
  39504. bytes) of the argument in the list of parameters.
  39505. For example, a method with no arguments and returning 'int' would have
  39506. the signature 'i8@0:4' if the size of a pointer is 4. The signature is
  39507. interpreted as follows: the 'i' is the return type (an 'int'), the '8'
  39508. is the total size of the parameters in bytes (two pointers each of size
  39509. 4), the '@0' is the first parameter (an object at byte offset '0') and
  39510. ':4' is the second parameter (a 'SEL' at byte offset '4').
  39511. You can easily find more examples by running the "strings" program on
  39512. an Objective-C object file compiled by GCC. You'll see a lot of strings
  39513. that look very much like 'i8@0:4'. They are signatures of Objective-C
  39514. methods.
  39515. 
  39516. File: gcc.info, Node: Garbage Collection, Next: Constant string objects, Prev: Type encoding, Up: Objective-C
  39517. 8.4 Garbage Collection
  39518. ======================
  39519. This section is specific for the GNU Objective-C runtime. If you are
  39520. using a different runtime, you can skip it.
  39521. Support for garbage collection with the GNU runtime has been added by
  39522. using a powerful conservative garbage collector, known as the
  39523. Boehm-Demers-Weiser conservative garbage collector.
  39524. To enable the support for it you have to configure the compiler using
  39525. an additional argument, '--enable-objc-gc'. This will build the
  39526. boehm-gc library, and build an additional runtime library which has
  39527. several enhancements to support the garbage collector. The new library
  39528. has a new name, 'libobjc_gc.a' to not conflict with the
  39529. non-garbage-collected library.
  39530. When the garbage collector is used, the objects are allocated using the
  39531. so-called typed memory allocation mechanism available in the
  39532. Boehm-Demers-Weiser collector. This mode requires precise information
  39533. on where pointers are located inside objects. This information is
  39534. computed once per class, immediately after the class has been
  39535. initialized.
  39536. There is a new runtime function 'class_ivar_set_gcinvisible()' which
  39537. can be used to declare a so-called "weak pointer" reference. Such a
  39538. pointer is basically hidden for the garbage collector; this can be
  39539. useful in certain situations, especially when you want to keep track of
  39540. the allocated objects, yet allow them to be collected. This kind of
  39541. pointers can only be members of objects, you cannot declare a global
  39542. pointer as a weak reference. Every type which is a pointer type can be
  39543. declared a weak pointer, including 'id', 'Class' and 'SEL'.
  39544. Here is an example of how to use this feature. Suppose you want to
  39545. implement a class whose instances hold a weak pointer reference; the
  39546. following class does this:
  39547. @interface WeakPointer : Object
  39548. {
  39549. const void* weakPointer;
  39550. }
  39551. - initWithPointer:(const void*)p;
  39552. - (const void*)weakPointer;
  39553. @end
  39554. @implementation WeakPointer
  39555. + (void)initialize
  39556. {
  39557. if (self == objc_lookUpClass ("WeakPointer"))
  39558. class_ivar_set_gcinvisible (self, "weakPointer", YES);
  39559. }
  39560. - initWithPointer:(const void*)p
  39561. {
  39562. weakPointer = p;
  39563. return self;
  39564. }
  39565. - (const void*)weakPointer
  39566. {
  39567. return weakPointer;
  39568. }
  39569. @end
  39570. Weak pointers are supported through a new type character specifier
  39571. represented by the '!' character. The 'class_ivar_set_gcinvisible()'
  39572. function adds or removes this specifier to the string type description
  39573. of the instance variable named as argument.
  39574. 
  39575. File: gcc.info, Node: Constant string objects, Next: compatibility_alias, Prev: Garbage Collection, Up: Objective-C
  39576. 8.5 Constant String Objects
  39577. ===========================
  39578. GNU Objective-C provides constant string objects that are generated
  39579. directly by the compiler. You declare a constant string object by
  39580. prefixing a C constant string with the character '@':
  39581. id myString = @"this is a constant string object";
  39582. The constant string objects are by default instances of the
  39583. 'NXConstantString' class which is provided by the GNU Objective-C
  39584. runtime. To get the definition of this class you must include the
  39585. 'objc/NXConstStr.h' header file.
  39586. User defined libraries may want to implement their own constant string
  39587. class. To be able to support them, the GNU Objective-C compiler
  39588. provides a new command line options
  39589. '-fconstant-string-class=CLASS-NAME'. The provided class should adhere
  39590. to a strict structure, the same as 'NXConstantString''s structure:
  39591. @interface MyConstantStringClass
  39592. {
  39593. Class isa;
  39594. char *c_string;
  39595. unsigned int len;
  39596. }
  39597. @end
  39598. 'NXConstantString' inherits from 'Object'; user class libraries may
  39599. choose to inherit the customized constant string class from a different
  39600. class than 'Object'. There is no requirement in the methods the
  39601. constant string class has to implement, but the final ivar layout of the
  39602. class must be the compatible with the given structure.
  39603. When the compiler creates the statically allocated constant string
  39604. object, the 'c_string' field will be filled by the compiler with the
  39605. string; the 'length' field will be filled by the compiler with the
  39606. string length; the 'isa' pointer will be filled with 'NULL' by the
  39607. compiler, and it will later be fixed up automatically at runtime by the
  39608. GNU Objective-C runtime library to point to the class which was set by
  39609. the '-fconstant-string-class' option when the object file is loaded (if
  39610. you wonder how it works behind the scenes, the name of the class to use,
  39611. and the list of static objects to fixup, are stored by the compiler in
  39612. the object file in a place where the GNU runtime library will find them
  39613. at runtime).
  39614. As a result, when a file is compiled with the '-fconstant-string-class'
  39615. option, all the constant string objects will be instances of the class
  39616. specified as argument to this option. It is possible to have multiple
  39617. compilation units referring to different constant string classes,
  39618. neither the compiler nor the linker impose any restrictions in doing
  39619. this.
  39620. 
  39621. File: gcc.info, Node: compatibility_alias, Next: Exceptions, Prev: Constant string objects, Up: Objective-C
  39622. 8.6 'compatibility_alias'
  39623. =========================
  39624. The keyword '@compatibility_alias' allows you to define a class name as
  39625. equivalent to another class name. For example:
  39626. @compatibility_alias WOApplication GSWApplication;
  39627. tells the compiler that each time it encounters 'WOApplication' as a
  39628. class name, it should replace it with 'GSWApplication' (that is,
  39629. 'WOApplication' is just an alias for 'GSWApplication').
  39630. There are some constraints on how this can be used--
  39631. * 'WOApplication' (the alias) must not be an existing class;
  39632. * 'GSWApplication' (the real class) must be an existing class.
  39633. 
  39634. File: gcc.info, Node: Exceptions, Next: Synchronization, Prev: compatibility_alias, Up: Objective-C
  39635. 8.7 Exceptions
  39636. ==============
  39637. GNU Objective-C provides exception support built into the language, as
  39638. in the following example:
  39639. @try {
  39640. ...
  39641. @throw expr;
  39642. ...
  39643. }
  39644. @catch (AnObjCClass *exc) {
  39645. ...
  39646. @throw expr;
  39647. ...
  39648. @throw;
  39649. ...
  39650. }
  39651. @catch (AnotherClass *exc) {
  39652. ...
  39653. }
  39654. @catch (id allOthers) {
  39655. ...
  39656. }
  39657. @finally {
  39658. ...
  39659. @throw expr;
  39660. ...
  39661. }
  39662. The '@throw' statement may appear anywhere in an Objective-C or
  39663. Objective-C++ program; when used inside of a '@catch' block, the
  39664. '@throw' may appear without an argument (as shown above), in which case
  39665. the object caught by the '@catch' will be rethrown.
  39666. Note that only (pointers to) Objective-C objects may be thrown and
  39667. caught using this scheme. When an object is thrown, it will be caught
  39668. by the nearest '@catch' clause capable of handling objects of that type,
  39669. analogously to how 'catch' blocks work in C++ and Java. A '@catch(id
  39670. ...)' clause (as shown above) may also be provided to catch any and all
  39671. Objective-C exceptions not caught by previous '@catch' clauses (if any).
  39672. The '@finally' clause, if present, will be executed upon exit from the
  39673. immediately preceding '@try ... @catch' section. This will happen
  39674. regardless of whether any exceptions are thrown, caught or rethrown
  39675. inside the '@try ... @catch' section, analogously to the behavior of the
  39676. 'finally' clause in Java.
  39677. There are several caveats to using the new exception mechanism:
  39678. * The '-fobjc-exceptions' command line option must be used when
  39679. compiling Objective-C files that use exceptions.
  39680. * With the GNU runtime, exceptions are always implemented as "native"
  39681. exceptions and it is recommended that the '-fexceptions' and
  39682. '-shared-libgcc' options are used when linking.
  39683. * With the NeXT runtime, although currently designed to be binary
  39684. compatible with 'NS_HANDLER'-style idioms provided by the
  39685. 'NSException' class, the new exceptions can only be used on Mac OS
  39686. X 10.3 (Panther) and later systems, due to additional functionality
  39687. needed in the NeXT Objective-C runtime.
  39688. * As mentioned above, the new exceptions do not support handling
  39689. types other than Objective-C objects. Furthermore, when used from
  39690. Objective-C++, the Objective-C exception model does not
  39691. interoperate with C++ exceptions at this time. This means you
  39692. cannot '@throw' an exception from Objective-C and 'catch' it in
  39693. C++, or vice versa (i.e., 'throw ... @catch').
  39694. 
  39695. File: gcc.info, Node: Synchronization, Next: Fast enumeration, Prev: Exceptions, Up: Objective-C
  39696. 8.8 Synchronization
  39697. ===================
  39698. GNU Objective-C provides support for synchronized blocks:
  39699. @synchronized (ObjCClass *guard) {
  39700. ...
  39701. }
  39702. Upon entering the '@synchronized' block, a thread of execution shall
  39703. first check whether a lock has been placed on the corresponding 'guard'
  39704. object by another thread. If it has, the current thread shall wait
  39705. until the other thread relinquishes its lock. Once 'guard' becomes
  39706. available, the current thread will place its own lock on it, execute the
  39707. code contained in the '@synchronized' block, and finally relinquish the
  39708. lock (thereby making 'guard' available to other threads).
  39709. Unlike Java, Objective-C does not allow for entire methods to be marked
  39710. '@synchronized'. Note that throwing exceptions out of '@synchronized'
  39711. blocks is allowed, and will cause the guarding object to be unlocked
  39712. properly.
  39713. Because of the interactions between synchronization and exception
  39714. handling, you can only use '@synchronized' when compiling with
  39715. exceptions enabled, that is with the command line option
  39716. '-fobjc-exceptions'.
  39717. 
  39718. File: gcc.info, Node: Fast enumeration, Next: Messaging with the GNU Objective-C runtime, Prev: Synchronization, Up: Objective-C
  39719. 8.9 Fast Enumeration
  39720. ====================
  39721. * Menu:
  39722. * Using fast enumeration::
  39723. * c99-like fast enumeration syntax::
  39724. * Fast enumeration details::
  39725. * Fast enumeration protocol::
  39726. 
  39727. File: gcc.info, Node: Using fast enumeration, Next: c99-like fast enumeration syntax, Up: Fast enumeration
  39728. 8.9.1 Using Fast Enumeration
  39729. ----------------------------
  39730. GNU Objective-C provides support for the fast enumeration syntax:
  39731. id array = ...;
  39732. id object;
  39733. for (object in array)
  39734. {
  39735. /* Do something with 'object' */
  39736. }
  39737. 'array' needs to be an Objective-C object (usually a collection object,
  39738. for example an array, a dictionary or a set) which implements the "Fast
  39739. Enumeration Protocol" (see below). If you are using a Foundation
  39740. library such as GNUstep Base or Apple Cocoa Foundation, all collection
  39741. objects in the library implement this protocol and can be used in this
  39742. way.
  39743. The code above would iterate over all objects in 'array'. For each of
  39744. them, it assigns it to 'object', then executes the 'Do something with
  39745. 'object'' statements.
  39746. Here is a fully worked-out example using a Foundation library (which
  39747. provides the implementation of 'NSArray', 'NSString' and 'NSLog'):
  39748. NSArray *array = [NSArray arrayWithObjects: @"1", @"2", @"3", nil];
  39749. NSString *object;
  39750. for (object in array)
  39751. NSLog (@"Iterating over %@", object);
  39752. 
  39753. File: gcc.info, Node: c99-like fast enumeration syntax, Next: Fast enumeration details, Prev: Using fast enumeration, Up: Fast enumeration
  39754. 8.9.2 C99-Like Fast Enumeration Syntax
  39755. --------------------------------------
  39756. A c99-like declaration syntax is also allowed:
  39757. id array = ...;
  39758. for (id object in array)
  39759. {
  39760. /* Do something with 'object' */
  39761. }
  39762. this is completely equivalent to:
  39763. id array = ...;
  39764. {
  39765. id object;
  39766. for (object in array)
  39767. {
  39768. /* Do something with 'object' */
  39769. }
  39770. }
  39771. but can save some typing.
  39772. Note that the option '-std=c99' is not required to allow this syntax in
  39773. Objective-C.
  39774. 
  39775. File: gcc.info, Node: Fast enumeration details, Next: Fast enumeration protocol, Prev: c99-like fast enumeration syntax, Up: Fast enumeration
  39776. 8.9.3 Fast Enumeration Details
  39777. ------------------------------
  39778. Here is a more technical description with the gory details. Consider
  39779. the code
  39780. for (OBJECT EXPRESSION in COLLECTION EXPRESSION)
  39781. {
  39782. STATEMENTS
  39783. }
  39784. here is what happens when you run it:
  39785. * 'COLLECTION EXPRESSION' is evaluated exactly once and the result is
  39786. used as the collection object to iterate over. This means it is
  39787. safe to write code such as 'for (object in [NSDictionary
  39788. keyEnumerator]) ...'.
  39789. * the iteration is implemented by the compiler by repeatedly getting
  39790. batches of objects from the collection object using the fast
  39791. enumeration protocol (see below), then iterating over all objects
  39792. in the batch. This is faster than a normal enumeration where
  39793. objects are retrieved one by one (hence the name "fast
  39794. enumeration").
  39795. * if there are no objects in the collection, then 'OBJECT EXPRESSION'
  39796. is set to 'nil' and the loop immediately terminates.
  39797. * if there are objects in the collection, then for each object in the
  39798. collection (in the order they are returned) 'OBJECT EXPRESSION' is
  39799. set to the object, then 'STATEMENTS' are executed.
  39800. * 'STATEMENTS' can contain 'break' and 'continue' commands, which
  39801. will abort the iteration or skip to the next loop iteration as
  39802. expected.
  39803. * when the iteration ends because there are no more objects to
  39804. iterate over, 'OBJECT EXPRESSION' is set to 'nil'. This allows you
  39805. to determine whether the iteration finished because a 'break'
  39806. command was used (in which case 'OBJECT EXPRESSION' will remain set
  39807. to the last object that was iterated over) or because it iterated
  39808. over all the objects (in which case 'OBJECT EXPRESSION' will be set
  39809. to 'nil').
  39810. * 'STATEMENTS' must not make any changes to the collection object; if
  39811. they do, it is a hard error and the fast enumeration terminates by
  39812. invoking 'objc_enumerationMutation', a runtime function that
  39813. normally aborts the program but which can be customized by
  39814. Foundation libraries via 'objc_set_mutation_handler' to do
  39815. something different, such as raising an exception.
  39816. 
  39817. File: gcc.info, Node: Fast enumeration protocol, Prev: Fast enumeration details, Up: Fast enumeration
  39818. 8.9.4 Fast Enumeration Protocol
  39819. -------------------------------
  39820. If you want your own collection object to be usable with fast
  39821. enumeration, you need to have it implement the method
  39822. - (unsigned long) countByEnumeratingWithState: (NSFastEnumerationState *)state
  39823. objects: (id *)objects
  39824. count: (unsigned long)len;
  39825. where 'NSFastEnumerationState' must be defined in your code as follows:
  39826. typedef struct
  39827. {
  39828. unsigned long state;
  39829. id *itemsPtr;
  39830. unsigned long *mutationsPtr;
  39831. unsigned long extra[5];
  39832. } NSFastEnumerationState;
  39833. If no 'NSFastEnumerationState' is defined in your code, the compiler
  39834. will automatically replace 'NSFastEnumerationState *' with 'struct
  39835. __objcFastEnumerationState *', where that type is silently defined by
  39836. the compiler in an identical way. This can be confusing and we
  39837. recommend that you define 'NSFastEnumerationState' (as shown above)
  39838. instead.
  39839. The method is called repeatedly during a fast enumeration to retrieve
  39840. batches of objects. Each invocation of the method should retrieve the
  39841. next batch of objects.
  39842. The return value of the method is the number of objects in the current
  39843. batch; this should not exceed 'len', which is the maximum size of a
  39844. batch as requested by the caller. The batch itself is returned in the
  39845. 'itemsPtr' field of the 'NSFastEnumerationState' struct.
  39846. To help with returning the objects, the 'objects' array is a C array
  39847. preallocated by the caller (on the stack) of size 'len'. In many cases
  39848. you can put the objects you want to return in that 'objects' array, then
  39849. do 'itemsPtr = objects'. But you don't have to; if your collection
  39850. already has the objects to return in some form of C array, it could
  39851. return them from there instead.
  39852. The 'state' and 'extra' fields of the 'NSFastEnumerationState'
  39853. structure allows your collection object to keep track of the state of
  39854. the enumeration. In a simple array implementation, 'state' may keep
  39855. track of the index of the last object that was returned, and 'extra' may
  39856. be unused.
  39857. The 'mutationsPtr' field of the 'NSFastEnumerationState' is used to
  39858. keep track of mutations. It should point to a number; before working on
  39859. each object, the fast enumeration loop will check that this number has
  39860. not changed. If it has, a mutation has happened and the fast
  39861. enumeration will abort. So, 'mutationsPtr' could be set to point to
  39862. some sort of version number of your collection, which is increased by
  39863. one every time there is a change (for example when an object is added or
  39864. removed). Or, if you are content with less strict mutation checks, it
  39865. could point to the number of objects in your collection or some other
  39866. value that can be checked to perform an approximate check that the
  39867. collection has not been mutated.
  39868. Finally, note how we declared the 'len' argument and the return value
  39869. to be of type 'unsigned long'. They could also be declared to be of
  39870. type 'unsigned int' and everything would still work.
  39871. 
  39872. File: gcc.info, Node: Messaging with the GNU Objective-C runtime, Prev: Fast enumeration, Up: Objective-C
  39873. 8.10 Messaging with the GNU Objective-C Runtime
  39874. ===============================================
  39875. This section is specific for the GNU Objective-C runtime. If you are
  39876. using a different runtime, you can skip it.
  39877. The implementation of messaging in the GNU Objective-C runtime is
  39878. designed to be portable, and so is based on standard C.
  39879. Sending a message in the GNU Objective-C runtime is composed of two
  39880. separate steps. First, there is a call to the lookup function,
  39881. 'objc_msg_lookup ()' (or, in the case of messages to super,
  39882. 'objc_msg_lookup_super ()'). This runtime function takes as argument
  39883. the receiver and the selector of the method to be called; it returns the
  39884. 'IMP', that is a pointer to the function implementing the method. The
  39885. second step of method invocation consists of casting this pointer
  39886. function to the appropriate function pointer type, and calling the
  39887. function pointed to it with the right arguments.
  39888. For example, when the compiler encounters a method invocation such as
  39889. '[object init]', it compiles it into a call to 'objc_msg_lookup (object,
  39890. @selector(init))' followed by a cast of the returned value to the
  39891. appropriate function pointer type, and then it calls it.
  39892. * Menu:
  39893. * Dynamically registering methods::
  39894. * Forwarding hook::
  39895. 
  39896. File: gcc.info, Node: Dynamically registering methods, Next: Forwarding hook, Up: Messaging with the GNU Objective-C runtime
  39897. 8.10.1 Dynamically Registering Methods
  39898. --------------------------------------
  39899. If 'objc_msg_lookup()' does not find a suitable method implementation,
  39900. because the receiver does not implement the required method, it tries to
  39901. see if the class can dynamically register the method.
  39902. To do so, the runtime checks if the class of the receiver implements
  39903. the method
  39904. + (BOOL) resolveInstanceMethod: (SEL)selector;
  39905. in the case of an instance method, or
  39906. + (BOOL) resolveClassMethod: (SEL)selector;
  39907. in the case of a class method. If the class implements it, the runtime
  39908. invokes it, passing as argument the selector of the original method, and
  39909. if it returns 'YES', the runtime tries the lookup again, which could now
  39910. succeed if a matching method was added dynamically by
  39911. '+resolveInstanceMethod:' or '+resolveClassMethod:'.
  39912. This allows classes to dynamically register methods (by adding them to
  39913. the class using 'class_addMethod') when they are first called. To do
  39914. so, a class should implement '+resolveInstanceMethod:' (or, depending on
  39915. the case, '+resolveClassMethod:') and have it recognize the selectors of
  39916. methods that can be registered dynamically at runtime, register them,
  39917. and return 'YES'. It should return 'NO' for methods that it does not
  39918. dynamically registered at runtime.
  39919. If '+resolveInstanceMethod:' (or '+resolveClassMethod:') is not
  39920. implemented or returns 'NO', the runtime then tries the forwarding hook.
  39921. Support for '+resolveInstanceMethod:' and 'resolveClassMethod:' was
  39922. added to the GNU Objective-C runtime in GCC version 4.6.
  39923. 
  39924. File: gcc.info, Node: Forwarding hook, Prev: Dynamically registering methods, Up: Messaging with the GNU Objective-C runtime
  39925. 8.10.2 Forwarding Hook
  39926. ----------------------
  39927. The GNU Objective-C runtime provides a hook, called
  39928. '__objc_msg_forward2', which is called by 'objc_msg_lookup()' when it
  39929. cannot find a method implementation in the runtime tables and after
  39930. calling '+resolveInstanceMethod:' and '+resolveClassMethod:' has been
  39931. attempted and did not succeed in dynamically registering the method.
  39932. To configure the hook, you set the global variable
  39933. '__objc_msg_forward2' to a function with the same argument and return
  39934. types of 'objc_msg_lookup()'. When 'objc_msg_lookup()' can not find a
  39935. method implementation, it invokes the hook function you provided to get
  39936. a method implementation to return. So, in practice
  39937. '__objc_msg_forward2' allows you to extend 'objc_msg_lookup()' by adding
  39938. some custom code that is called to do a further lookup when no standard
  39939. method implementation can be found using the normal lookup.
  39940. This hook is generally reserved for "Foundation" libraries such as
  39941. GNUstep Base, which use it to implement their high-level method
  39942. forwarding API, typically based around the 'forwardInvocation:' method.
  39943. So, unless you are implementing your own "Foundation" library, you
  39944. should not set this hook.
  39945. In a typical forwarding implementation, the '__objc_msg_forward2' hook
  39946. function determines the argument and return type of the method that is
  39947. being looked up, and then creates a function that takes these arguments
  39948. and has that return type, and returns it to the caller. Creating this
  39949. function is non-trivial and is typically performed using a dedicated
  39950. library such as 'libffi'.
  39951. The forwarding method implementation thus created is returned by
  39952. 'objc_msg_lookup()' and is executed as if it was a normal method
  39953. implementation. When the forwarding method implementation is called, it
  39954. is usually expected to pack all arguments into some sort of object
  39955. (typically, an 'NSInvocation' in a "Foundation" library), and hand it
  39956. over to the programmer ('forwardInvocation:') who is then allowed to
  39957. manipulate the method invocation using a high-level API provided by the
  39958. "Foundation" library. For example, the programmer may want to examine
  39959. the method invocation arguments and name and potentially change them
  39960. before forwarding the method invocation to one or more local objects
  39961. ('performInvocation:') or even to remote objects (by using Distributed
  39962. Objects or some other mechanism). When all this completes, the return
  39963. value is passed back and must be returned correctly to the original
  39964. caller.
  39965. Note that the GNU Objective-C runtime currently provides no support for
  39966. method forwarding or method invocations other than the
  39967. '__objc_msg_forward2' hook.
  39968. If the forwarding hook does not exist or returns 'NULL', the runtime
  39969. currently attempts forwarding using an older, deprecated API, and if
  39970. that fails, it aborts the program. In future versions of the GNU
  39971. Objective-C runtime, the runtime will immediately abort.
  39972. 
  39973. File: gcc.info, Node: Compatibility, Next: Gcov, Prev: Objective-C, Up: Top
  39974. 9 Binary Compatibility
  39975. **********************
  39976. Binary compatibility encompasses several related concepts:
  39977. "application binary interface (ABI)"
  39978. The set of runtime conventions followed by all of the tools that
  39979. deal with binary representations of a program, including compilers,
  39980. assemblers, linkers, and language runtime support. Some ABIs are
  39981. formal with a written specification, possibly designed by multiple
  39982. interested parties. Others are simply the way things are actually
  39983. done by a particular set of tools.
  39984. "ABI conformance"
  39985. A compiler conforms to an ABI if it generates code that follows all
  39986. of the specifications enumerated by that ABI. A library conforms
  39987. to an ABI if it is implemented according to that ABI. An
  39988. application conforms to an ABI if it is built using tools that
  39989. conform to that ABI and does not contain source code that
  39990. specifically changes behavior specified by the ABI.
  39991. "calling conventions"
  39992. Calling conventions are a subset of an ABI that specify of how
  39993. arguments are passed and function results are returned.
  39994. "interoperability"
  39995. Different sets of tools are interoperable if they generate files
  39996. that can be used in the same program. The set of tools includes
  39997. compilers, assemblers, linkers, libraries, header files, startup
  39998. files, and debuggers. Binaries produced by different sets of tools
  39999. are not interoperable unless they implement the same ABI. This
  40000. applies to different versions of the same tools as well as tools
  40001. from different vendors.
  40002. "intercallability"
  40003. Whether a function in a binary built by one set of tools can call a
  40004. function in a binary built by a different set of tools is a subset
  40005. of interoperability.
  40006. "implementation-defined features"
  40007. Language standards include lists of implementation-defined features
  40008. whose behavior can vary from one implementation to another. Some
  40009. of these features are normally covered by a platform's ABI and
  40010. others are not. The features that are not covered by an ABI
  40011. generally affect how a program behaves, but not intercallability.
  40012. "compatibility"
  40013. Conformance to the same ABI and the same behavior of
  40014. implementation-defined features are both relevant for
  40015. compatibility.
  40016. The application binary interface implemented by a C or C++ compiler
  40017. affects code generation and runtime support for:
  40018. * size and alignment of data types
  40019. * layout of structured types
  40020. * calling conventions
  40021. * register usage conventions
  40022. * interfaces for runtime arithmetic support
  40023. * object file formats
  40024. In addition, the application binary interface implemented by a C++
  40025. compiler affects code generation and runtime support for:
  40026. * name mangling
  40027. * exception handling
  40028. * invoking constructors and destructors
  40029. * layout, alignment, and padding of classes
  40030. * layout and alignment of virtual tables
  40031. Some GCC compilation options cause the compiler to generate code that
  40032. does not conform to the platform's default ABI. Other options cause
  40033. different program behavior for implementation-defined features that are
  40034. not covered by an ABI. These options are provided for consistency with
  40035. other compilers that do not follow the platform's default ABI or the
  40036. usual behavior of implementation-defined features for the platform. Be
  40037. very careful about using such options.
  40038. Most platforms have a well-defined ABI that covers C code, but ABIs
  40039. that cover C++ functionality are not yet common.
  40040. Starting with GCC 3.2, GCC binary conventions for C++ are based on a
  40041. written, vendor-neutral C++ ABI that was designed to be specific to
  40042. 64-bit Itanium but also includes generic specifications that apply to
  40043. any platform. This C++ ABI is also implemented by other compiler
  40044. vendors on some platforms, notably GNU/Linux and BSD systems. We have
  40045. tried hard to provide a stable ABI that will be compatible with future
  40046. GCC releases, but it is possible that we will encounter problems that
  40047. make this difficult. Such problems could include different
  40048. interpretations of the C++ ABI by different vendors, bugs in the ABI, or
  40049. bugs in the implementation of the ABI in different compilers. GCC's
  40050. '-Wabi' switch warns when G++ generates code that is probably not
  40051. compatible with the C++ ABI.
  40052. The C++ library used with a C++ compiler includes the Standard C++
  40053. Library, with functionality defined in the C++ Standard, plus language
  40054. runtime support. The runtime support is included in a C++ ABI, but
  40055. there is no formal ABI for the Standard C++ Library. Two
  40056. implementations of that library are interoperable if one follows the
  40057. de-facto ABI of the other and if they are both built with the same
  40058. compiler, or with compilers that conform to the same ABI for C++
  40059. compiler and runtime support.
  40060. When G++ and another C++ compiler conform to the same C++ ABI, but the
  40061. implementations of the Standard C++ Library that they normally use do
  40062. not follow the same ABI for the Standard C++ Library, object files built
  40063. with those compilers can be used in the same program only if they use
  40064. the same C++ library. This requires specifying the location of the C++
  40065. library header files when invoking the compiler whose usual library is
  40066. not being used. The location of GCC's C++ header files depends on how
  40067. the GCC build was configured, but can be seen by using the G++ '-v'
  40068. option. With default configuration options for G++ 3.3 the compile line
  40069. for a different C++ compiler needs to include
  40070. -IGCC_INSTALL_DIRECTORY/include/c++/3.3
  40071. Similarly, compiling code with G++ that must use a C++ library other
  40072. than the GNU C++ library requires specifying the location of the header
  40073. files for that other library.
  40074. The most straightforward way to link a program to use a particular C++
  40075. library is to use a C++ driver that specifies that C++ library by
  40076. default. The 'g++' driver, for example, tells the linker where to find
  40077. GCC's C++ library ('libstdc++') plus the other libraries and startup
  40078. files it needs, in the proper order.
  40079. If a program must use a different C++ library and it's not possible to
  40080. do the final link using a C++ driver that uses that library by default,
  40081. it is necessary to tell 'g++' the location and name of that library. It
  40082. might also be necessary to specify different startup files and other
  40083. runtime support libraries, and to suppress the use of GCC's support
  40084. libraries with one or more of the options '-nostdlib', '-nostartfiles',
  40085. and '-nodefaultlibs'.
  40086. 
  40087. File: gcc.info, Node: Gcov, Next: Gcov-tool, Prev: Compatibility, Up: Top
  40088. 10 'gcov'--a Test Coverage Program
  40089. **********************************
  40090. 'gcov' is a tool you can use in conjunction with GCC to test code
  40091. coverage in your programs.
  40092. * Menu:
  40093. * Gcov Intro:: Introduction to gcov.
  40094. * Invoking Gcov:: How to use gcov.
  40095. * Gcov and Optimization:: Using gcov with GCC optimization.
  40096. * Gcov Data Files:: The files used by gcov.
  40097. * Cross-profiling:: Data file relocation.
  40098. 
  40099. File: gcc.info, Node: Gcov Intro, Next: Invoking Gcov, Up: Gcov
  40100. 10.1 Introduction to 'gcov'
  40101. ===========================
  40102. 'gcov' is a test coverage program. Use it in concert with GCC to
  40103. analyze your programs to help create more efficient, faster running code
  40104. and to discover untested parts of your program. You can use 'gcov' as a
  40105. profiling tool to help discover where your optimization efforts will
  40106. best affect your code. You can also use 'gcov' along with the other
  40107. profiling tool, 'gprof', to assess which parts of your code use the
  40108. greatest amount of computing time.
  40109. Profiling tools help you analyze your code's performance. Using a
  40110. profiler such as 'gcov' or 'gprof', you can find out some basic
  40111. performance statistics, such as:
  40112. * how often each line of code executes
  40113. * what lines of code are actually executed
  40114. * how much computing time each section of code uses
  40115. Once you know these things about how your code works when compiled, you
  40116. can look at each module to see which modules should be optimized.
  40117. 'gcov' helps you determine where to work on optimization.
  40118. Software developers also use coverage testing in concert with
  40119. testsuites, to make sure software is actually good enough for a release.
  40120. Testsuites can verify that a program works as expected; a coverage
  40121. program tests to see how much of the program is exercised by the
  40122. testsuite. Developers can then determine what kinds of test cases need
  40123. to be added to the testsuites to create both better testing and a better
  40124. final product.
  40125. You should compile your code without optimization if you plan to use
  40126. 'gcov' because the optimization, by combining some lines of code into
  40127. one function, may not give you as much information as you need to look
  40128. for 'hot spots' where the code is using a great deal of computer time.
  40129. Likewise, because 'gcov' accumulates statistics by line (at the lowest
  40130. resolution), it works best with a programming style that places only one
  40131. statement on each line. If you use complicated macros that expand to
  40132. loops or to other control structures, the statistics are less
  40133. helpful--they only report on the line where the macro call appears. If
  40134. your complex macros behave like functions, you can replace them with
  40135. inline functions to solve this problem.
  40136. 'gcov' creates a logfile called 'SOURCEFILE.gcov' which indicates how
  40137. many times each line of a source file 'SOURCEFILE.c' has executed. You
  40138. can use these logfiles along with 'gprof' to aid in fine-tuning the
  40139. performance of your programs. 'gprof' gives timing information you can
  40140. use along with the information you get from 'gcov'.
  40141. 'gcov' works only on code compiled with GCC. It is not compatible with
  40142. any other profiling or test coverage mechanism.
  40143. 
  40144. File: gcc.info, Node: Invoking Gcov, Next: Gcov and Optimization, Prev: Gcov Intro, Up: Gcov
  40145. 10.2 Invoking 'gcov'
  40146. ====================
  40147. gcov [OPTIONS] FILES
  40148. 'gcov' accepts the following options:
  40149. '-a'
  40150. '--all-blocks'
  40151. Write individual execution counts for every basic block. Normally
  40152. gcov outputs execution counts only for the main blocks of a line.
  40153. With this option you can determine if blocks within a single line
  40154. are not being executed.
  40155. '-b'
  40156. '--branch-probabilities'
  40157. Write branch frequencies to the output file, and write branch
  40158. summary info to the standard output. This option allows you to see
  40159. how often each branch in your program was taken. Unconditional
  40160. branches will not be shown, unless the '-u' option is given.
  40161. '-c'
  40162. '--branch-counts'
  40163. Write branch frequencies as the number of branches taken, rather
  40164. than the percentage of branches taken.
  40165. '-d'
  40166. '--display-progress'
  40167. Display the progress on the standard output.
  40168. '-f'
  40169. '--function-summaries'
  40170. Output summaries for each function in addition to the file level
  40171. summary.
  40172. '-h'
  40173. '--help'
  40174. Display help about using 'gcov' (on the standard output), and exit
  40175. without doing any further processing.
  40176. '-i'
  40177. '--intermediate-format'
  40178. Output gcov file in an easy-to-parse intermediate text format that
  40179. can be used by 'lcov' or other tools. The output is a single
  40180. '.gcov' file per '.gcda' file. No source code is required.
  40181. The format of the intermediate '.gcov' file is plain text with one
  40182. entry per line
  40183. file:SOURCE_FILE_NAME
  40184. function:LINE_NUMBER,EXECUTION_COUNT,FUNCTION_NAME
  40185. lcount:LINE NUMBER,EXECUTION_COUNT
  40186. branch:LINE_NUMBER,BRANCH_COVERAGE_TYPE
  40187. Where the BRANCH_COVERAGE_TYPE is
  40188. notexec (Branch not executed)
  40189. taken (Branch executed and taken)
  40190. nottaken (Branch executed, but not taken)
  40191. There can be multiple FILE entries in an intermediate gcov
  40192. file. All entries following a FILE pertain to that source file
  40193. until the next FILE entry.
  40194. Here is a sample when '-i' is used in conjunction with '-b' option:
  40195. file:array.cc
  40196. function:11,1,_Z3sumRKSt6vectorIPiSaIS0_EE
  40197. function:22,1,main
  40198. lcount:11,1
  40199. lcount:12,1
  40200. lcount:14,1
  40201. branch:14,taken
  40202. lcount:26,1
  40203. branch:28,nottaken
  40204. '-l'
  40205. '--long-file-names'
  40206. Create long file names for included source files. For example, if
  40207. the header file 'x.h' contains code, and was included in the file
  40208. 'a.c', then running 'gcov' on the file 'a.c' will produce an output
  40209. file called 'a.c##x.h.gcov' instead of 'x.h.gcov'. This can be
  40210. useful if 'x.h' is included in multiple source files and you want
  40211. to see the individual contributions. If you use the '-p' option,
  40212. both the including and included file names will be complete path
  40213. names.
  40214. '-m'
  40215. '--demangled-names'
  40216. Display demangled function names in output. The default is to show
  40217. mangled function names.
  40218. '-n'
  40219. '--no-output'
  40220. Do not create the 'gcov' output file.
  40221. '-o DIRECTORY|FILE'
  40222. '--object-directory DIRECTORY'
  40223. '--object-file FILE'
  40224. Specify either the directory containing the gcov data files, or the
  40225. object path name. The '.gcno', and '.gcda' data files are searched
  40226. for using this option. If a directory is specified, the data files
  40227. are in that directory and named after the input file name, without
  40228. its extension. If a file is specified here, the data files are
  40229. named after that file, without its extension.
  40230. '-p'
  40231. '--preserve-paths'
  40232. Preserve complete path information in the names of generated
  40233. '.gcov' files. Without this option, just the filename component is
  40234. used. With this option, all directories are used, with '/'
  40235. characters translated to '#' characters, '.' directory components
  40236. removed and unremoveable '..' components renamed to '^'. This is
  40237. useful if sourcefiles are in several different directories.
  40238. '-r'
  40239. '--relative-only'
  40240. Only output information about source files with a relative pathname
  40241. (after source prefix elision). Absolute paths are usually system
  40242. header files and coverage of any inline functions therein is
  40243. normally uninteresting.
  40244. '-s DIRECTORY'
  40245. '--source-prefix DIRECTORY'
  40246. A prefix for source file names to remove when generating the output
  40247. coverage files. This option is useful when building in a separate
  40248. directory, and the pathname to the source directory is not wanted
  40249. when determining the output file names. Note that this prefix
  40250. detection is applied before determining whether the source file is
  40251. absolute.
  40252. '-u'
  40253. '--unconditional-branches'
  40254. When branch probabilities are given, include those of unconditional
  40255. branches. Unconditional branches are normally not interesting.
  40256. '-v'
  40257. '--version'
  40258. Display the 'gcov' version number (on the standard output), and
  40259. exit without doing any further processing.
  40260. '-w'
  40261. '--verbose'
  40262. Print verbose informations related to basic blocks and arcs.
  40263. '-x'
  40264. '--hash-filenames'
  40265. By default, gcov uses the full pathname of the source files to to
  40266. create an output filename. This can lead to long filenames that
  40267. can overflow filesystem limits. This option creates names of the
  40268. form 'SOURCE-FILE##MD5.gcov', where the SOURCE-FILE component is
  40269. the final filename part and the MD5 component is calculated from
  40270. the full mangled name that would have been used otherwise.
  40271. 'gcov' should be run with the current directory the same as that when
  40272. you invoked the compiler. Otherwise it will not be able to locate the
  40273. source files. 'gcov' produces files called 'MANGLEDNAME.gcov' in the
  40274. current directory. These contain the coverage information of the source
  40275. file they correspond to. One '.gcov' file is produced for each source
  40276. (or header) file containing code, which was compiled to produce the data
  40277. files. The MANGLEDNAME part of the output file name is usually simply
  40278. the source file name, but can be something more complicated if the '-l'
  40279. or '-p' options are given. Refer to those options for details.
  40280. If you invoke 'gcov' with multiple input files, the contributions from
  40281. each input file are summed. Typically you would invoke it with the same
  40282. list of files as the final link of your executable.
  40283. The '.gcov' files contain the ':' separated fields along with program
  40284. source code. The format is
  40285. EXECUTION_COUNT:LINE_NUMBER:SOURCE LINE TEXT
  40286. Additional block information may succeed each line, when requested by
  40287. command line option. The EXECUTION_COUNT is '-' for lines containing no
  40288. code. Unexecuted lines are marked '#####' or '=====', depending on
  40289. whether they are reachable by non-exceptional paths or only exceptional
  40290. paths such as C++ exception handlers, respectively. Given '-a' option,
  40291. unexecuted blocks are marked '$$$$$' or '%%%%%', depending on whether a
  40292. basic block is reachable via non-exceptional or exceptional paths.
  40293. Note that GCC can completely remove the bodies of functions that are
  40294. not needed - for instance if they are inlined everywhere. Such
  40295. functions are marked with '-', which can be confusing. Use the
  40296. '-fkeep-inline-functions' and '-fkeep-static-functions' options to
  40297. retain these functions and allow gcov to properly show their
  40298. EXECUTION_COUNT.
  40299. Some lines of information at the start have LINE_NUMBER of zero. These
  40300. preamble lines are of the form
  40301. -:0:TAG:VALUE
  40302. The ordering and number of these preamble lines will be augmented as
  40303. 'gcov' development progresses -- do not rely on them remaining
  40304. unchanged. Use TAG to locate a particular preamble line.
  40305. The additional block information is of the form
  40306. TAG INFORMATION
  40307. The INFORMATION is human readable, but designed to be simple enough for
  40308. machine parsing too.
  40309. When printing percentages, 0% and 100% are only printed when the values
  40310. are _exactly_ 0% and 100% respectively. Other values which would
  40311. conventionally be rounded to 0% or 100% are instead printed as the
  40312. nearest non-boundary value.
  40313. When using 'gcov', you must first compile your program with two special
  40314. GCC options: '-fprofile-arcs -ftest-coverage'. This tells the compiler
  40315. to generate additional information needed by gcov (basically a flow
  40316. graph of the program) and also includes additional code in the object
  40317. files for generating the extra profiling information needed by gcov.
  40318. These additional files are placed in the directory where the object file
  40319. is located.
  40320. Running the program will cause profile output to be generated. For
  40321. each source file compiled with '-fprofile-arcs', an accompanying '.gcda'
  40322. file will be placed in the object file directory.
  40323. Running 'gcov' with your program's source file names as arguments will
  40324. now produce a listing of the code along with frequency of execution for
  40325. each line. For example, if your program is called 'tmp.c', this is what
  40326. you see when you use the basic 'gcov' facility:
  40327. $ gcc -fprofile-arcs -ftest-coverage tmp.c
  40328. $ a.out
  40329. $ gcov tmp.c
  40330. File 'tmp.c'
  40331. Lines executed:90.00% of 10
  40332. Creating 'tmp.c.gcov'
  40333. The file 'tmp.c.gcov' contains output from 'gcov'. Here is a sample:
  40334. -: 0:Source:tmp.c
  40335. -: 0:Graph:tmp.gcno
  40336. -: 0:Data:tmp.gcda
  40337. -: 0:Runs:1
  40338. -: 0:Programs:1
  40339. -: 1:#include <stdio.h>
  40340. -: 2:
  40341. -: 3:int main (void)
  40342. 1: 4:{
  40343. 1: 5: int i, total;
  40344. -: 6:
  40345. 1: 7: total = 0;
  40346. -: 8:
  40347. 11: 9: for (i = 0; i < 10; i++)
  40348. 10: 10: total += i;
  40349. -: 11:
  40350. 1: 12: if (total != 45)
  40351. #####: 13: printf ("Failure\n");
  40352. -: 14: else
  40353. 1: 15: printf ("Success\n");
  40354. 1: 16: return 0;
  40355. -: 17:}
  40356. When you use the '-a' option, you will get individual block counts, and
  40357. the output looks like this:
  40358. -: 0:Source:tmp.c
  40359. -: 0:Graph:tmp.gcno
  40360. -: 0:Data:tmp.gcda
  40361. -: 0:Runs:1
  40362. -: 0:Programs:1
  40363. -: 1:#include <stdio.h>
  40364. -: 2:
  40365. -: 3:int main (void)
  40366. 1: 4:{
  40367. 1: 4-block 0
  40368. 1: 5: int i, total;
  40369. -: 6:
  40370. 1: 7: total = 0;
  40371. -: 8:
  40372. 11: 9: for (i = 0; i < 10; i++)
  40373. 11: 9-block 0
  40374. 10: 10: total += i;
  40375. 10: 10-block 0
  40376. -: 11:
  40377. 1: 12: if (total != 45)
  40378. 1: 12-block 0
  40379. #####: 13: printf ("Failure\n");
  40380. $$$$$: 13-block 0
  40381. -: 14: else
  40382. 1: 15: printf ("Success\n");
  40383. 1: 15-block 0
  40384. 1: 16: return 0;
  40385. 1: 16-block 0
  40386. -: 17:}
  40387. In this mode, each basic block is only shown on one line - the last
  40388. line of the block. A multi-line block will only contribute to the
  40389. execution count of that last line, and other lines will not be shown to
  40390. contain code, unless previous blocks end on those lines. The total
  40391. execution count of a line is shown and subsequent lines show the
  40392. execution counts for individual blocks that end on that line. After
  40393. each block, the branch and call counts of the block will be shown, if
  40394. the '-b' option is given.
  40395. Because of the way GCC instruments calls, a call count can be shown
  40396. after a line with no individual blocks. As you can see, line 13
  40397. contains a basic block that was not executed.
  40398. When you use the '-b' option, your output looks like this:
  40399. $ gcov -b tmp.c
  40400. File 'tmp.c'
  40401. Lines executed:90.00% of 10
  40402. Branches executed:80.00% of 5
  40403. Taken at least once:80.00% of 5
  40404. Calls executed:50.00% of 2
  40405. Creating 'tmp.c.gcov'
  40406. Here is a sample of a resulting 'tmp.c.gcov' file:
  40407. -: 0:Source:tmp.c
  40408. -: 0:Graph:tmp.gcno
  40409. -: 0:Data:tmp.gcda
  40410. -: 0:Runs:1
  40411. -: 0:Programs:1
  40412. -: 1:#include <stdio.h>
  40413. -: 2:
  40414. -: 3:int main (void)
  40415. function main called 1 returned 1 blocks executed 75%
  40416. 1: 4:{
  40417. 1: 5: int i, total;
  40418. -: 6:
  40419. 1: 7: total = 0;
  40420. -: 8:
  40421. 11: 9: for (i = 0; i < 10; i++)
  40422. branch 0 taken 91% (fallthrough)
  40423. branch 1 taken 9%
  40424. 10: 10: total += i;
  40425. -: 11:
  40426. 1: 12: if (total != 45)
  40427. branch 0 taken 0% (fallthrough)
  40428. branch 1 taken 100%
  40429. #####: 13: printf ("Failure\n");
  40430. call 0 never executed
  40431. -: 14: else
  40432. 1: 15: printf ("Success\n");
  40433. call 0 called 1 returned 100%
  40434. 1: 16: return 0;
  40435. -: 17:}
  40436. For each function, a line is printed showing how many times the
  40437. function is called, how many times it returns and what percentage of the
  40438. function's blocks were executed.
  40439. For each basic block, a line is printed after the last line of the
  40440. basic block describing the branch or call that ends the basic block.
  40441. There can be multiple branches and calls listed for a single source line
  40442. if there are multiple basic blocks that end on that line. In this case,
  40443. the branches and calls are each given a number. There is no simple way
  40444. to map these branches and calls back to source constructs. In general,
  40445. though, the lowest numbered branch or call will correspond to the
  40446. leftmost construct on the source line.
  40447. For a branch, if it was executed at least once, then a percentage
  40448. indicating the number of times the branch was taken divided by the
  40449. number of times the branch was executed will be printed. Otherwise, the
  40450. message "never executed" is printed.
  40451. For a call, if it was executed at least once, then a percentage
  40452. indicating the number of times the call returned divided by the number
  40453. of times the call was executed will be printed. This will usually be
  40454. 100%, but may be less for functions that call 'exit' or 'longjmp', and
  40455. thus may not return every time they are called.
  40456. The execution counts are cumulative. If the example program were
  40457. executed again without removing the '.gcda' file, the count for the
  40458. number of times each line in the source was executed would be added to
  40459. the results of the previous run(s). This is potentially useful in
  40460. several ways. For example, it could be used to accumulate data over a
  40461. number of program runs as part of a test verification suite, or to
  40462. provide more accurate long-term information over a large number of
  40463. program runs.
  40464. The data in the '.gcda' files is saved immediately before the program
  40465. exits. For each source file compiled with '-fprofile-arcs', the
  40466. profiling code first attempts to read in an existing '.gcda' file; if
  40467. the file doesn't match the executable (differing number of basic block
  40468. counts) it will ignore the contents of the file. It then adds in the
  40469. new execution counts and finally writes the data to the file.
  40470. 
  40471. File: gcc.info, Node: Gcov and Optimization, Next: Gcov Data Files, Prev: Invoking Gcov, Up: Gcov
  40472. 10.3 Using 'gcov' with GCC Optimization
  40473. =======================================
  40474. If you plan to use 'gcov' to help optimize your code, you must first
  40475. compile your program with two special GCC options: '-fprofile-arcs
  40476. -ftest-coverage'. Aside from that, you can use any other GCC options;
  40477. but if you want to prove that every single line in your program was
  40478. executed, you should not compile with optimization at the same time. On
  40479. some machines the optimizer can eliminate some simple code lines by
  40480. combining them with other lines. For example, code like this:
  40481. if (a != b)
  40482. c = 1;
  40483. else
  40484. c = 0;
  40485. can be compiled into one instruction on some machines. In this case,
  40486. there is no way for 'gcov' to calculate separate execution counts for
  40487. each line because there isn't separate code for each line. Hence the
  40488. 'gcov' output looks like this if you compiled the program with
  40489. optimization:
  40490. 100: 12:if (a != b)
  40491. 100: 13: c = 1;
  40492. 100: 14:else
  40493. 100: 15: c = 0;
  40494. The output shows that this block of code, combined by optimization,
  40495. executed 100 times. In one sense this result is correct, because there
  40496. was only one instruction representing all four of these lines. However,
  40497. the output does not indicate how many times the result was 0 and how
  40498. many times the result was 1.
  40499. Inlineable functions can create unexpected line counts. Line counts
  40500. are shown for the source code of the inlineable function, but what is
  40501. shown depends on where the function is inlined, or if it is not inlined
  40502. at all.
  40503. If the function is not inlined, the compiler must emit an out of line
  40504. copy of the function, in any object file that needs it. If 'fileA.o'
  40505. and 'fileB.o' both contain out of line bodies of a particular inlineable
  40506. function, they will also both contain coverage counts for that function.
  40507. When 'fileA.o' and 'fileB.o' are linked together, the linker will, on
  40508. many systems, select one of those out of line bodies for all calls to
  40509. that function, and remove or ignore the other. Unfortunately, it will
  40510. not remove the coverage counters for the unused function body. Hence
  40511. when instrumented, all but one use of that function will show zero
  40512. counts.
  40513. If the function is inlined in several places, the block structure in
  40514. each location might not be the same. For instance, a condition might
  40515. now be calculable at compile time in some instances. Because the
  40516. coverage of all the uses of the inline function will be shown for the
  40517. same source lines, the line counts themselves might seem inconsistent.
  40518. Long-running applications can use the '__gcov_reset' and '__gcov_dump'
  40519. facilities to restrict profile collection to the program region of
  40520. interest. Calling '__gcov_reset(void)' will clear all profile counters
  40521. to zero, and calling '__gcov_dump(void)' will cause the profile
  40522. information collected at that point to be dumped to '.gcda' output
  40523. files. Instrumented applications use a static destructor with priority
  40524. 99 to invoke the '__gcov_dump' function. Thus '__gcov_dump' is executed
  40525. after all user defined static destructors, as well as handlers
  40526. registered with 'atexit'. If an executable loads a dynamic shared
  40527. object via dlopen functionality, '-Wl,--dynamic-list-data' is needed to
  40528. dump all profile data.
  40529. 
  40530. File: gcc.info, Node: Gcov Data Files, Next: Cross-profiling, Prev: Gcov and Optimization, Up: Gcov
  40531. 10.4 Brief Description of 'gcov' Data Files
  40532. ===========================================
  40533. 'gcov' uses two files for profiling. The names of these files are
  40534. derived from the original _object_ file by substituting the file suffix
  40535. with either '.gcno', or '.gcda'. The files contain coverage and profile
  40536. data stored in a platform-independent format. The '.gcno' files are
  40537. placed in the same directory as the object file. By default, the
  40538. '.gcda' files are also stored in the same directory as the object file,
  40539. but the GCC '-fprofile-dir' option may be used to store the '.gcda'
  40540. files in a separate directory.
  40541. The '.gcno' notes file is generated when the source file is compiled
  40542. with the GCC '-ftest-coverage' option. It contains information to
  40543. reconstruct the basic block graphs and assign source line numbers to
  40544. blocks.
  40545. The '.gcda' count data file is generated when a program containing
  40546. object files built with the GCC '-fprofile-arcs' option is executed. A
  40547. separate '.gcda' file is created for each object file compiled with this
  40548. option. It contains arc transition counts, value profile counts, and
  40549. some summary information.
  40550. The full details of the file format is specified in 'gcov-io.h', and
  40551. functions provided in that header file should be used to access the
  40552. coverage files.
  40553. 
  40554. File: gcc.info, Node: Cross-profiling, Prev: Gcov Data Files, Up: Gcov
  40555. 10.5 Data File Relocation to Support Cross-Profiling
  40556. ====================================================
  40557. Running the program will cause profile output to be generated. For each
  40558. source file compiled with '-fprofile-arcs', an accompanying '.gcda' file
  40559. will be placed in the object file directory. That implicitly requires
  40560. running the program on the same system as it was built or having the
  40561. same absolute directory structure on the target system. The program
  40562. will try to create the needed directory structure, if it is not already
  40563. present.
  40564. To support cross-profiling, a program compiled with '-fprofile-arcs'
  40565. can relocate the data files based on two environment variables:
  40566. * GCOV_PREFIX contains the prefix to add to the absolute paths in the
  40567. object file. Prefix can be absolute, or relative. The default is
  40568. no prefix.
  40569. * GCOV_PREFIX_STRIP indicates the how many initial directory names to
  40570. strip off the hardwired absolute paths. Default value is 0.
  40571. _Note:_ If GCOV_PREFIX_STRIP is set without GCOV_PREFIX is
  40572. undefined, then a relative path is made out of the hardwired
  40573. absolute paths.
  40574. For example, if the object file '/user/build/foo.o' was built with
  40575. '-fprofile-arcs', the final executable will try to create the data file
  40576. '/user/build/foo.gcda' when running on the target system. This will
  40577. fail if the corresponding directory does not exist and it is unable to
  40578. create it. This can be overcome by, for example, setting the
  40579. environment as 'GCOV_PREFIX=/target/run' and 'GCOV_PREFIX_STRIP=1'.
  40580. Such a setting will name the data file '/target/run/build/foo.gcda'.
  40581. You must move the data files to the expected directory tree in order to
  40582. use them for profile directed optimizations ('-fprofile-use'), or to use
  40583. the 'gcov' tool.
  40584. 
  40585. File: gcc.info, Node: Gcov-tool, Next: Gcov-dump, Prev: Gcov, Up: Top
  40586. 11 'gcov-tool'--an Offline Gcda Profile Processing Tool
  40587. *******************************************************
  40588. 'gcov-tool' is a tool you can use in conjunction with GCC to manipulate
  40589. or process gcda profile files offline.
  40590. * Menu:
  40591. * Gcov-tool Intro:: Introduction to gcov-tool.
  40592. * Invoking Gcov-tool:: How to use gcov-tool.
  40593. 
  40594. File: gcc.info, Node: Gcov-tool Intro, Next: Invoking Gcov-tool, Up: Gcov-tool
  40595. 11.1 Introduction to 'gcov-tool'
  40596. ================================
  40597. 'gcov-tool' is an offline tool to process gcc's gcda profile files.
  40598. Current gcov-tool supports the following functionalities:
  40599. * merge two sets of profiles with weights.
  40600. * read one set of profile and rewrite profile contents. One can
  40601. scale or normalize the count values.
  40602. Examples of the use cases for this tool are:
  40603. * Collect the profiles for different set of inputs, and use this tool
  40604. to merge them. One can specify the weight to factor in the
  40605. relative importance of each input.
  40606. * Rewrite the profile after removing a subset of the gcda files,
  40607. while maintaining the consistency of the summary and the histogram.
  40608. * It can also be used to debug or libgcov code as the tools shares
  40609. the majority code as the runtime library.
  40610. Note that for the merging operation, this profile generated offline may
  40611. contain slight different values from the online merged profile. Here
  40612. are a list of typical differences:
  40613. * histogram difference: This offline tool recomputes the histogram
  40614. after merging the counters. The resulting histogram, therefore, is
  40615. precise. The online merging does not have this capability - the
  40616. histogram is merged from two histograms and the result is an
  40617. approximation.
  40618. * summary checksum difference: Summary checksum uses a CRC32
  40619. operation. The value depends on the link list order of gcov-info
  40620. objects. This order is different in gcov-tool from that in the
  40621. online merge. It's expected to have different summary checksums.
  40622. It does not really matter as the compiler does not use this
  40623. checksum anywhere.
  40624. * value profile counter values difference: Some counter values for
  40625. value profile are runtime dependent, like heap addresses. It's
  40626. normal to see some difference in these kind of counters.
  40627. 
  40628. File: gcc.info, Node: Invoking Gcov-tool, Prev: Gcov-tool Intro, Up: Gcov-tool
  40629. 11.2 Invoking 'gcov-tool'
  40630. =========================
  40631. gcov-tool [GLOBAL-OPTIONS] SUB_COMMAND [SUB_COMMAND-OPTIONS] PROFILE_DIR
  40632. 'gcov-tool' accepts the following options:
  40633. '-h'
  40634. '--help'
  40635. Display help about using 'gcov-tool' (on the standard output), and
  40636. exit without doing any further processing.
  40637. '-v'
  40638. '--version'
  40639. Display the 'gcov-tool' version number (on the standard output),
  40640. and exit without doing any further processing.
  40641. 'merge'
  40642. Merge two profile directories.
  40643. '-o DIRECTORY'
  40644. '--output DIRECTORY'
  40645. Set the output profile directory. Default output directory
  40646. name is MERGED_PROFILE.
  40647. '-v'
  40648. '--verbose'
  40649. Set the verbose mode.
  40650. '-w W1,W2'
  40651. '--weight W1,W2'
  40652. Set the merge weights of the DIRECTORY1 and DIRECTORY2,
  40653. respectively. The default weights are 1 for both.
  40654. 'rewrite'
  40655. Read the specified profile directory and rewrite to a new
  40656. directory.
  40657. '-n LONG_LONG_VALUE'
  40658. '--normalize <long_long_value>'
  40659. Normalize the profile. The specified value is the max counter
  40660. value in the new profile.
  40661. '-o DIRECTORY'
  40662. '--output DIRECTORY'
  40663. Set the output profile directory. Default output name is
  40664. REWRITE_PROFILE.
  40665. '-s FLOAT_OR_SIMPLE-FRAC_VALUE'
  40666. '--scale FLOAT_OR_SIMPLE-FRAC_VALUE'
  40667. Scale the profile counters. The specified value can be in
  40668. floating point value, or simple fraction value form, such 1,
  40669. 2, 2/3, and 5/3.
  40670. '-v'
  40671. '--verbose'
  40672. Set the verbose mode.
  40673. 'overlap'
  40674. Compute the overlap score between the two specified profile
  40675. directories. The overlap score is computed based on the arc
  40676. profiles. It is defined as the sum of min (p1_counter[i] /
  40677. p1_sum_all, p2_counter[i] / p2_sum_all), for all arc counter i,
  40678. where p1_counter[i] and p2_counter[i] are two matched counters and
  40679. p1_sum_all and p2_sum_all are the sum of counter values in profile
  40680. 1 and profile 2, respectively.
  40681. '-f'
  40682. '--function'
  40683. Print function level overlap score.
  40684. '-F'
  40685. '--fullname'
  40686. Print full gcda filename.
  40687. '-h'
  40688. '--hotonly'
  40689. Only print info for hot objects/functions.
  40690. '-o'
  40691. '--object'
  40692. Print object level overlap score.
  40693. '-t FLOAT'
  40694. '--hot_threshold <float>'
  40695. Set the threshold for hot counter value.
  40696. '-v'
  40697. '--verbose'
  40698. Set the verbose mode.
  40699. 
  40700. File: gcc.info, Node: Gcov-dump, Next: Trouble, Prev: Gcov-tool, Up: Top
  40701. 12 'gcov-dump'--an Offline Gcda and Gcno Profile Dump Tool
  40702. **********************************************************
  40703. * Menu:
  40704. * Gcov-dump Intro:: Introduction to gcov-dump.
  40705. * Invoking Gcov-dump:: How to use gcov-dump.
  40706. 
  40707. File: gcc.info, Node: Gcov-dump Intro, Next: Invoking Gcov-dump, Up: Gcov-dump
  40708. 12.1 Introduction to 'gcov-dump'
  40709. ================================
  40710. 'gcov-dump' is a tool you can use in conjunction with GCC to dump
  40711. content of gcda and gcno profile files offline.
  40712. 
  40713. File: gcc.info, Node: Invoking Gcov-dump, Prev: Gcov-dump Intro, Up: Gcov-dump
  40714. 12.2 Invoking 'gcov-dump'
  40715. =========================
  40716. Usage: gcov-dump [OPTION] ... GCOVFILES
  40717. 'gcov-dump' accepts the following options:
  40718. '-h'
  40719. '--help'
  40720. Display help about using 'gcov-dump' (on the standard output), and
  40721. exit without doing any further processing.
  40722. '-l'
  40723. '--long'
  40724. Dump content of records.
  40725. '-p'
  40726. '--positions'
  40727. Dump positions of records.
  40728. '-v'
  40729. '--version'
  40730. Display the 'gcov-dump' version number (on the standard output),
  40731. and exit without doing any further processing.
  40732. '-w'
  40733. '--working-sets'
  40734. Dump working set computed from summary.
  40735. 
  40736. File: gcc.info, Node: Trouble, Next: Bugs, Prev: Gcov-dump, Up: Top
  40737. 13 Known Causes of Trouble with GCC
  40738. ***********************************
  40739. This section describes known problems that affect users of GCC. Most of
  40740. these are not GCC bugs per se--if they were, we would fix them. But the
  40741. result for a user may be like the result of a bug.
  40742. Some of these problems are due to bugs in other software, some are
  40743. missing features that are too much work to add, and some are places
  40744. where people's opinions differ as to what is best.
  40745. * Menu:
  40746. * Actual Bugs:: Bugs we will fix later.
  40747. * Interoperation:: Problems using GCC with other compilers,
  40748. and with certain linkers, assemblers and debuggers.
  40749. * Incompatibilities:: GCC is incompatible with traditional C.
  40750. * Fixed Headers:: GCC uses corrected versions of system header files.
  40751. This is necessary, but doesn't always work smoothly.
  40752. * Standard Libraries:: GCC uses the system C library, which might not be
  40753. compliant with the ISO C standard.
  40754. * Disappointments:: Regrettable things we cannot change, but not quite bugs.
  40755. * C++ Misunderstandings:: Common misunderstandings with GNU C++.
  40756. * Non-bugs:: Things we think are right, but some others disagree.
  40757. * Warnings and Errors:: Which problems in your code get warnings,
  40758. and which get errors.
  40759. 
  40760. File: gcc.info, Node: Actual Bugs, Next: Interoperation, Up: Trouble
  40761. 13.1 Actual Bugs We Haven't Fixed Yet
  40762. =====================================
  40763. * The 'fixincludes' script interacts badly with automounters; if the
  40764. directory of system header files is automounted, it tends to be
  40765. unmounted while 'fixincludes' is running. This would seem to be a
  40766. bug in the automounter. We don't know any good way to work around
  40767. it.
  40768. 
  40769. File: gcc.info, Node: Interoperation, Next: Incompatibilities, Prev: Actual Bugs, Up: Trouble
  40770. 13.2 Interoperation
  40771. ===================
  40772. This section lists various difficulties encountered in using GCC
  40773. together with other compilers or with the assemblers, linkers, libraries
  40774. and debuggers on certain systems.
  40775. * On many platforms, GCC supports a different ABI for C++ than do
  40776. other compilers, so the object files compiled by GCC cannot be used
  40777. with object files generated by another C++ compiler.
  40778. An area where the difference is most apparent is name mangling.
  40779. The use of different name mangling is intentional, to protect you
  40780. from more subtle problems. Compilers differ as to many internal
  40781. details of C++ implementation, including: how class instances are
  40782. laid out, how multiple inheritance is implemented, and how virtual
  40783. function calls are handled. If the name encoding were made the
  40784. same, your programs would link against libraries provided from
  40785. other compilers--but the programs would then crash when run.
  40786. Incompatible libraries are then detected at link time, rather than
  40787. at run time.
  40788. * On some BSD systems, including some versions of Ultrix, use of
  40789. profiling causes static variable destructors (currently used only
  40790. in C++) not to be run.
  40791. * On a SPARC, GCC aligns all values of type 'double' on an 8-byte
  40792. boundary, and it expects every 'double' to be so aligned. The Sun
  40793. compiler usually gives 'double' values 8-byte alignment, with one
  40794. exception: function arguments of type 'double' may not be aligned.
  40795. As a result, if a function compiled with Sun CC takes the address
  40796. of an argument of type 'double' and passes this pointer of type
  40797. 'double *' to a function compiled with GCC, dereferencing the
  40798. pointer may cause a fatal signal.
  40799. One way to solve this problem is to compile your entire program
  40800. with GCC. Another solution is to modify the function that is
  40801. compiled with Sun CC to copy the argument into a local variable;
  40802. local variables are always properly aligned. A third solution is
  40803. to modify the function that uses the pointer to dereference it via
  40804. the following function 'access_double' instead of directly with
  40805. '*':
  40806. inline double
  40807. access_double (double *unaligned_ptr)
  40808. {
  40809. union d2i { double d; int i[2]; };
  40810. union d2i *p = (union d2i *) unaligned_ptr;
  40811. union d2i u;
  40812. u.i[0] = p->i[0];
  40813. u.i[1] = p->i[1];
  40814. return u.d;
  40815. }
  40816. Storing into the pointer can be done likewise with the same union.
  40817. * On Solaris, the 'malloc' function in the 'libmalloc.a' library may
  40818. allocate memory that is only 4 byte aligned. Since GCC on the
  40819. SPARC assumes that doubles are 8 byte aligned, this may result in a
  40820. fatal signal if doubles are stored in memory allocated by the
  40821. 'libmalloc.a' library.
  40822. The solution is to not use the 'libmalloc.a' library. Use instead
  40823. 'malloc' and related functions from 'libc.a'; they do not have this
  40824. problem.
  40825. * On the HP PA machine, ADB sometimes fails to work on functions
  40826. compiled with GCC. Specifically, it fails to work on functions
  40827. that use 'alloca' or variable-size arrays. This is because GCC
  40828. doesn't generate HP-UX unwind descriptors for such functions. It
  40829. may even be impossible to generate them.
  40830. * Debugging ('-g') is not supported on the HP PA machine, unless you
  40831. use the preliminary GNU tools.
  40832. * Taking the address of a label may generate errors from the HP-UX PA
  40833. assembler. GAS for the PA does not have this problem.
  40834. * Using floating point parameters for indirect calls to static
  40835. functions will not work when using the HP assembler. There simply
  40836. is no way for GCC to specify what registers hold arguments for
  40837. static functions when using the HP assembler. GAS for the PA does
  40838. not have this problem.
  40839. * In extremely rare cases involving some very large functions you may
  40840. receive errors from the HP linker complaining about an out of
  40841. bounds unconditional branch offset. This used to occur more often
  40842. in previous versions of GCC, but is now exceptionally rare. If you
  40843. should run into it, you can work around by making your function
  40844. smaller.
  40845. * GCC compiled code sometimes emits warnings from the HP-UX assembler
  40846. of the form:
  40847. (warning) Use of GR3 when
  40848. frame >= 8192 may cause conflict.
  40849. These warnings are harmless and can be safely ignored.
  40850. * In extremely rare cases involving some very large functions you may
  40851. receive errors from the AIX Assembler complaining about a
  40852. displacement that is too large. If you should run into it, you can
  40853. work around by making your function smaller.
  40854. * The 'libstdc++.a' library in GCC relies on the SVR4 dynamic linker
  40855. semantics which merges global symbols between libraries and
  40856. applications, especially necessary for C++ streams functionality.
  40857. This is not the default behavior of AIX shared libraries and
  40858. dynamic linking. 'libstdc++.a' is built on AIX with
  40859. "runtime-linking" enabled so that symbol merging can occur. To
  40860. utilize this feature, the application linked with 'libstdc++.a'
  40861. must include the '-Wl,-brtl' flag on the link line. G++ cannot
  40862. impose this because this option may interfere with the semantics of
  40863. the user program and users may not always use 'g++' to link his or
  40864. her application. Applications are not required to use the
  40865. '-Wl,-brtl' flag on the link line--the rest of the 'libstdc++.a'
  40866. library which is not dependent on the symbol merging semantics will
  40867. continue to function correctly.
  40868. * An application can interpose its own definition of functions for
  40869. functions invoked by 'libstdc++.a' with "runtime-linking" enabled
  40870. on AIX. To accomplish this the application must be linked with
  40871. "runtime-linking" option and the functions explicitly must be
  40872. exported by the application ('-Wl,-brtl,-bE:exportfile').
  40873. * AIX on the RS/6000 provides support (NLS) for environments outside
  40874. of the United States. Compilers and assemblers use NLS to support
  40875. locale-specific representations of various objects including
  40876. floating-point numbers ('.' vs ',' for separating decimal
  40877. fractions). There have been problems reported where the library
  40878. linked with GCC does not produce the same floating-point formats
  40879. that the assembler accepts. If you have this problem, set the
  40880. 'LANG' environment variable to 'C' or 'En_US'.
  40881. * Even if you specify '-fdollars-in-identifiers', you cannot
  40882. successfully use '$' in identifiers on the RS/6000 due to a
  40883. restriction in the IBM assembler. GAS supports these identifiers.
  40884. 
  40885. File: gcc.info, Node: Incompatibilities, Next: Fixed Headers, Prev: Interoperation, Up: Trouble
  40886. 13.3 Incompatibilities of GCC
  40887. =============================
  40888. There are several noteworthy incompatibilities between GNU C and K&R
  40889. (non-ISO) versions of C.
  40890. * GCC normally makes string constants read-only. If several
  40891. identical-looking string constants are used, GCC stores only one
  40892. copy of the string.
  40893. One consequence is that you cannot call 'mktemp' with a string
  40894. constant argument. The function 'mktemp' always alters the string
  40895. its argument points to.
  40896. Another consequence is that 'sscanf' does not work on some very old
  40897. systems when passed a string constant as its format control string
  40898. or input. This is because 'sscanf' incorrectly tries to write into
  40899. the string constant. Likewise 'fscanf' and 'scanf'.
  40900. The solution to these problems is to change the program to use
  40901. 'char'-array variables with initialization strings for these
  40902. purposes instead of string constants.
  40903. * '-2147483648' is positive.
  40904. This is because 2147483648 cannot fit in the type 'int', so
  40905. (following the ISO C rules) its data type is 'unsigned long int'.
  40906. Negating this value yields 2147483648 again.
  40907. * GCC does not substitute macro arguments when they appear inside of
  40908. string constants. For example, the following macro in GCC
  40909. #define foo(a) "a"
  40910. will produce output '"a"' regardless of what the argument A is.
  40911. * When you use 'setjmp' and 'longjmp', the only automatic variables
  40912. guaranteed to remain valid are those declared 'volatile'. This is
  40913. a consequence of automatic register allocation. Consider this
  40914. function:
  40915. jmp_buf j;
  40916. foo ()
  40917. {
  40918. int a, b;
  40919. a = fun1 ();
  40920. if (setjmp (j))
  40921. return a;
  40922. a = fun2 ();
  40923. /* 'longjmp (j)' may occur in 'fun3'. */
  40924. return a + fun3 ();
  40925. }
  40926. Here 'a' may or may not be restored to its first value when the
  40927. 'longjmp' occurs. If 'a' is allocated in a register, then its
  40928. first value is restored; otherwise, it keeps the last value stored
  40929. in it.
  40930. If you use the '-W' option with the '-O' option, you will get a
  40931. warning when GCC thinks such a problem might be possible.
  40932. * Programs that use preprocessing directives in the middle of macro
  40933. arguments do not work with GCC. For example, a program like this
  40934. will not work:
  40935. foobar (
  40936. #define luser
  40937. hack)
  40938. ISO C does not permit such a construct.
  40939. * K&R compilers allow comments to cross over an inclusion boundary
  40940. (i.e. started in an include file and ended in the including file).
  40941. * Declarations of external variables and functions within a block
  40942. apply only to the block containing the declaration. In other
  40943. words, they have the same scope as any other declaration in the
  40944. same place.
  40945. In some other C compilers, an 'extern' declaration affects all the
  40946. rest of the file even if it happens within a block.
  40947. * In traditional C, you can combine 'long', etc., with a typedef
  40948. name, as shown here:
  40949. typedef int foo;
  40950. typedef long foo bar;
  40951. In ISO C, this is not allowed: 'long' and other type modifiers
  40952. require an explicit 'int'.
  40953. * PCC allows typedef names to be used as function parameters.
  40954. * Traditional C allows the following erroneous pair of declarations
  40955. to appear together in a given scope:
  40956. typedef int foo;
  40957. typedef foo foo;
  40958. * GCC treats all characters of identifiers as significant. According
  40959. to K&R-1 (2.2), "No more than the first eight characters are
  40960. significant, although more may be used.". Also according to K&R-1
  40961. (2.2), "An identifier is a sequence of letters and digits; the
  40962. first character must be a letter. The underscore _ counts as a
  40963. letter.", but GCC also allows dollar signs in identifiers.
  40964. * PCC allows whitespace in the middle of compound assignment
  40965. operators such as '+='. GCC, following the ISO standard, does not
  40966. allow this.
  40967. * GCC complains about unterminated character constants inside of
  40968. preprocessing conditionals that fail. Some programs have English
  40969. comments enclosed in conditionals that are guaranteed to fail; if
  40970. these comments contain apostrophes, GCC will probably report an
  40971. error. For example, this code would produce an error:
  40972. #if 0
  40973. You can't expect this to work.
  40974. #endif
  40975. The best solution to such a problem is to put the text into an
  40976. actual C comment delimited by '/*...*/'.
  40977. * Many user programs contain the declaration 'long time ();'. In the
  40978. past, the system header files on many systems did not actually
  40979. declare 'time', so it did not matter what type your program
  40980. declared it to return. But in systems with ISO C headers, 'time'
  40981. is declared to return 'time_t', and if that is not the same as
  40982. 'long', then 'long time ();' is erroneous.
  40983. The solution is to change your program to use appropriate system
  40984. headers ('<time.h>' on systems with ISO C headers) and not to
  40985. declare 'time' if the system header files declare it, or failing
  40986. that to use 'time_t' as the return type of 'time'.
  40987. * When compiling functions that return 'float', PCC converts it to a
  40988. double. GCC actually returns a 'float'. If you are concerned with
  40989. PCC compatibility, you should declare your functions to return
  40990. 'double'; you might as well say what you mean.
  40991. * When compiling functions that return structures or unions, GCC
  40992. output code normally uses a method different from that used on most
  40993. versions of Unix. As a result, code compiled with GCC cannot call
  40994. a structure-returning function compiled with PCC, and vice versa.
  40995. The method used by GCC is as follows: a structure or union which is
  40996. 1, 2, 4 or 8 bytes long is returned like a scalar. A structure or
  40997. union with any other size is stored into an address supplied by the
  40998. caller (usually in a special, fixed register, but on some machines
  40999. it is passed on the stack). The target hook
  41000. 'TARGET_STRUCT_VALUE_RTX' tells GCC where to pass this address.
  41001. By contrast, PCC on most target machines returns structures and
  41002. unions of any size by copying the data into an area of static
  41003. storage, and then returning the address of that storage as if it
  41004. were a pointer value. The caller must copy the data from that
  41005. memory area to the place where the value is wanted. GCC does not
  41006. use this method because it is slower and nonreentrant.
  41007. On some newer machines, PCC uses a reentrant convention for all
  41008. structure and union returning. GCC on most of these machines uses
  41009. a compatible convention when returning structures and unions in
  41010. memory, but still returns small structures and unions in registers.
  41011. You can tell GCC to use a compatible convention for all structure
  41012. and union returning with the option '-fpcc-struct-return'.
  41013. * GCC complains about program fragments such as '0x74ae-0x4000' which
  41014. appear to be two hexadecimal constants separated by the minus
  41015. operator. Actually, this string is a single "preprocessing token".
  41016. Each such token must correspond to one token in C. Since this does
  41017. not, GCC prints an error message. Although it may appear obvious
  41018. that what is meant is an operator and two values, the ISO C
  41019. standard specifically requires that this be treated as erroneous.
  41020. A "preprocessing token" is a "preprocessing number" if it begins
  41021. with a digit and is followed by letters, underscores, digits,
  41022. periods and 'e+', 'e-', 'E+', 'E-', 'p+', 'p-', 'P+', or 'P-'
  41023. character sequences. (In strict C90 mode, the sequences 'p+',
  41024. 'p-', 'P+' and 'P-' cannot appear in preprocessing numbers.)
  41025. To make the above program fragment valid, place whitespace in front
  41026. of the minus sign. This whitespace will end the preprocessing
  41027. number.
  41028. 
  41029. File: gcc.info, Node: Fixed Headers, Next: Standard Libraries, Prev: Incompatibilities, Up: Trouble
  41030. 13.4 Fixed Header Files
  41031. =======================
  41032. GCC needs to install corrected versions of some system header files.
  41033. This is because most target systems have some header files that won't
  41034. work with GCC unless they are changed. Some have bugs, some are
  41035. incompatible with ISO C, and some depend on special features of other
  41036. compilers.
  41037. Installing GCC automatically creates and installs the fixed header
  41038. files, by running a program called 'fixincludes'. Normally, you don't
  41039. need to pay attention to this. But there are cases where it doesn't do
  41040. the right thing automatically.
  41041. * If you update the system's header files, such as by installing a
  41042. new system version, the fixed header files of GCC are not
  41043. automatically updated. They can be updated using the 'mkheaders'
  41044. script installed in 'LIBEXECDIR/gcc/TARGET/VERSION/install-tools/'.
  41045. * On some systems, header file directories contain machine-specific
  41046. symbolic links in certain places. This makes it possible to share
  41047. most of the header files among hosts running the same version of
  41048. the system on different machine models.
  41049. The programs that fix the header files do not understand this
  41050. special way of using symbolic links; therefore, the directory of
  41051. fixed header files is good only for the machine model used to build
  41052. it.
  41053. It is possible to make separate sets of fixed header files for the
  41054. different machine models, and arrange a structure of symbolic links
  41055. so as to use the proper set, but you'll have to do this by hand.
  41056. 
  41057. File: gcc.info, Node: Standard Libraries, Next: Disappointments, Prev: Fixed Headers, Up: Trouble
  41058. 13.5 Standard Libraries
  41059. =======================
  41060. GCC by itself attempts to be a conforming freestanding implementation.
  41061. *Note Language Standards Supported by GCC: Standards, for details of
  41062. what this means. Beyond the library facilities required of such an
  41063. implementation, the rest of the C library is supplied by the vendor of
  41064. the operating system. If that C library doesn't conform to the C
  41065. standards, then your programs might get warnings (especially when using
  41066. '-Wall') that you don't expect.
  41067. For example, the 'sprintf' function on SunOS 4.1.3 returns 'char *'
  41068. while the C standard says that 'sprintf' returns an 'int'. The
  41069. 'fixincludes' program could make the prototype for this function match
  41070. the Standard, but that would be wrong, since the function will still
  41071. return 'char *'.
  41072. If you need a Standard compliant library, then you need to find one, as
  41073. GCC does not provide one. The GNU C library (called 'glibc') provides
  41074. ISO C, POSIX, BSD, SystemV and X/Open compatibility for GNU/Linux and
  41075. HURD-based GNU systems; no recent version of it supports other systems,
  41076. though some very old versions did. Version 2.2 of the GNU C library
  41077. includes nearly complete C99 support. You could also ask your operating
  41078. system vendor if newer libraries are available.
  41079. 
  41080. File: gcc.info, Node: Disappointments, Next: C++ Misunderstandings, Prev: Standard Libraries, Up: Trouble
  41081. 13.6 Disappointments and Misunderstandings
  41082. ==========================================
  41083. These problems are perhaps regrettable, but we don't know any practical
  41084. way around them.
  41085. * Certain local variables aren't recognized by debuggers when you
  41086. compile with optimization.
  41087. This occurs because sometimes GCC optimizes the variable out of
  41088. existence. There is no way to tell the debugger how to compute the
  41089. value such a variable "would have had", and it is not clear that
  41090. would be desirable anyway. So GCC simply does not mention the
  41091. eliminated variable when it writes debugging information.
  41092. You have to expect a certain amount of disagreement between the
  41093. executable and your source code, when you use optimization.
  41094. * Users often think it is a bug when GCC reports an error for code
  41095. like this:
  41096. int foo (struct mumble *);
  41097. struct mumble { ... };
  41098. int foo (struct mumble *x)
  41099. { ... }
  41100. This code really is erroneous, because the scope of 'struct mumble'
  41101. in the prototype is limited to the argument list containing it. It
  41102. does not refer to the 'struct mumble' defined with file scope
  41103. immediately below--they are two unrelated types with similar names
  41104. in different scopes.
  41105. But in the definition of 'foo', the file-scope type is used because
  41106. that is available to be inherited. Thus, the definition and the
  41107. prototype do not match, and you get an error.
  41108. This behavior may seem silly, but it's what the ISO standard
  41109. specifies. It is easy enough for you to make your code work by
  41110. moving the definition of 'struct mumble' above the prototype. It's
  41111. not worth being incompatible with ISO C just to avoid an error for
  41112. the example shown above.
  41113. * Accesses to bit-fields even in volatile objects works by accessing
  41114. larger objects, such as a byte or a word. You cannot rely on what
  41115. size of object is accessed in order to read or write the bit-field;
  41116. it may even vary for a given bit-field according to the precise
  41117. usage.
  41118. If you care about controlling the amount of memory that is
  41119. accessed, use volatile but do not use bit-fields.
  41120. * GCC comes with shell scripts to fix certain known problems in
  41121. system header files. They install corrected copies of various
  41122. header files in a special directory where only GCC will normally
  41123. look for them. The scripts adapt to various systems by searching
  41124. all the system header files for the problem cases that we know
  41125. about.
  41126. If new system header files are installed, nothing automatically
  41127. arranges to update the corrected header files. They can be updated
  41128. using the 'mkheaders' script installed in
  41129. 'LIBEXECDIR/gcc/TARGET/VERSION/install-tools/'.
  41130. * On 68000 and x86 systems, for instance, you can get paradoxical
  41131. results if you test the precise values of floating point numbers.
  41132. For example, you can find that a floating point value which is not
  41133. a NaN is not equal to itself. This results from the fact that the
  41134. floating point registers hold a few more bits of precision than fit
  41135. in a 'double' in memory. Compiled code moves values between memory
  41136. and floating point registers at its convenience, and moving them
  41137. into memory truncates them.
  41138. You can partially avoid this problem by using the '-ffloat-store'
  41139. option (*note Optimize Options::).
  41140. * On AIX and other platforms without weak symbol support, templates
  41141. need to be instantiated explicitly and symbols for static members
  41142. of templates will not be generated.
  41143. * On AIX, GCC scans object files and library archives for static
  41144. constructors and destructors when linking an application before the
  41145. linker prunes unreferenced symbols. This is necessary to prevent
  41146. the AIX linker from mistakenly assuming that static constructor or
  41147. destructor are unused and removing them before the scanning can
  41148. occur. All static constructors and destructors found will be
  41149. referenced even though the modules in which they occur may not be
  41150. used by the program. This may lead to both increased executable
  41151. size and unexpected symbol references.
  41152. 
  41153. File: gcc.info, Node: C++ Misunderstandings, Next: Non-bugs, Prev: Disappointments, Up: Trouble
  41154. 13.7 Common Misunderstandings with GNU C++
  41155. ==========================================
  41156. C++ is a complex language and an evolving one, and its standard
  41157. definition (the ISO C++ standard) was only recently completed. As a
  41158. result, your C++ compiler may occasionally surprise you, even when its
  41159. behavior is correct. This section discusses some areas that frequently
  41160. give rise to questions of this sort.
  41161. * Menu:
  41162. * Static Definitions:: Static member declarations are not definitions
  41163. * Name lookup:: Name lookup, templates, and accessing members of base classes
  41164. * Temporaries:: Temporaries may vanish before you expect
  41165. * Copy Assignment:: Copy Assignment operators copy virtual bases twice
  41166. 
  41167. File: gcc.info, Node: Static Definitions, Next: Name lookup, Up: C++ Misunderstandings
  41168. 13.7.1 Declare _and_ Define Static Members
  41169. ------------------------------------------
  41170. When a class has static data members, it is not enough to _declare_ the
  41171. static member; you must also _define_ it. For example:
  41172. class Foo
  41173. {
  41174. ...
  41175. void method();
  41176. static int bar;
  41177. };
  41178. This declaration only establishes that the class 'Foo' has an 'int'
  41179. named 'Foo::bar', and a member function named 'Foo::method'. But you
  41180. still need to define _both_ 'method' and 'bar' elsewhere. According to
  41181. the ISO standard, you must supply an initializer in one (and only one)
  41182. source file, such as:
  41183. int Foo::bar = 0;
  41184. Other C++ compilers may not correctly implement the standard behavior.
  41185. As a result, when you switch to 'g++' from one of these compilers, you
  41186. may discover that a program that appeared to work correctly in fact does
  41187. not conform to the standard: 'g++' reports as undefined symbols any
  41188. static data members that lack definitions.
  41189. 
  41190. File: gcc.info, Node: Name lookup, Next: Temporaries, Prev: Static Definitions, Up: C++ Misunderstandings
  41191. 13.7.2 Name Lookup, Templates, and Accessing Members of Base Classes
  41192. --------------------------------------------------------------------
  41193. The C++ standard prescribes that all names that are not dependent on
  41194. template parameters are bound to their present definitions when parsing
  41195. a template function or class.(1) Only names that are dependent are
  41196. looked up at the point of instantiation. For example, consider
  41197. void foo(double);
  41198. struct A {
  41199. template <typename T>
  41200. void f () {
  41201. foo (1); // 1
  41202. int i = N; // 2
  41203. T t;
  41204. t.bar(); // 3
  41205. foo (t); // 4
  41206. }
  41207. static const int N;
  41208. };
  41209. Here, the names 'foo' and 'N' appear in a context that does not depend
  41210. on the type of 'T'. The compiler will thus require that they are
  41211. defined in the context of use in the template, not only before the point
  41212. of instantiation, and will here use '::foo(double)' and 'A::N',
  41213. respectively. In particular, it will convert the integer value to a
  41214. 'double' when passing it to '::foo(double)'.
  41215. Conversely, 'bar' and the call to 'foo' in the fourth marked line are
  41216. used in contexts that do depend on the type of 'T', so they are only
  41217. looked up at the point of instantiation, and you can provide
  41218. declarations for them after declaring the template, but before
  41219. instantiating it. In particular, if you instantiate 'A::f<int>', the
  41220. last line will call an overloaded '::foo(int)' if one was provided, even
  41221. if after the declaration of 'struct A'.
  41222. This distinction between lookup of dependent and non-dependent names is
  41223. called two-stage (or dependent) name lookup. G++ implements it since
  41224. version 3.4.
  41225. Two-stage name lookup sometimes leads to situations with behavior
  41226. different from non-template codes. The most common is probably this:
  41227. template <typename T> struct Base {
  41228. int i;
  41229. };
  41230. template <typename T> struct Derived : public Base<T> {
  41231. int get_i() { return i; }
  41232. };
  41233. In 'get_i()', 'i' is not used in a dependent context, so the compiler
  41234. will look for a name declared at the enclosing namespace scope (which is
  41235. the global scope here). It will not look into the base class, since
  41236. that is dependent and you may declare specializations of 'Base' even
  41237. after declaring 'Derived', so the compiler cannot really know what 'i'
  41238. would refer to. If there is no global variable 'i', then you will get
  41239. an error message.
  41240. In order to make it clear that you want the member of the base class,
  41241. you need to defer lookup until instantiation time, at which the base
  41242. class is known. For this, you need to access 'i' in a dependent
  41243. context, by either using 'this->i' (remember that 'this' is of type
  41244. 'Derived<T>*', so is obviously dependent), or using 'Base<T>::i'.
  41245. Alternatively, 'Base<T>::i' might be brought into scope by a
  41246. 'using'-declaration.
  41247. Another, similar example involves calling member functions of a base
  41248. class:
  41249. template <typename T> struct Base {
  41250. int f();
  41251. };
  41252. template <typename T> struct Derived : Base<T> {
  41253. int g() { return f(); };
  41254. };
  41255. Again, the call to 'f()' is not dependent on template arguments (there
  41256. are no arguments that depend on the type 'T', and it is also not
  41257. otherwise specified that the call should be in a dependent context).
  41258. Thus a global declaration of such a function must be available, since
  41259. the one in the base class is not visible until instantiation time. The
  41260. compiler will consequently produce the following error message:
  41261. x.cc: In member function `int Derived<T>::g()':
  41262. x.cc:6: error: there are no arguments to `f' that depend on a template
  41263. parameter, so a declaration of `f' must be available
  41264. x.cc:6: error: (if you use `-fpermissive', G++ will accept your code, but
  41265. allowing the use of an undeclared name is deprecated)
  41266. To make the code valid either use 'this->f()', or 'Base<T>::f()'.
  41267. Using the '-fpermissive' flag will also let the compiler accept the
  41268. code, by marking all function calls for which no declaration is visible
  41269. at the time of definition of the template for later lookup at
  41270. instantiation time, as if it were a dependent call. We do not recommend
  41271. using '-fpermissive' to work around invalid code, and it will also only
  41272. catch cases where functions in base classes are called, not where
  41273. variables in base classes are used (as in the example above).
  41274. Note that some compilers (including G++ versions prior to 3.4) get
  41275. these examples wrong and accept above code without an error. Those
  41276. compilers do not implement two-stage name lookup correctly.
  41277. ---------- Footnotes ----------
  41278. (1) The C++ standard just uses the term "dependent" for names that
  41279. depend on the type or value of template parameters. This shorter term
  41280. will also be used in the rest of this section.
  41281. 
  41282. File: gcc.info, Node: Temporaries, Next: Copy Assignment, Prev: Name lookup, Up: C++ Misunderstandings
  41283. 13.7.3 Temporaries May Vanish Before You Expect
  41284. -----------------------------------------------
  41285. It is dangerous to use pointers or references to _portions_ of a
  41286. temporary object. The compiler may very well delete the object before
  41287. you expect it to, leaving a pointer to garbage. The most common place
  41288. where this problem crops up is in classes like string classes,
  41289. especially ones that define a conversion function to type 'char *' or
  41290. 'const char *'--which is one reason why the standard 'string' class
  41291. requires you to call the 'c_str' member function. However, any class
  41292. that returns a pointer to some internal structure is potentially subject
  41293. to this problem.
  41294. For example, a program may use a function 'strfunc' that returns
  41295. 'string' objects, and another function 'charfunc' that operates on
  41296. pointers to 'char':
  41297. string strfunc ();
  41298. void charfunc (const char *);
  41299. void
  41300. f ()
  41301. {
  41302. const char *p = strfunc().c_str();
  41303. ...
  41304. charfunc (p);
  41305. ...
  41306. charfunc (p);
  41307. }
  41308. In this situation, it may seem reasonable to save a pointer to the C
  41309. string returned by the 'c_str' member function and use that rather than
  41310. call 'c_str' repeatedly. However, the temporary string created by the
  41311. call to 'strfunc' is destroyed after 'p' is initialized, at which point
  41312. 'p' is left pointing to freed memory.
  41313. Code like this may run successfully under some other compilers,
  41314. particularly obsolete cfront-based compilers that delete temporaries
  41315. along with normal local variables. However, the GNU C++ behavior is
  41316. standard-conforming, so if your program depends on late destruction of
  41317. temporaries it is not portable.
  41318. The safe way to write such code is to give the temporary a name, which
  41319. forces it to remain until the end of the scope of the name. For
  41320. example:
  41321. const string& tmp = strfunc ();
  41322. charfunc (tmp.c_str ());
  41323. 
  41324. File: gcc.info, Node: Copy Assignment, Prev: Temporaries, Up: C++ Misunderstandings
  41325. 13.7.4 Implicit Copy-Assignment for Virtual Bases
  41326. -------------------------------------------------
  41327. When a base class is virtual, only one subobject of the base class
  41328. belongs to each full object. Also, the constructors and destructors are
  41329. invoked only once, and called from the most-derived class. However,
  41330. such objects behave unspecified when being assigned. For example:
  41331. struct Base{
  41332. char *name;
  41333. Base(char *n) : name(strdup(n)){}
  41334. Base& operator= (const Base& other){
  41335. free (name);
  41336. name = strdup (other.name);
  41337. }
  41338. };
  41339. struct A:virtual Base{
  41340. int val;
  41341. A():Base("A"){}
  41342. };
  41343. struct B:virtual Base{
  41344. int bval;
  41345. B():Base("B"){}
  41346. };
  41347. struct Derived:public A, public B{
  41348. Derived():Base("Derived"){}
  41349. };
  41350. void func(Derived &d1, Derived &d2)
  41351. {
  41352. d1 = d2;
  41353. }
  41354. The C++ standard specifies that 'Base::Base' is only called once when
  41355. constructing or copy-constructing a Derived object. It is unspecified
  41356. whether 'Base::operator=' is called more than once when the implicit
  41357. copy-assignment for Derived objects is invoked (as it is inside 'func'
  41358. in the example).
  41359. G++ implements the "intuitive" algorithm for copy-assignment: assign
  41360. all direct bases, then assign all members. In that algorithm, the
  41361. virtual base subobject can be encountered more than once. In the
  41362. example, copying proceeds in the following order: 'val', 'name' (via
  41363. 'strdup'), 'bval', and 'name' again.
  41364. If application code relies on copy-assignment, a user-defined
  41365. copy-assignment operator removes any uncertainties. With such an
  41366. operator, the application can define whether and how the virtual base
  41367. subobject is assigned.
  41368. 
  41369. File: gcc.info, Node: Non-bugs, Next: Warnings and Errors, Prev: C++ Misunderstandings, Up: Trouble
  41370. 13.8 Certain Changes We Don't Want to Make
  41371. ==========================================
  41372. This section lists changes that people frequently request, but which we
  41373. do not make because we think GCC is better without them.
  41374. * Checking the number and type of arguments to a function which has
  41375. an old-fashioned definition and no prototype.
  41376. Such a feature would work only occasionally--only for calls that
  41377. appear in the same file as the called function, following the
  41378. definition. The only way to check all calls reliably is to add a
  41379. prototype for the function. But adding a prototype eliminates the
  41380. motivation for this feature. So the feature is not worthwhile.
  41381. * Warning about using an expression whose type is signed as a shift
  41382. count.
  41383. Shift count operands are probably signed more often than unsigned.
  41384. Warning about this would cause far more annoyance than good.
  41385. * Warning about assigning a signed value to an unsigned variable.
  41386. Such assignments must be very common; warning about them would
  41387. cause more annoyance than good.
  41388. * Warning when a non-void function value is ignored.
  41389. C contains many standard functions that return a value that most
  41390. programs choose to ignore. One obvious example is 'printf'.
  41391. Warning about this practice only leads the defensive programmer to
  41392. clutter programs with dozens of casts to 'void'. Such casts are
  41393. required so frequently that they become visual noise. Writing
  41394. those casts becomes so automatic that they no longer convey useful
  41395. information about the intentions of the programmer. For functions
  41396. where the return value should never be ignored, use the
  41397. 'warn_unused_result' function attribute (*note Function
  41398. Attributes::).
  41399. * Making '-fshort-enums' the default.
  41400. This would cause storage layout to be incompatible with most other
  41401. C compilers. And it doesn't seem very important, given that you
  41402. can get the same result in other ways. The case where it matters
  41403. most is when the enumeration-valued object is inside a structure,
  41404. and in that case you can specify a field width explicitly.
  41405. * Making bit-fields unsigned by default on particular machines where
  41406. "the ABI standard" says to do so.
  41407. The ISO C standard leaves it up to the implementation whether a
  41408. bit-field declared plain 'int' is signed or not. This in effect
  41409. creates two alternative dialects of C.
  41410. The GNU C compiler supports both dialects; you can specify the
  41411. signed dialect with '-fsigned-bitfields' and the unsigned dialect
  41412. with '-funsigned-bitfields'. However, this leaves open the
  41413. question of which dialect to use by default.
  41414. Currently, the preferred dialect makes plain bit-fields signed,
  41415. because this is simplest. Since 'int' is the same as 'signed int'
  41416. in every other context, it is cleanest for them to be the same in
  41417. bit-fields as well.
  41418. Some computer manufacturers have published Application Binary
  41419. Interface standards which specify that plain bit-fields should be
  41420. unsigned. It is a mistake, however, to say anything about this
  41421. issue in an ABI. This is because the handling of plain bit-fields
  41422. distinguishes two dialects of C. Both dialects are meaningful on
  41423. every type of machine. Whether a particular object file was
  41424. compiled using signed bit-fields or unsigned is of no concern to
  41425. other object files, even if they access the same bit-fields in the
  41426. same data structures.
  41427. A given program is written in one or the other of these two
  41428. dialects. The program stands a chance to work on most any machine
  41429. if it is compiled with the proper dialect. It is unlikely to work
  41430. at all if compiled with the wrong dialect.
  41431. Many users appreciate the GNU C compiler because it provides an
  41432. environment that is uniform across machines. These users would be
  41433. inconvenienced if the compiler treated plain bit-fields differently
  41434. on certain machines.
  41435. Occasionally users write programs intended only for a particular
  41436. machine type. On these occasions, the users would benefit if the
  41437. GNU C compiler were to support by default the same dialect as the
  41438. other compilers on that machine. But such applications are rare.
  41439. And users writing a program to run on more than one type of machine
  41440. cannot possibly benefit from this kind of compatibility.
  41441. This is why GCC does and will treat plain bit-fields in the same
  41442. fashion on all types of machines (by default).
  41443. There are some arguments for making bit-fields unsigned by default
  41444. on all machines. If, for example, this becomes a universal de
  41445. facto standard, it would make sense for GCC to go along with it.
  41446. This is something to be considered in the future.
  41447. (Of course, users strongly concerned about portability should
  41448. indicate explicitly in each bit-field whether it is signed or not.
  41449. In this way, they write programs which have the same meaning in
  41450. both C dialects.)
  41451. * Undefining '__STDC__' when '-ansi' is not used.
  41452. Currently, GCC defines '__STDC__' unconditionally. This provides
  41453. good results in practice.
  41454. Programmers normally use conditionals on '__STDC__' to ask whether
  41455. it is safe to use certain features of ISO C, such as function
  41456. prototypes or ISO token concatenation. Since plain 'gcc' supports
  41457. all the features of ISO C, the correct answer to these questions is
  41458. "yes".
  41459. Some users try to use '__STDC__' to check for the availability of
  41460. certain library facilities. This is actually incorrect usage in an
  41461. ISO C program, because the ISO C standard says that a conforming
  41462. freestanding implementation should define '__STDC__' even though it
  41463. does not have the library facilities. 'gcc -ansi -pedantic' is a
  41464. conforming freestanding implementation, and it is therefore
  41465. required to define '__STDC__', even though it does not come with an
  41466. ISO C library.
  41467. Sometimes people say that defining '__STDC__' in a compiler that
  41468. does not completely conform to the ISO C standard somehow violates
  41469. the standard. This is illogical. The standard is a standard for
  41470. compilers that claim to support ISO C, such as 'gcc -ansi'--not for
  41471. other compilers such as plain 'gcc'. Whatever the ISO C standard
  41472. says is relevant to the design of plain 'gcc' without '-ansi' only
  41473. for pragmatic reasons, not as a requirement.
  41474. GCC normally defines '__STDC__' to be 1, and in addition defines
  41475. '__STRICT_ANSI__' if you specify the '-ansi' option, or a '-std'
  41476. option for strict conformance to some version of ISO C. On some
  41477. hosts, system include files use a different convention, where
  41478. '__STDC__' is normally 0, but is 1 if the user specifies strict
  41479. conformance to the C Standard. GCC follows the host convention
  41480. when processing system include files, but when processing user
  41481. files it follows the usual GNU C convention.
  41482. * Undefining '__STDC__' in C++.
  41483. Programs written to compile with C++-to-C translators get the value
  41484. of '__STDC__' that goes with the C compiler that is subsequently
  41485. used. These programs must test '__STDC__' to determine what kind
  41486. of C preprocessor that compiler uses: whether they should
  41487. concatenate tokens in the ISO C fashion or in the traditional
  41488. fashion.
  41489. These programs work properly with GNU C++ if '__STDC__' is defined.
  41490. They would not work otherwise.
  41491. In addition, many header files are written to provide prototypes in
  41492. ISO C but not in traditional C. Many of these header files can
  41493. work without change in C++ provided '__STDC__' is defined. If
  41494. '__STDC__' is not defined, they will all fail, and will all need to
  41495. be changed to test explicitly for C++ as well.
  41496. * Deleting "empty" loops.
  41497. Historically, GCC has not deleted "empty" loops under the
  41498. assumption that the most likely reason you would put one in a
  41499. program is to have a delay, so deleting them will not make real
  41500. programs run any faster.
  41501. However, the rationale here is that optimization of a nonempty loop
  41502. cannot produce an empty one. This held for carefully written C
  41503. compiled with less powerful optimizers but is not always the case
  41504. for carefully written C++ or with more powerful optimizers. Thus
  41505. GCC will remove operations from loops whenever it can determine
  41506. those operations are not externally visible (apart from the time
  41507. taken to execute them, of course). In case the loop can be proved
  41508. to be finite, GCC will also remove the loop itself.
  41509. Be aware of this when performing timing tests, for instance the
  41510. following loop can be completely removed, provided
  41511. 'some_expression' can provably not change any global state.
  41512. {
  41513. int sum = 0;
  41514. int ix;
  41515. for (ix = 0; ix != 10000; ix++)
  41516. sum += some_expression;
  41517. }
  41518. Even though 'sum' is accumulated in the loop, no use is made of
  41519. that summation, so the accumulation can be removed.
  41520. * Making side effects happen in the same order as in some other
  41521. compiler.
  41522. It is never safe to depend on the order of evaluation of side
  41523. effects. For example, a function call like this may very well
  41524. behave differently from one compiler to another:
  41525. void func (int, int);
  41526. int i = 2;
  41527. func (i++, i++);
  41528. There is no guarantee (in either the C or the C++ standard language
  41529. definitions) that the increments will be evaluated in any
  41530. particular order. Either increment might happen first. 'func'
  41531. might get the arguments '2, 3', or it might get '3, 2', or even '2,
  41532. 2'.
  41533. * Making certain warnings into errors by default.
  41534. Some ISO C testsuites report failure when the compiler does not
  41535. produce an error message for a certain program.
  41536. ISO C requires a "diagnostic" message for certain kinds of invalid
  41537. programs, but a warning is defined by GCC to count as a diagnostic.
  41538. If GCC produces a warning but not an error, that is correct ISO C
  41539. support. If testsuites call this "failure", they should be run
  41540. with the GCC option '-pedantic-errors', which will turn these
  41541. warnings into errors.
  41542. 
  41543. File: gcc.info, Node: Warnings and Errors, Prev: Non-bugs, Up: Trouble
  41544. 13.9 Warning Messages and Error Messages
  41545. ========================================
  41546. The GNU compiler can produce two kinds of diagnostics: errors and
  41547. warnings. Each kind has a different purpose:
  41548. "Errors" report problems that make it impossible to compile your
  41549. program. GCC reports errors with the source file name and line
  41550. number where the problem is apparent.
  41551. "Warnings" report other unusual conditions in your code that _may_
  41552. indicate a problem, although compilation can (and does) proceed.
  41553. Warning messages also report the source file name and line number,
  41554. but include the text 'warning:' to distinguish them from error
  41555. messages.
  41556. Warnings may indicate danger points where you should check to make sure
  41557. that your program really does what you intend; or the use of obsolete
  41558. features; or the use of nonstandard features of GNU C or C++. Many
  41559. warnings are issued only if you ask for them, with one of the '-W'
  41560. options (for instance, '-Wall' requests a variety of useful warnings).
  41561. GCC always tries to compile your program if possible; it never
  41562. gratuitously rejects a program whose meaning is clear merely because
  41563. (for instance) it fails to conform to a standard. In some cases,
  41564. however, the C and C++ standards specify that certain extensions are
  41565. forbidden, and a diagnostic _must_ be issued by a conforming compiler.
  41566. The '-pedantic' option tells GCC to issue warnings in such cases;
  41567. '-pedantic-errors' says to make them errors instead. This does not mean
  41568. that _all_ non-ISO constructs get warnings or errors.
  41569. *Note Options to Request or Suppress Warnings: Warning Options, for
  41570. more detail on these and related command-line options.
  41571. 
  41572. File: gcc.info, Node: Bugs, Next: Service, Prev: Trouble, Up: Top
  41573. 14 Reporting Bugs
  41574. *****************
  41575. Your bug reports play an essential role in making GCC reliable.
  41576. When you encounter a problem, the first thing to do is to see if it is
  41577. already known. *Note Trouble::. If it isn't known, then you should
  41578. report the problem.
  41579. * Menu:
  41580. * Criteria: Bug Criteria. Have you really found a bug?
  41581. * Reporting: Bug Reporting. How to report a bug effectively.
  41582. 
  41583. File: gcc.info, Node: Bug Criteria, Next: Bug Reporting, Up: Bugs
  41584. 14.1 Have You Found a Bug?
  41585. ==========================
  41586. If you are not sure whether you have found a bug, here are some
  41587. guidelines:
  41588. * If the compiler gets a fatal signal, for any input whatever, that
  41589. is a compiler bug. Reliable compilers never crash.
  41590. * If the compiler produces invalid assembly code, for any input
  41591. whatever (except an 'asm' statement), that is a compiler bug,
  41592. unless the compiler reports errors (not just warnings) which would
  41593. ordinarily prevent the assembler from being run.
  41594. * If the compiler produces valid assembly code that does not
  41595. correctly execute the input source code, that is a compiler bug.
  41596. However, you must double-check to make sure, because you may have a
  41597. program whose behavior is undefined, which happened by chance to
  41598. give the desired results with another C or C++ compiler.
  41599. For example, in many nonoptimizing compilers, you can write 'x;' at
  41600. the end of a function instead of 'return x;', with the same
  41601. results. But the value of the function is undefined if 'return' is
  41602. omitted; it is not a bug when GCC produces different results.
  41603. Problems often result from expressions with two increment
  41604. operators, as in 'f (*p++, *p++)'. Your previous compiler might
  41605. have interpreted that expression the way you intended; GCC might
  41606. interpret it another way. Neither compiler is wrong. The bug is
  41607. in your code.
  41608. After you have localized the error to a single source line, it
  41609. should be easy to check for these things. If your program is
  41610. correct and well defined, you have found a compiler bug.
  41611. * If the compiler produces an error message for valid input, that is
  41612. a compiler bug.
  41613. * If the compiler does not produce an error message for invalid
  41614. input, that is a compiler bug. However, you should note that your
  41615. idea of "invalid input" might be someone else's idea of "an
  41616. extension" or "support for traditional practice".
  41617. * If you are an experienced user of one of the languages GCC
  41618. supports, your suggestions for improvement of GCC are welcome in
  41619. any case.
  41620. 
  41621. File: gcc.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Bugs
  41622. 14.2 How and Where to Report Bugs
  41623. =================================
  41624. Bugs should be reported to the bug database at
  41625. <https://gcc.gnu.org/bugs/>.
  41626. 
  41627. File: gcc.info, Node: Service, Next: Contributing, Prev: Bugs, Up: Top
  41628. 15 How To Get Help with GCC
  41629. ***************************
  41630. If you need help installing, using or changing GCC, there are two ways
  41631. to find it:
  41632. * Send a message to a suitable network mailing list. First try
  41633. <gcc-help@gcc.gnu.org> (for help installing or using GCC), and if
  41634. that brings no response, try <gcc@gcc.gnu.org>. For help changing
  41635. GCC, ask <gcc@gcc.gnu.org>. If you think you have found a bug in
  41636. GCC, please report it following the instructions at *note Bug
  41637. Reporting::.
  41638. * Look in the service directory for someone who might help you for a
  41639. fee. The service directory is found at
  41640. <http://www.fsf.org/resources/service>.
  41641. For further information, see <http://gcc.gnu.org/faq.html#support>.
  41642. 
  41643. File: gcc.info, Node: Contributing, Next: Funding, Prev: Service, Up: Top
  41644. 16 Contributing to GCC Development
  41645. **********************************
  41646. If you would like to help pretest GCC releases to assure they work well,
  41647. current development sources are available by SVN (see
  41648. <http://gcc.gnu.org/svn.html>). Source and binary snapshots are also
  41649. available for FTP; see <http://gcc.gnu.org/snapshots.html>.
  41650. If you would like to work on improvements to GCC, please read the
  41651. advice at these URLs:
  41652. <http://gcc.gnu.org/contribute.html>
  41653. <http://gcc.gnu.org/contributewhy.html>
  41654. for information on how to make useful contributions and avoid
  41655. duplication of effort. Suggested projects are listed at
  41656. <http://gcc.gnu.org/projects/>.
  41657. 
  41658. File: gcc.info, Node: Funding, Next: GNU Project, Prev: Contributing, Up: Top
  41659. Funding Free Software
  41660. *********************
  41661. If you want to have more free software a few years from now, it makes
  41662. sense for you to help encourage people to contribute funds for its
  41663. development. The most effective approach known is to encourage
  41664. commercial redistributors to donate.
  41665. Users of free software systems can boost the pace of development by
  41666. encouraging for-a-fee distributors to donate part of their selling price
  41667. to free software developers--the Free Software Foundation, and others.
  41668. The way to convince distributors to do this is to demand it and expect
  41669. it from them. So when you compare distributors, judge them partly by
  41670. how much they give to free software development. Show distributors they
  41671. must compete to be the one who gives the most.
  41672. To make this approach work, you must insist on numbers that you can
  41673. compare, such as, "We will donate ten dollars to the Frobnitz project
  41674. for each disk sold." Don't be satisfied with a vague promise, such as
  41675. "A portion of the profits are donated," since it doesn't give a basis
  41676. for comparison.
  41677. Even a precise fraction "of the profits from this disk" is not very
  41678. meaningful, since creative accounting and unrelated business decisions
  41679. can greatly alter what fraction of the sales price counts as profit. If
  41680. the price you pay is $50, ten percent of the profit is probably less
  41681. than a dollar; it might be a few cents, or nothing at all.
  41682. Some redistributors do development work themselves. This is useful
  41683. too; but to keep everyone honest, you need to inquire how much they do,
  41684. and what kind. Some kinds of development make much more long-term
  41685. difference than others. For example, maintaining a separate version of
  41686. a program contributes very little; maintaining the standard version of a
  41687. program for the whole community contributes much. Easy new ports
  41688. contribute little, since someone else would surely do them; difficult
  41689. ports such as adding a new CPU to the GNU Compiler Collection contribute
  41690. more; major new features or packages contribute the most.
  41691. By establishing the idea that supporting further development is "the
  41692. proper thing to do" when distributing free software for a fee, we can
  41693. assure a steady flow of resources into making more free software.
  41694. Copyright (C) 1994 Free Software Foundation, Inc.
  41695. Verbatim copying and redistribution of this section is permitted
  41696. without royalty; alteration is not permitted.
  41697. 
  41698. File: gcc.info, Node: GNU Project, Next: Copying, Prev: Funding, Up: Top
  41699. The GNU Project and GNU/Linux
  41700. *****************************
  41701. The GNU Project was launched in 1984 to develop a complete Unix-like
  41702. operating system which is free software: the GNU system. (GNU is a
  41703. recursive acronym for "GNU's Not Unix"; it is pronounced "guh-NEW".)
  41704. Variants of the GNU operating system, which use the kernel Linux, are
  41705. now widely used; though these systems are often referred to as "Linux",
  41706. they are more accurately called GNU/Linux systems.
  41707. For more information, see:
  41708. <http://www.gnu.org/>
  41709. <http://www.gnu.org/gnu/linux-and-gnu.html>
  41710. 
  41711. File: gcc.info, Node: Copying, Next: GNU Free Documentation License, Prev: GNU Project, Up: Top
  41712. GNU General Public License
  41713. **************************
  41714. Version 3, 29 June 2007
  41715. Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
  41716. Everyone is permitted to copy and distribute verbatim copies of this
  41717. license document, but changing it is not allowed.
  41718. Preamble
  41719. ========
  41720. The GNU General Public License is a free, copyleft license for software
  41721. and other kinds of works.
  41722. The licenses for most software and other practical works are designed
  41723. to take away your freedom to share and change the works. By contrast,
  41724. the GNU General Public License is intended to guarantee your freedom to
  41725. share and change all versions of a program-to make sure it remains free
  41726. software for all its users. We, the Free Software Foundation, use the
  41727. GNU General Public License for most of our software; it applies also to
  41728. any other work released this way by its authors. You can apply it to
  41729. your programs, too.
  41730. When we speak of free software, we are referring to freedom, not price.
  41731. Our General Public Licenses are designed to make sure that you have the
  41732. freedom to distribute copies of free software (and charge for them if
  41733. you wish), that you receive source code or can get it if you want it,
  41734. that you can change the software or use pieces of it in new free
  41735. programs, and that you know you can do these things.
  41736. To protect your rights, we need to prevent others from denying you
  41737. these rights or asking you to surrender the rights. Therefore, you have
  41738. certain responsibilities if you distribute copies of the software, or if
  41739. you modify it: responsibilities to respect the freedom of others.
  41740. For example, if you distribute copies of such a program, whether gratis
  41741. or for a fee, you must pass on to the recipients the same freedoms that
  41742. you received. You must make sure that they, too, receive or can get the
  41743. source code. And you must show them these terms so they know their
  41744. rights.
  41745. Developers that use the GNU GPL protect your rights with two steps: (1)
  41746. assert copyright on the software, and (2) offer you this License giving
  41747. you legal permission to copy, distribute and/or modify it.
  41748. For the developers' and authors' protection, the GPL clearly explains
  41749. that there is no warranty for this free software. For both users' and
  41750. authors' sake, the GPL requires that modified versions be marked as
  41751. changed, so that their problems will not be attributed erroneously to
  41752. authors of previous versions.
  41753. Some devices are designed to deny users access to install or run
  41754. modified versions of the software inside them, although the manufacturer
  41755. can do so. This is fundamentally incompatible with the aim of
  41756. protecting users' freedom to change the software. The systematic
  41757. pattern of such abuse occurs in the area of products for individuals to
  41758. use, which is precisely where it is most unacceptable. Therefore, we
  41759. have designed this version of the GPL to prohibit the practice for those
  41760. products. If such problems arise substantially in other domains, we
  41761. stand ready to extend this provision to those domains in future versions
  41762. of the GPL, as needed to protect the freedom of users.
  41763. Finally, every program is threatened constantly by software patents.
  41764. States should not allow patents to restrict development and use of
  41765. software on general-purpose computers, but in those that do, we wish to
  41766. avoid the special danger that patents applied to a free program could
  41767. make it effectively proprietary. To prevent this, the GPL assures that
  41768. patents cannot be used to render the program non-free.
  41769. The precise terms and conditions for copying, distribution and
  41770. modification follow.
  41771. TERMS AND CONDITIONS
  41772. ====================
  41773. 0. Definitions.
  41774. "This License" refers to version 3 of the GNU General Public
  41775. License.
  41776. "Copyright" also means copyright-like laws that apply to other
  41777. kinds of works, such as semiconductor masks.
  41778. "The Program" refers to any copyrightable work licensed under this
  41779. License. Each licensee is addressed as "you". "Licensees" and
  41780. "recipients" may be individuals or organizations.
  41781. To "modify" a work means to copy from or adapt all or part of the
  41782. work in a fashion requiring copyright permission, other than the
  41783. making of an exact copy. The resulting work is called a "modified
  41784. version" of the earlier work or a work "based on" the earlier work.
  41785. A "covered work" means either the unmodified Program or a work
  41786. based on the Program.
  41787. To "propagate" a work means to do anything with it that, without
  41788. permission, would make you directly or secondarily liable for
  41789. infringement under applicable copyright law, except executing it on
  41790. a computer or modifying a private copy. Propagation includes
  41791. copying, distribution (with or without modification), making
  41792. available to the public, and in some countries other activities as
  41793. well.
  41794. To "convey" a work means any kind of propagation that enables other
  41795. parties to make or receive copies. Mere interaction with a user
  41796. through a computer network, with no transfer of a copy, is not
  41797. conveying.
  41798. An interactive user interface displays "Appropriate Legal Notices"
  41799. to the extent that it includes a convenient and prominently visible
  41800. feature that (1) displays an appropriate copyright notice, and (2)
  41801. tells the user that there is no warranty for the work (except to
  41802. the extent that warranties are provided), that licensees may convey
  41803. the work under this License, and how to view a copy of this
  41804. License. If the interface presents a list of user commands or
  41805. options, such as a menu, a prominent item in the list meets this
  41806. criterion.
  41807. 1. Source Code.
  41808. The "source code" for a work means the preferred form of the work
  41809. for making modifications to it. "Object code" means any non-source
  41810. form of a work.
  41811. A "Standard Interface" means an interface that either is an
  41812. official standard defined by a recognized standards body, or, in
  41813. the case of interfaces specified for a particular programming
  41814. language, one that is widely used among developers working in that
  41815. language.
  41816. The "System Libraries" of an executable work include anything,
  41817. other than the work as a whole, that (a) is included in the normal
  41818. form of packaging a Major Component, but which is not part of that
  41819. Major Component, and (b) serves only to enable use of the work with
  41820. that Major Component, or to implement a Standard Interface for
  41821. which an implementation is available to the public in source code
  41822. form. A "Major Component", in this context, means a major
  41823. essential component (kernel, window system, and so on) of the
  41824. specific operating system (if any) on which the executable work
  41825. runs, or a compiler used to produce the work, or an object code
  41826. interpreter used to run it.
  41827. The "Corresponding Source" for a work in object code form means all
  41828. the source code needed to generate, install, and (for an executable
  41829. work) run the object code and to modify the work, including scripts
  41830. to control those activities. However, it does not include the
  41831. work's System Libraries, or general-purpose tools or generally
  41832. available free programs which are used unmodified in performing
  41833. those activities but which are not part of the work. For example,
  41834. Corresponding Source includes interface definition files associated
  41835. with source files for the work, and the source code for shared
  41836. libraries and dynamically linked subprograms that the work is
  41837. specifically designed to require, such as by intimate data
  41838. communication or control flow between those subprograms and other
  41839. parts of the work.
  41840. The Corresponding Source need not include anything that users can
  41841. regenerate automatically from other parts of the Corresponding
  41842. Source.
  41843. The Corresponding Source for a work in source code form is that
  41844. same work.
  41845. 2. Basic Permissions.
  41846. All rights granted under this License are granted for the term of
  41847. copyright on the Program, and are irrevocable provided the stated
  41848. conditions are met. This License explicitly affirms your unlimited
  41849. permission to run the unmodified Program. The output from running
  41850. a covered work is covered by this License only if the output, given
  41851. its content, constitutes a covered work. This License acknowledges
  41852. your rights of fair use or other equivalent, as provided by
  41853. copyright law.
  41854. You may make, run and propagate covered works that you do not
  41855. convey, without conditions so long as your license otherwise
  41856. remains in force. You may convey covered works to others for the
  41857. sole purpose of having them make modifications exclusively for you,
  41858. or provide you with facilities for running those works, provided
  41859. that you comply with the terms of this License in conveying all
  41860. material for which you do not control copyright. Those thus making
  41861. or running the covered works for you must do so exclusively on your
  41862. behalf, under your direction and control, on terms that prohibit
  41863. them from making any copies of your copyrighted material outside
  41864. their relationship with you.
  41865. Conveying under any other circumstances is permitted solely under
  41866. the conditions stated below. Sublicensing is not allowed; section
  41867. 10 makes it unnecessary.
  41868. 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
  41869. No covered work shall be deemed part of an effective technological
  41870. measure under any applicable law fulfilling obligations under
  41871. article 11 of the WIPO copyright treaty adopted on 20 December
  41872. 1996, or similar laws prohibiting or restricting circumvention of
  41873. such measures.
  41874. When you convey a covered work, you waive any legal power to forbid
  41875. circumvention of technological measures to the extent such
  41876. circumvention is effected by exercising rights under this License
  41877. with respect to the covered work, and you disclaim any intention to
  41878. limit operation or modification of the work as a means of
  41879. enforcing, against the work's users, your or third parties' legal
  41880. rights to forbid circumvention of technological measures.
  41881. 4. Conveying Verbatim Copies.
  41882. You may convey verbatim copies of the Program's source code as you
  41883. receive it, in any medium, provided that you conspicuously and
  41884. appropriately publish on each copy an appropriate copyright notice;
  41885. keep intact all notices stating that this License and any
  41886. non-permissive terms added in accord with section 7 apply to the
  41887. code; keep intact all notices of the absence of any warranty; and
  41888. give all recipients a copy of this License along with the Program.
  41889. You may charge any price or no price for each copy that you convey,
  41890. and you may offer support or warranty protection for a fee.
  41891. 5. Conveying Modified Source Versions.
  41892. You may convey a work based on the Program, or the modifications to
  41893. produce it from the Program, in the form of source code under the
  41894. terms of section 4, provided that you also meet all of these
  41895. conditions:
  41896. a. The work must carry prominent notices stating that you
  41897. modified it, and giving a relevant date.
  41898. b. The work must carry prominent notices stating that it is
  41899. released under this License and any conditions added under
  41900. section 7. This requirement modifies the requirement in
  41901. section 4 to "keep intact all notices".
  41902. c. You must license the entire work, as a whole, under this
  41903. License to anyone who comes into possession of a copy. This
  41904. License will therefore apply, along with any applicable
  41905. section 7 additional terms, to the whole of the work, and all
  41906. its parts, regardless of how they are packaged. This License
  41907. gives no permission to license the work in any other way, but
  41908. it does not invalidate such permission if you have separately
  41909. received it.
  41910. d. If the work has interactive user interfaces, each must display
  41911. Appropriate Legal Notices; however, if the Program has
  41912. interactive interfaces that do not display Appropriate Legal
  41913. Notices, your work need not make them do so.
  41914. A compilation of a covered work with other separate and independent
  41915. works, which are not by their nature extensions of the covered
  41916. work, and which are not combined with it such as to form a larger
  41917. program, in or on a volume of a storage or distribution medium, is
  41918. called an "aggregate" if the compilation and its resulting
  41919. copyright are not used to limit the access or legal rights of the
  41920. compilation's users beyond what the individual works permit.
  41921. Inclusion of a covered work in an aggregate does not cause this
  41922. License to apply to the other parts of the aggregate.
  41923. 6. Conveying Non-Source Forms.
  41924. You may convey a covered work in object code form under the terms
  41925. of sections 4 and 5, provided that you also convey the
  41926. machine-readable Corresponding Source under the terms of this
  41927. License, in one of these ways:
  41928. a. Convey the object code in, or embodied in, a physical product
  41929. (including a physical distribution medium), accompanied by the
  41930. Corresponding Source fixed on a durable physical medium
  41931. customarily used for software interchange.
  41932. b. Convey the object code in, or embodied in, a physical product
  41933. (including a physical distribution medium), accompanied by a
  41934. written offer, valid for at least three years and valid for as
  41935. long as you offer spare parts or customer support for that
  41936. product model, to give anyone who possesses the object code
  41937. either (1) a copy of the Corresponding Source for all the
  41938. software in the product that is covered by this License, on a
  41939. durable physical medium customarily used for software
  41940. interchange, for a price no more than your reasonable cost of
  41941. physically performing this conveying of source, or (2) access
  41942. to copy the Corresponding Source from a network server at no
  41943. charge.
  41944. c. Convey individual copies of the object code with a copy of the
  41945. written offer to provide the Corresponding Source. This
  41946. alternative is allowed only occasionally and noncommercially,
  41947. and only if you received the object code with such an offer,
  41948. in accord with subsection 6b.
  41949. d. Convey the object code by offering access from a designated
  41950. place (gratis or for a charge), and offer equivalent access to
  41951. the Corresponding Source in the same way through the same
  41952. place at no further charge. You need not require recipients
  41953. to copy the Corresponding Source along with the object code.
  41954. If the place to copy the object code is a network server, the
  41955. Corresponding Source may be on a different server (operated by
  41956. you or a third party) that supports equivalent copying
  41957. facilities, provided you maintain clear directions next to the
  41958. object code saying where to find the Corresponding Source.
  41959. Regardless of what server hosts the Corresponding Source, you
  41960. remain obligated to ensure that it is available for as long as
  41961. needed to satisfy these requirements.
  41962. e. Convey the object code using peer-to-peer transmission,
  41963. provided you inform other peers where the object code and
  41964. Corresponding Source of the work are being offered to the
  41965. general public at no charge under subsection 6d.
  41966. A separable portion of the object code, whose source code is
  41967. excluded from the Corresponding Source as a System Library, need
  41968. not be included in conveying the object code work.
  41969. A "User Product" is either (1) a "consumer product", which means
  41970. any tangible personal property which is normally used for personal,
  41971. family, or household purposes, or (2) anything designed or sold for
  41972. incorporation into a dwelling. In determining whether a product is
  41973. a consumer product, doubtful cases shall be resolved in favor of
  41974. coverage. For a particular product received by a particular user,
  41975. "normally used" refers to a typical or common use of that class of
  41976. product, regardless of the status of the particular user or of the
  41977. way in which the particular user actually uses, or expects or is
  41978. expected to use, the product. A product is a consumer product
  41979. regardless of whether the product has substantial commercial,
  41980. industrial or non-consumer uses, unless such uses represent the
  41981. only significant mode of use of the product.
  41982. "Installation Information" for a User Product means any methods,
  41983. procedures, authorization keys, or other information required to
  41984. install and execute modified versions of a covered work in that
  41985. User Product from a modified version of its Corresponding Source.
  41986. The information must suffice to ensure that the continued
  41987. functioning of the modified object code is in no case prevented or
  41988. interfered with solely because modification has been made.
  41989. If you convey an object code work under this section in, or with,
  41990. or specifically for use in, a User Product, and the conveying
  41991. occurs as part of a transaction in which the right of possession
  41992. and use of the User Product is transferred to the recipient in
  41993. perpetuity or for a fixed term (regardless of how the transaction
  41994. is characterized), the Corresponding Source conveyed under this
  41995. section must be accompanied by the Installation Information. But
  41996. this requirement does not apply if neither you nor any third party
  41997. retains the ability to install modified object code on the User
  41998. Product (for example, the work has been installed in ROM).
  41999. The requirement to provide Installation Information does not
  42000. include a requirement to continue to provide support service,
  42001. warranty, or updates for a work that has been modified or installed
  42002. by the recipient, or for the User Product in which it has been
  42003. modified or installed. Access to a network may be denied when the
  42004. modification itself materially and adversely affects the operation
  42005. of the network or violates the rules and protocols for
  42006. communication across the network.
  42007. Corresponding Source conveyed, and Installation Information
  42008. provided, in accord with this section must be in a format that is
  42009. publicly documented (and with an implementation available to the
  42010. public in source code form), and must require no special password
  42011. or key for unpacking, reading or copying.
  42012. 7. Additional Terms.
  42013. "Additional permissions" are terms that supplement the terms of
  42014. this License by making exceptions from one or more of its
  42015. conditions. Additional permissions that are applicable to the
  42016. entire Program shall be treated as though they were included in
  42017. this License, to the extent that they are valid under applicable
  42018. law. If additional permissions apply only to part of the Program,
  42019. that part may be used separately under those permissions, but the
  42020. entire Program remains governed by this License without regard to
  42021. the additional permissions.
  42022. When you convey a copy of a covered work, you may at your option
  42023. remove any additional permissions from that copy, or from any part
  42024. of it. (Additional permissions may be written to require their own
  42025. removal in certain cases when you modify the work.) You may place
  42026. additional permissions on material, added by you to a covered work,
  42027. for which you have or can give appropriate copyright permission.
  42028. Notwithstanding any other provision of this License, for material
  42029. you add to a covered work, you may (if authorized by the copyright
  42030. holders of that material) supplement the terms of this License with
  42031. terms:
  42032. a. Disclaiming warranty or limiting liability differently from
  42033. the terms of sections 15 and 16 of this License; or
  42034. b. Requiring preservation of specified reasonable legal notices
  42035. or author attributions in that material or in the Appropriate
  42036. Legal Notices displayed by works containing it; or
  42037. c. Prohibiting misrepresentation of the origin of that material,
  42038. or requiring that modified versions of such material be marked
  42039. in reasonable ways as different from the original version; or
  42040. d. Limiting the use for publicity purposes of names of licensors
  42041. or authors of the material; or
  42042. e. Declining to grant rights under trademark law for use of some
  42043. trade names, trademarks, or service marks; or
  42044. f. Requiring indemnification of licensors and authors of that
  42045. material by anyone who conveys the material (or modified
  42046. versions of it) with contractual assumptions of liability to
  42047. the recipient, for any liability that these contractual
  42048. assumptions directly impose on those licensors and authors.
  42049. All other non-permissive additional terms are considered "further
  42050. restrictions" within the meaning of section 10. If the Program as
  42051. you received it, or any part of it, contains a notice stating that
  42052. it is governed by this License along with a term that is a further
  42053. restriction, you may remove that term. If a license document
  42054. contains a further restriction but permits relicensing or conveying
  42055. under this License, you may add to a covered work material governed
  42056. by the terms of that license document, provided that the further
  42057. restriction does not survive such relicensing or conveying.
  42058. If you add terms to a covered work in accord with this section, you
  42059. must place, in the relevant source files, a statement of the
  42060. additional terms that apply to those files, or a notice indicating
  42061. where to find the applicable terms.
  42062. Additional terms, permissive or non-permissive, may be stated in
  42063. the form of a separately written license, or stated as exceptions;
  42064. the above requirements apply either way.
  42065. 8. Termination.
  42066. You may not propagate or modify a covered work except as expressly
  42067. provided under this License. Any attempt otherwise to propagate or
  42068. modify it is void, and will automatically terminate your rights
  42069. under this License (including any patent licenses granted under the
  42070. third paragraph of section 11).
  42071. However, if you cease all violation of this License, then your
  42072. license from a particular copyright holder is reinstated (a)
  42073. provisionally, unless and until the copyright holder explicitly and
  42074. finally terminates your license, and (b) permanently, if the
  42075. copyright holder fails to notify you of the violation by some
  42076. reasonable means prior to 60 days after the cessation.
  42077. Moreover, your license from a particular copyright holder is
  42078. reinstated permanently if the copyright holder notifies you of the
  42079. violation by some reasonable means, this is the first time you have
  42080. received notice of violation of this License (for any work) from
  42081. that copyright holder, and you cure the violation prior to 30 days
  42082. after your receipt of the notice.
  42083. Termination of your rights under this section does not terminate
  42084. the licenses of parties who have received copies or rights from you
  42085. under this License. If your rights have been terminated and not
  42086. permanently reinstated, you do not qualify to receive new licenses
  42087. for the same material under section 10.
  42088. 9. Acceptance Not Required for Having Copies.
  42089. You are not required to accept this License in order to receive or
  42090. run a copy of the Program. Ancillary propagation of a covered work
  42091. occurring solely as a consequence of using peer-to-peer
  42092. transmission to receive a copy likewise does not require
  42093. acceptance. However, nothing other than this License grants you
  42094. permission to propagate or modify any covered work. These actions
  42095. infringe copyright if you do not accept this License. Therefore,
  42096. by modifying or propagating a covered work, you indicate your
  42097. acceptance of this License to do so.
  42098. 10. Automatic Licensing of Downstream Recipients.
  42099. Each time you convey a covered work, the recipient automatically
  42100. receives a license from the original licensors, to run, modify and
  42101. propagate that work, subject to this License. You are not
  42102. responsible for enforcing compliance by third parties with this
  42103. License.
  42104. An "entity transaction" is a transaction transferring control of an
  42105. organization, or substantially all assets of one, or subdividing an
  42106. organization, or merging organizations. If propagation of a
  42107. covered work results from an entity transaction, each party to that
  42108. transaction who receives a copy of the work also receives whatever
  42109. licenses to the work the party's predecessor in interest had or
  42110. could give under the previous paragraph, plus a right to possession
  42111. of the Corresponding Source of the work from the predecessor in
  42112. interest, if the predecessor has it or can get it with reasonable
  42113. efforts.
  42114. You may not impose any further restrictions on the exercise of the
  42115. rights granted or affirmed under this License. For example, you
  42116. may not impose a license fee, royalty, or other charge for exercise
  42117. of rights granted under this License, and you may not initiate
  42118. litigation (including a cross-claim or counterclaim in a lawsuit)
  42119. alleging that any patent claim is infringed by making, using,
  42120. selling, offering for sale, or importing the Program or any portion
  42121. of it.
  42122. 11. Patents.
  42123. A "contributor" is a copyright holder who authorizes use under this
  42124. License of the Program or a work on which the Program is based.
  42125. The work thus licensed is called the contributor's "contributor
  42126. version".
  42127. A contributor's "essential patent claims" are all patent claims
  42128. owned or controlled by the contributor, whether already acquired or
  42129. hereafter acquired, that would be infringed by some manner,
  42130. permitted by this License, of making, using, or selling its
  42131. contributor version, but do not include claims that would be
  42132. infringed only as a consequence of further modification of the
  42133. contributor version. For purposes of this definition, "control"
  42134. includes the right to grant patent sublicenses in a manner
  42135. consistent with the requirements of this License.
  42136. Each contributor grants you a non-exclusive, worldwide,
  42137. royalty-free patent license under the contributor's essential
  42138. patent claims, to make, use, sell, offer for sale, import and
  42139. otherwise run, modify and propagate the contents of its contributor
  42140. version.
  42141. In the following three paragraphs, a "patent license" is any
  42142. express agreement or commitment, however denominated, not to
  42143. enforce a patent (such as an express permission to practice a
  42144. patent or covenant not to sue for patent infringement). To "grant"
  42145. such a patent license to a party means to make such an agreement or
  42146. commitment not to enforce a patent against the party.
  42147. If you convey a covered work, knowingly relying on a patent
  42148. license, and the Corresponding Source of the work is not available
  42149. for anyone to copy, free of charge and under the terms of this
  42150. License, through a publicly available network server or other
  42151. readily accessible means, then you must either (1) cause the
  42152. Corresponding Source to be so available, or (2) arrange to deprive
  42153. yourself of the benefit of the patent license for this particular
  42154. work, or (3) arrange, in a manner consistent with the requirements
  42155. of this License, to extend the patent license to downstream
  42156. recipients. "Knowingly relying" means you have actual knowledge
  42157. that, but for the patent license, your conveying the covered work
  42158. in a country, or your recipient's use of the covered work in a
  42159. country, would infringe one or more identifiable patents in that
  42160. country that you have reason to believe are valid.
  42161. If, pursuant to or in connection with a single transaction or
  42162. arrangement, you convey, or propagate by procuring conveyance of, a
  42163. covered work, and grant a patent license to some of the parties
  42164. receiving the covered work authorizing them to use, propagate,
  42165. modify or convey a specific copy of the covered work, then the
  42166. patent license you grant is automatically extended to all
  42167. recipients of the covered work and works based on it.
  42168. A patent license is "discriminatory" if it does not include within
  42169. the scope of its coverage, prohibits the exercise of, or is
  42170. conditioned on the non-exercise of one or more of the rights that
  42171. are specifically granted under this License. You may not convey a
  42172. covered work if you are a party to an arrangement with a third
  42173. party that is in the business of distributing software, under which
  42174. you make payment to the third party based on the extent of your
  42175. activity of conveying the work, and under which the third party
  42176. grants, to any of the parties who would receive the covered work
  42177. from you, a discriminatory patent license (a) in connection with
  42178. copies of the covered work conveyed by you (or copies made from
  42179. those copies), or (b) primarily for and in connection with specific
  42180. products or compilations that contain the covered work, unless you
  42181. entered into that arrangement, or that patent license was granted,
  42182. prior to 28 March 2007.
  42183. Nothing in this License shall be construed as excluding or limiting
  42184. any implied license or other defenses to infringement that may
  42185. otherwise be available to you under applicable patent law.
  42186. 12. No Surrender of Others' Freedom.
  42187. If conditions are imposed on you (whether by court order, agreement
  42188. or otherwise) that contradict the conditions of this License, they
  42189. do not excuse you from the conditions of this License. If you
  42190. cannot convey a covered work so as to satisfy simultaneously your
  42191. obligations under this License and any other pertinent obligations,
  42192. then as a consequence you may not convey it at all. For example,
  42193. if you agree to terms that obligate you to collect a royalty for
  42194. further conveying from those to whom you convey the Program, the
  42195. only way you could satisfy both those terms and this License would
  42196. be to refrain entirely from conveying the Program.
  42197. 13. Use with the GNU Affero General Public License.
  42198. Notwithstanding any other provision of this License, you have
  42199. permission to link or combine any covered work with a work licensed
  42200. under version 3 of the GNU Affero General Public License into a
  42201. single combined work, and to convey the resulting work. The terms
  42202. of this License will continue to apply to the part which is the
  42203. covered work, but the special requirements of the GNU Affero
  42204. General Public License, section 13, concerning interaction through
  42205. a network will apply to the combination as such.
  42206. 14. Revised Versions of this License.
  42207. The Free Software Foundation may publish revised and/or new
  42208. versions of the GNU General Public License from time to time. Such
  42209. new versions will be similar in spirit to the present version, but
  42210. may differ in detail to address new problems or concerns.
  42211. Each version is given a distinguishing version number. If the
  42212. Program specifies that a certain numbered version of the GNU
  42213. General Public License "or any later version" applies to it, you
  42214. have the option of following the terms and conditions either of
  42215. that numbered version or of any later version published by the Free
  42216. Software Foundation. If the Program does not specify a version
  42217. number of the GNU General Public License, you may choose any
  42218. version ever published by the Free Software Foundation.
  42219. If the Program specifies that a proxy can decide which future
  42220. versions of the GNU General Public License can be used, that
  42221. proxy's public statement of acceptance of a version permanently
  42222. authorizes you to choose that version for the Program.
  42223. Later license versions may give you additional or different
  42224. permissions. However, no additional obligations are imposed on any
  42225. author or copyright holder as a result of your choosing to follow a
  42226. later version.
  42227. 15. Disclaimer of Warranty.
  42228. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
  42229. APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
  42230. COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS"
  42231. WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
  42232. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  42233. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE
  42234. RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.
  42235. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
  42236. NECESSARY SERVICING, REPAIR OR CORRECTION.
  42237. 16. Limitation of Liability.
  42238. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  42239. WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES
  42240. AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
  42241. DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
  42242. CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
  42243. THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA
  42244. BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
  42245. PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  42246. PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF
  42247. THE POSSIBILITY OF SUCH DAMAGES.
  42248. 17. Interpretation of Sections 15 and 16.
  42249. If the disclaimer of warranty and limitation of liability provided
  42250. above cannot be given local legal effect according to their terms,
  42251. reviewing courts shall apply local law that most closely
  42252. approximates an absolute waiver of all civil liability in
  42253. connection with the Program, unless a warranty or assumption of
  42254. liability accompanies a copy of the Program in return for a fee.
  42255. END OF TERMS AND CONDITIONS
  42256. ===========================
  42257. How to Apply These Terms to Your New Programs
  42258. =============================================
  42259. If you develop a new program, and you want it to be of the greatest
  42260. possible use to the public, the best way to achieve this is to make it
  42261. free software which everyone can redistribute and change under these
  42262. terms.
  42263. To do so, attach the following notices to the program. It is safest to
  42264. attach them to the start of each source file to most effectively state
  42265. the exclusion of warranty; and each file should have at least the
  42266. "copyright" line and a pointer to where the full notice is found.
  42267. ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  42268. Copyright (C) YEAR NAME OF AUTHOR
  42269. This program is free software: you can redistribute it and/or modify
  42270. it under the terms of the GNU General Public License as published by
  42271. the Free Software Foundation, either version 3 of the License, or (at
  42272. your option) any later version.
  42273. This program is distributed in the hope that it will be useful, but
  42274. WITHOUT ANY WARRANTY; without even the implied warranty of
  42275. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  42276. General Public License for more details.
  42277. You should have received a copy of the GNU General Public License
  42278. along with this program. If not, see <http://www.gnu.org/licenses/>.
  42279. Also add information on how to contact you by electronic and paper
  42280. mail.
  42281. If the program does terminal interaction, make it output a short notice
  42282. like this when it starts in an interactive mode:
  42283. PROGRAM Copyright (C) YEAR NAME OF AUTHOR
  42284. This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.
  42285. This is free software, and you are welcome to redistribute it
  42286. under certain conditions; type 'show c' for details.
  42287. The hypothetical commands 'show w' and 'show c' should show the
  42288. appropriate parts of the General Public License. Of course, your
  42289. program's commands might be different; for a GUI interface, you would
  42290. use an "about box".
  42291. You should also get your employer (if you work as a programmer) or
  42292. school, if any, to sign a "copyright disclaimer" for the program, if
  42293. necessary. For more information on this, and how to apply and follow
  42294. the GNU GPL, see <http://www.gnu.org/licenses/>.
  42295. The GNU General Public License does not permit incorporating your
  42296. program into proprietary programs. If your program is a subroutine
  42297. library, you may consider it more useful to permit linking proprietary
  42298. applications with the library. If this is what you want to do, use the
  42299. GNU Lesser General Public License instead of this License. But first,
  42300. please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.
  42301. 
  42302. File: gcc.info, Node: GNU Free Documentation License, Next: Contributors, Prev: Copying, Up: Top
  42303. GNU Free Documentation License
  42304. ******************************
  42305. Version 1.3, 3 November 2008
  42306. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  42307. <http://fsf.org/>
  42308. Everyone is permitted to copy and distribute verbatim copies
  42309. of this license document, but changing it is not allowed.
  42310. 0. PREAMBLE
  42311. The purpose of this License is to make a manual, textbook, or other
  42312. functional and useful document "free" in the sense of freedom: to
  42313. assure everyone the effective freedom to copy and redistribute it,
  42314. with or without modifying it, either commercially or
  42315. noncommercially. Secondarily, this License preserves for the
  42316. author and publisher a way to get credit for their work, while not
  42317. being considered responsible for modifications made by others.
  42318. This License is a kind of "copyleft", which means that derivative
  42319. works of the document must themselves be free in the same sense.
  42320. It complements the GNU General Public License, which is a copyleft
  42321. license designed for free software.
  42322. We have designed this License in order to use it for manuals for
  42323. free software, because free software needs free documentation: a
  42324. free program should come with manuals providing the same freedoms
  42325. that the software does. But this License is not limited to
  42326. software manuals; it can be used for any textual work, regardless
  42327. of subject matter or whether it is published as a printed book. We
  42328. recommend this License principally for works whose purpose is
  42329. instruction or reference.
  42330. 1. APPLICABILITY AND DEFINITIONS
  42331. This License applies to any manual or other work, in any medium,
  42332. that contains a notice placed by the copyright holder saying it can
  42333. be distributed under the terms of this License. Such a notice
  42334. grants a world-wide, royalty-free license, unlimited in duration,
  42335. to use that work under the conditions stated herein. The
  42336. "Document", below, refers to any such manual or work. Any member
  42337. of the public is a licensee, and is addressed as "you". You accept
  42338. the license if you copy, modify or distribute the work in a way
  42339. requiring permission under copyright law.
  42340. A "Modified Version" of the Document means any work containing the
  42341. Document or a portion of it, either copied verbatim, or with
  42342. modifications and/or translated into another language.
  42343. A "Secondary Section" is a named appendix or a front-matter section
  42344. of the Document that deals exclusively with the relationship of the
  42345. publishers or authors of the Document to the Document's overall
  42346. subject (or to related matters) and contains nothing that could
  42347. fall directly within that overall subject. (Thus, if the Document
  42348. is in part a textbook of mathematics, a Secondary Section may not
  42349. explain any mathematics.) The relationship could be a matter of
  42350. historical connection with the subject or with related matters, or
  42351. of legal, commercial, philosophical, ethical or political position
  42352. regarding them.
  42353. The "Invariant Sections" are certain Secondary Sections whose
  42354. titles are designated, as being those of Invariant Sections, in the
  42355. notice that says that the Document is released under this License.
  42356. If a section does not fit the above definition of Secondary then it
  42357. is not allowed to be designated as Invariant. The Document may
  42358. contain zero Invariant Sections. If the Document does not identify
  42359. any Invariant Sections then there are none.
  42360. The "Cover Texts" are certain short passages of text that are
  42361. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  42362. that says that the Document is released under this License. A
  42363. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  42364. be at most 25 words.
  42365. A "Transparent" copy of the Document means a machine-readable copy,
  42366. represented in a format whose specification is available to the
  42367. general public, that is suitable for revising the document
  42368. straightforwardly with generic text editors or (for images composed
  42369. of pixels) generic paint programs or (for drawings) some widely
  42370. available drawing editor, and that is suitable for input to text
  42371. formatters or for automatic translation to a variety of formats
  42372. suitable for input to text formatters. A copy made in an otherwise
  42373. Transparent file format whose markup, or absence of markup, has
  42374. been arranged to thwart or discourage subsequent modification by
  42375. readers is not Transparent. An image format is not Transparent if
  42376. used for any substantial amount of text. A copy that is not
  42377. "Transparent" is called "Opaque".
  42378. Examples of suitable formats for Transparent copies include plain
  42379. ASCII without markup, Texinfo input format, LaTeX input format,
  42380. SGML or XML using a publicly available DTD, and standard-conforming
  42381. simple HTML, PostScript or PDF designed for human modification.
  42382. Examples of transparent image formats include PNG, XCF and JPG.
  42383. Opaque formats include proprietary formats that can be read and
  42384. edited only by proprietary word processors, SGML or XML for which
  42385. the DTD and/or processing tools are not generally available, and
  42386. the machine-generated HTML, PostScript or PDF produced by some word
  42387. processors for output purposes only.
  42388. The "Title Page" means, for a printed book, the title page itself,
  42389. plus such following pages as are needed to hold, legibly, the
  42390. material this License requires to appear in the title page. For
  42391. works in formats which do not have any title page as such, "Title
  42392. Page" means the text near the most prominent appearance of the
  42393. work's title, preceding the beginning of the body of the text.
  42394. The "publisher" means any person or entity that distributes copies
  42395. of the Document to the public.
  42396. A section "Entitled XYZ" means a named subunit of the Document
  42397. whose title either is precisely XYZ or contains XYZ in parentheses
  42398. following text that translates XYZ in another language. (Here XYZ
  42399. stands for a specific section name mentioned below, such as
  42400. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  42401. To "Preserve the Title" of such a section when you modify the
  42402. Document means that it remains a section "Entitled XYZ" according
  42403. to this definition.
  42404. The Document may include Warranty Disclaimers next to the notice
  42405. which states that this License applies to the Document. These
  42406. Warranty Disclaimers are considered to be included by reference in
  42407. this License, but only as regards disclaiming warranties: any other
  42408. implication that these Warranty Disclaimers may have is void and
  42409. has no effect on the meaning of this License.
  42410. 2. VERBATIM COPYING
  42411. You may copy and distribute the Document in any medium, either
  42412. commercially or noncommercially, provided that this License, the
  42413. copyright notices, and the license notice saying this License
  42414. applies to the Document are reproduced in all copies, and that you
  42415. add no other conditions whatsoever to those of this License. You
  42416. may not use technical measures to obstruct or control the reading
  42417. or further copying of the copies you make or distribute. However,
  42418. you may accept compensation in exchange for copies. If you
  42419. distribute a large enough number of copies you must also follow the
  42420. conditions in section 3.
  42421. You may also lend copies, under the same conditions stated above,
  42422. and you may publicly display copies.
  42423. 3. COPYING IN QUANTITY
  42424. If you publish printed copies (or copies in media that commonly
  42425. have printed covers) of the Document, numbering more than 100, and
  42426. the Document's license notice requires Cover Texts, you must
  42427. enclose the copies in covers that carry, clearly and legibly, all
  42428. these Cover Texts: Front-Cover Texts on the front cover, and
  42429. Back-Cover Texts on the back cover. Both covers must also clearly
  42430. and legibly identify you as the publisher of these copies. The
  42431. front cover must present the full title with all words of the title
  42432. equally prominent and visible. You may add other material on the
  42433. covers in addition. Copying with changes limited to the covers, as
  42434. long as they preserve the title of the Document and satisfy these
  42435. conditions, can be treated as verbatim copying in other respects.
  42436. If the required texts for either cover are too voluminous to fit
  42437. legibly, you should put the first ones listed (as many as fit
  42438. reasonably) on the actual cover, and continue the rest onto
  42439. adjacent pages.
  42440. If you publish or distribute Opaque copies of the Document
  42441. numbering more than 100, you must either include a machine-readable
  42442. Transparent copy along with each Opaque copy, or state in or with
  42443. each Opaque copy a computer-network location from which the general
  42444. network-using public has access to download using public-standard
  42445. network protocols a complete Transparent copy of the Document, free
  42446. of added material. If you use the latter option, you must take
  42447. reasonably prudent steps, when you begin distribution of Opaque
  42448. copies in quantity, to ensure that this Transparent copy will
  42449. remain thus accessible at the stated location until at least one
  42450. year after the last time you distribute an Opaque copy (directly or
  42451. through your agents or retailers) of that edition to the public.
  42452. It is requested, but not required, that you contact the authors of
  42453. the Document well before redistributing any large number of copies,
  42454. to give them a chance to provide you with an updated version of the
  42455. Document.
  42456. 4. MODIFICATIONS
  42457. You may copy and distribute a Modified Version of the Document
  42458. under the conditions of sections 2 and 3 above, provided that you
  42459. release the Modified Version under precisely this License, with the
  42460. Modified Version filling the role of the Document, thus licensing
  42461. distribution and modification of the Modified Version to whoever
  42462. possesses a copy of it. In addition, you must do these things in
  42463. the Modified Version:
  42464. A. Use in the Title Page (and on the covers, if any) a title
  42465. distinct from that of the Document, and from those of previous
  42466. versions (which should, if there were any, be listed in the
  42467. History section of the Document). You may use the same title
  42468. as a previous version if the original publisher of that
  42469. version gives permission.
  42470. B. List on the Title Page, as authors, one or more persons or
  42471. entities responsible for authorship of the modifications in
  42472. the Modified Version, together with at least five of the
  42473. principal authors of the Document (all of its principal
  42474. authors, if it has fewer than five), unless they release you
  42475. from this requirement.
  42476. C. State on the Title page the name of the publisher of the
  42477. Modified Version, as the publisher.
  42478. D. Preserve all the copyright notices of the Document.
  42479. E. Add an appropriate copyright notice for your modifications
  42480. adjacent to the other copyright notices.
  42481. F. Include, immediately after the copyright notices, a license
  42482. notice giving the public permission to use the Modified
  42483. Version under the terms of this License, in the form shown in
  42484. the Addendum below.
  42485. G. Preserve in that license notice the full lists of Invariant
  42486. Sections and required Cover Texts given in the Document's
  42487. license notice.
  42488. H. Include an unaltered copy of this License.
  42489. I. Preserve the section Entitled "History", Preserve its Title,
  42490. and add to it an item stating at least the title, year, new
  42491. authors, and publisher of the Modified Version as given on the
  42492. Title Page. If there is no section Entitled "History" in the
  42493. Document, create one stating the title, year, authors, and
  42494. publisher of the Document as given on its Title Page, then add
  42495. an item describing the Modified Version as stated in the
  42496. previous sentence.
  42497. J. Preserve the network location, if any, given in the Document
  42498. for public access to a Transparent copy of the Document, and
  42499. likewise the network locations given in the Document for
  42500. previous versions it was based on. These may be placed in the
  42501. "History" section. You may omit a network location for a work
  42502. that was published at least four years before the Document
  42503. itself, or if the original publisher of the version it refers
  42504. to gives permission.
  42505. K. For any section Entitled "Acknowledgements" or "Dedications",
  42506. Preserve the Title of the section, and preserve in the section
  42507. all the substance and tone of each of the contributor
  42508. acknowledgements and/or dedications given therein.
  42509. L. Preserve all the Invariant Sections of the Document, unaltered
  42510. in their text and in their titles. Section numbers or the
  42511. equivalent are not considered part of the section titles.
  42512. M. Delete any section Entitled "Endorsements". Such a section
  42513. may not be included in the Modified Version.
  42514. N. Do not retitle any existing section to be Entitled
  42515. "Endorsements" or to conflict in title with any Invariant
  42516. Section.
  42517. O. Preserve any Warranty Disclaimers.
  42518. If the Modified Version includes new front-matter sections or
  42519. appendices that qualify as Secondary Sections and contain no
  42520. material copied from the Document, you may at your option designate
  42521. some or all of these sections as invariant. To do this, add their
  42522. titles to the list of Invariant Sections in the Modified Version's
  42523. license notice. These titles must be distinct from any other
  42524. section titles.
  42525. You may add a section Entitled "Endorsements", provided it contains
  42526. nothing but endorsements of your Modified Version by various
  42527. parties--for example, statements of peer review or that the text
  42528. has been approved by an organization as the authoritative
  42529. definition of a standard.
  42530. You may add a passage of up to five words as a Front-Cover Text,
  42531. and a passage of up to 25 words as a Back-Cover Text, to the end of
  42532. the list of Cover Texts in the Modified Version. Only one passage
  42533. of Front-Cover Text and one of Back-Cover Text may be added by (or
  42534. through arrangements made by) any one entity. If the Document
  42535. already includes a cover text for the same cover, previously added
  42536. by you or by arrangement made by the same entity you are acting on
  42537. behalf of, you may not add another; but you may replace the old
  42538. one, on explicit permission from the previous publisher that added
  42539. the old one.
  42540. The author(s) and publisher(s) of the Document do not by this
  42541. License give permission to use their names for publicity for or to
  42542. assert or imply endorsement of any Modified Version.
  42543. 5. COMBINING DOCUMENTS
  42544. You may combine the Document with other documents released under
  42545. this License, under the terms defined in section 4 above for
  42546. modified versions, provided that you include in the combination all
  42547. of the Invariant Sections of all of the original documents,
  42548. unmodified, and list them all as Invariant Sections of your
  42549. combined work in its license notice, and that you preserve all
  42550. their Warranty Disclaimers.
  42551. The combined work need only contain one copy of this License, and
  42552. multiple identical Invariant Sections may be replaced with a single
  42553. copy. If there are multiple Invariant Sections with the same name
  42554. but different contents, make the title of each such section unique
  42555. by adding at the end of it, in parentheses, the name of the
  42556. original author or publisher of that section if known, or else a
  42557. unique number. Make the same adjustment to the section titles in
  42558. the list of Invariant Sections in the license notice of the
  42559. combined work.
  42560. In the combination, you must combine any sections Entitled
  42561. "History" in the various original documents, forming one section
  42562. Entitled "History"; likewise combine any sections Entitled
  42563. "Acknowledgements", and any sections Entitled "Dedications". You
  42564. must delete all sections Entitled "Endorsements."
  42565. 6. COLLECTIONS OF DOCUMENTS
  42566. You may make a collection consisting of the Document and other
  42567. documents released under this License, and replace the individual
  42568. copies of this License in the various documents with a single copy
  42569. that is included in the collection, provided that you follow the
  42570. rules of this License for verbatim copying of each of the documents
  42571. in all other respects.
  42572. You may extract a single document from such a collection, and
  42573. distribute it individually under this License, provided you insert
  42574. a copy of this License into the extracted document, and follow this
  42575. License in all other respects regarding verbatim copying of that
  42576. document.
  42577. 7. AGGREGATION WITH INDEPENDENT WORKS
  42578. A compilation of the Document or its derivatives with other
  42579. separate and independent documents or works, in or on a volume of a
  42580. storage or distribution medium, is called an "aggregate" if the
  42581. copyright resulting from the compilation is not used to limit the
  42582. legal rights of the compilation's users beyond what the individual
  42583. works permit. When the Document is included in an aggregate, this
  42584. License does not apply to the other works in the aggregate which
  42585. are not themselves derivative works of the Document.
  42586. If the Cover Text requirement of section 3 is applicable to these
  42587. copies of the Document, then if the Document is less than one half
  42588. of the entire aggregate, the Document's Cover Texts may be placed
  42589. on covers that bracket the Document within the aggregate, or the
  42590. electronic equivalent of covers if the Document is in electronic
  42591. form. Otherwise they must appear on printed covers that bracket
  42592. the whole aggregate.
  42593. 8. TRANSLATION
  42594. Translation is considered a kind of modification, so you may
  42595. distribute translations of the Document under the terms of section
  42596. 4. Replacing Invariant Sections with translations requires special
  42597. permission from their copyright holders, but you may include
  42598. translations of some or all Invariant Sections in addition to the
  42599. original versions of these Invariant Sections. You may include a
  42600. translation of this License, and all the license notices in the
  42601. Document, and any Warranty Disclaimers, provided that you also
  42602. include the original English version of this License and the
  42603. original versions of those notices and disclaimers. In case of a
  42604. disagreement between the translation and the original version of
  42605. this License or a notice or disclaimer, the original version will
  42606. prevail.
  42607. If a section in the Document is Entitled "Acknowledgements",
  42608. "Dedications", or "History", the requirement (section 4) to
  42609. Preserve its Title (section 1) will typically require changing the
  42610. actual title.
  42611. 9. TERMINATION
  42612. You may not copy, modify, sublicense, or distribute the Document
  42613. except as expressly provided under this License. Any attempt
  42614. otherwise to copy, modify, sublicense, or distribute it is void,
  42615. and will automatically terminate your rights under this License.
  42616. However, if you cease all violation of this License, then your
  42617. license from a particular copyright holder is reinstated (a)
  42618. provisionally, unless and until the copyright holder explicitly and
  42619. finally terminates your license, and (b) permanently, if the
  42620. copyright holder fails to notify you of the violation by some
  42621. reasonable means prior to 60 days after the cessation.
  42622. Moreover, your license from a particular copyright holder is
  42623. reinstated permanently if the copyright holder notifies you of the
  42624. violation by some reasonable means, this is the first time you have
  42625. received notice of violation of this License (for any work) from
  42626. that copyright holder, and you cure the violation prior to 30 days
  42627. after your receipt of the notice.
  42628. Termination of your rights under this section does not terminate
  42629. the licenses of parties who have received copies or rights from you
  42630. under this License. If your rights have been terminated and not
  42631. permanently reinstated, receipt of a copy of some or all of the
  42632. same material does not give you any rights to use it.
  42633. 10. FUTURE REVISIONS OF THIS LICENSE
  42634. The Free Software Foundation may publish new, revised versions of
  42635. the GNU Free Documentation License from time to time. Such new
  42636. versions will be similar in spirit to the present version, but may
  42637. differ in detail to address new problems or concerns. See
  42638. <http://www.gnu.org/copyleft/>.
  42639. Each version of the License is given a distinguishing version
  42640. number. If the Document specifies that a particular numbered
  42641. version of this License "or any later version" applies to it, you
  42642. have the option of following the terms and conditions either of
  42643. that specified version or of any later version that has been
  42644. published (not as a draft) by the Free Software Foundation. If the
  42645. Document does not specify a version number of this License, you may
  42646. choose any version ever published (not as a draft) by the Free
  42647. Software Foundation. If the Document specifies that a proxy can
  42648. decide which future versions of this License can be used, that
  42649. proxy's public statement of acceptance of a version permanently
  42650. authorizes you to choose that version for the Document.
  42651. 11. RELICENSING
  42652. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  42653. World Wide Web server that publishes copyrightable works and also
  42654. provides prominent facilities for anybody to edit those works. A
  42655. public wiki that anybody can edit is an example of such a server.
  42656. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  42657. site means any set of copyrightable works thus published on the MMC
  42658. site.
  42659. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  42660. license published by Creative Commons Corporation, a not-for-profit
  42661. corporation with a principal place of business in San Francisco,
  42662. California, as well as future copyleft versions of that license
  42663. published by that same organization.
  42664. "Incorporate" means to publish or republish a Document, in whole or
  42665. in part, as part of another Document.
  42666. An MMC is "eligible for relicensing" if it is licensed under this
  42667. License, and if all works that were first published under this
  42668. License somewhere other than this MMC, and subsequently
  42669. incorporated in whole or in part into the MMC, (1) had no cover
  42670. texts or invariant sections, and (2) were thus incorporated prior
  42671. to November 1, 2008.
  42672. The operator of an MMC Site may republish an MMC contained in the
  42673. site under CC-BY-SA on the same site at any time before August 1,
  42674. 2009, provided the MMC is eligible for relicensing.
  42675. ADDENDUM: How to use this License for your documents
  42676. ====================================================
  42677. To use this License in a document you have written, include a copy of
  42678. the License in the document and put the following copyright and license
  42679. notices just after the title page:
  42680. Copyright (C) YEAR YOUR NAME.
  42681. Permission is granted to copy, distribute and/or modify this document
  42682. under the terms of the GNU Free Documentation License, Version 1.3
  42683. or any later version published by the Free Software Foundation;
  42684. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  42685. Texts. A copy of the license is included in the section entitled ``GNU
  42686. Free Documentation License''.
  42687. If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
  42688. replace the "with...Texts." line with this:
  42689. with the Invariant Sections being LIST THEIR TITLES, with
  42690. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  42691. being LIST.
  42692. If you have Invariant Sections without Cover Texts, or some other
  42693. combination of the three, merge those two alternatives to suit the
  42694. situation.
  42695. If your document contains nontrivial examples of program code, we
  42696. recommend releasing these examples in parallel under your choice of free
  42697. software license, such as the GNU General Public License, to permit
  42698. their use in free software.
  42699. 
  42700. File: gcc.info, Node: Contributors, Next: Option Index, Prev: GNU Free Documentation License, Up: Top
  42701. Contributors to GCC
  42702. *******************
  42703. The GCC project would like to thank its many contributors. Without them
  42704. the project would not have been nearly as successful as it has been.
  42705. Any omissions in this list are accidental. Feel free to contact
  42706. <law@redhat.com> or <gerald@pfeifer.com> if you have been left out or
  42707. some of your contributions are not listed. Please keep this list in
  42708. alphabetical order.
  42709. * Analog Devices helped implement the support for complex data types
  42710. and iterators.
  42711. * John David Anglin for threading-related fixes and improvements to
  42712. libstdc++-v3, and the HP-UX port.
  42713. * James van Artsdalen wrote the code that makes efficient use of the
  42714. Intel 80387 register stack.
  42715. * Abramo and Roberto Bagnara for the SysV68 Motorola 3300 Delta
  42716. Series port.
  42717. * Alasdair Baird for various bug fixes.
  42718. * Giovanni Bajo for analyzing lots of complicated C++ problem
  42719. reports.
  42720. * Peter Barada for his work to improve code generation for new
  42721. ColdFire cores.
  42722. * Gerald Baumgartner added the signature extension to the C++ front
  42723. end.
  42724. * Godmar Back for his Java improvements and encouragement.
  42725. * Scott Bambrough for help porting the Java compiler.
  42726. * Wolfgang Bangerth for processing tons of bug reports.
  42727. * Jon Beniston for his Microsoft Windows port of Java and port to
  42728. Lattice Mico32.
  42729. * Daniel Berlin for better DWARF 2 support, faster/better
  42730. optimizations, improved alias analysis, plus migrating GCC to
  42731. Bugzilla.
  42732. * Geoff Berry for his Java object serialization work and various
  42733. patches.
  42734. * David Binderman tests weekly snapshots of GCC trunk against Fedora
  42735. Rawhide for several architectures.
  42736. * Laurynas Biveinis for memory management work and DJGPP port fixes.
  42737. * Uros Bizjak for the implementation of x87 math built-in functions
  42738. and for various middle end and i386 back end improvements and bug
  42739. fixes.
  42740. * Eric Blake for helping to make GCJ and libgcj conform to the
  42741. specifications.
  42742. * Janne Blomqvist for contributions to GNU Fortran.
  42743. * Hans-J. Boehm for his garbage collector, IA-64 libffi port, and
  42744. other Java work.
  42745. * Segher Boessenkool for helping maintain the PowerPC port and the
  42746. instruction combiner plus various contributions to the middle end.
  42747. * Neil Booth for work on cpplib, lang hooks, debug hooks and other
  42748. miscellaneous clean-ups.
  42749. * Steven Bosscher for integrating the GNU Fortran front end into GCC
  42750. and for contributing to the tree-ssa branch.
  42751. * Eric Botcazou for fixing middle- and backend bugs left and right.
  42752. * Per Bothner for his direction via the steering committee and
  42753. various improvements to the infrastructure for supporting new
  42754. languages. Chill front end implementation. Initial
  42755. implementations of cpplib, fix-header, config.guess, libio, and
  42756. past C++ library (libg++) maintainer. Dreaming up, designing and
  42757. implementing much of GCJ.
  42758. * Devon Bowen helped port GCC to the Tahoe.
  42759. * Don Bowman for mips-vxworks contributions.
  42760. * James Bowman for the FT32 port.
  42761. * Dave Brolley for work on cpplib and Chill.
  42762. * Paul Brook for work on the ARM architecture and maintaining GNU
  42763. Fortran.
  42764. * Robert Brown implemented the support for Encore 32000 systems.
  42765. * Christian Bruel for improvements to local store elimination.
  42766. * Herman A.J. ten Brugge for various fixes.
  42767. * Joerg Brunsmann for Java compiler hacking and help with the GCJ
  42768. FAQ.
  42769. * Joe Buck for his direction via the steering committee from its
  42770. creation to 2013.
  42771. * Craig Burley for leadership of the G77 Fortran effort.
  42772. * Tobias Burnus for contributions to GNU Fortran.
  42773. * Stephan Buys for contributing Doxygen notes for libstdc++.
  42774. * Paolo Carlini for libstdc++ work: lots of efficiency improvements
  42775. to the C++ strings, streambufs and formatted I/O, hard detective
  42776. work on the frustrating localization issues, and keeping up with
  42777. the problem reports.
  42778. * John Carr for his alias work, SPARC hacking, infrastructure
  42779. improvements, previous contributions to the steering committee,
  42780. loop optimizations, etc.
  42781. * Stephane Carrez for 68HC11 and 68HC12 ports.
  42782. * Steve Chamberlain for support for the Renesas SH and H8 processors
  42783. and the PicoJava processor, and for GCJ config fixes.
  42784. * Glenn Chambers for help with the GCJ FAQ.
  42785. * John-Marc Chandonia for various libgcj patches.
  42786. * Denis Chertykov for contributing and maintaining the AVR port, the
  42787. first GCC port for an 8-bit architecture.
  42788. * Kito Cheng for his work on the RISC-V port, including bringing up
  42789. the test suite and maintenance.
  42790. * Scott Christley for his Objective-C contributions.
  42791. * Eric Christopher for his Java porting help and clean-ups.
  42792. * Branko Cibej for more warning contributions.
  42793. * The GNU Classpath project for all of their merged runtime code.
  42794. * Nick Clifton for arm, mcore, fr30, v850, m32r, msp430 rx work,
  42795. '--help', and other random hacking.
  42796. * Michael Cook for libstdc++ cleanup patches to reduce warnings.
  42797. * R. Kelley Cook for making GCC buildable from a read-only directory
  42798. as well as other miscellaneous build process and documentation
  42799. clean-ups.
  42800. * Ralf Corsepius for SH testing and minor bug fixing.
  42801. * Franc,ois-Xavier Coudert for contributions to GNU Fortran.
  42802. * Stan Cox for care and feeding of the x86 port and lots of behind
  42803. the scenes hacking.
  42804. * Alex Crain provided changes for the 3b1.
  42805. * Ian Dall for major improvements to the NS32k port.
  42806. * Paul Dale for his work to add uClinux platform support to the m68k
  42807. backend.
  42808. * Palmer Dabbelt for his work maintaining the RISC-V port.
  42809. * Dario Dariol contributed the four varieties of sample programs that
  42810. print a copy of their source.
  42811. * Russell Davidson for fstream and stringstream fixes in libstdc++.
  42812. * Bud Davis for work on the G77 and GNU Fortran compilers.
  42813. * Mo DeJong for GCJ and libgcj bug fixes.
  42814. * Jerry DeLisle for contributions to GNU Fortran.
  42815. * DJ Delorie for the DJGPP port, build and libiberty maintenance,
  42816. various bug fixes, and the M32C, MeP, MSP430, and RL78 ports.
  42817. * Arnaud Desitter for helping to debug GNU Fortran.
  42818. * Gabriel Dos Reis for contributions to G++, contributions and
  42819. maintenance of GCC diagnostics infrastructure, libstdc++-v3,
  42820. including 'valarray<>', 'complex<>', maintaining the numerics
  42821. library (including that pesky '<limits>' :-) and keeping up-to-date
  42822. anything to do with numbers.
  42823. * Ulrich Drepper for his work on glibc, testing of GCC using glibc,
  42824. ISO C99 support, CFG dumping support, etc., plus support of the C++
  42825. runtime libraries including for all kinds of C interface issues,
  42826. contributing and maintaining 'complex<>', sanity checking and
  42827. disbursement, configuration architecture, libio maintenance, and
  42828. early math work.
  42829. * Franc,ois Dumont for his work on libstdc++-v3, especially
  42830. maintaining and improving 'debug-mode' and associative and
  42831. unordered containers.
  42832. * Zdenek Dvorak for a new loop unroller and various fixes.
  42833. * Michael Eager for his work on the Xilinx MicroBlaze port.
  42834. * Richard Earnshaw for his ongoing work with the ARM.
  42835. * David Edelsohn for his direction via the steering committee,
  42836. ongoing work with the RS6000/PowerPC port, help cleaning up Haifa
  42837. loop changes, doing the entire AIX port of libstdc++ with his bare
  42838. hands, and for ensuring GCC properly keeps working on AIX.
  42839. * Kevin Ediger for the floating point formatting of num_put::do_put
  42840. in libstdc++.
  42841. * Phil Edwards for libstdc++ work including configuration hackery,
  42842. documentation maintainer, chief breaker of the web pages, the
  42843. occasional iostream bug fix, and work on shared library symbol
  42844. versioning.
  42845. * Paul Eggert for random hacking all over GCC.
  42846. * Mark Elbrecht for various DJGPP improvements, and for libstdc++
  42847. configuration support for locales and fstream-related fixes.
  42848. * Vadim Egorov for libstdc++ fixes in strings, streambufs, and
  42849. iostreams.
  42850. * Christian Ehrhardt for dealing with bug reports.
  42851. * Ben Elliston for his work to move the Objective-C runtime into its
  42852. own subdirectory and for his work on autoconf.
  42853. * Revital Eres for work on the PowerPC 750CL port.
  42854. * Marc Espie for OpenBSD support.
  42855. * Doug Evans for much of the global optimization framework, arc,
  42856. m32r, and SPARC work.
  42857. * Christopher Faylor for his work on the Cygwin port and for caring
  42858. and feeding the gcc.gnu.org box and saving its users tons of spam.
  42859. * Fred Fish for BeOS support and Ada fixes.
  42860. * Ivan Fontes Garcia for the Portuguese translation of the GCJ FAQ.
  42861. * Peter Gerwinski for various bug fixes and the Pascal front end.
  42862. * Kaveh R. Ghazi for his direction via the steering committee,
  42863. amazing work to make '-W -Wall -W* -Werror' useful, and testing GCC
  42864. on a plethora of platforms. Kaveh extends his gratitude to the
  42865. CAIP Center at Rutgers University for providing him with computing
  42866. resources to work on Free Software from the late 1980s to 2010.
  42867. * John Gilmore for a donation to the FSF earmarked improving GNU
  42868. Java.
  42869. * Judy Goldberg for c++ contributions.
  42870. * Torbjorn Granlund for various fixes and the c-torture testsuite,
  42871. multiply- and divide-by-constant optimization, improved long long
  42872. support, improved leaf function register allocation, and his
  42873. direction via the steering committee.
  42874. * Jonny Grant for improvements to 'collect2's' '--help'
  42875. documentation.
  42876. * Anthony Green for his '-Os' contributions, the moxie port, and Java
  42877. front end work.
  42878. * Stu Grossman for gdb hacking, allowing GCJ developers to debug Java
  42879. code.
  42880. * Michael K. Gschwind contributed the port to the PDP-11.
  42881. * Richard Biener for his ongoing middle-end contributions and bug
  42882. fixes and for release management.
  42883. * Ron Guilmette implemented the 'protoize' and 'unprotoize' tools,
  42884. the support for DWARF 1 symbolic debugging information, and much of
  42885. the support for System V Release 4. He has also worked heavily on
  42886. the Intel 386 and 860 support.
  42887. * Sumanth Gundapaneni for contributing the CR16 port.
  42888. * Mostafa Hagog for Swing Modulo Scheduling (SMS) and post reload
  42889. GCSE.
  42890. * Bruno Haible for improvements in the runtime overhead for EH, new
  42891. warnings and assorted bug fixes.
  42892. * Andrew Haley for his amazing Java compiler and library efforts.
  42893. * Chris Hanson assisted in making GCC work on HP-UX for the 9000
  42894. series 300.
  42895. * Michael Hayes for various thankless work he's done trying to get
  42896. the c30/c40 ports functional. Lots of loop and unroll improvements
  42897. and fixes.
  42898. * Dara Hazeghi for wading through myriads of target-specific bug
  42899. reports.
  42900. * Kate Hedstrom for staking the G77 folks with an initial testsuite.
  42901. * Richard Henderson for his ongoing SPARC, alpha, ia32, and ia64
  42902. work, loop opts, and generally fixing lots of old problems we've
  42903. ignored for years, flow rewrite and lots of further stuff,
  42904. including reviewing tons of patches.
  42905. * Aldy Hernandez for working on the PowerPC port, SIMD support, and
  42906. various fixes.
  42907. * Nobuyuki Hikichi of Software Research Associates, Tokyo,
  42908. contributed the support for the Sony NEWS machine.
  42909. * Kazu Hirata for caring and feeding the Renesas H8/300 port and
  42910. various fixes.
  42911. * Katherine Holcomb for work on GNU Fortran.
  42912. * Manfred Hollstein for his ongoing work to keep the m88k alive, lots
  42913. of testing and bug fixing, particularly of GCC configury code.
  42914. * Steve Holmgren for MachTen patches.
  42915. * Mat Hostetter for work on the TILE-Gx and TILEPro ports.
  42916. * Jan Hubicka for his x86 port improvements.
  42917. * Falk Hueffner for working on C and optimization bug reports.
  42918. * Bernardo Innocenti for his m68k work, including merging of ColdFire
  42919. improvements and uClinux support.
  42920. * Christian Iseli for various bug fixes.
  42921. * Kamil Iskra for general m68k hacking.
  42922. * Lee Iverson for random fixes and MIPS testing.
  42923. * Balaji V. Iyer for Cilk+ development and merging.
  42924. * Andreas Jaeger for testing and benchmarking of GCC and various bug
  42925. fixes.
  42926. * Martin Jambor for his work on inter-procedural optimizations, the
  42927. switch conversion pass, and scalar replacement of aggregates.
  42928. * Jakub Jelinek for his SPARC work and sibling call optimizations as
  42929. well as lots of bug fixes and test cases, and for improving the
  42930. Java build system.
  42931. * Janis Johnson for ia64 testing and fixes, her quality improvement
  42932. sidetracks, and web page maintenance.
  42933. * Kean Johnston for SCO OpenServer support and various fixes.
  42934. * Tim Josling for the sample language treelang based originally on
  42935. Richard Kenner's "toy" language.
  42936. * Nicolai Josuttis for additional libstdc++ documentation.
  42937. * Klaus Kaempf for his ongoing work to make alpha-vms a viable
  42938. target.
  42939. * Steven G. Kargl for work on GNU Fortran.
  42940. * David Kashtan of SRI adapted GCC to VMS.
  42941. * Ryszard Kabatek for many, many libstdc++ bug fixes and
  42942. optimizations of strings, especially member functions, and for
  42943. auto_ptr fixes.
  42944. * Geoffrey Keating for his ongoing work to make the PPC work for
  42945. GNU/Linux and his automatic regression tester.
  42946. * Brendan Kehoe for his ongoing work with G++ and for a lot of early
  42947. work in just about every part of libstdc++.
  42948. * Oliver M. Kellogg of Deutsche Aerospace contributed the port to the
  42949. MIL-STD-1750A.
  42950. * Richard Kenner of the New York University Ultracomputer Research
  42951. Laboratory wrote the machine descriptions for the AMD 29000, the
  42952. DEC Alpha, the IBM RT PC, and the IBM RS/6000 as well as the
  42953. support for instruction attributes. He also made changes to better
  42954. support RISC processors including changes to common subexpression
  42955. elimination, strength reduction, function calling sequence
  42956. handling, and condition code support, in addition to generalizing
  42957. the code for frame pointer elimination and delay slot scheduling.
  42958. Richard Kenner was also the head maintainer of GCC for several
  42959. years.
  42960. * Mumit Khan for various contributions to the Cygwin and Mingw32
  42961. ports and maintaining binary releases for Microsoft Windows hosts,
  42962. and for massive libstdc++ porting work to Cygwin/Mingw32.
  42963. * Robin Kirkham for cpu32 support.
  42964. * Mark Klein for PA improvements.
  42965. * Thomas Koenig for various bug fixes.
  42966. * Bruce Korb for the new and improved fixincludes code.
  42967. * Benjamin Kosnik for his G++ work and for leading the libstdc++-v3
  42968. effort.
  42969. * Maxim Kuvyrkov for contributions to the instruction scheduler, the
  42970. Android and m68k/Coldfire ports, and optimizations.
  42971. * Charles LaBrec contributed the support for the Integrated Solutions
  42972. 68020 system.
  42973. * Asher Langton and Mike Kumbera for contributing Cray pointer
  42974. support to GNU Fortran, and for other GNU Fortran improvements.
  42975. * Jeff Law for his direction via the steering committee, coordinating
  42976. the entire egcs project and GCC 2.95, rolling out snapshots and
  42977. releases, handling merges from GCC2, reviewing tons of patches that
  42978. might have fallen through the cracks else, and random but extensive
  42979. hacking.
  42980. * Walter Lee for work on the TILE-Gx and TILEPro ports.
  42981. * Marc Lehmann for his direction via the steering committee and
  42982. helping with analysis and improvements of x86 performance.
  42983. * Victor Leikehman for work on GNU Fortran.
  42984. * Ted Lemon wrote parts of the RTL reader and printer.
  42985. * Kriang Lerdsuwanakij for C++ improvements including template as
  42986. template parameter support, and many C++ fixes.
  42987. * Warren Levy for tremendous work on libgcj (Java Runtime Library)
  42988. and random work on the Java front end.
  42989. * Alain Lichnewsky ported GCC to the MIPS CPU.
  42990. * Oskar Liljeblad for hacking on AWT and his many Java bug reports
  42991. and patches.
  42992. * Robert Lipe for OpenServer support, new testsuites, testing, etc.
  42993. * Chen Liqin for various S+core related fixes/improvement, and for
  42994. maintaining the S+core port.
  42995. * Weiwen Liu for testing and various bug fixes.
  42996. * Manuel Lo'pez-Iba'n~ez for improving '-Wconversion' and many other
  42997. diagnostics fixes and improvements.
  42998. * Dave Love for his ongoing work with the Fortran front end and
  42999. runtime libraries.
  43000. * Martin von Lo"wis for internal consistency checking infrastructure,
  43001. various C++ improvements including namespace support, and tons of
  43002. assistance with libstdc++/compiler merges.
  43003. * H.J. Lu for his previous contributions to the steering committee,
  43004. many x86 bug reports, prototype patches, and keeping the GNU/Linux
  43005. ports working.
  43006. * Greg McGary for random fixes and (someday) bounded pointers.
  43007. * Andrew MacLeod for his ongoing work in building a real EH system,
  43008. various code generation improvements, work on the global optimizer,
  43009. etc.
  43010. * Vladimir Makarov for hacking some ugly i960 problems, PowerPC
  43011. hacking improvements to compile-time performance, overall knowledge
  43012. and direction in the area of instruction scheduling, and design and
  43013. implementation of the automaton based instruction scheduler.
  43014. * Bob Manson for his behind the scenes work on dejagnu.
  43015. * John Marino for contributing the DragonFly BSD port.
  43016. * Philip Martin for lots of libstdc++ string and vector iterator
  43017. fixes and improvements, and string clean up and testsuites.
  43018. * Michael Matz for his work on dominance tree discovery, the x86-64
  43019. port, link-time optimization framework and general optimization
  43020. improvements.
  43021. * All of the Mauve project contributors for Java test code.
  43022. * Bryce McKinlay for numerous GCJ and libgcj fixes and improvements.
  43023. * Adam Megacz for his work on the Microsoft Windows port of GCJ.
  43024. * Michael Meissner for LRS framework, ia32, m32r, v850, m88k, MIPS,
  43025. powerpc, haifa, ECOFF debug support, and other assorted hacking.
  43026. * Jason Merrill for his direction via the steering committee and
  43027. leading the G++ effort.
  43028. * Martin Michlmayr for testing GCC on several architectures using the
  43029. entire Debian archive.
  43030. * David Miller for his direction via the steering committee, lots of
  43031. SPARC work, improvements in jump.c and interfacing with the Linux
  43032. kernel developers.
  43033. * Gary Miller ported GCC to Charles River Data Systems machines.
  43034. * Alfred Minarik for libstdc++ string and ios bug fixes, and turning
  43035. the entire libstdc++ testsuite namespace-compatible.
  43036. * Mark Mitchell for his direction via the steering committee,
  43037. mountains of C++ work, load/store hoisting out of loops, alias
  43038. analysis improvements, ISO C 'restrict' support, and serving as
  43039. release manager from 2000 to 2011.
  43040. * Alan Modra for various GNU/Linux bits and testing.
  43041. * Toon Moene for his direction via the steering committee, Fortran
  43042. maintenance, and his ongoing work to make us make Fortran run fast.
  43043. * Jason Molenda for major help in the care and feeding of all the
  43044. services on the gcc.gnu.org (formerly egcs.cygnus.com)
  43045. machine--mail, web services, ftp services, etc etc. Doing all this
  43046. work on scrap paper and the backs of envelopes would have been...
  43047. difficult.
  43048. * Catherine Moore for fixing various ugly problems we have sent her
  43049. way, including the haifa bug which was killing the Alpha & PowerPC
  43050. Linux kernels.
  43051. * Mike Moreton for his various Java patches.
  43052. * David Mosberger-Tang for various Alpha improvements, and for the
  43053. initial IA-64 port.
  43054. * Stephen Moshier contributed the floating point emulator that
  43055. assists in cross-compilation and permits support for floating point
  43056. numbers wider than 64 bits and for ISO C99 support.
  43057. * Bill Moyer for his behind the scenes work on various issues.
  43058. * Philippe De Muyter for his work on the m68k port.
  43059. * Joseph S. Myers for his work on the PDP-11 port, format checking
  43060. and ISO C99 support, and continuous emphasis on (and contributions
  43061. to) documentation.
  43062. * Nathan Myers for his work on libstdc++-v3: architecture and
  43063. authorship through the first three snapshots, including
  43064. implementation of locale infrastructure, string, shadow C headers,
  43065. and the initial project documentation (DESIGN, CHECKLIST, and so
  43066. forth). Later, more work on MT-safe string and shadow headers.
  43067. * Felix Natter for documentation on porting libstdc++.
  43068. * Nathanael Nerode for cleaning up the configuration/build process.
  43069. * NeXT, Inc. donated the front end that supports the Objective-C
  43070. language.
  43071. * Hans-Peter Nilsson for the CRIS and MMIX ports, improvements to the
  43072. search engine setup, various documentation fixes and other small
  43073. fixes.
  43074. * Geoff Noer for his work on getting cygwin native builds working.
  43075. * Diego Novillo for his work on Tree SSA, OpenMP, SPEC performance
  43076. tracking web pages, GIMPLE tuples, and assorted fixes.
  43077. * David O'Brien for the FreeBSD/alpha, FreeBSD/AMD x86-64,
  43078. FreeBSD/ARM, FreeBSD/PowerPC, and FreeBSD/SPARC64 ports and related
  43079. infrastructure improvements.
  43080. * Alexandre Oliva for various build infrastructure improvements,
  43081. scripts and amazing testing work, including keeping libtool issues
  43082. sane and happy.
  43083. * Stefan Olsson for work on mt_alloc.
  43084. * Melissa O'Neill for various NeXT fixes.
  43085. * Rainer Orth for random MIPS work, including improvements to GCC's
  43086. o32 ABI support, improvements to dejagnu's MIPS support, Java
  43087. configuration clean-ups and porting work, and maintaining the IRIX,
  43088. Solaris 2, and Tru64 UNIX ports.
  43089. * Hartmut Penner for work on the s390 port.
  43090. * Paul Petersen wrote the machine description for the Alliant FX/8.
  43091. * Alexandre Petit-Bianco for implementing much of the Java compiler
  43092. and continued Java maintainership.
  43093. * Matthias Pfaller for major improvements to the NS32k port.
  43094. * Gerald Pfeifer for his direction via the steering committee,
  43095. pointing out lots of problems we need to solve, maintenance of the
  43096. web pages, and taking care of documentation maintenance in general.
  43097. * Andrew Pinski for processing bug reports by the dozen.
  43098. * Ovidiu Predescu for his work on the Objective-C front end and
  43099. runtime libraries.
  43100. * Jerry Quinn for major performance improvements in C++ formatted
  43101. I/O.
  43102. * Ken Raeburn for various improvements to checker, MIPS ports and
  43103. various cleanups in the compiler.
  43104. * Rolf W. Rasmussen for hacking on AWT.
  43105. * David Reese of Sun Microsystems contributed to the Solaris on
  43106. PowerPC port.
  43107. * Volker Reichelt for keeping up with the problem reports.
  43108. * Joern Rennecke for maintaining the sh port, loop, regmove & reload
  43109. hacking and developing and maintaining the Epiphany port.
  43110. * Loren J. Rittle for improvements to libstdc++-v3 including the
  43111. FreeBSD port, threading fixes, thread-related configury changes,
  43112. critical threading documentation, and solutions to really tricky
  43113. I/O problems, as well as keeping GCC properly working on FreeBSD
  43114. and continuous testing.
  43115. * Craig Rodrigues for processing tons of bug reports.
  43116. * Ola Ro"nnerup for work on mt_alloc.
  43117. * Gavin Romig-Koch for lots of behind the scenes MIPS work.
  43118. * David Ronis inspired and encouraged Craig to rewrite the G77
  43119. documentation in texinfo format by contributing a first pass at a
  43120. translation of the old 'g77-0.5.16/f/DOC' file.
  43121. * Ken Rose for fixes to GCC's delay slot filling code.
  43122. * Ira Rosen for her contributions to the auto-vectorizer.
  43123. * Paul Rubin wrote most of the preprocessor.
  43124. * Pe'tur Runo'lfsson for major performance improvements in C++
  43125. formatted I/O and large file support in C++ filebuf.
  43126. * Chip Salzenberg for libstdc++ patches and improvements to locales,
  43127. traits, Makefiles, libio, libtool hackery, and "long long" support.
  43128. * Juha Sarlin for improvements to the H8 code generator.
  43129. * Greg Satz assisted in making GCC work on HP-UX for the 9000 series
  43130. 300.
  43131. * Roger Sayle for improvements to constant folding and GCC's RTL
  43132. optimizers as well as for fixing numerous bugs.
  43133. * Bradley Schatz for his work on the GCJ FAQ.
  43134. * Peter Schauer wrote the code to allow debugging to work on the
  43135. Alpha.
  43136. * William Schelter did most of the work on the Intel 80386 support.
  43137. * Tobias Schlu"ter for work on GNU Fortran.
  43138. * Bernd Schmidt for various code generation improvements and major
  43139. work in the reload pass, serving as release manager for GCC 2.95.3,
  43140. and work on the Blackfin and C6X ports.
  43141. * Peter Schmid for constant testing of libstdc++--especially
  43142. application testing, going above and beyond what was requested for
  43143. the release criteria--and libstdc++ header file tweaks.
  43144. * Jason Schroeder for jcf-dump patches.
  43145. * Andreas Schwab for his work on the m68k port.
  43146. * Lars Segerlund for work on GNU Fortran.
  43147. * Dodji Seketeli for numerous C++ bug fixes and debug info
  43148. improvements.
  43149. * Tim Shen for major work on '<regex>'.
  43150. * Joel Sherrill for his direction via the steering committee, RTEMS
  43151. contributions and RTEMS testing.
  43152. * Nathan Sidwell for many C++ fixes/improvements.
  43153. * Jeffrey Siegal for helping RMS with the original design of GCC,
  43154. some code which handles the parse tree and RTL data structures,
  43155. constant folding and help with the original VAX & m68k ports.
  43156. * Kenny Simpson for prompting libstdc++ fixes due to defect reports
  43157. from the LWG (thereby keeping GCC in line with updates from the
  43158. ISO).
  43159. * Franz Sirl for his ongoing work with making the PPC port stable for
  43160. GNU/Linux.
  43161. * Andrey Slepuhin for assorted AIX hacking.
  43162. * Trevor Smigiel for contributing the SPU port.
  43163. * Christopher Smith did the port for Convex machines.
  43164. * Danny Smith for his major efforts on the Mingw (and Cygwin) ports.
  43165. Retired from GCC maintainership August 2010, having mentored two
  43166. new maintainers into the role.
  43167. * Randy Smith finished the Sun FPA support.
  43168. * Ed Smith-Rowland for his continuous work on libstdc++-v3, special
  43169. functions, '<random>', and various improvements to C++11 features.
  43170. * Scott Snyder for queue, iterator, istream, and string fixes and
  43171. libstdc++ testsuite entries. Also for providing the patch to G77
  43172. to add rudimentary support for 'INTEGER*1', 'INTEGER*2', and
  43173. 'LOGICAL*1'.
  43174. * Zdenek Sojka for running automated regression testing of GCC and
  43175. reporting numerous bugs.
  43176. * Jayant Sonar for contributing the CR16 port.
  43177. * Brad Spencer for contributions to the GLIBCPP_FORCE_NEW technique.
  43178. * Richard Stallman, for writing the original GCC and launching the
  43179. GNU project.
  43180. * Jan Stein of the Chalmers Computer Society provided support for
  43181. Genix, as well as part of the 32000 machine description.
  43182. * Nigel Stephens for various mips16 related fixes/improvements.
  43183. * Jonathan Stone wrote the machine description for the Pyramid
  43184. computer.
  43185. * Graham Stott for various infrastructure improvements.
  43186. * John Stracke for his Java HTTP protocol fixes.
  43187. * Mike Stump for his Elxsi port, G++ contributions over the years and
  43188. more recently his vxworks contributions
  43189. * Jeff Sturm for Java porting help, bug fixes, and encouragement.
  43190. * Shigeya Suzuki for this fixes for the bsdi platforms.
  43191. * Ian Lance Taylor for the Go frontend, the initial mips16 and mips64
  43192. support, general configury hacking, fixincludes, etc.
  43193. * Holger Teutsch provided the support for the Clipper CPU.
  43194. * Gary Thomas for his ongoing work to make the PPC work for
  43195. GNU/Linux.
  43196. * Paul Thomas for contributions to GNU Fortran.
  43197. * Philipp Thomas for random bug fixes throughout the compiler
  43198. * Jason Thorpe for thread support in libstdc++ on NetBSD.
  43199. * Kresten Krab Thorup wrote the run time support for the Objective-C
  43200. language and the fantastic Java bytecode interpreter.
  43201. * Michael Tiemann for random bug fixes, the first instruction
  43202. scheduler, initial C++ support, function integration, NS32k, SPARC
  43203. and M88k machine description work, delay slot scheduling.
  43204. * Andreas Tobler for his work porting libgcj to Darwin.
  43205. * Teemu Torma for thread safe exception handling support.
  43206. * Leonard Tower wrote parts of the parser, RTL generator, and RTL
  43207. definitions, and of the VAX machine description.
  43208. * Daniel Towner and Hariharan Sandanagobalane contributed and
  43209. maintain the picoChip port.
  43210. * Tom Tromey for internationalization support and for his many Java
  43211. contributions and libgcj maintainership.
  43212. * Lassi Tuura for improvements to config.guess to determine HP
  43213. processor types.
  43214. * Petter Urkedal for libstdc++ CXXFLAGS, math, and algorithms fixes.
  43215. * Andy Vaught for the design and initial implementation of the GNU
  43216. Fortran front end.
  43217. * Brent Verner for work with the libstdc++ cshadow files and their
  43218. associated configure steps.
  43219. * Todd Vierling for contributions for NetBSD ports.
  43220. * Andrew Waterman for contributing the RISC-V port, as well as
  43221. maintaining it.
  43222. * Jonathan Wakely for contributing libstdc++ Doxygen notes and XHTML
  43223. guidance.
  43224. * Dean Wakerley for converting the install documentation from HTML to
  43225. texinfo in time for GCC 3.0.
  43226. * Krister Walfridsson for random bug fixes.
  43227. * Feng Wang for contributions to GNU Fortran.
  43228. * Stephen M. Webb for time and effort on making libstdc++ shadow
  43229. files work with the tricky Solaris 8+ headers, and for pushing the
  43230. build-time header tree. Also, for starting and driving the
  43231. '<regex>' effort.
  43232. * John Wehle for various improvements for the x86 code generator,
  43233. related infrastructure improvements to help x86 code generation,
  43234. value range propagation and other work, WE32k port.
  43235. * Ulrich Weigand for work on the s390 port.
  43236. * Janus Weil for contributions to GNU Fortran.
  43237. * Zack Weinberg for major work on cpplib and various other bug fixes.
  43238. * Matt Welsh for help with Linux Threads support in GCJ.
  43239. * Urban Widmark for help fixing java.io.
  43240. * Mark Wielaard for new Java library code and his work integrating
  43241. with Classpath.
  43242. * Dale Wiles helped port GCC to the Tahoe.
  43243. * Bob Wilson from Tensilica, Inc. for the Xtensa port.
  43244. * Jim Wilson for his direction via the steering committee, tackling
  43245. hard problems in various places that nobody else wanted to work on,
  43246. strength reduction and other loop optimizations.
  43247. * Paul Woegerer and Tal Agmon for the CRX port.
  43248. * Carlo Wood for various fixes.
  43249. * Tom Wood for work on the m88k port.
  43250. * Chung-Ju Wu for his work on the Andes NDS32 port.
  43251. * Canqun Yang for work on GNU Fortran.
  43252. * Masanobu Yuhara of Fujitsu Laboratories implemented the machine
  43253. description for the Tron architecture (specifically, the Gmicro).
  43254. * Kevin Zachmann helped port GCC to the Tahoe.
  43255. * Ayal Zaks for Swing Modulo Scheduling (SMS).
  43256. * Xiaoqiang Zhang for work on GNU Fortran.
  43257. * Gilles Zunino for help porting Java to Irix.
  43258. The following people are recognized for their contributions to GNAT,
  43259. the Ada front end of GCC:
  43260. * Bernard Banner
  43261. * Romain Berrendonner
  43262. * Geert Bosch
  43263. * Emmanuel Briot
  43264. * Joel Brobecker
  43265. * Ben Brosgol
  43266. * Vincent Celier
  43267. * Arnaud Charlet
  43268. * Chien Chieng
  43269. * Cyrille Comar
  43270. * Cyrille Crozes
  43271. * Robert Dewar
  43272. * Gary Dismukes
  43273. * Robert Duff
  43274. * Ed Falis
  43275. * Ramon Fernandez
  43276. * Sam Figueroa
  43277. * Vasiliy Fofanov
  43278. * Michael Friess
  43279. * Franco Gasperoni
  43280. * Ted Giering
  43281. * Matthew Gingell
  43282. * Laurent Guerby
  43283. * Jerome Guitton
  43284. * Olivier Hainque
  43285. * Jerome Hugues
  43286. * Hristian Kirtchev
  43287. * Jerome Lambourg
  43288. * Bruno Leclerc
  43289. * Albert Lee
  43290. * Sean McNeil
  43291. * Javier Miranda
  43292. * Laurent Nana
  43293. * Pascal Obry
  43294. * Dong-Ik Oh
  43295. * Laurent Pautet
  43296. * Brett Porter
  43297. * Thomas Quinot
  43298. * Nicolas Roche
  43299. * Pat Rogers
  43300. * Jose Ruiz
  43301. * Douglas Rupp
  43302. * Sergey Rybin
  43303. * Gail Schenker
  43304. * Ed Schonberg
  43305. * Nicolas Setton
  43306. * Samuel Tardieu
  43307. The following people are recognized for their contributions of new
  43308. features, bug reports, testing and integration of classpath/libgcj for
  43309. GCC version 4.1:
  43310. * Lillian Angel for 'JTree' implementation and lots Free Swing
  43311. additions and bug fixes.
  43312. * Wolfgang Baer for 'GapContent' bug fixes.
  43313. * Anthony Balkissoon for 'JList', Free Swing 1.5 updates and mouse
  43314. event fixes, lots of Free Swing work including 'JTable' editing.
  43315. * Stuart Ballard for RMI constant fixes.
  43316. * Goffredo Baroncelli for 'HTTPURLConnection' fixes.
  43317. * Gary Benson for 'MessageFormat' fixes.
  43318. * Daniel Bonniot for 'Serialization' fixes.
  43319. * Chris Burdess for lots of gnu.xml and http protocol fixes, 'StAX'
  43320. and 'DOM xml:id' support.
  43321. * Ka-Hing Cheung for 'TreePath' and 'TreeSelection' fixes.
  43322. * Archie Cobbs for build fixes, VM interface updates,
  43323. 'URLClassLoader' updates.
  43324. * Kelley Cook for build fixes.
  43325. * Martin Cordova for Suggestions for better 'SocketTimeoutException'.
  43326. * David Daney for 'BitSet' bug fixes, 'HttpURLConnection' rewrite and
  43327. improvements.
  43328. * Thomas Fitzsimmons for lots of upgrades to the gtk+ AWT and Cairo
  43329. 2D support. Lots of imageio framework additions, lots of AWT and
  43330. Free Swing bug fixes.
  43331. * Jeroen Frijters for 'ClassLoader' and nio cleanups, serialization
  43332. fixes, better 'Proxy' support, bug fixes and IKVM integration.
  43333. * Santiago Gala for 'AccessControlContext' fixes.
  43334. * Nicolas Geoffray for 'VMClassLoader' and 'AccessController'
  43335. improvements.
  43336. * David Gilbert for 'basic' and 'metal' icon and plaf support and
  43337. lots of documenting, Lots of Free Swing and metal theme additions.
  43338. 'MetalIconFactory' implementation.
  43339. * Anthony Green for 'MIDI' framework, 'ALSA' and 'DSSI' providers.
  43340. * Andrew Haley for 'Serialization' and 'URLClassLoader' fixes, gcj
  43341. build speedups.
  43342. * Kim Ho for 'JFileChooser' implementation.
  43343. * Andrew John Hughes for 'Locale' and net fixes, URI RFC2986 updates,
  43344. 'Serialization' fixes, 'Properties' XML support and generic branch
  43345. work, VMIntegration guide update.
  43346. * Bastiaan Huisman for 'TimeZone' bug fixing.
  43347. * Andreas Jaeger for mprec updates.
  43348. * Paul Jenner for better '-Werror' support.
  43349. * Ito Kazumitsu for 'NetworkInterface' implementation and updates.
  43350. * Roman Kennke for 'BoxLayout', 'GrayFilter' and 'SplitPane', plus
  43351. bug fixes all over. Lots of Free Swing work including styled text.
  43352. * Simon Kitching for 'String' cleanups and optimization suggestions.
  43353. * Michael Koch for configuration fixes, 'Locale' updates, bug and
  43354. build fixes.
  43355. * Guilhem Lavaux for configuration, thread and channel fixes and
  43356. Kaffe integration. JCL native 'Pointer' updates. Logger bug
  43357. fixes.
  43358. * David Lichteblau for JCL support library global/local reference
  43359. cleanups.
  43360. * Aaron Luchko for JDWP updates and documentation fixes.
  43361. * Ziga Mahkovec for 'Graphics2D' upgraded to Cairo 0.5 and new regex
  43362. features.
  43363. * Sven de Marothy for BMP imageio support, CSS and 'TextLayout'
  43364. fixes. 'GtkImage' rewrite, 2D, awt, free swing and date/time fixes
  43365. and implementing the Qt4 peers.
  43366. * Casey Marshall for crypto algorithm fixes, 'FileChannel' lock,
  43367. 'SystemLogger' and 'FileHandler' rotate implementations, NIO
  43368. 'FileChannel.map' support, security and policy updates.
  43369. * Bryce McKinlay for RMI work.
  43370. * Audrius Meskauskas for lots of Free Corba, RMI and HTML work plus
  43371. testing and documenting.
  43372. * Kalle Olavi Niemitalo for build fixes.
  43373. * Rainer Orth for build fixes.
  43374. * Andrew Overholt for 'File' locking fixes.
  43375. * Ingo Proetel for 'Image', 'Logger' and 'URLClassLoader' updates.
  43376. * Olga Rodimina for 'MenuSelectionManager' implementation.
  43377. * Jan Roehrich for 'BasicTreeUI' and 'JTree' fixes.
  43378. * Julian Scheid for documentation updates and gjdoc support.
  43379. * Christian Schlichtherle for zip fixes and cleanups.
  43380. * Robert Schuster for documentation updates and beans fixes,
  43381. 'TreeNode' enumerations and 'ActionCommand' and various fixes, XML
  43382. and URL, AWT and Free Swing bug fixes.
  43383. * Keith Seitz for lots of JDWP work.
  43384. * Christian Thalinger for 64-bit cleanups, Configuration and VM
  43385. interface fixes and 'CACAO' integration, 'fdlibm' updates.
  43386. * Gael Thomas for 'VMClassLoader' boot packages support suggestions.
  43387. * Andreas Tobler for Darwin and Solaris testing and fixing, 'Qt4'
  43388. support for Darwin/OS X, 'Graphics2D' support, 'gtk+' updates.
  43389. * Dalibor Topic for better 'DEBUG' support, build cleanups and Kaffe
  43390. integration. 'Qt4' build infrastructure, 'SHA1PRNG' and
  43391. 'GdkPixbugDecoder' updates.
  43392. * Tom Tromey for Eclipse integration, generics work, lots of bug
  43393. fixes and gcj integration including coordinating The Big Merge.
  43394. * Mark Wielaard for bug fixes, packaging and release management,
  43395. 'Clipboard' implementation, system call interrupts and network
  43396. timeouts and 'GdkPixpufDecoder' fixes.
  43397. In addition to the above, all of which also contributed time and energy
  43398. in testing GCC, we would like to thank the following for their
  43399. contributions to testing:
  43400. * Michael Abd-El-Malek
  43401. * Thomas Arend
  43402. * Bonzo Armstrong
  43403. * Steven Ashe
  43404. * Chris Baldwin
  43405. * David Billinghurst
  43406. * Jim Blandy
  43407. * Stephane Bortzmeyer
  43408. * Horst von Brand
  43409. * Frank Braun
  43410. * Rodney Brown
  43411. * Sidney Cadot
  43412. * Bradford Castalia
  43413. * Robert Clark
  43414. * Jonathan Corbet
  43415. * Ralph Doncaster
  43416. * Richard Emberson
  43417. * Levente Farkas
  43418. * Graham Fawcett
  43419. * Mark Fernyhough
  43420. * Robert A. French
  43421. * Jo"rgen Freyh
  43422. * Mark K. Gardner
  43423. * Charles-Antoine Gauthier
  43424. * Yung Shing Gene
  43425. * David Gilbert
  43426. * Simon Gornall
  43427. * Fred Gray
  43428. * John Griffin
  43429. * Patrik Hagglund
  43430. * Phil Hargett
  43431. * Amancio Hasty
  43432. * Takafumi Hayashi
  43433. * Bryan W. Headley
  43434. * Kevin B. Hendricks
  43435. * Joep Jansen
  43436. * Christian Joensson
  43437. * Michel Kern
  43438. * David Kidd
  43439. * Tobias Kuipers
  43440. * Anand Krishnaswamy
  43441. * A. O. V. Le Blanc
  43442. * llewelly
  43443. * Damon Love
  43444. * Brad Lucier
  43445. * Matthias Klose
  43446. * Martin Knoblauch
  43447. * Rick Lutowski
  43448. * Jesse Macnish
  43449. * Stefan Morrell
  43450. * Anon A. Mous
  43451. * Matthias Mueller
  43452. * Pekka Nikander
  43453. * Rick Niles
  43454. * Jon Olson
  43455. * Magnus Persson
  43456. * Chris Pollard
  43457. * Richard Polton
  43458. * Derk Reefman
  43459. * David Rees
  43460. * Paul Reilly
  43461. * Tom Reilly
  43462. * Torsten Rueger
  43463. * Danny Sadinoff
  43464. * Marc Schifer
  43465. * Erik Schnetter
  43466. * Wayne K. Schroll
  43467. * David Schuler
  43468. * Vin Shelton
  43469. * Tim Souder
  43470. * Adam Sulmicki
  43471. * Bill Thorson
  43472. * George Talbot
  43473. * Pedro A. M. Vazquez
  43474. * Gregory Warnes
  43475. * Ian Watson
  43476. * David E. Young
  43477. * And many others
  43478. And finally we'd like to thank everyone who uses the compiler, provides
  43479. feedback and generally reminds us why we're doing this work in the first
  43480. place.
  43481. 
  43482. File: gcc.info, Node: Option Index, Next: Keyword Index, Prev: Contributors, Up: Top
  43483. Option Index
  43484. ************
  43485. GCC's command line options are indexed here without any initial '-' or
  43486. '--'. Where an option has both positive and negative forms (such as
  43487. '-fOPTION' and '-fno-OPTION'), relevant entries in the manual are
  43488. indexed under the most appropriate form; it may sometimes be useful to
  43489. look up both forms.
  43490. �[index�]
  43491. * Menu:
  43492. * ###: Overall Options. (line 204)
  43493. * -fipa-bit-cp: Optimize Options. (line 1021)
  43494. * -fipa-vrp: Optimize Options. (line 1026)
  43495. * -mfunction-return: x86 Options. (line 1193)
  43496. * -mindirect-branch: x86 Options. (line 1179)
  43497. * -mindirect-branch-register: x86 Options. (line 1207)
  43498. * -mlow-precision-div: AArch64 Options. (line 103)
  43499. * -mlow-precision-sqrt: AArch64 Options. (line 94)
  43500. * -mno-low-precision-div: AArch64 Options. (line 103)
  43501. * -mno-low-precision-sqrt: AArch64 Options. (line 94)
  43502. * -Wabi-tag: C++ Dialect Options.
  43503. (line 550)
  43504. * -Wno-scalar-storage-order: Warning Options. (line 2065)
  43505. * -Wscalar-storage-order: Warning Options. (line 2065)
  43506. * 80387: x86 Options. (line 426)
  43507. * A: Preprocessor Options.
  43508. (line 317)
  43509. * allowable_client: Darwin Options. (line 196)
  43510. * all_load: Darwin Options. (line 110)
  43511. * ansi: Standards. (line 13)
  43512. * ansi <1>: C Dialect Options. (line 11)
  43513. * ansi <2>: Other Builtins. (line 31)
  43514. * ansi <3>: Non-bugs. (line 107)
  43515. * arch_errors_fatal: Darwin Options. (line 114)
  43516. * aux-info: C Dialect Options. (line 194)
  43517. * B: Directory Options. (line 122)
  43518. * Bdynamic: VxWorks Options. (line 22)
  43519. * bind_at_load: Darwin Options. (line 118)
  43520. * Bstatic: VxWorks Options. (line 22)
  43521. * bundle: Darwin Options. (line 123)
  43522. * bundle_loader: Darwin Options. (line 127)
  43523. * c: Overall Options. (line 159)
  43524. * C: Preprocessor Options.
  43525. (line 326)
  43526. * c <1>: Link Options. (line 20)
  43527. * CC: Preprocessor Options.
  43528. (line 338)
  43529. * client_name: Darwin Options. (line 196)
  43530. * compatibility_version: Darwin Options. (line 196)
  43531. * coverage: Instrumentation Options.
  43532. (line 51)
  43533. * current_version: Darwin Options. (line 196)
  43534. * D: Preprocessor Options.
  43535. (line 19)
  43536. * d: Preprocessor Options.
  43537. (line 392)
  43538. * d <1>: Developer Options. (line 18)
  43539. * da: Developer Options. (line 225)
  43540. * dA: Developer Options. (line 228)
  43541. * dD: Preprocessor Options.
  43542. (line 416)
  43543. * dD <1>: Developer Options. (line 232)
  43544. * dead_strip: Darwin Options. (line 196)
  43545. * dependency-file: Darwin Options. (line 196)
  43546. * dH: Developer Options. (line 236)
  43547. * dI: Preprocessor Options.
  43548. (line 426)
  43549. * dM: Preprocessor Options.
  43550. (line 401)
  43551. * dN: Preprocessor Options.
  43552. (line 422)
  43553. * dp: Developer Options. (line 239)
  43554. * dP: Developer Options. (line 244)
  43555. * dU: Preprocessor Options.
  43556. (line 430)
  43557. * dumpfullversion: Developer Options. (line 946)
  43558. * dumpmachine: Developer Options. (line 934)
  43559. * dumpspecs: Developer Options. (line 950)
  43560. * dumpversion: Developer Options. (line 938)
  43561. * dx: Developer Options. (line 248)
  43562. * dylib_file: Darwin Options. (line 196)
  43563. * dylinker_install_name: Darwin Options. (line 196)
  43564. * dynamic: Darwin Options. (line 196)
  43565. * dynamiclib: Darwin Options. (line 131)
  43566. * E: Overall Options. (line 180)
  43567. * E <1>: Link Options. (line 20)
  43568. * EB: ARC Options. (line 542)
  43569. * EB <1>: MIPS Options. (line 7)
  43570. * EL: ARC Options. (line 551)
  43571. * EL <1>: MIPS Options. (line 10)
  43572. * exported_symbols_list: Darwin Options. (line 196)
  43573. * F: Darwin Options. (line 31)
  43574. * fabi-compat-version: C++ Dialect Options.
  43575. (line 76)
  43576. * fabi-version: C++ Dialect Options.
  43577. (line 24)
  43578. * fada-spec-parent: Overall Options. (line 375)
  43579. * faggressive-loop-optimizations: Optimize Options. (line 519)
  43580. * falign-functions: Optimize Options. (line 1542)
  43581. * falign-jumps: Optimize Options. (line 1600)
  43582. * falign-labels: Optimize Options. (line 1567)
  43583. * falign-loops: Optimize Options. (line 1586)
  43584. * faligned-new: C++ Dialect Options.
  43585. (line 96)
  43586. * fallow-parameterless-variadic-functions: C Dialect Options.
  43587. (line 210)
  43588. * fasan-shadow-offset: Instrumentation Options.
  43589. (line 333)
  43590. * fassociative-math: Optimize Options. (line 2077)
  43591. * fasynchronous-unwind-tables: Code Gen Options. (line 146)
  43592. * fauto-inc-dec: Optimize Options. (line 541)
  43593. * fauto-profile: Optimize Options. (line 1956)
  43594. * fbounds-check: Instrumentation Options.
  43595. (line 393)
  43596. * fbranch-probabilities: Optimize Options. (line 2222)
  43597. * fbranch-target-load-optimize: Optimize Options. (line 2348)
  43598. * fbranch-target-load-optimize2: Optimize Options. (line 2354)
  43599. * fbtr-bb-exclusive: Optimize Options. (line 2358)
  43600. * fcall-saved: Code Gen Options. (line 444)
  43601. * fcall-used: Code Gen Options. (line 430)
  43602. * fcaller-saves: Optimize Options. (line 899)
  43603. * fcheck-new: C++ Dialect Options.
  43604. (line 103)
  43605. * fcheck-pointer-bounds: Instrumentation Options.
  43606. (line 399)
  43607. * fchecking: Developer Options. (line 628)
  43608. * fchkp-check-incomplete-type: Instrumentation Options.
  43609. (line 437)
  43610. * fchkp-check-read: Instrumentation Options.
  43611. (line 493)
  43612. * fchkp-check-write: Instrumentation Options.
  43613. (line 497)
  43614. * fchkp-first-field-has-own-bounds: Instrumentation Options.
  43615. (line 448)
  43616. * fchkp-flexible-struct-trailing-arrays: Instrumentation Options.
  43617. (line 454)
  43618. * fchkp-instrument-calls: Instrumentation Options.
  43619. (line 505)
  43620. * fchkp-instrument-marked-only: Instrumentation Options.
  43621. (line 509)
  43622. * fchkp-narrow-bounds: Instrumentation Options.
  43623. (line 441)
  43624. * fchkp-narrow-to-innermost-array: Instrumentation Options.
  43625. (line 460)
  43626. * fchkp-optimize: Instrumentation Options.
  43627. (line 465)
  43628. * fchkp-store-bounds: Instrumentation Options.
  43629. (line 501)
  43630. * fchkp-treat-zero-dynamic-size-as-infinite: Instrumentation Options.
  43631. (line 486)
  43632. * fchkp-use-fast-string-functions: Instrumentation Options.
  43633. (line 469)
  43634. * fchkp-use-nochk-string-functions: Instrumentation Options.
  43635. (line 473)
  43636. * fchkp-use-static-bounds: Instrumentation Options.
  43637. (line 477)
  43638. * fchkp-use-static-const-bounds: Instrumentation Options.
  43639. (line 481)
  43640. * fchkp-use-wrappers: Instrumentation Options.
  43641. (line 514)
  43642. * fcilkplus: C Dialect Options. (line 318)
  43643. * fcode-hoisting: Optimize Options. (line 940)
  43644. * fcombine-stack-adjustments: Optimize Options. (line 911)
  43645. * fcommon: Common Variable Attributes.
  43646. (line 89)
  43647. * fcompare-debug: Developer Options. (line 722)
  43648. * fcompare-debug-second: Developer Options. (line 748)
  43649. * fcompare-elim: Optimize Options. (line 1909)
  43650. * fconcepts: C++ Dialect Options.
  43651. (line 113)
  43652. * fcond-mismatch: C Dialect Options. (line 371)
  43653. * fconserve-stack: Optimize Options. (line 930)
  43654. * fconstant-string-class: Objective-C and Objective-C++ Dialect Options.
  43655. (line 30)
  43656. * fconstexpr-depth: C++ Dialect Options.
  43657. (line 120)
  43658. * fconstexpr-loop-limit: C++ Dialect Options.
  43659. (line 126)
  43660. * fcprop-registers: Optimize Options. (line 1921)
  43661. * fcrossjumping: Optimize Options. (line 534)
  43662. * fcse-follow-jumps: Optimize Options. (line 455)
  43663. * fcse-skip-blocks: Optimize Options. (line 464)
  43664. * fcx-fortran-rules: Optimize Options. (line 2209)
  43665. * fcx-limited-range: Optimize Options. (line 2197)
  43666. * fdata-sections: Optimize Options. (line 2329)
  43667. * fdbg-cnt: Developer Options. (line 858)
  43668. * fdbg-cnt-list: Developer Options. (line 855)
  43669. * fdce: Optimize Options. (line 547)
  43670. * fdebug-cpp: Preprocessor Options.
  43671. (line 437)
  43672. * fdebug-prefix-map: Debugging Options. (line 144)
  43673. * fdebug-types-section: Debugging Options. (line 184)
  43674. * fdeclone-ctor-dtor: Optimize Options. (line 570)
  43675. * fdeduce-init-list: C++ Dialect Options.
  43676. (line 131)
  43677. * fdelayed-branch: Optimize Options. (line 723)
  43678. * fdelete-dead-exceptions: Code Gen Options. (line 131)
  43679. * fdelete-null-pointer-checks: Optimize Options. (line 581)
  43680. * fdevirtualize: Optimize Options. (line 602)
  43681. * fdevirtualize-at-ltrans: Optimize Options. (line 619)
  43682. * fdevirtualize-speculatively: Optimize Options. (line 609)
  43683. * fdiagnostics-color: Diagnostic Message Formatting Options.
  43684. (line 35)
  43685. * fdiagnostics-generate-patch: Diagnostic Message Formatting Options.
  43686. (line 155)
  43687. * fdiagnostics-parseable-fixits: Diagnostic Message Formatting Options.
  43688. (line 128)
  43689. * fdiagnostics-show-caret: Diagnostic Message Formatting Options.
  43690. (line 119)
  43691. * fdiagnostics-show-location: Diagnostic Message Formatting Options.
  43692. (line 20)
  43693. * fdiagnostics-show-option: Diagnostic Message Formatting Options.
  43694. (line 113)
  43695. * fdirectives-only: Preprocessor Options.
  43696. (line 200)
  43697. * fdisable-: Developer Options. (line 559)
  43698. * fdollars-in-identifiers: Preprocessor Options.
  43699. (line 221)
  43700. * fdollars-in-identifiers <1>: Interoperation. (line 141)
  43701. * fdpic: SH Options. (line 388)
  43702. * fdse: Optimize Options. (line 551)
  43703. * fdump-ada-spec: Overall Options. (line 370)
  43704. * fdump-class-hierarchy: Developer Options. (line 283)
  43705. * fdump-final-insns: Developer Options. (line 716)
  43706. * fdump-go-spec: Overall Options. (line 379)
  43707. * fdump-ipa: Developer Options. (line 291)
  43708. * fdump-noaddr: Developer Options. (line 252)
  43709. * fdump-passes: Developer Options. (line 308)
  43710. * fdump-rtl-alignments: Developer Options. (line 44)
  43711. * fdump-rtl-all: Developer Options. (line 225)
  43712. * fdump-rtl-asmcons: Developer Options. (line 47)
  43713. * fdump-rtl-auto_inc_dec: Developer Options. (line 51)
  43714. * fdump-rtl-barriers: Developer Options. (line 55)
  43715. * fdump-rtl-bbpart: Developer Options. (line 58)
  43716. * fdump-rtl-bbro: Developer Options. (line 61)
  43717. * fdump-rtl-btl2: Developer Options. (line 65)
  43718. * fdump-rtl-btl2 <1>: Developer Options. (line 65)
  43719. * fdump-rtl-bypass: Developer Options. (line 69)
  43720. * fdump-rtl-ce1: Developer Options. (line 80)
  43721. * fdump-rtl-ce2: Developer Options. (line 80)
  43722. * fdump-rtl-ce3: Developer Options. (line 80)
  43723. * fdump-rtl-combine: Developer Options. (line 72)
  43724. * fdump-rtl-compgotos: Developer Options. (line 75)
  43725. * fdump-rtl-cprop_hardreg: Developer Options. (line 84)
  43726. * fdump-rtl-csa: Developer Options. (line 87)
  43727. * fdump-rtl-cse1: Developer Options. (line 91)
  43728. * fdump-rtl-cse2: Developer Options. (line 91)
  43729. * fdump-rtl-dbr: Developer Options. (line 98)
  43730. * fdump-rtl-dce: Developer Options. (line 95)
  43731. * fdump-rtl-dce1: Developer Options. (line 102)
  43732. * fdump-rtl-dce2: Developer Options. (line 102)
  43733. * fdump-rtl-dfinish: Developer Options. (line 221)
  43734. * fdump-rtl-dfinit: Developer Options. (line 221)
  43735. * fdump-rtl-eh: Developer Options. (line 106)
  43736. * fdump-rtl-eh_ranges: Developer Options. (line 109)
  43737. * fdump-rtl-expand: Developer Options. (line 112)
  43738. * fdump-rtl-fwprop1: Developer Options. (line 116)
  43739. * fdump-rtl-fwprop2: Developer Options. (line 116)
  43740. * fdump-rtl-gcse1: Developer Options. (line 121)
  43741. * fdump-rtl-gcse2: Developer Options. (line 121)
  43742. * fdump-rtl-init-regs: Developer Options. (line 125)
  43743. * fdump-rtl-initvals: Developer Options. (line 128)
  43744. * fdump-rtl-into_cfglayout: Developer Options. (line 131)
  43745. * fdump-rtl-ira: Developer Options. (line 134)
  43746. * fdump-rtl-jump: Developer Options. (line 137)
  43747. * fdump-rtl-loop2: Developer Options. (line 140)
  43748. * fdump-rtl-mach: Developer Options. (line 144)
  43749. * fdump-rtl-mode_sw: Developer Options. (line 148)
  43750. * fdump-rtl-outof_cfglayout: Developer Options. (line 154)
  43751. * fdump-rtl-PASS: Developer Options. (line 18)
  43752. * fdump-rtl-peephole2: Developer Options. (line 157)
  43753. * fdump-rtl-postreload: Developer Options. (line 160)
  43754. * fdump-rtl-pro_and_epilogue: Developer Options. (line 163)
  43755. * fdump-rtl-ree: Developer Options. (line 171)
  43756. * fdump-rtl-regclass: Developer Options. (line 221)
  43757. * fdump-rtl-rnreg: Developer Options. (line 151)
  43758. * fdump-rtl-sched1: Developer Options. (line 167)
  43759. * fdump-rtl-sched2: Developer Options. (line 167)
  43760. * fdump-rtl-seqabstr: Developer Options. (line 174)
  43761. * fdump-rtl-shorten: Developer Options. (line 177)
  43762. * fdump-rtl-sibling: Developer Options. (line 180)
  43763. * fdump-rtl-sms: Developer Options. (line 191)
  43764. * fdump-rtl-split1: Developer Options. (line 187)
  43765. * fdump-rtl-split2: Developer Options. (line 187)
  43766. * fdump-rtl-split3: Developer Options. (line 187)
  43767. * fdump-rtl-split4: Developer Options. (line 187)
  43768. * fdump-rtl-split5: Developer Options. (line 187)
  43769. * fdump-rtl-stack: Developer Options. (line 195)
  43770. * fdump-rtl-subreg1: Developer Options. (line 201)
  43771. * fdump-rtl-subreg2: Developer Options. (line 201)
  43772. * fdump-rtl-subregs_of_mode_finish: Developer Options. (line 221)
  43773. * fdump-rtl-subregs_of_mode_init: Developer Options. (line 221)
  43774. * fdump-rtl-unshare: Developer Options. (line 205)
  43775. * fdump-rtl-vartrack: Developer Options. (line 208)
  43776. * fdump-rtl-vregs: Developer Options. (line 211)
  43777. * fdump-rtl-web: Developer Options. (line 214)
  43778. * fdump-statistics: Developer Options. (line 312)
  43779. * fdump-translation-unit: Developer Options. (line 274)
  43780. * fdump-tree: Developer Options. (line 325)
  43781. * fdump-tree-all: Developer Options. (line 325)
  43782. * fdump-unnumbered: Developer Options. (line 262)
  43783. * fdump-unnumbered-links: Developer Options. (line 268)
  43784. * fdwarf2-cfi-asm: Debugging Options. (line 304)
  43785. * fearly-inlining: Optimize Options. (line 300)
  43786. * feliminate-dwarf2-dups: Debugging Options. (line 230)
  43787. * feliminate-unused-debug-symbols: Debugging Options. (line 125)
  43788. * feliminate-unused-debug-types: Debugging Options. (line 308)
  43789. * femit-class-debug-always: Debugging Options. (line 129)
  43790. * femit-struct-debug-baseonly: Debugging Options. (line 235)
  43791. * femit-struct-debug-detailed: Debugging Options. (line 262)
  43792. * femit-struct-debug-reduced: Debugging Options. (line 248)
  43793. * fenable-: Developer Options. (line 559)
  43794. * fexceptions: Code Gen Options. (line 109)
  43795. * fexcess-precision: Optimize Options. (line 2003)
  43796. * fexec-charset: Preprocessor Options.
  43797. (line 255)
  43798. * fexpensive-optimizations: Optimize Options. (line 626)
  43799. * fext-numeric-literals: C++ Dialect Options.
  43800. (line 661)
  43801. * fextended-identifiers: Preprocessor Options.
  43802. (line 224)
  43803. * fextern-tls-init: C++ Dialect Options.
  43804. (line 185)
  43805. * ffast-math: Optimize Options. (line 2027)
  43806. * ffat-lto-objects: Optimize Options. (line 1891)
  43807. * ffinite-math-only: Optimize Options. (line 2104)
  43808. * ffix-and-continue: Darwin Options. (line 104)
  43809. * ffixed: Code Gen Options. (line 418)
  43810. * ffloat-store: Optimize Options. (line 1989)
  43811. * ffloat-store <1>: Disappointments. (line 77)
  43812. * ffor-scope: C++ Dialect Options.
  43813. (line 206)
  43814. * fforward-propagate: Optimize Options. (line 203)
  43815. * ffp-contract: Optimize Options. (line 212)
  43816. * ffreestanding: Standards. (line 91)
  43817. * ffreestanding <1>: C Dialect Options. (line 279)
  43818. * ffreestanding <2>: Warning Options. (line 287)
  43819. * ffreestanding <3>: Common Function Attributes.
  43820. (line 276)
  43821. * ffriend-injection: C++ Dialect Options.
  43822. (line 152)
  43823. * ffunction-sections: Optimize Options. (line 2329)
  43824. * fgcse: Optimize Options. (line 478)
  43825. * fgcse-after-reload: Optimize Options. (line 514)
  43826. * fgcse-las: Optimize Options. (line 507)
  43827. * fgcse-lm: Optimize Options. (line 489)
  43828. * fgcse-sm: Optimize Options. (line 498)
  43829. * fgimple: C Dialect Options. (line 265)
  43830. * fgnu-runtime: Objective-C and Objective-C++ Dialect Options.
  43831. (line 39)
  43832. * fgnu-tm: C Dialect Options. (line 328)
  43833. * fgnu89-inline: C Dialect Options. (line 155)
  43834. * fgraphite-identity: Optimize Options. (line 1144)
  43835. * fhoist-adjacent-loads: Optimize Options. (line 970)
  43836. * fhosted: C Dialect Options. (line 271)
  43837. * fif-conversion: Optimize Options. (line 555)
  43838. * fif-conversion2: Optimize Options. (line 564)
  43839. * filelist: Darwin Options. (line 196)
  43840. * findirect-data: Darwin Options. (line 104)
  43841. * findirect-inlining: Optimize Options. (line 272)
  43842. * finhibit-size-directive: Code Gen Options. (line 251)
  43843. * finline-functions: Optimize Options. (line 280)
  43844. * finline-functions-called-once: Optimize Options. (line 292)
  43845. * finline-limit: Optimize Options. (line 316)
  43846. * finline-small-functions: Optimize Options. (line 263)
  43847. * finput-charset: Preprocessor Options.
  43848. (line 268)
  43849. * finstrument-functions: Instrumentation Options.
  43850. (line 668)
  43851. * finstrument-functions <1>: Common Function Attributes.
  43852. (line 494)
  43853. * finstrument-functions-exclude-file-list: Instrumentation Options.
  43854. (line 703)
  43855. * finstrument-functions-exclude-function-list: Instrumentation Options.
  43856. (line 724)
  43857. * fipa-cp: Optimize Options. (line 1003)
  43858. * fipa-cp-clone: Optimize Options. (line 1011)
  43859. * fipa-icf: Optimize Options. (line 1031)
  43860. * fipa-profile: Optimize Options. (line 995)
  43861. * fipa-pta: Optimize Options. (line 989)
  43862. * fipa-pure-const: Optimize Options. (line 981)
  43863. * fipa-ra: Optimize Options. (line 917)
  43864. * fipa-reference: Optimize Options. (line 985)
  43865. * fipa-sra: Optimize Options. (line 309)
  43866. * fira-algorithm: Optimize Options. (line 660)
  43867. * fira-hoist-pressure: Optimize Options. (line 689)
  43868. * fira-loop-pressure: Optimize Options. (line 696)
  43869. * fira-region: Optimize Options. (line 668)
  43870. * fira-verbose: Developer Options. (line 785)
  43871. * fisolate-erroneous-paths-attribute: Optimize Options. (line 1053)
  43872. * fisolate-erroneous-paths-dereference: Optimize Options. (line 1045)
  43873. * fivar-visibility: Objective-C and Objective-C++ Dialect Options.
  43874. (line 161)
  43875. * fivopts: Optimize Options. (line 1233)
  43876. * fkeep-inline-functions: Optimize Options. (line 347)
  43877. * fkeep-inline-functions <1>: Inline. (line 51)
  43878. * fkeep-static-consts: Optimize Options. (line 358)
  43879. * fkeep-static-functions: Optimize Options. (line 354)
  43880. * flat_namespace: Darwin Options. (line 196)
  43881. * flax-vector-conversions: C Dialect Options. (line 376)
  43882. * fleading-underscore: Code Gen Options. (line 474)
  43883. * flive-range-shrinkage: Optimize Options. (line 655)
  43884. * flocal-ivars: Objective-C and Objective-C++ Dialect Options.
  43885. (line 152)
  43886. * floop-block: Optimize Options. (line 1138)
  43887. * floop-interchange: Optimize Options. (line 1138)
  43888. * floop-nest-optimize: Optimize Options. (line 1152)
  43889. * floop-parallelize-all: Optimize Options. (line 1158)
  43890. * floop-strip-mine: Optimize Options. (line 1138)
  43891. * floop-unroll-and-jam: Optimize Options. (line 1138)
  43892. * flra-remat: Optimize Options. (line 716)
  43893. * flto: Optimize Options. (line 1655)
  43894. * flto-compression-level: Optimize Options. (line 1865)
  43895. * flto-odr-type-merging: Optimize Options. (line 1860)
  43896. * flto-partition: Optimize Options. (line 1846)
  43897. * flto-report: Developer Options. (line 791)
  43898. * flto-report-wpa: Developer Options. (line 799)
  43899. * fmax-errors: Warning Options. (line 18)
  43900. * fmem-report: Developer Options. (line 803)
  43901. * fmem-report-wpa: Developer Options. (line 807)
  43902. * fmerge-all-constants: Optimize Options. (line 377)
  43903. * fmerge-constants: Optimize Options. (line 367)
  43904. * fmerge-debug-strings: Debugging Options. (line 137)
  43905. * fmessage-length: Diagnostic Message Formatting Options.
  43906. (line 14)
  43907. * fmodulo-sched: Optimize Options. (line 388)
  43908. * fmodulo-sched-allow-regmoves: Optimize Options. (line 393)
  43909. * fmove-loop-invariants: Optimize Options. (line 2315)
  43910. * fms-extensions: C Dialect Options. (line 343)
  43911. * fms-extensions <1>: C++ Dialect Options.
  43912. (line 241)
  43913. * fms-extensions <2>: Unnamed Fields. (line 36)
  43914. * fnew-inheriting-ctors: C++ Dialect Options.
  43915. (line 246)
  43916. * fnew-ttp-matching: C++ Dialect Options.
  43917. (line 252)
  43918. * fnext-runtime: Objective-C and Objective-C++ Dialect Options.
  43919. (line 43)
  43920. * fno-access-control: C++ Dialect Options.
  43921. (line 92)
  43922. * fno-asm: C Dialect Options. (line 217)
  43923. * fno-branch-count-reg: Optimize Options. (line 400)
  43924. * fno-builtin: C Dialect Options. (line 231)
  43925. * fno-builtin <1>: Warning Options. (line 287)
  43926. * fno-builtin <2>: Common Function Attributes.
  43927. (line 276)
  43928. * fno-builtin <3>: Other Builtins. (line 21)
  43929. * fno-canonical-system-headers: Preprocessor Options.
  43930. (line 228)
  43931. * fno-check-pointer-bounds: Instrumentation Options.
  43932. (line 399)
  43933. * fno-checking: Developer Options. (line 628)
  43934. * fno-chkp-check-incomplete-type: Instrumentation Options.
  43935. (line 437)
  43936. * fno-chkp-check-read: Instrumentation Options.
  43937. (line 493)
  43938. * fno-chkp-check-write: Instrumentation Options.
  43939. (line 497)
  43940. * fno-chkp-first-field-has-own-bounds: Instrumentation Options.
  43941. (line 448)
  43942. * fno-chkp-flexible-struct-trailing-arrays: Instrumentation Options.
  43943. (line 454)
  43944. * fno-chkp-instrument-calls: Instrumentation Options.
  43945. (line 505)
  43946. * fno-chkp-instrument-marked-only: Instrumentation Options.
  43947. (line 509)
  43948. * fno-chkp-narrow-bounds: Instrumentation Options.
  43949. (line 441)
  43950. * fno-chkp-narrow-to-innermost-array: Instrumentation Options.
  43951. (line 460)
  43952. * fno-chkp-optimize: Instrumentation Options.
  43953. (line 465)
  43954. * fno-chkp-store-bounds: Instrumentation Options.
  43955. (line 501)
  43956. * fno-chkp-treat-zero-dynamic-size-as-infinite: Instrumentation Options.
  43957. (line 486)
  43958. * fno-chkp-use-fast-string-functions: Instrumentation Options.
  43959. (line 469)
  43960. * fno-chkp-use-nochk-string-functions: Instrumentation Options.
  43961. (line 473)
  43962. * fno-chkp-use-static-bounds: Instrumentation Options.
  43963. (line 477)
  43964. * fno-chkp-use-static-const-bounds: Instrumentation Options.
  43965. (line 481)
  43966. * fno-chkp-use-wrappers: Instrumentation Options.
  43967. (line 514)
  43968. * fno-common: Code Gen Options. (line 221)
  43969. * fno-common <1>: Common Variable Attributes.
  43970. (line 89)
  43971. * fno-compare-debug: Developer Options. (line 722)
  43972. * fno-debug-types-section: Debugging Options. (line 184)
  43973. * fno-default-inline: Inline. (line 68)
  43974. * fno-defer-pop: Optimize Options. (line 195)
  43975. * fno-diagnostics-show-caret: Diagnostic Message Formatting Options.
  43976. (line 119)
  43977. * fno-diagnostics-show-option: Diagnostic Message Formatting Options.
  43978. (line 113)
  43979. * fno-dwarf2-cfi-asm: Debugging Options. (line 304)
  43980. * fno-elide-constructors: C++ Dialect Options.
  43981. (line 164)
  43982. * fno-eliminate-unused-debug-types: Debugging Options. (line 308)
  43983. * fno-enforce-eh-specs: C++ Dialect Options.
  43984. (line 175)
  43985. * fno-ext-numeric-literals: C++ Dialect Options.
  43986. (line 661)
  43987. * fno-extern-tls-init: C++ Dialect Options.
  43988. (line 185)
  43989. * fno-for-scope: C++ Dialect Options.
  43990. (line 206)
  43991. * fno-fp-int-builtin-inexact: Optimize Options. (line 2176)
  43992. * fno-function-cse: Optimize Options. (line 415)
  43993. * fno-gnu-keywords: C++ Dialect Options.
  43994. (line 218)
  43995. * fno-gnu-unique: Code Gen Options. (line 152)
  43996. * fno-guess-branch-probability: Optimize Options. (line 1401)
  43997. * fno-ident: Code Gen Options. (line 248)
  43998. * fno-implement-inlines: C++ Dialect Options.
  43999. (line 236)
  44000. * fno-implement-inlines <1>: C++ Interface. (line 66)
  44001. * fno-implicit-inline-templates: C++ Dialect Options.
  44002. (line 230)
  44003. * fno-implicit-templates: C++ Dialect Options.
  44004. (line 224)
  44005. * fno-implicit-templates <1>: Template Instantiation.
  44006. (line 118)
  44007. * fno-inline: Optimize Options. (line 255)
  44008. * fno-ira-share-save-slots: Optimize Options. (line 704)
  44009. * fno-ira-share-spill-slots: Optimize Options. (line 710)
  44010. * fno-jump-tables: Code Gen Options. (line 410)
  44011. * fno-keep-inline-dllexport: Optimize Options. (line 341)
  44012. * fno-lifetime-dse: Optimize Options. (line 640)
  44013. * fno-local-ivars: Objective-C and Objective-C++ Dialect Options.
  44014. (line 152)
  44015. * fno-math-errno: Optimize Options. (line 2041)
  44016. * fno-merge-debug-strings: Debugging Options. (line 137)
  44017. * fno-nil-receivers: Objective-C and Objective-C++ Dialect Options.
  44018. (line 49)
  44019. * fno-nonansi-builtins: C++ Dialect Options.
  44020. (line 259)
  44021. * fno-operator-names: C++ Dialect Options.
  44022. (line 275)
  44023. * fno-optional-diags: C++ Dialect Options.
  44024. (line 279)
  44025. * fno-peephole: Optimize Options. (line 1392)
  44026. * fno-peephole2: Optimize Options. (line 1392)
  44027. * fno-plt: Code Gen Options. (line 392)
  44028. * fno-pretty-templates: C++ Dialect Options.
  44029. (line 289)
  44030. * fno-printf-return-value: Optimize Options. (line 1369)
  44031. * fno-rtti: C++ Dialect Options.
  44032. (line 306)
  44033. * fno-sanitize-recover: Instrumentation Options.
  44034. (line 342)
  44035. * fno-sanitize=all: Instrumentation Options.
  44036. (line 327)
  44037. * fno-sched-interblock: Optimize Options. (line 749)
  44038. * fno-sched-spec: Optimize Options. (line 754)
  44039. * fno-set-stack-executable: x86 Windows Options.
  44040. (line 46)
  44041. * fno-show-column: Diagnostic Message Formatting Options.
  44042. (line 173)
  44043. * fno-signed-bitfields: C Dialect Options. (line 409)
  44044. * fno-signed-zeros: Optimize Options. (line 2116)
  44045. * fno-stack-limit: Instrumentation Options.
  44046. (line 580)
  44047. * fno-threadsafe-statics: C++ Dialect Options.
  44048. (line 356)
  44049. * fno-toplevel-reorder: Optimize Options. (line 1621)
  44050. * fno-trapping-math: Optimize Options. (line 2126)
  44051. * fno-unsigned-bitfields: C Dialect Options. (line 409)
  44052. * fno-use-cxa-get-exception-ptr: C++ Dialect Options.
  44053. (line 369)
  44054. * fno-var-tracking-assignments: Debugging Options. (line 158)
  44055. * fno-var-tracking-assignments-toggle: Developer Options. (line 769)
  44056. * fno-weak: C++ Dialect Options.
  44057. (line 431)
  44058. * fno-working-directory: Preprocessor Options.
  44059. (line 303)
  44060. * fno-writable-relocated-rdata: x86 Windows Options.
  44061. (line 53)
  44062. * fno-zero-initialized-in-bss: Optimize Options. (line 426)
  44063. * fnon-call-exceptions: Code Gen Options. (line 123)
  44064. * fnothrow-opt: C++ Dialect Options.
  44065. (line 264)
  44066. * fobjc-abi-version: Objective-C and Objective-C++ Dialect Options.
  44067. (line 56)
  44068. * fobjc-call-cxx-cdtors: Objective-C and Objective-C++ Dialect Options.
  44069. (line 67)
  44070. * fobjc-direct-dispatch: Objective-C and Objective-C++ Dialect Options.
  44071. (line 92)
  44072. * fobjc-exceptions: Objective-C and Objective-C++ Dialect Options.
  44073. (line 96)
  44074. * fobjc-gc: Objective-C and Objective-C++ Dialect Options.
  44075. (line 104)
  44076. * fobjc-nilcheck: Objective-C and Objective-C++ Dialect Options.
  44077. (line 110)
  44078. * fobjc-std: Objective-C and Objective-C++ Dialect Options.
  44079. (line 119)
  44080. * fomit-frame-pointer: Optimize Options. (line 223)
  44081. * fopenacc: C Dialect Options. (line 290)
  44082. * fopenacc-dim: C Dialect Options. (line 299)
  44083. * fopenmp: C Dialect Options. (line 305)
  44084. * fopenmp-simd: C Dialect Options. (line 314)
  44085. * fopt-info: Developer Options. (line 450)
  44086. * foptimize-sibling-calls: Optimize Options. (line 243)
  44087. * foptimize-strlen: Optimize Options. (line 248)
  44088. * force_cpusubtype_ALL: Darwin Options. (line 135)
  44089. * force_flat_namespace: Darwin Options. (line 196)
  44090. * fpack-struct: Code Gen Options. (line 461)
  44091. * fpartial-inlining: Optimize Options. (line 1345)
  44092. * fpcc-struct-return: Code Gen Options. (line 165)
  44093. * fpcc-struct-return <1>: Incompatibilities. (line 170)
  44094. * fpch-deps: Preprocessor Options.
  44095. (line 278)
  44096. * fpch-preprocess: Preprocessor Options.
  44097. (line 286)
  44098. * fpeel-loops: Optimize Options. (line 2307)
  44099. * fpermissive: C++ Dialect Options.
  44100. (line 284)
  44101. * fpermitted-flt-eval-methods: C Dialect Options. (line 172)
  44102. * fpermitted-flt-eval-methods=c11: C Dialect Options. (line 172)
  44103. * fpermitted-flt-eval-methods=ts-18661-3: C Dialect Options. (line 172)
  44104. * fpic: Code Gen Options. (line 349)
  44105. * fPIC: Code Gen Options. (line 370)
  44106. * fpie: Code Gen Options. (line 383)
  44107. * fPIE: Code Gen Options. (line 383)
  44108. * fplan9-extensions: C Dialect Options. (line 361)
  44109. * fplan9-extensions <1>: Unnamed Fields. (line 43)
  44110. * fplugin: Overall Options. (line 359)
  44111. * fplugin-arg: Overall Options. (line 366)
  44112. * fpost-ipa-mem-report: Developer Options. (line 812)
  44113. * fpre-ipa-mem-report: Developer Options. (line 811)
  44114. * fpredictive-commoning: Optimize Options. (line 1352)
  44115. * fprefetch-loop-arrays: Optimize Options. (line 1359)
  44116. * fpreprocessed: Preprocessor Options.
  44117. (line 187)
  44118. * fprofile-arcs: Instrumentation Options.
  44119. (line 31)
  44120. * fprofile-arcs <1>: Other Builtins. (line 362)
  44121. * fprofile-correction: Optimize Options. (line 1928)
  44122. * fprofile-dir: Instrumentation Options.
  44123. (line 101)
  44124. * fprofile-generate: Instrumentation Options.
  44125. (line 112)
  44126. * fprofile-reorder-functions: Optimize Options. (line 2249)
  44127. * fprofile-report: Developer Options. (line 816)
  44128. * fprofile-update: Instrumentation Options.
  44129. (line 129)
  44130. * fprofile-use: Optimize Options. (line 1936)
  44131. * fprofile-values: Optimize Options. (line 2240)
  44132. * fpu: RX Options. (line 17)
  44133. * frandom-seed: Developer Options. (line 633)
  44134. * freciprocal-math: Optimize Options. (line 2094)
  44135. * frecord-gcc-switches: Code Gen Options. (line 337)
  44136. * free: Optimize Options. (line 632)
  44137. * freg-struct-return: Code Gen Options. (line 183)
  44138. * frename-registers: Optimize Options. (line 2266)
  44139. * freorder-blocks: Optimize Options. (line 1418)
  44140. * freorder-blocks-algorithm: Optimize Options. (line 1424)
  44141. * freorder-blocks-and-partition: Optimize Options. (line 1435)
  44142. * freorder-functions: Optimize Options. (line 1448)
  44143. * freplace-objc-classes: Objective-C and Objective-C++ Dialect Options.
  44144. (line 130)
  44145. * frepo: C++ Dialect Options.
  44146. (line 301)
  44147. * frepo <1>: Template Instantiation.
  44148. (line 94)
  44149. * freport-bug: Developer Options. (line 258)
  44150. * frerun-cse-after-loop: Optimize Options. (line 472)
  44151. * freschedule-modulo-scheduled-loops: Optimize Options. (line 848)
  44152. * frounding-math: Optimize Options. (line 2141)
  44153. * fsanitize-address-use-after-scope: Instrumentation Options.
  44154. (line 378)
  44155. * fsanitize-coverage=trace-pc: Instrumentation Options.
  44156. (line 389)
  44157. * fsanitize-recover: Instrumentation Options.
  44158. (line 342)
  44159. * fsanitize-sections: Instrumentation Options.
  44160. (line 338)
  44161. * fsanitize-undefined-trap-on-error: Instrumentation Options.
  44162. (line 382)
  44163. * fsanitize=address: Instrumentation Options.
  44164. (line 146)
  44165. * fsanitize=alignment: Instrumentation Options.
  44166. (line 267)
  44167. * fsanitize=bool: Instrumentation Options.
  44168. (line 305)
  44169. * fsanitize=bounds: Instrumentation Options.
  44170. (line 252)
  44171. * fsanitize=bounds-strict: Instrumentation Options.
  44172. (line 259)
  44173. * fsanitize=enum: Instrumentation Options.
  44174. (line 310)
  44175. * fsanitize=float-cast-overflow: Instrumentation Options.
  44176. (line 285)
  44177. * fsanitize=float-divide-by-zero: Instrumentation Options.
  44178. (line 279)
  44179. * fsanitize=integer-divide-by-zero: Instrumentation Options.
  44180. (line 215)
  44181. * fsanitize=kernel-address: Instrumentation Options.
  44182. (line 160)
  44183. * fsanitize=leak: Instrumentation Options.
  44184. (line 180)
  44185. * fsanitize=nonnull-attribute: Instrumentation Options.
  44186. (line 293)
  44187. * fsanitize=null: Instrumentation Options.
  44188. (line 229)
  44189. * fsanitize=object-size: Instrumentation Options.
  44190. (line 274)
  44191. * fsanitize=return: Instrumentation Options.
  44192. (line 237)
  44193. * fsanitize=returns-nonnull-attribute: Instrumentation Options.
  44194. (line 299)
  44195. * fsanitize=shift: Instrumentation Options.
  44196. (line 195)
  44197. * fsanitize=shift-base: Instrumentation Options.
  44198. (line 208)
  44199. * fsanitize=shift-exponent: Instrumentation Options.
  44200. (line 203)
  44201. * fsanitize=signed-integer-overflow: Instrumentation Options.
  44202. (line 243)
  44203. * fsanitize=thread: Instrumentation Options.
  44204. (line 165)
  44205. * fsanitize=undefined: Instrumentation Options.
  44206. (line 190)
  44207. * fsanitize=unreachable: Instrumentation Options.
  44208. (line 219)
  44209. * fsanitize=vla-bound: Instrumentation Options.
  44210. (line 225)
  44211. * fsanitize=vptr: Instrumentation Options.
  44212. (line 316)
  44213. * fsched-critical-path-heuristic: Optimize Options. (line 814)
  44214. * fsched-dep-count-heuristic: Optimize Options. (line 841)
  44215. * fsched-group-heuristic: Optimize Options. (line 808)
  44216. * fsched-last-insn-heuristic: Optimize Options. (line 834)
  44217. * fsched-pressure: Optimize Options. (line 759)
  44218. * fsched-rank-heuristic: Optimize Options. (line 827)
  44219. * fsched-spec-insn-heuristic: Optimize Options. (line 820)
  44220. * fsched-spec-load: Optimize Options. (line 768)
  44221. * fsched-spec-load-dangerous: Optimize Options. (line 773)
  44222. * fsched-stalled-insns: Optimize Options. (line 779)
  44223. * fsched-stalled-insns-dep: Optimize Options. (line 789)
  44224. * fsched-verbose: Developer Options. (line 545)
  44225. * fsched2-use-superblocks: Optimize Options. (line 798)
  44226. * fschedule-fusion: Optimize Options. (line 2276)
  44227. * fschedule-insns: Optimize Options. (line 730)
  44228. * fschedule-insns2: Optimize Options. (line 740)
  44229. * fsection-anchors: Optimize Options. (line 2366)
  44230. * fsel-sched-pipelining: Optimize Options. (line 861)
  44231. * fsel-sched-pipelining-outer-loops: Optimize Options. (line 866)
  44232. * fselective-scheduling: Optimize Options. (line 853)
  44233. * fselective-scheduling2: Optimize Options. (line 857)
  44234. * fsemantic-interposition: Optimize Options. (line 871)
  44235. * fshort-enums: Code Gen Options. (line 201)
  44236. * fshort-enums <1>: Structures unions enumerations and bit-fields implementation.
  44237. (line 48)
  44238. * fshort-enums <2>: Common Type Attributes.
  44239. (line 192)
  44240. * fshort-enums <3>: Non-bugs. (line 42)
  44241. * fshort-wchar: Code Gen Options. (line 211)
  44242. * fshrink-wrap: Optimize Options. (line 888)
  44243. * fshrink-wrap-separate: Optimize Options. (line 893)
  44244. * fsignaling-nans: Optimize Options. (line 2161)
  44245. * fsigned-bitfields: C Dialect Options. (line 409)
  44246. * fsigned-bitfields <1>: Non-bugs. (line 57)
  44247. * fsigned-char: C Dialect Options. (line 399)
  44248. * fsigned-char <1>: Characters implementation.
  44249. (line 31)
  44250. * fsimd-cost-model: Optimize Options. (line 1305)
  44251. * fsingle-precision-constant: Optimize Options. (line 2193)
  44252. * fsized-deallocation: C++ Dialect Options.
  44253. (line 316)
  44254. * fsplit-ivs-in-unroller: Optimize Options. (line 1326)
  44255. * fsplit-loops: Optimize Options. (line 2319)
  44256. * fsplit-paths: Optimize Options. (line 1321)
  44257. * fsplit-stack: Instrumentation Options.
  44258. (line 597)
  44259. * fsplit-stack <1>: Common Function Attributes.
  44260. (line 532)
  44261. * fsplit-wide-types: Optimize Options. (line 447)
  44262. * fssa-backprop: Optimize Options. (line 1076)
  44263. * fssa-phiopt: Optimize Options. (line 1082)
  44264. * fsso-struct: C Dialect Options. (line 415)
  44265. * fstack-check: Instrumentation Options.
  44266. (line 542)
  44267. * fstack-limit-register: Instrumentation Options.
  44268. (line 580)
  44269. * fstack-limit-symbol: Instrumentation Options.
  44270. (line 580)
  44271. * fstack-protector: Instrumentation Options.
  44272. (line 521)
  44273. * fstack-protector-all: Instrumentation Options.
  44274. (line 530)
  44275. * fstack-protector-explicit: Instrumentation Options.
  44276. (line 538)
  44277. * fstack-protector-strong: Instrumentation Options.
  44278. (line 533)
  44279. * fstack-usage: Developer Options. (line 820)
  44280. * fstack_reuse: Code Gen Options. (line 15)
  44281. * fstats: Developer Options. (line 849)
  44282. * fstdarg-opt: Optimize Options. (line 2362)
  44283. * fstore-merging: Optimize Options. (line 1257)
  44284. * fstrict-aliasing: Optimize Options. (line 1461)
  44285. * fstrict-enums: C++ Dialect Options.
  44286. (line 326)
  44287. * fstrict-overflow: Optimize Options. (line 1507)
  44288. * fstrict-volatile-bitfields: Code Gen Options. (line 585)
  44289. * fstrong-eval-order: C++ Dialect Options.
  44290. (line 335)
  44291. * fsync-libcalls: Code Gen Options. (line 617)
  44292. * fsyntax-only: Warning Options. (line 14)
  44293. * ftabstop: Preprocessor Options.
  44294. (line 232)
  44295. * ftemplate-backtrace-limit: C++ Dialect Options.
  44296. (line 343)
  44297. * ftemplate-depth: C++ Dialect Options.
  44298. (line 347)
  44299. * ftest-coverage: Instrumentation Options.
  44300. (line 92)
  44301. * fthread-jumps: Optimize Options. (line 438)
  44302. * ftime-report: Developer Options. (line 777)
  44303. * ftime-report-details: Developer Options. (line 781)
  44304. * ftls-model: Code Gen Options. (line 485)
  44305. * ftracer: Optimize Options. (line 2284)
  44306. * ftrack-macro-expansion: Preprocessor Options.
  44307. (line 238)
  44308. * ftrampolines: Code Gen Options. (line 496)
  44309. * ftrapv: Code Gen Options. (line 91)
  44310. * ftree-bit-ccp: Optimize Options. (line 1065)
  44311. * ftree-builtin-call-dce: Optimize Options. (line 1103)
  44312. * ftree-ccp: Optimize Options. (line 1071)
  44313. * ftree-ch: Optimize Options. (line 1123)
  44314. * ftree-coalesce-vars: Optimize Options. (line 1164)
  44315. * ftree-copy-prop: Optimize Options. (line 976)
  44316. * ftree-dce: Optimize Options. (line 1099)
  44317. * ftree-dominator-opts: Optimize Options. (line 1109)
  44318. * ftree-dse: Optimize Options. (line 1116)
  44319. * ftree-forwprop: Optimize Options. (line 955)
  44320. * ftree-fre: Optimize Options. (line 959)
  44321. * ftree-loop-distribute-patterns: Optimize Options. (line 1198)
  44322. * ftree-loop-distribution: Optimize Options. (line 1181)
  44323. * ftree-loop-if-convert: Optimize Options. (line 1174)
  44324. * ftree-loop-im: Optimize Options. (line 1218)
  44325. * ftree-loop-ivcanon: Optimize Options. (line 1227)
  44326. * ftree-loop-linear: Optimize Options. (line 1138)
  44327. * ftree-loop-optimize: Optimize Options. (line 1130)
  44328. * ftree-loop-vectorize: Optimize Options. (line 1283)
  44329. * ftree-parallelize-loops: Optimize Options. (line 1238)
  44330. * ftree-partial-pre: Optimize Options. (line 951)
  44331. * ftree-phiprop: Optimize Options. (line 966)
  44332. * ftree-pre: Optimize Options. (line 947)
  44333. * ftree-pta: Optimize Options. (line 1247)
  44334. * ftree-reassoc: Optimize Options. (line 936)
  44335. * ftree-sink: Optimize Options. (line 1061)
  44336. * ftree-slp-vectorize: Optimize Options. (line 1287)
  44337. * ftree-slsr: Optimize Options. (line 1272)
  44338. * ftree-sra: Optimize Options. (line 1251)
  44339. * ftree-switch-conversion: Optimize Options. (line 1086)
  44340. * ftree-tail-merge: Optimize Options. (line 1091)
  44341. * ftree-ter: Optimize Options. (line 1264)
  44342. * ftree-vectorize: Optimize Options. (line 1278)
  44343. * ftree-vrp: Optimize Options. (line 1312)
  44344. * funconstrained-commons: Optimize Options. (line 528)
  44345. * funit-at-a-time: Optimize Options. (line 1614)
  44346. * funroll-all-loops: Optimize Options. (line 2301)
  44347. * funroll-loops: Optimize Options. (line 2291)
  44348. * funsafe-math-optimizations: Optimize Options. (line 2059)
  44349. * funsigned-bitfields: C Dialect Options. (line 409)
  44350. * funsigned-bitfields <1>: Structures unions enumerations and bit-fields implementation.
  44351. (line 17)
  44352. * funsigned-bitfields <2>: Non-bugs. (line 57)
  44353. * funsigned-char: C Dialect Options. (line 381)
  44354. * funsigned-char <1>: Characters implementation.
  44355. (line 31)
  44356. * funswitch-loops: Optimize Options. (line 2323)
  44357. * funwind-tables: Code Gen Options. (line 139)
  44358. * fuse-cxa-atexit: C++ Dialect Options.
  44359. (line 362)
  44360. * fuse-ld=bfd: Link Options. (line 25)
  44361. * fuse-ld=gold: Link Options. (line 28)
  44362. * fuse-linker-plugin: Optimize Options. (line 1873)
  44363. * fvar-tracking: Debugging Options. (line 148)
  44364. * fvar-tracking-assignments: Debugging Options. (line 158)
  44365. * fvar-tracking-assignments-toggle: Developer Options. (line 769)
  44366. * fvariable-expansion-in-unroller: Optimize Options. (line 1340)
  44367. * fvect-cost-model: Optimize Options. (line 1291)
  44368. * fverbose-asm: Code Gen Options. (line 258)
  44369. * fvisibility: Code Gen Options. (line 520)
  44370. * fvisibility-inlines-hidden: C++ Dialect Options.
  44371. (line 374)
  44372. * fvisibility-ms-compat: C++ Dialect Options.
  44373. (line 402)
  44374. * fvpt: Optimize Options. (line 2256)
  44375. * fvtable-verify: Instrumentation Options.
  44376. (line 615)
  44377. * fvtv-counts: Instrumentation Options.
  44378. (line 651)
  44379. * fvtv-debug: Instrumentation Options.
  44380. (line 638)
  44381. * fweb: Optimize Options. (line 1633)
  44382. * fwhole-program: Optimize Options. (line 1644)
  44383. * fwide-exec-charset: Preprocessor Options.
  44384. (line 260)
  44385. * fworking-directory: Preprocessor Options.
  44386. (line 303)
  44387. * fwrapv: Code Gen Options. (line 99)
  44388. * fzero-link: Objective-C and Objective-C++ Dialect Options.
  44389. (line 140)
  44390. * g: Debugging Options. (line 25)
  44391. * G: M32R/D Options. (line 57)
  44392. * G <1>: MIPS Options. (line 436)
  44393. * G <2>: Nios II Options. (line 9)
  44394. * G <3>: RS/6000 and PowerPC Options.
  44395. (line 829)
  44396. * G <4>: System V Options. (line 10)
  44397. * gcoff: Debugging Options. (line 78)
  44398. * gcolumn-info: Debugging Options. (line 214)
  44399. * gdwarf: Debugging Options. (line 45)
  44400. * gen-decls: Objective-C and Objective-C++ Dialect Options.
  44401. (line 166)
  44402. * gfull: Darwin Options. (line 69)
  44403. * ggdb: Debugging Options. (line 38)
  44404. * ggnu-pubnames: Debugging Options. (line 179)
  44405. * gno-column-info: Debugging Options. (line 214)
  44406. * gno-record-gcc-switches: Debugging Options. (line 194)
  44407. * gno-strict-dwarf: Debugging Options. (line 209)
  44408. * gpubnames: Debugging Options. (line 176)
  44409. * grecord-gcc-switches: Debugging Options. (line 194)
  44410. * gsplit-dwarf: Debugging Options. (line 169)
  44411. * gstabs: Debugging Options. (line 64)
  44412. * gstabs+: Debugging Options. (line 72)
  44413. * gstrict-dwarf: Debugging Options. (line 203)
  44414. * gtoggle: Developer Options. (line 761)
  44415. * gused: Darwin Options. (line 64)
  44416. * gvms: Debugging Options. (line 96)
  44417. * gxcoff: Debugging Options. (line 83)
  44418. * gxcoff+: Debugging Options. (line 88)
  44419. * gz: Debugging Options. (line 219)
  44420. * H: Preprocessor Options.
  44421. (line 385)
  44422. * headerpad_max_install_names: Darwin Options. (line 196)
  44423. * help: Overall Options. (line 210)
  44424. * I: Directory Options. (line 13)
  44425. * I-: Directory Options. (line 65)
  44426. * idirafter: Directory Options. (line 13)
  44427. * iframework: Darwin Options. (line 57)
  44428. * imacros: Preprocessor Options.
  44429. (line 57)
  44430. * image_base: Darwin Options. (line 196)
  44431. * imultilib: Directory Options. (line 98)
  44432. * include: Preprocessor Options.
  44433. (line 46)
  44434. * init: Darwin Options. (line 196)
  44435. * install_name: Darwin Options. (line 196)
  44436. * iplugindir=: Directory Options. (line 113)
  44437. * iprefix: Directory Options. (line 80)
  44438. * iquote: Directory Options. (line 13)
  44439. * isysroot: Directory Options. (line 92)
  44440. * isystem: Directory Options. (line 13)
  44441. * iwithprefix: Directory Options. (line 86)
  44442. * iwithprefixbefore: Directory Options. (line 86)
  44443. * keep_private_externs: Darwin Options. (line 196)
  44444. * l: Link Options. (line 32)
  44445. * L: Directory Options. (line 118)
  44446. * lobjc: Link Options. (line 59)
  44447. * M: Preprocessor Options.
  44448. (line 77)
  44449. * m: RS/6000 and PowerPC Options.
  44450. (line 658)
  44451. * m1: SH Options. (line 9)
  44452. * m10: PDP-11 Options. (line 29)
  44453. * m128bit-long-double: x86 Options. (line 478)
  44454. * m16: x86 Options. (line 1217)
  44455. * m16-bit: CRIS Options. (line 64)
  44456. * m16-bit <1>: NDS32 Options. (line 39)
  44457. * m1reg-: Adapteva Epiphany Options.
  44458. (line 131)
  44459. * m2: SH Options. (line 12)
  44460. * m210: MCore Options. (line 43)
  44461. * m2a: SH Options. (line 30)
  44462. * m2a-nofpu: SH Options. (line 18)
  44463. * m2a-single: SH Options. (line 26)
  44464. * m2a-single-only: SH Options. (line 22)
  44465. * m3: SH Options. (line 34)
  44466. * m31: S/390 and zSeries Options.
  44467. (line 86)
  44468. * m32: Nvidia PTX Options. (line 10)
  44469. * m32 <1>: RS/6000 and PowerPC Options.
  44470. (line 351)
  44471. * m32 <2>: SPARC Options. (line 315)
  44472. * m32 <3>: TILE-Gx Options. (line 23)
  44473. * m32 <4>: TILEPro Options. (line 13)
  44474. * m32 <5>: x86 Options. (line 1217)
  44475. * m32-bit: CRIS Options. (line 64)
  44476. * m32bit-doubles: RL78 Options. (line 73)
  44477. * m32bit-doubles <1>: RX Options. (line 10)
  44478. * m32r: M32R/D Options. (line 15)
  44479. * m32r2: M32R/D Options. (line 9)
  44480. * m32rx: M32R/D Options. (line 12)
  44481. * m340: MCore Options. (line 43)
  44482. * m3dnow: x86 Options. (line 696)
  44483. * m3dnowa: x86 Options. (line 697)
  44484. * m3e: SH Options. (line 37)
  44485. * m4: SH Options. (line 51)
  44486. * m4-100: SH Options. (line 54)
  44487. * m4-100-nofpu: SH Options. (line 57)
  44488. * m4-100-single: SH Options. (line 61)
  44489. * m4-100-single-only: SH Options. (line 65)
  44490. * m4-200: SH Options. (line 69)
  44491. * m4-200-nofpu: SH Options. (line 72)
  44492. * m4-200-single: SH Options. (line 76)
  44493. * m4-200-single-only: SH Options. (line 80)
  44494. * m4-300: SH Options. (line 84)
  44495. * m4-300-nofpu: SH Options. (line 87)
  44496. * m4-300-single: SH Options. (line 91)
  44497. * m4-300-single-only: SH Options. (line 95)
  44498. * m4-340: SH Options. (line 99)
  44499. * m4-500: SH Options. (line 102)
  44500. * m4-nofpu: SH Options. (line 40)
  44501. * m4-single: SH Options. (line 47)
  44502. * m4-single-only: SH Options. (line 43)
  44503. * m40: PDP-11 Options. (line 23)
  44504. * m45: PDP-11 Options. (line 26)
  44505. * m4a: SH Options. (line 118)
  44506. * m4a-nofpu: SH Options. (line 106)
  44507. * m4a-single: SH Options. (line 114)
  44508. * m4a-single-only: SH Options. (line 110)
  44509. * m4al: SH Options. (line 121)
  44510. * m4byte-functions: MCore Options. (line 27)
  44511. * m5200: M680x0 Options. (line 144)
  44512. * m5206e: M680x0 Options. (line 153)
  44513. * m528x: M680x0 Options. (line 157)
  44514. * m5307: M680x0 Options. (line 161)
  44515. * m5407: M680x0 Options. (line 165)
  44516. * m64: Nvidia PTX Options. (line 10)
  44517. * m64 <1>: RS/6000 and PowerPC Options.
  44518. (line 351)
  44519. * m64 <2>: S/390 and zSeries Options.
  44520. (line 86)
  44521. * m64 <3>: SPARC Options. (line 315)
  44522. * m64 <4>: TILE-Gx Options. (line 23)
  44523. * m64 <5>: x86 Options. (line 1217)
  44524. * m64bit-doubles: RL78 Options. (line 73)
  44525. * m64bit-doubles <1>: RX Options. (line 10)
  44526. * m68000: M680x0 Options. (line 93)
  44527. * m68010: M680x0 Options. (line 101)
  44528. * m68020: M680x0 Options. (line 107)
  44529. * m68020-40: M680x0 Options. (line 175)
  44530. * m68020-60: M680x0 Options. (line 184)
  44531. * m68030: M680x0 Options. (line 112)
  44532. * m68040: M680x0 Options. (line 117)
  44533. * m68060: M680x0 Options. (line 126)
  44534. * m68881: M680x0 Options. (line 194)
  44535. * m8-bit: CRIS Options. (line 64)
  44536. * m8bit-idiv: x86 Options. (line 1151)
  44537. * m8byte-align: V850 Options. (line 170)
  44538. * m96bit-long-double: x86 Options. (line 478)
  44539. * mA6: ARC Options. (line 19)
  44540. * mA7: ARC Options. (line 26)
  44541. * mabi: AArch64 Options. (line 9)
  44542. * mabi <1>: ARM Options. (line 9)
  44543. * mabi <2>: RISC-V Options. (line 17)
  44544. * mabi <3>: RS/6000 and PowerPC Options.
  44545. (line 685)
  44546. * mabi <4>: x86 Options. (line 886)
  44547. * mabi=32: MIPS Options. (line 155)
  44548. * mabi=64: MIPS Options. (line 155)
  44549. * mabi=eabi: MIPS Options. (line 155)
  44550. * mabi=elfv1: RS/6000 and PowerPC Options.
  44551. (line 708)
  44552. * mabi=elfv2: RS/6000 and PowerPC Options.
  44553. (line 714)
  44554. * mabi=gnu: MMIX Options. (line 20)
  44555. * mabi=ibmlongdouble: RS/6000 and PowerPC Options.
  44556. (line 698)
  44557. * mabi=ieeelongdouble: RS/6000 and PowerPC Options.
  44558. (line 703)
  44559. * mabi=mmixware: MMIX Options. (line 20)
  44560. * mabi=n32: MIPS Options. (line 155)
  44561. * mabi=no-spe: RS/6000 and PowerPC Options.
  44562. (line 695)
  44563. * mabi=o64: MIPS Options. (line 155)
  44564. * mabi=spe: RS/6000 and PowerPC Options.
  44565. (line 690)
  44566. * mabicalls: MIPS Options. (line 191)
  44567. * mabm: x86 Options. (line 699)
  44568. * mabort-on-noreturn: ARM Options. (line 232)
  44569. * mabs=2008: MIPS Options. (line 299)
  44570. * mabs=legacy: MIPS Options. (line 299)
  44571. * mabsdata: AVR Options. (line 150)
  44572. * mabsdiff: MeP Options. (line 7)
  44573. * mabshi: PDP-11 Options. (line 55)
  44574. * mac0: PDP-11 Options. (line 16)
  44575. * macc-4: FRV Options. (line 139)
  44576. * macc-8: FRV Options. (line 143)
  44577. * maccumulate-args: AVR Options. (line 157)
  44578. * maccumulate-outgoing-args: SH Options. (line 314)
  44579. * maccumulate-outgoing-args <1>: x86 Options. (line 909)
  44580. * maddress-mode=long: x86 Options. (line 1267)
  44581. * maddress-mode=short: x86 Options. (line 1272)
  44582. * maddress-space-conversion: SPU Options. (line 68)
  44583. * mads: RS/6000 and PowerPC Options.
  44584. (line 748)
  44585. * maes: x86 Options. (line 685)
  44586. * maix-struct-return: RS/6000 and PowerPC Options.
  44587. (line 678)
  44588. * maix32: RS/6000 and PowerPC Options.
  44589. (line 389)
  44590. * maix64: RS/6000 and PowerPC Options.
  44591. (line 389)
  44592. * malign-300: H8/300 Options. (line 41)
  44593. * malign-call: ARC Options. (line 386)
  44594. * malign-data: x86 Options. (line 518)
  44595. * malign-double: x86 Options. (line 463)
  44596. * malign-int: M680x0 Options. (line 263)
  44597. * malign-labels: FRV Options. (line 128)
  44598. * malign-loops: M32R/D Options. (line 73)
  44599. * malign-natural: RS/6000 and PowerPC Options.
  44600. (line 427)
  44601. * malign-power: RS/6000 and PowerPC Options.
  44602. (line 427)
  44603. * mall-opts: MeP Options. (line 11)
  44604. * malloc-cc: FRV Options. (line 31)
  44605. * mallow-string-insns: RX Options. (line 150)
  44606. * mallregs: RL78 Options. (line 66)
  44607. * maltivec: RS/6000 and PowerPC Options.
  44608. (line 136)
  44609. * maltivec=be: RS/6000 and PowerPC Options.
  44610. (line 152)
  44611. * maltivec=le: RS/6000 and PowerPC Options.
  44612. (line 162)
  44613. * mam33: MN10300 Options. (line 17)
  44614. * mam33-2: MN10300 Options. (line 24)
  44615. * mam34: MN10300 Options. (line 27)
  44616. * mandroid: GNU/Linux Options. (line 26)
  44617. * mannotate-align: ARC Options. (line 338)
  44618. * mapcs: ARM Options. (line 21)
  44619. * mapcs-frame: ARM Options. (line 13)
  44620. * mapp-regs: SPARC Options. (line 10)
  44621. * mapp-regs <1>: V850 Options. (line 181)
  44622. * mARC600: ARC Options. (line 19)
  44623. * mARC601: ARC Options. (line 23)
  44624. * mARC700: ARC Options. (line 26)
  44625. * march: AArch64 Options. (line 110)
  44626. * march <1>: ARM Options. (line 65)
  44627. * march <2>: C6X Options. (line 7)
  44628. * march <3>: CRIS Options. (line 10)
  44629. * march <4>: HPPA Options. (line 9)
  44630. * march <5>: HPPA Options. (line 162)
  44631. * march <6>: M680x0 Options. (line 12)
  44632. * march <7>: MIPS Options. (line 14)
  44633. * march <8>: NDS32 Options. (line 52)
  44634. * march <9>: Nios II Options. (line 70)
  44635. * march <10>: RISC-V Options. (line 51)
  44636. * march <11>: S/390 and zSeries Options.
  44637. (line 148)
  44638. * march <12>: x86 Options. (line 9)
  44639. * marclinux: ARC Options. (line 344)
  44640. * marclinux_prof: ARC Options. (line 351)
  44641. * margonaut: ARC Options. (line 538)
  44642. * marm: ARM Options. (line 304)
  44643. * mas100-syntax: RX Options. (line 76)
  44644. * masm-hex: MSP430 Options. (line 9)
  44645. * masm-syntax-unified: ARM Options. (line 399)
  44646. * masm=DIALECT: x86 Options. (line 412)
  44647. * matomic: ARC Options. (line 147)
  44648. * matomic-model=MODEL: SH Options. (line 193)
  44649. * matomic-updates: SPU Options. (line 83)
  44650. * mauto-litpools: Xtensa Options. (line 60)
  44651. * mauto-modify-reg: ARC Options. (line 389)
  44652. * mauto-pic: IA-64 Options. (line 50)
  44653. * maverage: MeP Options. (line 16)
  44654. * mavoid-indexed-addresses: RS/6000 and PowerPC Options.
  44655. (line 497)
  44656. * mavx: x86 Options. (line 673)
  44657. * mavx2: x86 Options. (line 674)
  44658. * mavx256-split-unaligned-load: x86 Options. (line 1159)
  44659. * mavx256-split-unaligned-store: x86 Options. (line 1159)
  44660. * mavx512bw: x86 Options. (line 680)
  44661. * mavx512cd: x86 Options. (line 678)
  44662. * mavx512dq: x86 Options. (line 681)
  44663. * mavx512er: x86 Options. (line 677)
  44664. * mavx512f: x86 Options. (line 675)
  44665. * mavx512ifma: x86 Options. (line 682)
  44666. * mavx512pf: x86 Options. (line 676)
  44667. * mavx512vbmi: x86 Options. (line 683)
  44668. * mavx512vl: x86 Options. (line 679)
  44669. * max-vect-align: Adapteva Epiphany Options.
  44670. (line 119)
  44671. * mb: SH Options. (line 126)
  44672. * mbackchain: S/390 and zSeries Options.
  44673. (line 35)
  44674. * mbarrel-shift-enabled: LM32 Options. (line 9)
  44675. * mbarrel-shifter: ARC Options. (line 10)
  44676. * mbarrel_shifter: ARC Options. (line 558)
  44677. * mbase-addresses: MMIX Options. (line 53)
  44678. * mbased=: MeP Options. (line 20)
  44679. * mbbit-peephole: ARC Options. (line 392)
  44680. * mbcopy: PDP-11 Options. (line 36)
  44681. * mbcopy-builtin: PDP-11 Options. (line 32)
  44682. * mbig: RS/6000 and PowerPC Options.
  44683. (line 577)
  44684. * mbig-endian: AArch64 Options. (line 20)
  44685. * mbig-endian <1>: ARC Options. (line 541)
  44686. * mbig-endian <2>: ARM Options. (line 61)
  44687. * mbig-endian <3>: C6X Options. (line 13)
  44688. * mbig-endian <4>: IA-64 Options. (line 9)
  44689. * mbig-endian <5>: MCore Options. (line 39)
  44690. * mbig-endian <6>: MicroBlaze Options. (line 57)
  44691. * mbig-endian <7>: NDS32 Options. (line 9)
  44692. * mbig-endian <8>: RS/6000 and PowerPC Options.
  44693. (line 577)
  44694. * mbig-endian <9>: TILE-Gx Options. (line 29)
  44695. * mbig-endian-data: RX Options. (line 42)
  44696. * mbig-switch: V850 Options. (line 176)
  44697. * mbigtable: SH Options. (line 141)
  44698. * mbionic: GNU/Linux Options. (line 22)
  44699. * mbit-align: RS/6000 and PowerPC Options.
  44700. (line 529)
  44701. * mbit-ops: CR16 Options. (line 25)
  44702. * mbitfield: M680x0 Options. (line 231)
  44703. * mbitops: MeP Options. (line 26)
  44704. * mbitops <1>: SH Options. (line 145)
  44705. * mblock-move-inline-limit: RS/6000 and PowerPC Options.
  44706. (line 823)
  44707. * mbmi: x86 Options. (line 700)
  44708. * mbranch-cheap: PDP-11 Options. (line 65)
  44709. * mbranch-cost: Adapteva Epiphany Options.
  44710. (line 18)
  44711. * mbranch-cost <1>: AVR Options. (line 172)
  44712. * mbranch-cost <2>: MIPS Options. (line 751)
  44713. * mbranch-cost <3>: RISC-V Options. (line 9)
  44714. * mbranch-cost=NUM: SH Options. (line 334)
  44715. * mbranch-cost=NUMBER: M32R/D Options. (line 82)
  44716. * mbranch-expensive: PDP-11 Options. (line 61)
  44717. * mbranch-hints: SPU Options. (line 29)
  44718. * mbranch-likely: MIPS Options. (line 758)
  44719. * mbranch-predict: MMIX Options. (line 48)
  44720. * mbss-plt: RS/6000 and PowerPC Options.
  44721. (line 189)
  44722. * mbuild-constants: DEC Alpha Options. (line 141)
  44723. * mbwx: DEC Alpha Options. (line 163)
  44724. * mbypass-cache: Nios II Options. (line 79)
  44725. * mc68000: M680x0 Options. (line 93)
  44726. * mc68020: M680x0 Options. (line 107)
  44727. * mc=: MeP Options. (line 31)
  44728. * mcache-block-size: NDS32 Options. (line 48)
  44729. * mcache-size: SPU Options. (line 75)
  44730. * mcache-volatile: Nios II Options. (line 85)
  44731. * mcall-eabi: RS/6000 and PowerPC Options.
  44732. (line 652)
  44733. * mcall-freebsd: RS/6000 and PowerPC Options.
  44734. (line 666)
  44735. * mcall-linux: RS/6000 and PowerPC Options.
  44736. (line 662)
  44737. * mcall-netbsd: RS/6000 and PowerPC Options.
  44738. (line 670)
  44739. * mcall-netbsd <1>: RS/6000 and PowerPC Options.
  44740. (line 674)
  44741. * mcall-prologues: AVR Options. (line 177)
  44742. * mcall-sysv: RS/6000 and PowerPC Options.
  44743. (line 644)
  44744. * mcall-sysv-eabi: RS/6000 and PowerPC Options.
  44745. (line 652)
  44746. * mcall-sysv-noeabi: RS/6000 and PowerPC Options.
  44747. (line 655)
  44748. * mcallee-super-interworking: ARM Options. (line 328)
  44749. * mcaller-copies: HPPA Options. (line 23)
  44750. * mcaller-super-interworking: ARM Options. (line 335)
  44751. * mcallgraph-data: MCore Options. (line 31)
  44752. * mcase-vector-pcrel: ARC Options. (line 401)
  44753. * mcbcond: SPARC Options. (line 260)
  44754. * mcbranch-force-delay-slot: SH Options. (line 349)
  44755. * mcc-init: CRIS Options. (line 42)
  44756. * mcfv4e: M680x0 Options. (line 169)
  44757. * mcheck-zero-division: MIPS Options. (line 546)
  44758. * mcix: DEC Alpha Options. (line 163)
  44759. * mcld: x86 Options. (line 759)
  44760. * mclear-hwcap: Solaris 2 Options. (line 9)
  44761. * mclflushopt: x86 Options. (line 687)
  44762. * mclip: MeP Options. (line 35)
  44763. * mclzero: x86 Options. (line 712)
  44764. * mcmodel: NDS32 Options. (line 55)
  44765. * mcmodel <1>: SPARC Options. (line 320)
  44766. * mcmodel=kernel: x86 Options. (line 1251)
  44767. * mcmodel=large: AArch64 Options. (line 45)
  44768. * mcmodel=large <1>: RS/6000 and PowerPC Options.
  44769. (line 130)
  44770. * mcmodel=large <2>: TILE-Gx Options. (line 14)
  44771. * mcmodel=large <3>: x86 Options. (line 1263)
  44772. * mcmodel=medany: RISC-V Options. (line 83)
  44773. * mcmodel=medium: RS/6000 and PowerPC Options.
  44774. (line 125)
  44775. * mcmodel=medium <1>: x86 Options. (line 1256)
  44776. * mcmodel=medlow: RISC-V Options. (line 76)
  44777. * mcmodel=small: AArch64 Options. (line 39)
  44778. * mcmodel=small <1>: RS/6000 and PowerPC Options.
  44779. (line 121)
  44780. * mcmodel=small <2>: TILE-Gx Options. (line 9)
  44781. * mcmodel=small <3>: x86 Options. (line 1245)
  44782. * mcmodel=tiny: AArch64 Options. (line 34)
  44783. * mcmov: NDS32 Options. (line 21)
  44784. * mcmove: Adapteva Epiphany Options.
  44785. (line 23)
  44786. * mcmpb: RS/6000 and PowerPC Options.
  44787. (line 27)
  44788. * mcmse: ARM Options. (line 424)
  44789. * mcode-density: ARC Options. (line 155)
  44790. * mcode-readable: MIPS Options. (line 506)
  44791. * mcode-region: MSP430 Options. (line 93)
  44792. * mcompact-branches=always: MIPS Options. (line 770)
  44793. * mcompact-branches=never: MIPS Options. (line 770)
  44794. * mcompact-branches=optimal: MIPS Options. (line 770)
  44795. * mcompact-casesi: ARC Options. (line 405)
  44796. * mcompat-align-parm: RS/6000 and PowerPC Options.
  44797. (line 997)
  44798. * mcond-exec: FRV Options. (line 187)
  44799. * mcond-move: FRV Options. (line 159)
  44800. * mconfig=: MeP Options. (line 39)
  44801. * mconsole: x86 Windows Options.
  44802. (line 9)
  44803. * mconst-align: CRIS Options. (line 55)
  44804. * mconst16: Xtensa Options. (line 10)
  44805. * mconstant-gp: IA-64 Options. (line 46)
  44806. * mcop: MeP Options. (line 48)
  44807. * mcop32: MeP Options. (line 53)
  44808. * mcop64: MeP Options. (line 56)
  44809. * mcorea: Blackfin Options. (line 156)
  44810. * mcoreb: Blackfin Options. (line 163)
  44811. * mcpu: AArch64 Options. (line 168)
  44812. * mcpu <1>: ARC Options. (line 14)
  44813. * mcpu <2>: ARM Options. (line 166)
  44814. * mcpu <3>: CRIS Options. (line 10)
  44815. * mcpu <4>: DEC Alpha Options. (line 215)
  44816. * mcpu <5>: FRV Options. (line 258)
  44817. * mcpu <6>: M680x0 Options. (line 28)
  44818. * mcpu <7>: picoChip Options. (line 9)
  44819. * mcpu <8>: RL78 Options. (line 32)
  44820. * mcpu <9>: RS/6000 and PowerPC Options.
  44821. (line 68)
  44822. * mcpu <10>: RX Options. (line 30)
  44823. * mcpu <11>: SPARC Options. (line 115)
  44824. * mcpu <12>: TILE-Gx Options. (line 18)
  44825. * mcpu <13>: TILEPro Options. (line 9)
  44826. * mcpu <14>: Visium Options. (line 33)
  44827. * mcpu <15>: x86 Options. (line 358)
  44828. * mcpu32: M680x0 Options. (line 135)
  44829. * mcpu=: Blackfin Options. (line 7)
  44830. * mcpu= <1>: M32C Options. (line 7)
  44831. * mcpu= <2>: MicroBlaze Options. (line 20)
  44832. * mcpu= <3>: MSP430 Options. (line 42)
  44833. * mcr16c: CR16 Options. (line 14)
  44834. * mcr16cplus: CR16 Options. (line 14)
  44835. * mcrc32: x86 Options. (line 806)
  44836. * mcrypto: RS/6000 and PowerPC Options.
  44837. (line 228)
  44838. * mcsync-anomaly: Blackfin Options. (line 59)
  44839. * mctor-dtor: NDS32 Options. (line 69)
  44840. * mcustom-fpu-cfg: Nios II Options. (line 235)
  44841. * mcustom-INSN: Nios II Options. (line 115)
  44842. * mcx16: x86 Options. (line 783)
  44843. * MD: Preprocessor Options.
  44844. (line 167)
  44845. * mdalign: SH Options. (line 132)
  44846. * mdata-align: CRIS Options. (line 55)
  44847. * mdata-model: CR16 Options. (line 28)
  44848. * mdata-region: MSP430 Options. (line 93)
  44849. * mdc: MeP Options. (line 62)
  44850. * mdebug: M32R/D Options. (line 69)
  44851. * mdebug <1>: S/390 and zSeries Options.
  44852. (line 144)
  44853. * mdebug <2>: Visium Options. (line 7)
  44854. * mdebug-main=PREFIX: VMS Options. (line 13)
  44855. * mdec-asm: PDP-11 Options. (line 72)
  44856. * mdirect-move: RS/6000 and PowerPC Options.
  44857. (line 234)
  44858. * mdisable-callt: V850 Options. (line 92)
  44859. * mdisable-fpregs: HPPA Options. (line 34)
  44860. * mdisable-indexing: HPPA Options. (line 40)
  44861. * mdiv: M680x0 Options. (line 206)
  44862. * mdiv <1>: MCore Options. (line 15)
  44863. * mdiv <2>: MeP Options. (line 65)
  44864. * mdiv <3>: RISC-V Options. (line 46)
  44865. * mdiv-rem: ARC Options. (line 152)
  44866. * mdiv=STRATEGY: SH Options. (line 284)
  44867. * mdivide-breaks: MIPS Options. (line 552)
  44868. * mdivide-enabled: LM32 Options. (line 12)
  44869. * mdivide-traps: MIPS Options. (line 552)
  44870. * mdivsi3_libfunc=NAME: SH Options. (line 320)
  44871. * mdll: x86 Windows Options.
  44872. (line 16)
  44873. * mdlmzb: RS/6000 and PowerPC Options.
  44874. (line 522)
  44875. * mdmx: MIPS Options. (line 375)
  44876. * mdouble: FRV Options. (line 48)
  44877. * mdouble-float: MIPS Options. (line 287)
  44878. * mdouble-float <1>: RS/6000 and PowerPC Options.
  44879. (line 445)
  44880. * mdpfp: ARC Options. (line 91)
  44881. * mdpfp-compact: ARC Options. (line 92)
  44882. * mdpfp-fast: ARC Options. (line 96)
  44883. * mdpfp_compact: ARC Options. (line 561)
  44884. * mdpfp_fast: ARC Options. (line 564)
  44885. * mdsp: MIPS Options. (line 352)
  44886. * mdsp-packa: ARC Options. (line 291)
  44887. * mdspr2: MIPS Options. (line 358)
  44888. * mdsp_packa: ARC Options. (line 567)
  44889. * mdual-nops: SPU Options. (line 95)
  44890. * mdump-tune-features: x86 Options. (line 741)
  44891. * mdvbf: ARC Options. (line 296)
  44892. * mdwarf2-asm: IA-64 Options. (line 94)
  44893. * mdword: FRV Options. (line 40)
  44894. * mdynamic-no-pic: RS/6000 and PowerPC Options.
  44895. (line 582)
  44896. * mea: ARC Options. (line 104)
  44897. * mEA: ARC Options. (line 570)
  44898. * mea32: SPU Options. (line 60)
  44899. * mea64: SPU Options. (line 60)
  44900. * meabi: RS/6000 and PowerPC Options.
  44901. (line 767)
  44902. * mearly-cbranchsi: ARC Options. (line 427)
  44903. * mearly-stop-bits: IA-64 Options. (line 100)
  44904. * meb: MeP Options. (line 68)
  44905. * meb <1>: Moxie Options. (line 7)
  44906. * meb <2>: Nios II Options. (line 66)
  44907. * meb <3>: Score Options. (line 9)
  44908. * mel: MeP Options. (line 71)
  44909. * mel <1>: Moxie Options. (line 11)
  44910. * mel <2>: Nios II Options. (line 66)
  44911. * mel <3>: Score Options. (line 12)
  44912. * melf: CRIS Options. (line 87)
  44913. * melf <1>: MMIX Options. (line 43)
  44914. * memb: RS/6000 and PowerPC Options.
  44915. (line 762)
  44916. * membedded-data: MIPS Options. (line 493)
  44917. * memregs=: M32C Options. (line 21)
  44918. * mep: V850 Options. (line 16)
  44919. * mepsilon: MMIX Options. (line 15)
  44920. * merror-reloc: SPU Options. (line 10)
  44921. * mesa: S/390 and zSeries Options.
  44922. (line 94)
  44923. * metrax100: CRIS Options. (line 27)
  44924. * metrax4: CRIS Options. (line 27)
  44925. * meva: MIPS Options. (line 402)
  44926. * mexpand-adddi: ARC Options. (line 430)
  44927. * mexplicit-relocs: DEC Alpha Options. (line 176)
  44928. * mexplicit-relocs <1>: MIPS Options. (line 537)
  44929. * mexr: H8/300 Options. (line 28)
  44930. * mextern-sdata: MIPS Options. (line 456)
  44931. * MF: Preprocessor Options.
  44932. (line 111)
  44933. * mf16c: x86 Options. (line 690)
  44934. * mfast-fp: Blackfin Options. (line 132)
  44935. * mfast-indirect-calls: HPPA Options. (line 52)
  44936. * mfast-sw-div: Nios II Options. (line 91)
  44937. * mfaster-structs: SPARC Options. (line 91)
  44938. * mfdiv: RISC-V Options. (line 39)
  44939. * mfdpic: FRV Options. (line 72)
  44940. * mfentry: x86 Options. (line 1118)
  44941. * mfix: DEC Alpha Options. (line 163)
  44942. * mfix-24k: MIPS Options. (line 617)
  44943. * mfix-and-continue: Darwin Options. (line 104)
  44944. * mfix-at697f: SPARC Options. (line 294)
  44945. * mfix-cortex-a53-835769: AArch64 Options. (line 73)
  44946. * mfix-cortex-a53-843419: AArch64 Options. (line 80)
  44947. * mfix-cortex-m3-ldrd: ARM Options. (line 368)
  44948. * mfix-gr712rc: SPARC Options. (line 307)
  44949. * mfix-r10000: MIPS Options. (line 639)
  44950. * mfix-r4000: MIPS Options. (line 623)
  44951. * mfix-r4400: MIPS Options. (line 633)
  44952. * mfix-rm7000: MIPS Options. (line 650)
  44953. * mfix-sb1: MIPS Options. (line 675)
  44954. * mfix-ut699: SPARC Options. (line 299)
  44955. * mfix-ut700: SPARC Options. (line 303)
  44956. * mfix-vr4120: MIPS Options. (line 655)
  44957. * mfix-vr4130: MIPS Options. (line 668)
  44958. * mfixed-cc: FRV Options. (line 35)
  44959. * mfixed-range: HPPA Options. (line 59)
  44960. * mfixed-range <1>: IA-64 Options. (line 105)
  44961. * mfixed-range <2>: SH Options. (line 327)
  44962. * mfixed-range <3>: SPU Options. (line 52)
  44963. * mflat: SPARC Options. (line 22)
  44964. * mflip-mips16: MIPS Options. (line 127)
  44965. * mfloat-abi: ARM Options. (line 41)
  44966. * mfloat-gprs: RS/6000 and PowerPC Options.
  44967. (line 334)
  44968. * mfloat-ieee: DEC Alpha Options. (line 171)
  44969. * mfloat-vax: DEC Alpha Options. (line 171)
  44970. * mfloat128: RS/6000 and PowerPC Options.
  44971. (line 307)
  44972. * mfloat128-hardware: RS/6000 and PowerPC Options.
  44973. (line 322)
  44974. * mfloat32: PDP-11 Options. (line 52)
  44975. * mfloat64: PDP-11 Options. (line 48)
  44976. * mflush-func: MIPS Options. (line 742)
  44977. * mflush-func=NAME: M32R/D Options. (line 93)
  44978. * mflush-trap=NUMBER: M32R/D Options. (line 86)
  44979. * mfma: x86 Options. (line 691)
  44980. * mfma4: x86 Options. (line 692)
  44981. * mfmaf: SPARC Options. (line 267)
  44982. * mfmovd: SH Options. (line 148)
  44983. * mforce-no-pic: Xtensa Options. (line 41)
  44984. * mfp-exceptions: MIPS Options. (line 790)
  44985. * mfp-mode: Adapteva Epiphany Options.
  44986. (line 71)
  44987. * mfp-reg: DEC Alpha Options. (line 25)
  44988. * mfp-rounding-mode: DEC Alpha Options. (line 85)
  44989. * mfp-trap-mode: DEC Alpha Options. (line 63)
  44990. * mfp16-format: ARM Options. (line 212)
  44991. * mfp32: MIPS Options. (line 257)
  44992. * mfp64: MIPS Options. (line 260)
  44993. * mfpmath: Optimize Options. (line 2020)
  44994. * mfpmath <1>: x86 Options. (line 361)
  44995. * mfpr-32: FRV Options. (line 15)
  44996. * mfpr-64: FRV Options. (line 19)
  44997. * mfprnd: RS/6000 and PowerPC Options.
  44998. (line 27)
  44999. * mfpu: ARC Options. (line 223)
  45000. * mfpu <1>: ARM Options. (line 186)
  45001. * mfpu <2>: PDP-11 Options. (line 9)
  45002. * mfpu <3>: RS/6000 and PowerPC Options.
  45003. (line 453)
  45004. * mfpu <4>: SPARC Options. (line 34)
  45005. * mfpu <5>: Visium Options. (line 19)
  45006. * mfpxx: MIPS Options. (line 263)
  45007. * mfract-convert-truncate: AVR Options. (line 242)
  45008. * mframe-header-opt: MIPS Options. (line 851)
  45009. * mfriz: RS/6000 and PowerPC Options.
  45010. (line 968)
  45011. * mfsca: SH Options. (line 365)
  45012. * mfsgsbase: x86 Options. (line 688)
  45013. * mfsmuld: SPARC Options. (line 274)
  45014. * mfsrra: SH Options. (line 374)
  45015. * mfull-regs: NDS32 Options. (line 18)
  45016. * mfull-toc: RS/6000 and PowerPC Options.
  45017. (line 362)
  45018. * mfused-madd: IA-64 Options. (line 88)
  45019. * mfused-madd <1>: MIPS Options. (line 600)
  45020. * mfused-madd <2>: RS/6000 and PowerPC Options.
  45021. (line 506)
  45022. * mfused-madd <3>: S/390 and zSeries Options.
  45023. (line 175)
  45024. * mfused-madd <4>: SH Options. (line 356)
  45025. * mfused-madd <5>: Xtensa Options. (line 19)
  45026. * mfxsr: x86 Options. (line 703)
  45027. * MG: Preprocessor Options.
  45028. (line 120)
  45029. * mg: VAX Options. (line 17)
  45030. * mg10: RL78 Options. (line 62)
  45031. * mg13: RL78 Options. (line 62)
  45032. * mg14: RL78 Options. (line 62)
  45033. * mgas: HPPA Options. (line 75)
  45034. * mgcc-abi: V850 Options. (line 148)
  45035. * mgen-cell-microcode: RS/6000 and PowerPC Options.
  45036. (line 177)
  45037. * mgeneral-regs-only: AArch64 Options. (line 24)
  45038. * mgeneral-regs-only <1>: x86 Options. (line 1174)
  45039. * mghs: V850 Options. (line 127)
  45040. * mglibc: GNU/Linux Options. (line 9)
  45041. * mgnu: VAX Options. (line 13)
  45042. * mgnu-as: IA-64 Options. (line 18)
  45043. * mgnu-attribute: RS/6000 and PowerPC Options.
  45044. (line 721)
  45045. * mgnu-ld: HPPA Options. (line 111)
  45046. * mgnu-ld <1>: IA-64 Options. (line 23)
  45047. * mgomp: Nvidia PTX Options. (line 48)
  45048. * mgotplt: CRIS Options. (line 81)
  45049. * mgp32: MIPS Options. (line 251)
  45050. * mgp64: MIPS Options. (line 254)
  45051. * mgpopt: MIPS Options. (line 478)
  45052. * mgpopt <1>: Nios II Options. (line 16)
  45053. * mgpr-32: FRV Options. (line 7)
  45054. * mgpr-64: FRV Options. (line 11)
  45055. * mgprel-ro: FRV Options. (line 99)
  45056. * mh: H8/300 Options. (line 14)
  45057. * mhal: Nios II Options. (line 280)
  45058. * mhalf-reg-file: Adapteva Epiphany Options.
  45059. (line 9)
  45060. * mhard-dfp: RS/6000 and PowerPC Options.
  45061. (line 27)
  45062. * mhard-dfp <1>: S/390 and zSeries Options.
  45063. (line 20)
  45064. * mhard-float: FRV Options. (line 23)
  45065. * mhard-float <1>: M680x0 Options. (line 194)
  45066. * mhard-float <2>: MicroBlaze Options. (line 10)
  45067. * mhard-float <3>: MIPS Options. (line 266)
  45068. * mhard-float <4>: RS/6000 and PowerPC Options.
  45069. (line 439)
  45070. * mhard-float <5>: S/390 and zSeries Options.
  45071. (line 11)
  45072. * mhard-float <6>: SPARC Options. (line 34)
  45073. * mhard-float <7>: V850 Options. (line 113)
  45074. * mhard-float <8>: Visium Options. (line 19)
  45075. * mhard-float <9>: x86 Options. (line 426)
  45076. * mhard-quad-float: SPARC Options. (line 55)
  45077. * mhardlit: MCore Options. (line 10)
  45078. * mhint-max-distance: SPU Options. (line 107)
  45079. * mhint-max-nops: SPU Options. (line 101)
  45080. * mhotpatch: S/390 and zSeries Options.
  45081. (line 210)
  45082. * mhp-ld: HPPA Options. (line 123)
  45083. * mhtm: RS/6000 and PowerPC Options.
  45084. (line 240)
  45085. * mhtm <1>: S/390 and zSeries Options.
  45086. (line 104)
  45087. * mhw-div: Nios II Options. (line 100)
  45088. * mhw-mul: Nios II Options. (line 100)
  45089. * mhw-mulx: Nios II Options. (line 100)
  45090. * mhwmult=: MSP430 Options. (line 63)
  45091. * miamcu: x86 Options. (line 1217)
  45092. * micplb: Blackfin Options. (line 177)
  45093. * mid-shared-library: Blackfin Options. (line 80)
  45094. * mieee: DEC Alpha Options. (line 39)
  45095. * mieee <1>: SH Options. (line 165)
  45096. * mieee-conformant: DEC Alpha Options. (line 134)
  45097. * mieee-fp: x86 Options. (line 420)
  45098. * mieee-with-inexact: DEC Alpha Options. (line 52)
  45099. * milp32: IA-64 Options. (line 121)
  45100. * mimadd: MIPS Options. (line 593)
  45101. * mimpure-text: Solaris 2 Options. (line 15)
  45102. * mincoming-stack-boundary: x86 Options. (line 639)
  45103. * mindexed-loads: ARC Options. (line 434)
  45104. * minline-all-stringops: x86 Options. (line 1050)
  45105. * minline-float-divide-max-throughput: IA-64 Options. (line 58)
  45106. * minline-float-divide-min-latency: IA-64 Options. (line 54)
  45107. * minline-ic_invalidate: SH Options. (line 174)
  45108. * minline-int-divide-max-throughput: IA-64 Options. (line 69)
  45109. * minline-int-divide-min-latency: IA-64 Options. (line 65)
  45110. * minline-plt: Blackfin Options. (line 137)
  45111. * minline-plt <1>: FRV Options. (line 81)
  45112. * minline-sqrt-max-throughput: IA-64 Options. (line 80)
  45113. * minline-sqrt-min-latency: IA-64 Options. (line 76)
  45114. * minline-stringops-dynamically: x86 Options. (line 1057)
  45115. * minrt: MSP430 Options. (line 85)
  45116. * minsert-sched-nops: RS/6000 and PowerPC Options.
  45117. (line 622)
  45118. * mint-register: RX Options. (line 100)
  45119. * mint16: PDP-11 Options. (line 40)
  45120. * mint32: CR16 Options. (line 22)
  45121. * mint32 <1>: H8/300 Options. (line 38)
  45122. * mint32 <2>: PDP-11 Options. (line 44)
  45123. * mint8: AVR Options. (line 181)
  45124. * minterlink-compressed: MIPS Options. (line 134)
  45125. * minterlink-mips16: MIPS Options. (line 146)
  45126. * mio-volatile: MeP Options. (line 74)
  45127. * mips1: MIPS Options. (line 79)
  45128. * mips16: MIPS Options. (line 119)
  45129. * mips2: MIPS Options. (line 82)
  45130. * mips3: MIPS Options. (line 85)
  45131. * mips32: MIPS Options. (line 91)
  45132. * mips32r3: MIPS Options. (line 94)
  45133. * mips32r5: MIPS Options. (line 97)
  45134. * mips32r6: MIPS Options. (line 100)
  45135. * mips3d: MIPS Options. (line 381)
  45136. * mips4: MIPS Options. (line 88)
  45137. * mips64: MIPS Options. (line 103)
  45138. * mips64r2: MIPS Options. (line 106)
  45139. * mips64r3: MIPS Options. (line 109)
  45140. * mips64r5: MIPS Options. (line 112)
  45141. * mips64r6: MIPS Options. (line 115)
  45142. * misel: RS/6000 and PowerPC Options.
  45143. (line 195)
  45144. * misize: ARC Options. (line 335)
  45145. * misize <1>: SH Options. (line 186)
  45146. * misr-vector-size: NDS32 Options. (line 45)
  45147. * missue-rate=NUMBER: M32R/D Options. (line 79)
  45148. * mivc2: MeP Options. (line 59)
  45149. * mjsr: RX Options. (line 169)
  45150. * mjump-in-delay: HPPA Options. (line 30)
  45151. * mkernel: Darwin Options. (line 82)
  45152. * mknuthdiv: MMIX Options. (line 32)
  45153. * ml: MeP Options. (line 78)
  45154. * ml <1>: SH Options. (line 129)
  45155. * mlarge: MSP430 Options. (line 52)
  45156. * mlarge-data: DEC Alpha Options. (line 187)
  45157. * mlarge-data-threshold: x86 Options. (line 525)
  45158. * mlarge-mem: SPU Options. (line 38)
  45159. * mlarge-text: DEC Alpha Options. (line 205)
  45160. * mleadz: MeP Options. (line 81)
  45161. * mleaf-id-shared-library: Blackfin Options. (line 91)
  45162. * mlibfuncs: MMIX Options. (line 10)
  45163. * mlibrary-pic: FRV Options. (line 135)
  45164. * mlinked-fp: FRV Options. (line 116)
  45165. * mlinker-opt: HPPA Options. (line 85)
  45166. * mlinux: CRIS Options. (line 91)
  45167. * mlittle: RS/6000 and PowerPC Options.
  45168. (line 571)
  45169. * mlittle-endian: AArch64 Options. (line 30)
  45170. * mlittle-endian <1>: ARC Options. (line 550)
  45171. * mlittle-endian <2>: ARM Options. (line 57)
  45172. * mlittle-endian <3>: C6X Options. (line 16)
  45173. * mlittle-endian <4>: IA-64 Options. (line 13)
  45174. * mlittle-endian <5>: MCore Options. (line 39)
  45175. * mlittle-endian <6>: MicroBlaze Options. (line 60)
  45176. * mlittle-endian <7>: NDS32 Options. (line 12)
  45177. * mlittle-endian <8>: RS/6000 and PowerPC Options.
  45178. (line 571)
  45179. * mlittle-endian <9>: TILE-Gx Options. (line 29)
  45180. * mlittle-endian-data: RX Options. (line 42)
  45181. * mliw: MN10300 Options. (line 54)
  45182. * mll64: ARC Options. (line 159)
  45183. * mllsc: MIPS Options. (line 338)
  45184. * mload-store-pairs: MIPS Options. (line 566)
  45185. * mlocal-sdata: MIPS Options. (line 444)
  45186. * mlock: ARC Options. (line 301)
  45187. * mlong-calls: Adapteva Epiphany Options.
  45188. (line 55)
  45189. * mlong-calls <1>: ARC Options. (line 360)
  45190. * mlong-calls <2>: ARM Options. (line 237)
  45191. * mlong-calls <3>: Blackfin Options. (line 120)
  45192. * mlong-calls <4>: FRV Options. (line 122)
  45193. * mlong-calls <5>: MIPS Options. (line 579)
  45194. * mlong-calls <6>: V850 Options. (line 10)
  45195. * mlong-double-128: S/390 and zSeries Options.
  45196. (line 29)
  45197. * mlong-double-128 <1>: x86 Options. (line 504)
  45198. * mlong-double-64: S/390 and zSeries Options.
  45199. (line 29)
  45200. * mlong-double-64 <1>: x86 Options. (line 504)
  45201. * mlong-double-80: x86 Options. (line 504)
  45202. * mlong-jump-table-offsets: M680x0 Options. (line 342)
  45203. * mlong-jumps: V850 Options. (line 108)
  45204. * mlong-load-store: HPPA Options. (line 66)
  45205. * mlong32: MIPS Options. (line 419)
  45206. * mlong64: MIPS Options. (line 414)
  45207. * mlongcall: RS/6000 and PowerPC Options.
  45208. (line 843)
  45209. * mlongcalls: Xtensa Options. (line 87)
  45210. * mloop: V850 Options. (line 121)
  45211. * mlow-64k: Blackfin Options. (line 69)
  45212. * mlow-precision-recip-sqrt: AArch64 Options. (line 86)
  45213. * mlp64: IA-64 Options. (line 121)
  45214. * mlra: ARC Options. (line 438)
  45215. * mlra <1>: FT32 Options. (line 16)
  45216. * mlra <2>: RS/6000 and PowerPC Options.
  45217. (line 203)
  45218. * mlra <3>: SPARC Options. (line 111)
  45219. * mlra-priority-compact: ARC Options. (line 446)
  45220. * mlra-priority-noncompact: ARC Options. (line 449)
  45221. * mlra-priority-none: ARC Options. (line 443)
  45222. * mlwp: x86 Options. (line 695)
  45223. * mlxc1-sxc1: MIPS Options. (line 861)
  45224. * mlzcnt: x86 Options. (line 702)
  45225. * MM: Preprocessor Options.
  45226. (line 102)
  45227. * mm: MeP Options. (line 84)
  45228. * mmac: CR16 Options. (line 9)
  45229. * mmac <1>: Score Options. (line 21)
  45230. * mmac-24: ARC Options. (line 310)
  45231. * mmac-d16: ARC Options. (line 306)
  45232. * mmac_24: ARC Options. (line 573)
  45233. * mmac_d16: ARC Options. (line 576)
  45234. * mmad: MIPS Options. (line 588)
  45235. * mmadd4: MIPS Options. (line 866)
  45236. * mmainkernel: Nvidia PTX Options. (line 13)
  45237. * mmalloc64: VMS Options. (line 17)
  45238. * mmax: DEC Alpha Options. (line 163)
  45239. * mmax-constant-size: RX Options. (line 82)
  45240. * mmax-stack-frame: CRIS Options. (line 23)
  45241. * mmcount-ra-address: MIPS Options. (line 838)
  45242. * mmcu: AVR Options. (line 9)
  45243. * mmcu <1>: MIPS Options. (line 398)
  45244. * mmcu=: MSP430 Options. (line 14)
  45245. * MMD: Preprocessor Options.
  45246. (line 183)
  45247. * mmedia: FRV Options. (line 56)
  45248. * mmedium-calls: ARC Options. (line 364)
  45249. * mmemcpy: MicroBlaze Options. (line 13)
  45250. * mmemcpy <1>: MIPS Options. (line 573)
  45251. * mmemcpy-strategy=STRATEGY: x86 Options. (line 1079)
  45252. * mmemory-latency: DEC Alpha Options. (line 268)
  45253. * mmemory-model: SPARC Options. (line 348)
  45254. * mmemset-strategy=STRATEGY: x86 Options. (line 1091)
  45255. * mmfcrf: RS/6000 and PowerPC Options.
  45256. (line 27)
  45257. * mmfpgpr: RS/6000 and PowerPC Options.
  45258. (line 27)
  45259. * mmicromips: MIPS Options. (line 386)
  45260. * mminimal-toc: RS/6000 and PowerPC Options.
  45261. (line 362)
  45262. * mminmax: MeP Options. (line 87)
  45263. * mmitigate-rop: x86 Options. (line 1168)
  45264. * mmixed-code: ARC Options. (line 461)
  45265. * mmmx: x86 Options. (line 664)
  45266. * mmodel=large: M32R/D Options. (line 33)
  45267. * mmodel=medium: M32R/D Options. (line 27)
  45268. * mmodel=small: M32R/D Options. (line 18)
  45269. * mmovbe: x86 Options. (line 802)
  45270. * mmpx: x86 Options. (line 710)
  45271. * mmpy-option: ARC Options. (line 165)
  45272. * mms-bitfields: x86 Options. (line 925)
  45273. * mmt: MIPS Options. (line 394)
  45274. * mmul: RL78 Options. (line 15)
  45275. * mmul-bug-workaround: CRIS Options. (line 32)
  45276. * mmul.x: Moxie Options. (line 14)
  45277. * mmul32x16: ARC Options. (line 113)
  45278. * mmul64: ARC Options. (line 116)
  45279. * mmuladd: FRV Options. (line 64)
  45280. * mmulhw: RS/6000 and PowerPC Options.
  45281. (line 515)
  45282. * mmult: MeP Options. (line 90)
  45283. * mmult-bug: MN10300 Options. (line 9)
  45284. * mmultcost: ARC Options. (line 523)
  45285. * mmulti-cond-exec: FRV Options. (line 215)
  45286. * mmulticore: Blackfin Options. (line 141)
  45287. * mmultiple: RS/6000 and PowerPC Options.
  45288. (line 465)
  45289. * mmusl: GNU/Linux Options. (line 18)
  45290. * mmvcle: S/390 and zSeries Options.
  45291. (line 138)
  45292. * mmvme: RS/6000 and PowerPC Options.
  45293. (line 743)
  45294. * mmwaitx: x86 Options. (line 711)
  45295. * mn: H8/300 Options. (line 20)
  45296. * mn-flash: AVR Options. (line 187)
  45297. * mnan=2008: MIPS Options. (line 319)
  45298. * mnan=legacy: MIPS Options. (line 319)
  45299. * mneon-for-64bits: ARM Options. (line 388)
  45300. * mnested-cond-exec: FRV Options. (line 230)
  45301. * mnhwloop: Score Options. (line 15)
  45302. * mno-16-bit: NDS32 Options. (line 42)
  45303. * mno-4byte-functions: MCore Options. (line 27)
  45304. * mno-8byte-align: V850 Options. (line 170)
  45305. * mno-abicalls: MIPS Options. (line 191)
  45306. * mno-abshi: PDP-11 Options. (line 58)
  45307. * mno-ac0: PDP-11 Options. (line 20)
  45308. * mno-address-space-conversion: SPU Options. (line 68)
  45309. * mno-align-double: x86 Options. (line 463)
  45310. * mno-align-int: M680x0 Options. (line 263)
  45311. * mno-align-loops: M32R/D Options. (line 76)
  45312. * mno-align-stringops: x86 Options. (line 1045)
  45313. * mno-allow-string-insns: RX Options. (line 150)
  45314. * mno-altivec: RS/6000 and PowerPC Options.
  45315. (line 136)
  45316. * mno-am33: MN10300 Options. (line 20)
  45317. * mno-app-regs: SPARC Options. (line 10)
  45318. * mno-app-regs <1>: V850 Options. (line 185)
  45319. * mno-as100-syntax: RX Options. (line 76)
  45320. * mno-atomic-updates: SPU Options. (line 83)
  45321. * mno-auto-litpools: Xtensa Options. (line 60)
  45322. * mno-avoid-indexed-addresses: RS/6000 and PowerPC Options.
  45323. (line 497)
  45324. * mno-backchain: S/390 and zSeries Options.
  45325. (line 35)
  45326. * mno-base-addresses: MMIX Options. (line 53)
  45327. * mno-bit-align: RS/6000 and PowerPC Options.
  45328. (line 529)
  45329. * mno-bitfield: M680x0 Options. (line 227)
  45330. * mno-branch-likely: MIPS Options. (line 758)
  45331. * mno-branch-predict: MMIX Options. (line 48)
  45332. * mno-brcc: ARC Options. (line 395)
  45333. * mno-bwx: DEC Alpha Options. (line 163)
  45334. * mno-bypass-cache: Nios II Options. (line 79)
  45335. * mno-cache-volatile: Nios II Options. (line 85)
  45336. * mno-callgraph-data: MCore Options. (line 31)
  45337. * mno-cbcond: SPARC Options. (line 260)
  45338. * mno-check-zero-division: MIPS Options. (line 546)
  45339. * mno-cix: DEC Alpha Options. (line 163)
  45340. * mno-clearbss: MicroBlaze Options. (line 16)
  45341. * mno-cmov: NDS32 Options. (line 24)
  45342. * mno-cmpb: RS/6000 and PowerPC Options.
  45343. (line 27)
  45344. * mno-cond-exec: ARC Options. (line 409)
  45345. * mno-cond-exec <1>: FRV Options. (line 194)
  45346. * mno-cond-move: FRV Options. (line 166)
  45347. * mno-const-align: CRIS Options. (line 55)
  45348. * mno-const16: Xtensa Options. (line 10)
  45349. * mno-crt0: MN10300 Options. (line 43)
  45350. * mno-crt0 <1>: Moxie Options. (line 18)
  45351. * mno-crypto: RS/6000 and PowerPC Options.
  45352. (line 228)
  45353. * mno-csync-anomaly: Blackfin Options. (line 65)
  45354. * mno-custom-INSN: Nios II Options. (line 115)
  45355. * mno-data-align: CRIS Options. (line 55)
  45356. * mno-debug: S/390 and zSeries Options.
  45357. (line 144)
  45358. * mno-default: x86 Options. (line 755)
  45359. * mno-direct-move: RS/6000 and PowerPC Options.
  45360. (line 234)
  45361. * mno-disable-callt: V850 Options. (line 92)
  45362. * mno-div: M680x0 Options. (line 206)
  45363. * mno-div <1>: MCore Options. (line 15)
  45364. * mno-dlmzb: RS/6000 and PowerPC Options.
  45365. (line 522)
  45366. * mno-double: FRV Options. (line 52)
  45367. * mno-dpfp-lrsr: ARC Options. (line 100)
  45368. * mno-dsp: MIPS Options. (line 352)
  45369. * mno-dspr2: MIPS Options. (line 358)
  45370. * mno-dwarf2-asm: IA-64 Options. (line 94)
  45371. * mno-dword: FRV Options. (line 44)
  45372. * mno-eabi: RS/6000 and PowerPC Options.
  45373. (line 767)
  45374. * mno-early-stop-bits: IA-64 Options. (line 100)
  45375. * mno-eflags: FRV Options. (line 155)
  45376. * mno-embedded-data: MIPS Options. (line 493)
  45377. * mno-ep: V850 Options. (line 16)
  45378. * mno-epsilon: MMIX Options. (line 15)
  45379. * mno-eva: MIPS Options. (line 402)
  45380. * mno-explicit-relocs: DEC Alpha Options. (line 176)
  45381. * mno-explicit-relocs <1>: MIPS Options. (line 537)
  45382. * mno-exr: H8/300 Options. (line 33)
  45383. * mno-extern-sdata: MIPS Options. (line 456)
  45384. * mno-fancy-math-387: x86 Options. (line 453)
  45385. * mno-fast-sw-div: Nios II Options. (line 91)
  45386. * mno-faster-structs: SPARC Options. (line 91)
  45387. * mno-fix: DEC Alpha Options. (line 163)
  45388. * mno-fix-24k: MIPS Options. (line 617)
  45389. * mno-fix-cortex-a53-835769: AArch64 Options. (line 73)
  45390. * mno-fix-cortex-a53-843419: AArch64 Options. (line 80)
  45391. * mno-fix-r10000: MIPS Options. (line 639)
  45392. * mno-fix-r4000: MIPS Options. (line 623)
  45393. * mno-fix-r4400: MIPS Options. (line 633)
  45394. * mno-flat: SPARC Options. (line 22)
  45395. * mno-float: MIPS Options. (line 273)
  45396. * mno-float128: RS/6000 and PowerPC Options.
  45397. (line 307)
  45398. * mno-float128-hardware: RS/6000 and PowerPC Options.
  45399. (line 322)
  45400. * mno-float32: PDP-11 Options. (line 48)
  45401. * mno-float64: PDP-11 Options. (line 52)
  45402. * mno-flush-func: M32R/D Options. (line 98)
  45403. * mno-flush-trap: M32R/D Options. (line 90)
  45404. * mno-fmaf: SPARC Options. (line 267)
  45405. * mno-fp-in-toc: RS/6000 and PowerPC Options.
  45406. (line 362)
  45407. * mno-fp-regs: DEC Alpha Options. (line 25)
  45408. * mno-fp-ret-in-387: x86 Options. (line 443)
  45409. * mno-fprnd: RS/6000 and PowerPC Options.
  45410. (line 27)
  45411. * mno-fpu: SPARC Options. (line 39)
  45412. * mno-fpu <1>: Visium Options. (line 24)
  45413. * mno-fsca: SH Options. (line 365)
  45414. * mno-fsmuld: SPARC Options. (line 274)
  45415. * mno-fsrra: SH Options. (line 374)
  45416. * mno-fused-madd: IA-64 Options. (line 88)
  45417. * mno-fused-madd <1>: MIPS Options. (line 600)
  45418. * mno-fused-madd <2>: RS/6000 and PowerPC Options.
  45419. (line 506)
  45420. * mno-fused-madd <3>: S/390 and zSeries Options.
  45421. (line 175)
  45422. * mno-fused-madd <4>: SH Options. (line 356)
  45423. * mno-fused-madd <5>: Xtensa Options. (line 19)
  45424. * mno-gnu-as: IA-64 Options. (line 18)
  45425. * mno-gnu-attribute: RS/6000 and PowerPC Options.
  45426. (line 721)
  45427. * mno-gnu-ld: IA-64 Options. (line 23)
  45428. * mno-gotplt: CRIS Options. (line 81)
  45429. * mno-gpopt: MIPS Options. (line 478)
  45430. * mno-gpopt <1>: Nios II Options. (line 16)
  45431. * mno-hard-dfp: RS/6000 and PowerPC Options.
  45432. (line 27)
  45433. * mno-hard-dfp <1>: S/390 and zSeries Options.
  45434. (line 20)
  45435. * mno-hardlit: MCore Options. (line 10)
  45436. * mno-htm: RS/6000 and PowerPC Options.
  45437. (line 240)
  45438. * mno-htm <1>: S/390 and zSeries Options.
  45439. (line 104)
  45440. * mno-hw-div: Nios II Options. (line 100)
  45441. * mno-hw-mul: Nios II Options. (line 100)
  45442. * mno-hw-mulx: Nios II Options. (line 100)
  45443. * mno-id-shared-library: Blackfin Options. (line 87)
  45444. * mno-ieee: SH Options. (line 165)
  45445. * mno-ieee-fp: x86 Options. (line 420)
  45446. * mno-imadd: MIPS Options. (line 593)
  45447. * mno-inline-float-divide: IA-64 Options. (line 62)
  45448. * mno-inline-int-divide: IA-64 Options. (line 73)
  45449. * mno-inline-sqrt: IA-64 Options. (line 84)
  45450. * mno-int16: PDP-11 Options. (line 44)
  45451. * mno-int32: PDP-11 Options. (line 40)
  45452. * mno-interlink-compressed: MIPS Options. (line 134)
  45453. * mno-interlink-mips16: MIPS Options. (line 146)
  45454. * mno-interrupts: AVR Options. (line 190)
  45455. * mno-isel: RS/6000 and PowerPC Options.
  45456. (line 195)
  45457. * mno-jsr: RX Options. (line 169)
  45458. * mno-knuthdiv: MMIX Options. (line 32)
  45459. * mno-leaf-id-shared-library: Blackfin Options. (line 97)
  45460. * mno-libfuncs: MMIX Options. (line 10)
  45461. * mno-llsc: MIPS Options. (line 338)
  45462. * mno-load-store-pairs: MIPS Options. (line 566)
  45463. * mno-local-sdata: MIPS Options. (line 444)
  45464. * mno-long-calls: ARM Options. (line 237)
  45465. * mno-long-calls <1>: Blackfin Options. (line 120)
  45466. * mno-long-calls <2>: HPPA Options. (line 136)
  45467. * mno-long-calls <3>: MIPS Options. (line 579)
  45468. * mno-long-calls <4>: V850 Options. (line 10)
  45469. * mno-long-jumps: V850 Options. (line 108)
  45470. * mno-longcall: RS/6000 and PowerPC Options.
  45471. (line 843)
  45472. * mno-longcalls: Xtensa Options. (line 87)
  45473. * mno-low-64k: Blackfin Options. (line 73)
  45474. * mno-low-precision-recip-sqrt: AArch64 Options. (line 86)
  45475. * mno-lra: SPARC Options. (line 111)
  45476. * mno-lsim: FR30 Options. (line 14)
  45477. * mno-lsim <1>: MCore Options. (line 46)
  45478. * mno-mad: MIPS Options. (line 588)
  45479. * mno-max: DEC Alpha Options. (line 163)
  45480. * mno-mcount-ra-address: MIPS Options. (line 838)
  45481. * mno-mcu: MIPS Options. (line 398)
  45482. * mno-mdmx: MIPS Options. (line 375)
  45483. * mno-media: FRV Options. (line 60)
  45484. * mno-memcpy: MIPS Options. (line 573)
  45485. * mno-mfcrf: RS/6000 and PowerPC Options.
  45486. (line 27)
  45487. * mno-mfpgpr: RS/6000 and PowerPC Options.
  45488. (line 27)
  45489. * mno-millicode: ARC Options. (line 452)
  45490. * mno-mips16: MIPS Options. (line 119)
  45491. * mno-mips3d: MIPS Options. (line 381)
  45492. * mno-mmicromips: MIPS Options. (line 386)
  45493. * mno-mpy: ARC Options. (line 109)
  45494. * mno-ms-bitfields: x86 Options. (line 925)
  45495. * mno-mt: MIPS Options. (line 394)
  45496. * mno-mul-bug-workaround: CRIS Options. (line 32)
  45497. * mno-muladd: FRV Options. (line 68)
  45498. * mno-mulhw: RS/6000 and PowerPC Options.
  45499. (line 515)
  45500. * mno-mult-bug: MN10300 Options. (line 13)
  45501. * mno-multi-cond-exec: FRV Options. (line 223)
  45502. * mno-multiple: RS/6000 and PowerPC Options.
  45503. (line 465)
  45504. * mno-mvcle: S/390 and zSeries Options.
  45505. (line 138)
  45506. * mno-nested-cond-exec: FRV Options. (line 237)
  45507. * mno-odd-spreg: MIPS Options. (line 292)
  45508. * mno-omit-leaf-frame-pointer: AArch64 Options. (line 56)
  45509. * mno-optimize-membar: FRV Options. (line 249)
  45510. * mno-opts: MeP Options. (line 93)
  45511. * mno-pack: FRV Options. (line 151)
  45512. * mno-packed-stack: S/390 and zSeries Options.
  45513. (line 54)
  45514. * mno-paired: RS/6000 and PowerPC Options.
  45515. (line 213)
  45516. * mno-paired-single: MIPS Options. (line 369)
  45517. * mno-pc-relative-literal-loads: AArch64 Options. (line 194)
  45518. * mno-perf-ext: NDS32 Options. (line 30)
  45519. * mno-pic: IA-64 Options. (line 26)
  45520. * mno-pid: RX Options. (line 117)
  45521. * mno-plt: MIPS Options. (line 218)
  45522. * mno-popc: SPARC Options. (line 281)
  45523. * mno-popcntb: RS/6000 and PowerPC Options.
  45524. (line 27)
  45525. * mno-popcntd: RS/6000 and PowerPC Options.
  45526. (line 27)
  45527. * mno-postinc: Adapteva Epiphany Options.
  45528. (line 109)
  45529. * mno-postmodify: Adapteva Epiphany Options.
  45530. (line 109)
  45531. * mno-power8-fusion: RS/6000 and PowerPC Options.
  45532. (line 246)
  45533. * mno-power8-vector: RS/6000 and PowerPC Options.
  45534. (line 252)
  45535. * mno-powerpc-gfxopt: RS/6000 and PowerPC Options.
  45536. (line 27)
  45537. * mno-powerpc-gpopt: RS/6000 and PowerPC Options.
  45538. (line 27)
  45539. * mno-powerpc64: RS/6000 and PowerPC Options.
  45540. (line 27)
  45541. * mno-prolog-function: V850 Options. (line 23)
  45542. * mno-prologue-epilogue: CRIS Options. (line 71)
  45543. * mno-prototype: RS/6000 and PowerPC Options.
  45544. (line 727)
  45545. * mno-push-args: x86 Options. (line 902)
  45546. * mno-quad-memory: RS/6000 and PowerPC Options.
  45547. (line 259)
  45548. * mno-quad-memory-atomic: RS/6000 and PowerPC Options.
  45549. (line 265)
  45550. * mno-readonly-in-sdata: RS/6000 and PowerPC Options.
  45551. (line 819)
  45552. * mno-red-zone: x86 Options. (line 1237)
  45553. * mno-register-names: IA-64 Options. (line 37)
  45554. * mno-regnames: RS/6000 and PowerPC Options.
  45555. (line 837)
  45556. * mno-relax: V850 Options. (line 103)
  45557. * mno-relax-immediate: MCore Options. (line 19)
  45558. * mno-relocatable: RS/6000 and PowerPC Options.
  45559. (line 545)
  45560. * mno-relocatable-lib: RS/6000 and PowerPC Options.
  45561. (line 556)
  45562. * mno-renesas: SH Options. (line 155)
  45563. * mno-round-nearest: Adapteva Epiphany Options.
  45564. (line 51)
  45565. * mno-rtd: M680x0 Options. (line 258)
  45566. * mno-save-mduc-in-interrupts: RL78 Options. (line 79)
  45567. * mno-scc: FRV Options. (line 180)
  45568. * mno-sched-ar-data-spec: IA-64 Options. (line 135)
  45569. * mno-sched-ar-in-data-spec: IA-64 Options. (line 157)
  45570. * mno-sched-br-data-spec: IA-64 Options. (line 128)
  45571. * mno-sched-br-in-data-spec: IA-64 Options. (line 150)
  45572. * mno-sched-control-spec: IA-64 Options. (line 142)
  45573. * mno-sched-count-spec-in-critical-path: IA-64 Options. (line 185)
  45574. * mno-sched-in-control-spec: IA-64 Options. (line 164)
  45575. * mno-sched-prefer-non-control-spec-insns: IA-64 Options. (line 178)
  45576. * mno-sched-prefer-non-data-spec-insns: IA-64 Options. (line 171)
  45577. * mno-sched-prolog: ARM Options. (line 32)
  45578. * mno-sdata: ARC Options. (line 373)
  45579. * mno-sdata <1>: IA-64 Options. (line 42)
  45580. * mno-sdata <2>: RS/6000 and PowerPC Options.
  45581. (line 813)
  45582. * mno-sep-data: Blackfin Options. (line 115)
  45583. * mno-serialize-volatile: Xtensa Options. (line 35)
  45584. * mno-short: M680x0 Options. (line 222)
  45585. * mno-side-effects: CRIS Options. (line 46)
  45586. * mno-sim: RX Options. (line 71)
  45587. * mno-single-exit: MMIX Options. (line 65)
  45588. * mno-slow-bytes: MCore Options. (line 35)
  45589. * mno-small-exec: S/390 and zSeries Options.
  45590. (line 79)
  45591. * mno-smartmips: MIPS Options. (line 365)
  45592. * mno-soft-cmpsf: Adapteva Epiphany Options.
  45593. (line 29)
  45594. * mno-soft-float: DEC Alpha Options. (line 10)
  45595. * mno-space-regs: HPPA Options. (line 45)
  45596. * mno-spe: RS/6000 and PowerPC Options.
  45597. (line 208)
  45598. * mno-specld-anomaly: Blackfin Options. (line 55)
  45599. * mno-split-addresses: MIPS Options. (line 531)
  45600. * mno-stack-align: CRIS Options. (line 55)
  45601. * mno-stack-bias: SPARC Options. (line 372)
  45602. * mno-std-struct-return: SPARC Options. (line 102)
  45603. * mno-strict-align: M680x0 Options. (line 283)
  45604. * mno-strict-align <1>: RS/6000 and PowerPC Options.
  45605. (line 540)
  45606. * mno-string: RS/6000 and PowerPC Options.
  45607. (line 476)
  45608. * mno-subxc: SPARC Options. (line 288)
  45609. * mno-sum-in-toc: RS/6000 and PowerPC Options.
  45610. (line 362)
  45611. * mno-sym32: MIPS Options. (line 429)
  45612. * mno-target-align: Xtensa Options. (line 74)
  45613. * mno-text-section-literals: Xtensa Options. (line 47)
  45614. * mno-tls-markers: RS/6000 and PowerPC Options.
  45615. (line 875)
  45616. * mno-toc: RS/6000 and PowerPC Options.
  45617. (line 565)
  45618. * mno-toplevel-symbols: MMIX Options. (line 39)
  45619. * mno-tpf-trace: S/390 and zSeries Options.
  45620. (line 169)
  45621. * mno-unaligned-access: ARM Options. (line 375)
  45622. * mno-unaligned-doubles: SPARC Options. (line 73)
  45623. * mno-uninit-const-in-rodata: MIPS Options. (line 501)
  45624. * mno-update: RS/6000 and PowerPC Options.
  45625. (line 487)
  45626. * mno-upper-regs: RS/6000 and PowerPC Options.
  45627. (line 298)
  45628. * mno-upper-regs-df: RS/6000 and PowerPC Options.
  45629. (line 280)
  45630. * mno-upper-regs-di: RS/6000 and PowerPC Options.
  45631. (line 271)
  45632. * mno-upper-regs-sf: RS/6000 and PowerPC Options.
  45633. (line 289)
  45634. * mno-user-mode: SPARC Options. (line 85)
  45635. * mno-usermode: SH Options. (line 274)
  45636. * mno-v3push: NDS32 Options. (line 36)
  45637. * mno-v8plus: SPARC Options. (line 214)
  45638. * mno-vect-double: Adapteva Epiphany Options.
  45639. (line 115)
  45640. * mno-virt: MIPS Options. (line 406)
  45641. * mno-vis: SPARC Options. (line 221)
  45642. * mno-vis2: SPARC Options. (line 227)
  45643. * mno-vis3: SPARC Options. (line 235)
  45644. * mno-vis4: SPARC Options. (line 243)
  45645. * mno-vis4b: SPARC Options. (line 251)
  45646. * mno-vliw-branch: FRV Options. (line 208)
  45647. * mno-volatile-asm-stop: IA-64 Options. (line 32)
  45648. * mno-volatile-cache: ARC Options. (line 382)
  45649. * mno-vrsave: RS/6000 and PowerPC Options.
  45650. (line 174)
  45651. * mno-vsx: RS/6000 and PowerPC Options.
  45652. (line 222)
  45653. * mno-vx: S/390 and zSeries Options.
  45654. (line 112)
  45655. * mno-warn-mcu: MSP430 Options. (line 35)
  45656. * mno-warn-multiple-fast-interrupts: RX Options. (line 143)
  45657. * mno-wide-bitfields: MCore Options. (line 23)
  45658. * mno-xgot: M680x0 Options. (line 315)
  45659. * mno-xgot <1>: MIPS Options. (line 228)
  45660. * mno-xl-compat: RS/6000 and PowerPC Options.
  45661. (line 397)
  45662. * mno-xpa: MIPS Options. (line 410)
  45663. * mno-zdcbranch: SH Options. (line 341)
  45664. * mno-zero-extend: MMIX Options. (line 26)
  45665. * mno-zvector: S/390 and zSeries Options.
  45666. (line 123)
  45667. * mnobitfield: M680x0 Options. (line 227)
  45668. * mnodiv: FT32 Options. (line 20)
  45669. * mnoliw: MN10300 Options. (line 59)
  45670. * mnomacsave: SH Options. (line 160)
  45671. * mnop-fun-dllimport: x86 Windows Options.
  45672. (line 22)
  45673. * mnop-mcount: x86 Options. (line 1131)
  45674. * mnops: Adapteva Epiphany Options.
  45675. (line 26)
  45676. * mnorm: ARC Options. (line 120)
  45677. * mnosetlb: MN10300 Options. (line 69)
  45678. * mnosplit-lohi: Adapteva Epiphany Options.
  45679. (line 109)
  45680. * modd-spreg: MIPS Options. (line 292)
  45681. * momit-leaf-frame-pointer: AArch64 Options. (line 56)
  45682. * momit-leaf-frame-pointer <1>: Blackfin Options. (line 43)
  45683. * momit-leaf-frame-pointer <2>: x86 Options. (line 1095)
  45684. * mone-byte-bool: Darwin Options. (line 90)
  45685. * moptimize: Nvidia PTX Options. (line 17)
  45686. * moptimize-membar: FRV Options. (line 244)
  45687. * moverride: AArch64 Options. (line 185)
  45688. * MP: Preprocessor Options.
  45689. (line 130)
  45690. * mpa-risc-1-0: HPPA Options. (line 19)
  45691. * mpa-risc-1-1: HPPA Options. (line 19)
  45692. * mpa-risc-2-0: HPPA Options. (line 19)
  45693. * mpack: FRV Options. (line 147)
  45694. * mpacked-stack: S/390 and zSeries Options.
  45695. (line 54)
  45696. * mpadstruct: SH Options. (line 189)
  45697. * mpaired: RS/6000 and PowerPC Options.
  45698. (line 213)
  45699. * mpaired-single: MIPS Options. (line 369)
  45700. * mpc-relative-literal-loads: AArch64 Options. (line 194)
  45701. * mpc32: x86 Options. (line 588)
  45702. * mpc64: x86 Options. (line 588)
  45703. * mpc80: x86 Options. (line 588)
  45704. * mpclmul: x86 Options. (line 686)
  45705. * mpcrel: M680x0 Options. (line 275)
  45706. * mpdebug: CRIS Options. (line 36)
  45707. * mpe: RS/6000 and PowerPC Options.
  45708. (line 416)
  45709. * mpe-aligned-commons: x86 Windows Options.
  45710. (line 59)
  45711. * mperf-ext: NDS32 Options. (line 27)
  45712. * mpic-data-is-text-relative: ARM Options. (line 274)
  45713. * mpic-register: ARM Options. (line 267)
  45714. * mpid: RX Options. (line 117)
  45715. * mpku: x86 Options. (line 713)
  45716. * mplt: MIPS Options. (line 218)
  45717. * mpointer-size=SIZE: VMS Options. (line 20)
  45718. * mpointers-to-nested-functions: RS/6000 and PowerPC Options.
  45719. (line 976)
  45720. * mpoke-function-name: ARM Options. (line 282)
  45721. * mpopc: SPARC Options. (line 281)
  45722. * mpopcnt: x86 Options. (line 698)
  45723. * mpopcntb: RS/6000 and PowerPC Options.
  45724. (line 27)
  45725. * mpopcntd: RS/6000 and PowerPC Options.
  45726. (line 27)
  45727. * mportable-runtime: HPPA Options. (line 71)
  45728. * mpower8-fusion: RS/6000 and PowerPC Options.
  45729. (line 246)
  45730. * mpower8-vector: RS/6000 and PowerPC Options.
  45731. (line 252)
  45732. * mpowerpc-gfxopt: RS/6000 and PowerPC Options.
  45733. (line 27)
  45734. * mpowerpc-gpopt: RS/6000 and PowerPC Options.
  45735. (line 27)
  45736. * mpowerpc64: RS/6000 and PowerPC Options.
  45737. (line 27)
  45738. * mprefer-avx128: x86 Options. (line 779)
  45739. * mprefer-short-insn-regs: Adapteva Epiphany Options.
  45740. (line 13)
  45741. * mprefergot: SH Options. (line 268)
  45742. * mpreferred-stack-boundary: x86 Options. (line 618)
  45743. * mprefetchwt1: x86 Options. (line 693)
  45744. * mpretend-cmove: SH Options. (line 383)
  45745. * mprint-tune-info: ARM Options. (line 411)
  45746. * mprioritize-restricted-insns: RS/6000 and PowerPC Options.
  45747. (line 594)
  45748. * mprolog-function: V850 Options. (line 23)
  45749. * mprologue-epilogue: CRIS Options. (line 71)
  45750. * mprototype: RS/6000 and PowerPC Options.
  45751. (line 727)
  45752. * mpure-code: ARM Options. (line 417)
  45753. * mpush-args: x86 Options. (line 902)
  45754. * MQ: Preprocessor Options.
  45755. (line 157)
  45756. * mq-class: ARC Options. (line 466)
  45757. * mquad-memory: RS/6000 and PowerPC Options.
  45758. (line 259)
  45759. * mquad-memory-atomic: RS/6000 and PowerPC Options.
  45760. (line 265)
  45761. * mr10k-cache-barrier: MIPS Options. (line 680)
  45762. * mRcq: ARC Options. (line 470)
  45763. * mRcw: ARC Options. (line 474)
  45764. * mrdrnd: x86 Options. (line 689)
  45765. * mreadonly-in-sdata: RS/6000 and PowerPC Options.
  45766. (line 819)
  45767. * mrecip: RS/6000 and PowerPC Options.
  45768. (line 883)
  45769. * mrecip <1>: x86 Options. (line 812)
  45770. * mrecip-precision: RS/6000 and PowerPC Options.
  45771. (line 940)
  45772. * mrecip=opt: RS/6000 and PowerPC Options.
  45773. (line 896)
  45774. * mrecip=opt <1>: x86 Options. (line 834)
  45775. * mrecord-mcount: x86 Options. (line 1125)
  45776. * mreduced-regs: NDS32 Options. (line 15)
  45777. * mregister-names: IA-64 Options. (line 37)
  45778. * mregnames: RS/6000 and PowerPC Options.
  45779. (line 837)
  45780. * mregparm: x86 Options. (line 555)
  45781. * mrelax: AVR Options. (line 194)
  45782. * mrelax <1>: H8/300 Options. (line 9)
  45783. * mrelax <2>: MN10300 Options. (line 46)
  45784. * mrelax <3>: MSP430 Options. (line 58)
  45785. * mrelax <4>: NDS32 Options. (line 72)
  45786. * mrelax <5>: RX Options. (line 95)
  45787. * mrelax <6>: SH Options. (line 137)
  45788. * mrelax <7>: V850 Options. (line 103)
  45789. * mrelax-immediate: MCore Options. (line 19)
  45790. * mrelax-pic-calls: MIPS Options. (line 825)
  45791. * mrelocatable: RS/6000 and PowerPC Options.
  45792. (line 545)
  45793. * mrelocatable-lib: RS/6000 and PowerPC Options.
  45794. (line 556)
  45795. * mrenesas: SH Options. (line 152)
  45796. * mrepeat: MeP Options. (line 96)
  45797. * mrestrict-it: ARM Options. (line 405)
  45798. * mreturn-pointer-on-d0: MN10300 Options. (line 36)
  45799. * mrh850-abi: V850 Options. (line 127)
  45800. * mrl78: RL78 Options. (line 62)
  45801. * mrmw: AVR Options. (line 208)
  45802. * mrtd: M680x0 Options. (line 236)
  45803. * mrtd <1>: x86 Options. (line 531)
  45804. * mrtd <2>: x86 Function Attributes.
  45805. (line 9)
  45806. * mrtm: x86 Options. (line 708)
  45807. * mrtp: VxWorks Options. (line 11)
  45808. * mrtsc: ARC Options. (line 314)
  45809. * ms: H8/300 Options. (line 17)
  45810. * ms <1>: MeP Options. (line 100)
  45811. * ms2600: H8/300 Options. (line 24)
  45812. * msafe-dma: SPU Options. (line 18)
  45813. * msafe-hints: SPU Options. (line 112)
  45814. * msahf: x86 Options. (line 792)
  45815. * msatur: MeP Options. (line 105)
  45816. * msave-acc-in-interrupts: RX Options. (line 109)
  45817. * msave-mduc-in-interrupts: RL78 Options. (line 79)
  45818. * msave-restore: RISC-V Options. (line 65)
  45819. * msave-toc-indirect: RS/6000 and PowerPC Options.
  45820. (line 988)
  45821. * mscc: FRV Options. (line 173)
  45822. * msched-ar-data-spec: IA-64 Options. (line 135)
  45823. * msched-ar-in-data-spec: IA-64 Options. (line 157)
  45824. * msched-br-data-spec: IA-64 Options. (line 128)
  45825. * msched-br-in-data-spec: IA-64 Options. (line 150)
  45826. * msched-control-spec: IA-64 Options. (line 142)
  45827. * msched-costly-dep: RS/6000 and PowerPC Options.
  45828. (line 601)
  45829. * msched-count-spec-in-critical-path: IA-64 Options. (line 185)
  45830. * msched-fp-mem-deps-zero-cost: IA-64 Options. (line 202)
  45831. * msched-in-control-spec: IA-64 Options. (line 164)
  45832. * msched-max-memory-insns: IA-64 Options. (line 211)
  45833. * msched-max-memory-insns-hard-limit: IA-64 Options. (line 217)
  45834. * msched-prefer-non-control-spec-insns: IA-64 Options. (line 178)
  45835. * msched-prefer-non-data-spec-insns: IA-64 Options. (line 171)
  45836. * msched-spec-ldc: IA-64 Options. (line 191)
  45837. * msched-spec-ldc <1>: IA-64 Options. (line 194)
  45838. * msched-stop-bits-after-every-cycle: IA-64 Options. (line 198)
  45839. * mschedule: HPPA Options. (line 78)
  45840. * mscore5: Score Options. (line 25)
  45841. * mscore5u: Score Options. (line 28)
  45842. * mscore7: Score Options. (line 31)
  45843. * mscore7d: Score Options. (line 35)
  45844. * msda: V850 Options. (line 40)
  45845. * msdata: IA-64 Options. (line 42)
  45846. * msdata <1>: RS/6000 and PowerPC Options.
  45847. (line 800)
  45848. * msdata=all: C6X Options. (line 30)
  45849. * msdata=data: RS/6000 and PowerPC Options.
  45850. (line 805)
  45851. * msdata=default: C6X Options. (line 22)
  45852. * msdata=default <1>: RS/6000 and PowerPC Options.
  45853. (line 800)
  45854. * msdata=eabi: RS/6000 and PowerPC Options.
  45855. (line 781)
  45856. * msdata=none: C6X Options. (line 35)
  45857. * msdata=none <1>: M32R/D Options. (line 40)
  45858. * msdata=none <2>: RS/6000 and PowerPC Options.
  45859. (line 813)
  45860. * msdata=sdata: M32R/D Options. (line 49)
  45861. * msdata=sysv: RS/6000 and PowerPC Options.
  45862. (line 791)
  45863. * msdata=use: M32R/D Options. (line 53)
  45864. * msdram: Blackfin Options. (line 171)
  45865. * msdram <1>: MeP Options. (line 110)
  45866. * msecure-plt: RS/6000 and PowerPC Options.
  45867. (line 184)
  45868. * msel-sched-dont-check-control-spec: IA-64 Options. (line 207)
  45869. * msep-data: Blackfin Options. (line 109)
  45870. * mserialize-volatile: Xtensa Options. (line 35)
  45871. * msetlb: MN10300 Options. (line 64)
  45872. * msha: x86 Options. (line 684)
  45873. * mshared-library-id: Blackfin Options. (line 102)
  45874. * mshort: M680x0 Options. (line 216)
  45875. * msign-extend-enabled: LM32 Options. (line 18)
  45876. * msign-return-address: AArch64 Options. (line 200)
  45877. * msilicon-errata: MSP430 Options. (line 102)
  45878. * msilicon-errata-warn: MSP430 Options. (line 106)
  45879. * msim: Blackfin Options. (line 36)
  45880. * msim <1>: C6X Options. (line 19)
  45881. * msim <2>: CR16 Options. (line 18)
  45882. * msim <3>: FT32 Options. (line 9)
  45883. * msim <4>: M32C Options. (line 13)
  45884. * msim <5>: MeP Options. (line 114)
  45885. * msim <6>: MSP430 Options. (line 47)
  45886. * msim <7>: RL78 Options. (line 7)
  45887. * msim <8>: RS/6000 and PowerPC Options.
  45888. (line 737)
  45889. * msim <9>: RX Options. (line 71)
  45890. * msim <10>: Visium Options. (line 13)
  45891. * msim <11>: Xstormy16 Options. (line 9)
  45892. * msimd: ARC Options. (line 133)
  45893. * msimnovec: MeP Options. (line 117)
  45894. * msimple-fpu: RS/6000 and PowerPC Options.
  45895. (line 449)
  45896. * msingle-exit: MMIX Options. (line 65)
  45897. * msingle-float: MIPS Options. (line 283)
  45898. * msingle-float <1>: RS/6000 and PowerPC Options.
  45899. (line 445)
  45900. * msingle-pic-base: ARM Options. (line 261)
  45901. * msingle-pic-base <1>: RS/6000 and PowerPC Options.
  45902. (line 588)
  45903. * msio: HPPA Options. (line 105)
  45904. * msize-level: ARC Options. (line 478)
  45905. * mskip-rax-setup: x86 Options. (line 1138)
  45906. * mslow-bytes: MCore Options. (line 35)
  45907. * mslow-flash-data: ARM Options. (line 393)
  45908. * msmall: MSP430 Options. (line 55)
  45909. * msmall-data: DEC Alpha Options. (line 187)
  45910. * msmall-data-limit: RISC-V Options. (line 60)
  45911. * msmall-data-limit <1>: RX Options. (line 47)
  45912. * msmall-divides: MicroBlaze Options. (line 39)
  45913. * msmall-exec: S/390 and zSeries Options.
  45914. (line 79)
  45915. * msmall-mem: SPU Options. (line 38)
  45916. * msmall-model: FR30 Options. (line 9)
  45917. * msmall-text: DEC Alpha Options. (line 205)
  45918. * msmall16: Adapteva Epiphany Options.
  45919. (line 66)
  45920. * msmallc: Nios II Options. (line 286)
  45921. * msmartmips: MIPS Options. (line 365)
  45922. * msoft-float: ARC Options. (line 137)
  45923. * msoft-float <1>: DEC Alpha Options. (line 10)
  45924. * msoft-float <2>: FRV Options. (line 27)
  45925. * msoft-float <3>: HPPA Options. (line 91)
  45926. * msoft-float <4>: M680x0 Options. (line 200)
  45927. * msoft-float <5>: MicroBlaze Options. (line 7)
  45928. * msoft-float <6>: MIPS Options. (line 269)
  45929. * msoft-float <7>: PDP-11 Options. (line 13)
  45930. * msoft-float <8>: RS/6000 and PowerPC Options.
  45931. (line 439)
  45932. * msoft-float <9>: S/390 and zSeries Options.
  45933. (line 11)
  45934. * msoft-float <10>: SPARC Options. (line 39)
  45935. * msoft-float <11>: V850 Options. (line 113)
  45936. * msoft-float <12>: Visium Options. (line 24)
  45937. * msoft-float <13>: x86 Options. (line 430)
  45938. * msoft-quad-float: SPARC Options. (line 59)
  45939. * msoft-stack: Nvidia PTX Options. (line 21)
  45940. * msp8: AVR Options. (line 212)
  45941. * mspace: V850 Options. (line 30)
  45942. * mspe: RS/6000 and PowerPC Options.
  45943. (line 208)
  45944. * mspecld-anomaly: Blackfin Options. (line 50)
  45945. * mspfp: ARC Options. (line 124)
  45946. * mspfp-compact: ARC Options. (line 125)
  45947. * mspfp-fast: ARC Options. (line 129)
  45948. * mspfp_compact: ARC Options. (line 579)
  45949. * mspfp_fast: ARC Options. (line 582)
  45950. * msplit-addresses: MIPS Options. (line 531)
  45951. * msplit-vecmove-early: Adapteva Epiphany Options.
  45952. (line 126)
  45953. * msse: x86 Options. (line 665)
  45954. * msse2: x86 Options. (line 666)
  45955. * msse2avx: x86 Options. (line 1113)
  45956. * msse3: x86 Options. (line 667)
  45957. * msse4: x86 Options. (line 669)
  45958. * msse4.1: x86 Options. (line 671)
  45959. * msse4.2: x86 Options. (line 672)
  45960. * msse4a: x86 Options. (line 670)
  45961. * msseregparm: x86 Options. (line 566)
  45962. * mssse3: x86 Options. (line 668)
  45963. * mstack-align: CRIS Options. (line 55)
  45964. * mstack-bias: SPARC Options. (line 372)
  45965. * mstack-check-l1: Blackfin Options. (line 76)
  45966. * mstack-guard: S/390 and zSeries Options.
  45967. (line 194)
  45968. * mstack-increment: MCore Options. (line 50)
  45969. * mstack-offset: Adapteva Epiphany Options.
  45970. (line 37)
  45971. * mstack-protector-guard: RS/6000 and PowerPC Options.
  45972. (line 1013)
  45973. * mstack-protector-guard-offset: RS/6000 and PowerPC Options.
  45974. (line 1013)
  45975. * mstack-protector-guard-reg: RS/6000 and PowerPC Options.
  45976. (line 1013)
  45977. * mstack-protector-guard=GUARD: x86 Options. (line 1162)
  45978. * mstack-size: S/390 and zSeries Options.
  45979. (line 194)
  45980. * mstackrealign: x86 Options. (line 609)
  45981. * mstd-struct-return: SPARC Options. (line 102)
  45982. * mstdmain: SPU Options. (line 44)
  45983. * mstrict-align: AArch64 Options. (line 50)
  45984. * mstrict-align <1>: M680x0 Options. (line 283)
  45985. * mstrict-align <2>: RISC-V Options. (line 71)
  45986. * mstrict-align <3>: RS/6000 and PowerPC Options.
  45987. (line 540)
  45988. * mstrict-X: AVR Options. (line 225)
  45989. * mstring: RS/6000 and PowerPC Options.
  45990. (line 476)
  45991. * mstringop-strategy=ALG: x86 Options. (line 1061)
  45992. * mstructure-size-boundary: ARM Options. (line 218)
  45993. * msubxc: SPARC Options. (line 288)
  45994. * msv-mode: Visium Options. (line 52)
  45995. * msvr4-struct-return: RS/6000 and PowerPC Options.
  45996. (line 681)
  45997. * mswap: ARC Options. (line 144)
  45998. * mswape: ARC Options. (line 319)
  45999. * msym32: MIPS Options. (line 429)
  46000. * msynci: MIPS Options. (line 811)
  46001. * msys-crt0: Nios II Options. (line 290)
  46002. * msys-lib: Nios II Options. (line 294)
  46003. * MT: Preprocessor Options.
  46004. (line 142)
  46005. * mtarget-align: Xtensa Options. (line 74)
  46006. * mtas: SH Options. (line 259)
  46007. * mtbm: x86 Options. (line 709)
  46008. * mtda: V850 Options. (line 34)
  46009. * mtelephony: ARC Options. (line 324)
  46010. * mtext-section-literals: Xtensa Options. (line 47)
  46011. * mtf: MeP Options. (line 121)
  46012. * mthread: x86 Windows Options.
  46013. (line 26)
  46014. * mthreads: x86 Options. (line 917)
  46015. * mthumb: ARM Options. (line 304)
  46016. * mthumb-interwork: ARM Options. (line 24)
  46017. * mtiny-stack: AVR Options. (line 239)
  46018. * mtiny=: MeP Options. (line 125)
  46019. * mTLS: FRV Options. (line 90)
  46020. * mtls: FRV Options. (line 94)
  46021. * mtls-dialect: ARM Options. (line 351)
  46022. * mtls-dialect <1>: x86 Options. (line 895)
  46023. * mtls-dialect=desc: AArch64 Options. (line 60)
  46024. * mtls-dialect=traditional: AArch64 Options. (line 64)
  46025. * mtls-direct-seg-refs: x86 Options. (line 1103)
  46026. * mtls-markers: RS/6000 and PowerPC Options.
  46027. (line 875)
  46028. * mtls-size: AArch64 Options. (line 68)
  46029. * mtls-size <1>: IA-64 Options. (line 112)
  46030. * mtoc: RS/6000 and PowerPC Options.
  46031. (line 565)
  46032. * mtomcat-stats: FRV Options. (line 254)
  46033. * mtoplevel-symbols: MMIX Options. (line 39)
  46034. * mtp: ARM Options. (line 343)
  46035. * mtp-regno: ARC Options. (line 162)
  46036. * mtpcs-frame: ARM Options. (line 316)
  46037. * mtpcs-leaf-frame: ARM Options. (line 322)
  46038. * mtpf-trace: S/390 and zSeries Options.
  46039. (line 169)
  46040. * mtrap-precision: DEC Alpha Options. (line 109)
  46041. * mtune: AArch64 Options. (line 144)
  46042. * mtune <1>: ARC Options. (line 499)
  46043. * mtune <2>: ARC Options. (line 585)
  46044. * mtune <3>: ARM Options. (line 120)
  46045. * mtune <4>: CRIS Options. (line 17)
  46046. * mtune <5>: DEC Alpha Options. (line 259)
  46047. * mtune <6>: IA-64 Options. (line 116)
  46048. * mtune <7>: M680x0 Options. (line 68)
  46049. * mtune <8>: MIPS Options. (line 65)
  46050. * mtune <9>: MN10300 Options. (line 30)
  46051. * mtune <10>: RISC-V Options. (line 56)
  46052. * mtune <11>: RS/6000 and PowerPC Options.
  46053. (line 113)
  46054. * mtune <12>: S/390 and zSeries Options.
  46055. (line 162)
  46056. * mtune <13>: SPARC Options. (line 199)
  46057. * mtune <14>: Visium Options. (line 47)
  46058. * mtune <15>: x86 Options. (line 304)
  46059. * mtune-ctrl=FEATURE-LIST: x86 Options. (line 746)
  46060. * muclibc: GNU/Linux Options. (line 14)
  46061. * muls: Score Options. (line 18)
  46062. * multcost: ARC Options. (line 590)
  46063. * multcost=NUMBER: SH Options. (line 281)
  46064. * multilib-library-pic: FRV Options. (line 110)
  46065. * multiply-enabled: LM32 Options. (line 15)
  46066. * multiply_defined: Darwin Options. (line 196)
  46067. * multiply_defined_unused: Darwin Options. (line 196)
  46068. * multi_module: Darwin Options. (line 196)
  46069. * munalign-prob-threshold: ARC Options. (line 527)
  46070. * munaligned-access: ARM Options. (line 375)
  46071. * munaligned-doubles: SPARC Options. (line 73)
  46072. * municode: x86 Windows Options.
  46073. (line 30)
  46074. * muniform-simt: Nvidia PTX Options. (line 33)
  46075. * muninit-const-in-rodata: MIPS Options. (line 501)
  46076. * munix: VAX Options. (line 9)
  46077. * munix-asm: PDP-11 Options. (line 68)
  46078. * munsafe-dma: SPU Options. (line 18)
  46079. * mupdate: RS/6000 and PowerPC Options.
  46080. (line 487)
  46081. * mupper-regs: RS/6000 and PowerPC Options.
  46082. (line 298)
  46083. * mupper-regs-df: RS/6000 and PowerPC Options.
  46084. (line 280)
  46085. * mupper-regs-di: RS/6000 and PowerPC Options.
  46086. (line 271)
  46087. * mupper-regs-sf: RS/6000 and PowerPC Options.
  46088. (line 289)
  46089. * muser-enabled: LM32 Options. (line 21)
  46090. * muser-mode: SPARC Options. (line 85)
  46091. * muser-mode <1>: Visium Options. (line 57)
  46092. * musermode: SH Options. (line 274)
  46093. * mv3push: NDS32 Options. (line 33)
  46094. * mv850: V850 Options. (line 49)
  46095. * mv850e: V850 Options. (line 79)
  46096. * mv850e1: V850 Options. (line 70)
  46097. * mv850e2: V850 Options. (line 66)
  46098. * mv850e2v3: V850 Options. (line 61)
  46099. * mv850e2v4: V850 Options. (line 57)
  46100. * mv850e3v5: V850 Options. (line 52)
  46101. * mv850es: V850 Options. (line 75)
  46102. * mv8plus: SPARC Options. (line 214)
  46103. * mveclibabi: RS/6000 and PowerPC Options.
  46104. (line 949)
  46105. * mveclibabi <1>: x86 Options. (line 863)
  46106. * mvect8-ret-in-mem: x86 Options. (line 576)
  46107. * mvirt: MIPS Options. (line 406)
  46108. * mvis: SPARC Options. (line 221)
  46109. * mvis2: SPARC Options. (line 227)
  46110. * mvis3: SPARC Options. (line 235)
  46111. * mvis4: SPARC Options. (line 243)
  46112. * mvis4b: SPARC Options. (line 251)
  46113. * mvliw-branch: FRV Options. (line 201)
  46114. * mvms-return-codes: VMS Options. (line 9)
  46115. * mvolatile-asm-stop: IA-64 Options. (line 32)
  46116. * mvolatile-cache: ARC Options. (line 378)
  46117. * mvr4130-align: MIPS Options. (line 800)
  46118. * mvrsave: RS/6000 and PowerPC Options.
  46119. (line 174)
  46120. * mvsx: RS/6000 and PowerPC Options.
  46121. (line 222)
  46122. * mvx: S/390 and zSeries Options.
  46123. (line 112)
  46124. * mvxworks: RS/6000 and PowerPC Options.
  46125. (line 758)
  46126. * mvzeroupper: x86 Options. (line 773)
  46127. * mwarn-cell-microcode: RS/6000 and PowerPC Options.
  46128. (line 180)
  46129. * mwarn-dynamicstack: S/390 and zSeries Options.
  46130. (line 188)
  46131. * mwarn-framesize: S/390 and zSeries Options.
  46132. (line 180)
  46133. * mwarn-mcu: MSP430 Options. (line 35)
  46134. * mwarn-multiple-fast-interrupts: RX Options. (line 143)
  46135. * mwarn-reloc: SPU Options. (line 10)
  46136. * mwide-bitfields: MCore Options. (line 23)
  46137. * mwin32: x86 Windows Options.
  46138. (line 35)
  46139. * mwindows: x86 Windows Options.
  46140. (line 41)
  46141. * mword-relocations: ARM Options. (line 362)
  46142. * mx32: x86 Options. (line 1217)
  46143. * mxgot: M680x0 Options. (line 315)
  46144. * mxgot <1>: MIPS Options. (line 228)
  46145. * mxilinx-fpu: RS/6000 and PowerPC Options.
  46146. (line 460)
  46147. * mxl-barrel-shift: MicroBlaze Options. (line 33)
  46148. * mxl-compat: RS/6000 and PowerPC Options.
  46149. (line 397)
  46150. * mxl-float-convert: MicroBlaze Options. (line 51)
  46151. * mxl-float-sqrt: MicroBlaze Options. (line 54)
  46152. * mxl-gp-opt: MicroBlaze Options. (line 45)
  46153. * mxl-multiply-high: MicroBlaze Options. (line 48)
  46154. * mxl-pattern-compare: MicroBlaze Options. (line 36)
  46155. * mxl-reorder: MicroBlaze Options. (line 63)
  46156. * mxl-soft-div: MicroBlaze Options. (line 30)
  46157. * mxl-soft-mul: MicroBlaze Options. (line 27)
  46158. * mxl-stack-check: MicroBlaze Options. (line 42)
  46159. * mxop: x86 Options. (line 694)
  46160. * mxpa: MIPS Options. (line 410)
  46161. * mxsave: x86 Options. (line 704)
  46162. * mxsavec: x86 Options. (line 706)
  46163. * mxsaveopt: x86 Options. (line 705)
  46164. * mxsaves: x86 Options. (line 707)
  46165. * mxy: ARC Options. (line 329)
  46166. * myellowknife: RS/6000 and PowerPC Options.
  46167. (line 753)
  46168. * mzarch: S/390 and zSeries Options.
  46169. (line 94)
  46170. * mzda: V850 Options. (line 45)
  46171. * mzdcbranch: SH Options. (line 341)
  46172. * mzero-extend: MMIX Options. (line 26)
  46173. * mzvector: S/390 and zSeries Options.
  46174. (line 123)
  46175. * no-80387: x86 Options. (line 430)
  46176. * no-canonical-prefixes: Directory Options. (line 164)
  46177. * no-integrated-cpp: Preprocessor Options.
  46178. (line 465)
  46179. * no-pie: Link Options. (line 111)
  46180. * no-sysroot-suffix: Directory Options. (line 183)
  46181. * noall_load: Darwin Options. (line 196)
  46182. * nocpp: MIPS Options. (line 612)
  46183. * nodefaultlibs: Link Options. (line 68)
  46184. * nodevicelib: AVR Options. (line 246)
  46185. * nofixprebinding: Darwin Options. (line 196)
  46186. * nofpu: RX Options. (line 17)
  46187. * nolibdld: HPPA Options. (line 188)
  46188. * nomultidefs: Darwin Options. (line 196)
  46189. * non-static: VxWorks Options. (line 16)
  46190. * noprebind: Darwin Options. (line 196)
  46191. * noseglinkedit: Darwin Options. (line 196)
  46192. * nostartfiles: Link Options. (line 63)
  46193. * nostdinc: Directory Options. (line 102)
  46194. * nostdinc++: C++ Dialect Options.
  46195. (line 438)
  46196. * nostdinc++ <1>: Directory Options. (line 108)
  46197. * nostdlib: Link Options. (line 80)
  46198. * no_dead_strip_inits_and_terms: Darwin Options. (line 196)
  46199. * o: Overall Options. (line 187)
  46200. * O: Optimize Options. (line 39)
  46201. * O0: Optimize Options. (line 152)
  46202. * O1: Optimize Options. (line 39)
  46203. * O2: Optimize Options. (line 94)
  46204. * O3: Optimize Options. (line 143)
  46205. * Ofast: Optimize Options. (line 168)
  46206. * Og: Optimize Options. (line 174)
  46207. * Os: Optimize Options. (line 156)
  46208. * p: Instrumentation Options.
  46209. (line 19)
  46210. * P: Preprocessor Options.
  46211. (line 350)
  46212. * pagezero_size: Darwin Options. (line 196)
  46213. * param: Optimize Options. (line 2390)
  46214. * pass-exit-codes: Overall Options. (line 326)
  46215. * pedantic: Standards. (line 13)
  46216. * pedantic <1>: Warning Options. (line 80)
  46217. * pedantic <2>: C Extensions. (line 6)
  46218. * pedantic <3>: Alternate Keywords. (line 30)
  46219. * pedantic <4>: Warnings and Errors.
  46220. (line 25)
  46221. * pedantic-errors: Standards. (line 13)
  46222. * pedantic-errors <1>: Warning Options. (line 121)
  46223. * pedantic-errors <2>: Non-bugs. (line 216)
  46224. * pedantic-errors <3>: Warnings and Errors.
  46225. (line 25)
  46226. * pg: Instrumentation Options.
  46227. (line 25)
  46228. * pie: Link Options. (line 105)
  46229. * pipe: Overall Options. (line 334)
  46230. * plt: RISC-V Options. (line 13)
  46231. * prebind: Darwin Options. (line 196)
  46232. * prebind_all_twolevel_modules: Darwin Options. (line 196)
  46233. * print-file-name: Developer Options. (line 867)
  46234. * print-libgcc-file-name: Developer Options. (line 901)
  46235. * print-multi-directory: Developer Options. (line 873)
  46236. * print-multi-lib: Developer Options. (line 878)
  46237. * print-multi-os-directory: Developer Options. (line 885)
  46238. * print-multiarch: Developer Options. (line 894)
  46239. * print-objc-runtime-info: Objective-C and Objective-C++ Dialect Options.
  46240. (line 216)
  46241. * print-prog-name: Developer Options. (line 898)
  46242. * print-search-dirs: Developer Options. (line 909)
  46243. * print-sysroot: Developer Options. (line 922)
  46244. * print-sysroot-headers-suffix: Developer Options. (line 929)
  46245. * private_bundle: Darwin Options. (line 196)
  46246. * pthread: Preprocessor Options.
  46247. (line 70)
  46248. * pthread <1>: Link Options. (line 114)
  46249. * pthreads: Solaris 2 Options. (line 30)
  46250. * Q: Developer Options. (line 773)
  46251. * Qn: System V Options. (line 18)
  46252. * Qy: System V Options. (line 14)
  46253. * rdynamic: Link Options. (line 121)
  46254. * read_only_relocs: Darwin Options. (line 196)
  46255. * remap: Preprocessor Options.
  46256. (line 381)
  46257. * S: Overall Options. (line 170)
  46258. * S <1>: Link Options. (line 20)
  46259. * s: Link Options. (line 128)
  46260. * save-temps: Developer Options. (line 648)
  46261. * save-temps=obj: Developer Options. (line 674)
  46262. * sectalign: Darwin Options. (line 196)
  46263. * sectcreate: Darwin Options. (line 196)
  46264. * sectobjectsymbols: Darwin Options. (line 196)
  46265. * sectobjectsymbols <1>: Darwin Options. (line 196)
  46266. * sectorder: Darwin Options. (line 196)
  46267. * seg1addr: Darwin Options. (line 196)
  46268. * segaddr: Darwin Options. (line 196)
  46269. * seglinkedit: Darwin Options. (line 196)
  46270. * segprot: Darwin Options. (line 196)
  46271. * segs_read_only_addr: Darwin Options. (line 196)
  46272. * segs_read_only_addr <1>: Darwin Options. (line 196)
  46273. * segs_read_write_addr: Darwin Options. (line 196)
  46274. * segs_read_write_addr <1>: Darwin Options. (line 196)
  46275. * seg_addr_table: Darwin Options. (line 196)
  46276. * seg_addr_table_filename: Darwin Options. (line 196)
  46277. * shared: Link Options. (line 136)
  46278. * shared-libgcc: Link Options. (line 144)
  46279. * short-calls: Adapteva Epiphany Options.
  46280. (line 61)
  46281. * sim: CRIS Options. (line 95)
  46282. * sim2: CRIS Options. (line 101)
  46283. * single_module: Darwin Options. (line 196)
  46284. * specs: Overall Options. (line 340)
  46285. * static: Link Options. (line 132)
  46286. * static <1>: Darwin Options. (line 196)
  46287. * static <2>: HPPA Options. (line 192)
  46288. * static-libasan: Link Options. (line 178)
  46289. * static-libgcc: Link Options. (line 144)
  46290. * static-liblsan: Link Options. (line 194)
  46291. * static-libmpx: Link Options. (line 211)
  46292. * static-libmpxwrappers: Link Options. (line 220)
  46293. * static-libstdc++: Link Options. (line 230)
  46294. * static-libtsan: Link Options. (line 186)
  46295. * static-libubsan: Link Options. (line 202)
  46296. * std: Standards. (line 13)
  46297. * std <1>: C Dialect Options. (line 46)
  46298. * std <2>: Other Builtins. (line 31)
  46299. * std <3>: Non-bugs. (line 107)
  46300. * sub_library: Darwin Options. (line 196)
  46301. * sub_umbrella: Darwin Options. (line 196)
  46302. * symbolic: Link Options. (line 241)
  46303. * sysroot: Directory Options. (line 168)
  46304. * T: Link Options. (line 247)
  46305. * target-help: Overall Options. (line 219)
  46306. * threads: HPPA Options. (line 205)
  46307. * time: Developer Options. (line 689)
  46308. * tno-android-cc: GNU/Linux Options. (line 36)
  46309. * tno-android-ld: GNU/Linux Options. (line 40)
  46310. * traditional: Preprocessor Options.
  46311. (line 357)
  46312. * traditional <1>: Incompatibilities. (line 6)
  46313. * traditional-cpp: Preprocessor Options.
  46314. (line 357)
  46315. * trigraphs: Preprocessor Options.
  46316. (line 367)
  46317. * twolevel_namespace: Darwin Options. (line 196)
  46318. * U: Preprocessor Options.
  46319. (line 42)
  46320. * u: Link Options. (line 279)
  46321. * umbrella: Darwin Options. (line 196)
  46322. * undef: Preprocessor Options.
  46323. (line 66)
  46324. * undefined: Darwin Options. (line 196)
  46325. * unexported_symbols_list: Darwin Options. (line 196)
  46326. * v: Overall Options. (line 198)
  46327. * version: Overall Options. (line 323)
  46328. * w: Warning Options. (line 25)
  46329. * W: Warning Options. (line 195)
  46330. * W <1>: Warning Options. (line 2217)
  46331. * W <2>: Warning Options. (line 2313)
  46332. * W <3>: Incompatibilities. (line 64)
  46333. * Wa: Assembler Options. (line 9)
  46334. * Wabi: C++ Dialect Options.
  46335. (line 446)
  46336. * Wabi-tag: C++ Dialect Options.
  46337. (line 550)
  46338. * Waddr-space-convert: AVR Options. (line 249)
  46339. * Waddress: Warning Options. (line 2112)
  46340. * Waggregate-return: Warning Options. (line 2148)
  46341. * Waggressive-loop-optimizations: Warning Options. (line 2153)
  46342. * Waligned-new: Warning Options. (line 1727)
  46343. * Wall: Warning Options. (line 130)
  46344. * Wall <1>: Standard Libraries. (line 6)
  46345. * Walloc-zero: Warning Options. (line 1322)
  46346. * Walloca: Warning Options. (line 1345)
  46347. * Warray-bounds: Warning Options. (line 1408)
  46348. * Wassign-intercept: Objective-C and Objective-C++ Dialect Options.
  46349. (line 170)
  46350. * Wattributes: Warning Options. (line 2158)
  46351. * Wbad-function-cast: Warning Options. (line 1859)
  46352. * Wbool-compare: Warning Options. (line 1424)
  46353. * Wbool-operation: Warning Options. (line 1433)
  46354. * Wbuiltin-declaration-mismatch: Warning Options. (line 2164)
  46355. * Wbuiltin-macro-redefined: Warning Options. (line 2168)
  46356. * Wc++-compat: Warning Options. (line 1879)
  46357. * Wc++11-compat: Warning Options. (line 1884)
  46358. * Wc++14-compat: Warning Options. (line 1890)
  46359. * Wc++1z-compat: Warning Options. (line 1894)
  46360. * Wc90-c99-compat: Warning Options. (line 1864)
  46361. * Wc99-c11-compat: Warning Options. (line 1871)
  46362. * Wcast-align: Warning Options. (line 1915)
  46363. * Wcast-qual: Warning Options. (line 1899)
  46364. * Wchar-subscripts: Warning Options. (line 236)
  46365. * Wchkp: Warning Options. (line 241)
  46366. * Wclobbered: Warning Options. (line 1934)
  46367. * Wcomment: Warning Options. (line 1801)
  46368. * Wcomments: Warning Options. (line 1801)
  46369. * Wconditionally-supported: Warning Options. (line 1938)
  46370. * Wconversion: Warning Options. (line 1941)
  46371. * Wconversion-null: Warning Options. (line 1959)
  46372. * Wctor-dtor-privacy: C++ Dialect Options.
  46373. (line 555)
  46374. * Wdangling-else: Warning Options. (line 1980)
  46375. * Wdate-time: Warning Options. (line 2014)
  46376. * Wdeclaration-after-statement: Warning Options. (line 1624)
  46377. * Wdelete-incomplete: Warning Options. (line 2019)
  46378. * Wdelete-non-virtual-dtor: C++ Dialect Options.
  46379. (line 562)
  46380. * Wdeprecated: Warning Options. (line 2290)
  46381. * Wdeprecated-declarations: Warning Options. (line 2294)
  46382. * Wdisabled-optimization: Warning Options. (line 2490)
  46383. * Wdiscarded-array-qualifiers: Warning Options. (line 1472)
  46384. * Wdiscarded-qualifiers: Warning Options. (line 1466)
  46385. * Wdiv-by-zero: Warning Options. (line 1490)
  46386. * Wdouble-promotion: Warning Options. (line 264)
  46387. * Wduplicate-decl-specifier: Warning Options. (line 282)
  46388. * Wduplicated-branches: Warning Options. (line 1443)
  46389. * Wduplicated-cond: Warning Options. (line 1454)
  46390. * weak_reference_mismatches: Darwin Options. (line 196)
  46391. * Weffc++: C++ Dialect Options.
  46392. (line 672)
  46393. * Wempty-body: Warning Options. (line 2026)
  46394. * Wendif-labels: Warning Options. (line 1845)
  46395. * Wenum-compare: Warning Options. (line 2030)
  46396. * Werror: Warning Options. (line 28)
  46397. * Werror=: Warning Options. (line 31)
  46398. * Wexpansion-to-defined: Warning Options. (line 1820)
  46399. * Wextra: Warning Options. (line 195)
  46400. * Wextra <1>: Warning Options. (line 2217)
  46401. * Wextra <2>: Warning Options. (line 2313)
  46402. * Wfatal-errors: Warning Options. (line 48)
  46403. * Wfloat-conversion: Warning Options. (line 2059)
  46404. * Wfloat-equal: Warning Options. (line 1524)
  46405. * Wformat: Warning Options. (line 287)
  46406. * Wformat <1>: Warning Options. (line 312)
  46407. * Wformat <2>: Warning Options. (line 1278)
  46408. * Wformat <3>: Common Function Attributes.
  46409. (line 236)
  46410. * Wformat-contains-nul: Warning Options. (line 321)
  46411. * Wformat-extra-args: Warning Options. (line 325)
  46412. * Wformat-nonliteral: Warning Options. (line 430)
  46413. * Wformat-nonliteral <1>: Common Function Attributes.
  46414. (line 301)
  46415. * Wformat-overflow: Warning Options. (line 340)
  46416. * Wformat-overflow <1>: Warning Options. (line 351)
  46417. * Wformat-security: Warning Options. (line 435)
  46418. * Wformat-signedness: Warning Options. (line 447)
  46419. * Wformat-truncation: Warning Options. (line 453)
  46420. * Wformat-truncation <1>: Warning Options. (line 465)
  46421. * Wformat-y2k: Warning Options. (line 476)
  46422. * Wformat-zero-length: Warning Options. (line 420)
  46423. * Wformat=: Warning Options. (line 287)
  46424. * Wformat=1: Warning Options. (line 312)
  46425. * Wformat=2: Warning Options. (line 425)
  46426. * Wframe-address: Warning Options. (line 1460)
  46427. * Wframe-larger-than: Warning Options. (line 1682)
  46428. * Wfree-nonheap-object: Warning Options. (line 1691)
  46429. * whatsloaded: Darwin Options. (line 196)
  46430. * whyload: Darwin Options. (line 196)
  46431. * Wignored-attributes: Warning Options. (line 659)
  46432. * Wignored-qualifiers: Warning Options. (line 648)
  46433. * Wimplicit: Warning Options. (line 526)
  46434. * Wimplicit-fallthrough: Warning Options. (line 530)
  46435. * Wimplicit-fallthrough=: Warning Options. (line 535)
  46436. * Wimplicit-function-declaration: Warning Options. (line 520)
  46437. * Wimplicit-int: Warning Options. (line 516)
  46438. * Wincompatible-pointer-types: Warning Options. (line 1478)
  46439. * Winherited-variadic-ctor: Warning Options. (line 2378)
  46440. * Winit-self: Warning Options. (line 501)
  46441. * Winline: Warning Options. (line 2383)
  46442. * Winline <1>: Inline. (line 60)
  46443. * Wint-conversion: Warning Options. (line 1484)
  46444. * Wint-in-bool-context: Warning Options. (line 2408)
  46445. * Wint-to-pointer-cast: Warning Options. (line 2416)
  46446. * Winvalid-memory-model: Warning Options. (line 1020)
  46447. * Winvalid-offsetof: Warning Options. (line 2396)
  46448. * Winvalid-pch: Warning Options. (line 2425)
  46449. * Wjump-misses-init: Warning Options. (line 2036)
  46450. * Wl: Link Options. (line 271)
  46451. * Wlarger-than-LEN: Warning Options. (line 1679)
  46452. * Wlarger-than=LEN: Warning Options. (line 1679)
  46453. * Wliteral-suffix: C++ Dialect Options.
  46454. (line 569)
  46455. * Wlogical-not-parentheses: Warning Options. (line 2133)
  46456. * Wlogical-op: Warning Options. (line 2125)
  46457. * Wlong-long: Warning Options. (line 2429)
  46458. * Wlto-type-mismatch: C++ Dialect Options.
  46459. (line 595)
  46460. * Wmain: Warning Options. (line 666)
  46461. * Wmaybe-uninitialized: Warning Options. (line 1037)
  46462. * Wmemset-elt-size: Warning Options. (line 2093)
  46463. * Wmemset-transposed-args: Warning Options. (line 2101)
  46464. * Wmisleading-indentation: Warning Options. (line 673)
  46465. * Wmissing-braces: Warning Options. (line 707)
  46466. * Wmissing-declarations: Warning Options. (line 2207)
  46467. * Wmissing-field-initializers: Warning Options. (line 2217)
  46468. * Wmissing-format-attribute: Warning Options. (line 1278)
  46469. * Wmissing-include-dirs: Warning Options. (line 718)
  46470. * Wmissing-parameter-type: Warning Options. (line 2189)
  46471. * Wmissing-prototypes: Warning Options. (line 2197)
  46472. * Wmisspelled-isr: AVR Options. (line 254)
  46473. * Wmultichar: Warning Options. (line 2241)
  46474. * Wmultiple-inheritance: C++ Dialect Options.
  46475. (line 758)
  46476. * Wnamespaces: C++ Dialect Options.
  46477. (line 772)
  46478. * Wnarrowing: C++ Dialect Options.
  46479. (line 601)
  46480. * Wnested-externs: Warning Options. (line 2375)
  46481. * Wno-abi: C++ Dialect Options.
  46482. (line 446)
  46483. * Wno-address: Warning Options. (line 2112)
  46484. * Wno-aggregate-return: Warning Options. (line 2148)
  46485. * Wno-aggressive-loop-optimizations: Warning Options. (line 2153)
  46486. * Wno-aligned-new: Warning Options. (line 1727)
  46487. * Wno-all: Warning Options. (line 130)
  46488. * Wno-alloc-zero: Warning Options. (line 1322)
  46489. * Wno-alloca: Warning Options. (line 1345)
  46490. * Wno-array-bounds: Warning Options. (line 1408)
  46491. * Wno-assign-intercept: Objective-C and Objective-C++ Dialect Options.
  46492. (line 170)
  46493. * Wno-attributes: Warning Options. (line 2158)
  46494. * Wno-bad-function-cast: Warning Options. (line 1859)
  46495. * Wno-bool-compare: Warning Options. (line 1424)
  46496. * Wno-bool-operation: Warning Options. (line 1433)
  46497. * Wno-builtin-declaration-mismatch: Warning Options. (line 2164)
  46498. * Wno-builtin-macro-redefined: Warning Options. (line 2168)
  46499. * Wno-c90-c99-compat: Warning Options. (line 1864)
  46500. * Wno-c99-c11-compat: Warning Options. (line 1871)
  46501. * Wno-cast-align: Warning Options. (line 1915)
  46502. * Wno-cast-qual: Warning Options. (line 1899)
  46503. * Wno-char-subscripts: Warning Options. (line 236)
  46504. * Wno-clobbered: Warning Options. (line 1934)
  46505. * Wno-conditionally-supported: Warning Options. (line 1938)
  46506. * Wno-conversion: Warning Options. (line 1941)
  46507. * Wno-conversion-null: Warning Options. (line 1959)
  46508. * Wno-coverage-mismatch: Warning Options. (line 245)
  46509. * Wno-ctor-dtor-privacy: C++ Dialect Options.
  46510. (line 555)
  46511. * Wno-dangling-else: Warning Options. (line 1980)
  46512. * Wno-date-time: Warning Options. (line 2014)
  46513. * Wno-declaration-after-statement: Warning Options. (line 1624)
  46514. * Wno-delete-incomplete: Warning Options. (line 2019)
  46515. * Wno-delete-non-virtual-dtor: C++ Dialect Options.
  46516. (line 562)
  46517. * Wno-deprecated: Warning Options. (line 2290)
  46518. * Wno-deprecated-declarations: Warning Options. (line 2294)
  46519. * Wno-disabled-optimization: Warning Options. (line 2490)
  46520. * Wno-discarded-array-qualifiers: Warning Options. (line 1472)
  46521. * Wno-discarded-qualifiers: Warning Options. (line 1466)
  46522. * Wno-div-by-zero: Warning Options. (line 1490)
  46523. * Wno-double-promotion: Warning Options. (line 264)
  46524. * Wno-duplicate-decl-specifier: Warning Options. (line 282)
  46525. * Wno-duplicated-branches: Warning Options. (line 1443)
  46526. * Wno-duplicated-cond: Warning Options. (line 1454)
  46527. * Wno-effc++: C++ Dialect Options.
  46528. (line 672)
  46529. * Wno-empty-body: Warning Options. (line 2026)
  46530. * Wno-endif-labels: Warning Options. (line 1845)
  46531. * Wno-enum-compare: Warning Options. (line 2030)
  46532. * Wno-error: Warning Options. (line 28)
  46533. * Wno-error=: Warning Options. (line 31)
  46534. * Wno-extra: Warning Options. (line 195)
  46535. * Wno-extra <1>: Warning Options. (line 2217)
  46536. * Wno-extra <2>: Warning Options. (line 2313)
  46537. * Wno-fatal-errors: Warning Options. (line 48)
  46538. * Wno-float-conversion: Warning Options. (line 2059)
  46539. * Wno-float-equal: Warning Options. (line 1524)
  46540. * Wno-format: Warning Options. (line 287)
  46541. * Wno-format <1>: Warning Options. (line 1278)
  46542. * Wno-format-contains-nul: Warning Options. (line 321)
  46543. * Wno-format-extra-args: Warning Options. (line 325)
  46544. * Wno-format-nonliteral: Warning Options. (line 430)
  46545. * Wno-format-overflow: Warning Options. (line 340)
  46546. * Wno-format-overflow <1>: Warning Options. (line 351)
  46547. * Wno-format-overflow <2>: Warning Options. (line 465)
  46548. * Wno-format-security: Warning Options. (line 435)
  46549. * Wno-format-signedness: Warning Options. (line 447)
  46550. * Wno-format-truncation: Warning Options. (line 453)
  46551. * Wno-format-y2k: Warning Options. (line 476)
  46552. * Wno-format-zero-length: Warning Options. (line 420)
  46553. * Wno-frame-address: Warning Options. (line 1460)
  46554. * Wno-free-nonheap-object: Warning Options. (line 1691)
  46555. * Wno-ignored-attributes: Warning Options. (line 659)
  46556. * Wno-ignored-qualifiers: Warning Options. (line 648)
  46557. * Wno-implicit: Warning Options. (line 526)
  46558. * Wno-implicit-fallthrough: Warning Options. (line 530)
  46559. * Wno-implicit-function-declaration: Warning Options. (line 520)
  46560. * Wno-implicit-int: Warning Options. (line 516)
  46561. * Wno-incompatible-pointer-types: Warning Options. (line 1478)
  46562. * Wno-inherited-variadic-ctor: Warning Options. (line 2378)
  46563. * Wno-init-self: Warning Options. (line 501)
  46564. * Wno-inline: Warning Options. (line 2383)
  46565. * Wno-int-conversion: Warning Options. (line 1484)
  46566. * Wno-int-in-bool-context: Warning Options. (line 2408)
  46567. * Wno-int-to-pointer-cast: Warning Options. (line 2416)
  46568. * Wno-invalid-memory-model: Warning Options. (line 1020)
  46569. * Wno-invalid-offsetof: Warning Options. (line 2396)
  46570. * Wno-invalid-pch: Warning Options. (line 2425)
  46571. * Wno-jump-misses-init: Warning Options. (line 2036)
  46572. * Wno-literal-suffix: C++ Dialect Options.
  46573. (line 569)
  46574. * Wno-logical-not-parentheses: Warning Options. (line 2133)
  46575. * Wno-logical-op: Warning Options. (line 2125)
  46576. * Wno-long-long: Warning Options. (line 2429)
  46577. * Wno-lto-type-mismatch: C++ Dialect Options.
  46578. (line 595)
  46579. * Wno-main: Warning Options. (line 666)
  46580. * Wno-maybe-uninitialized: Warning Options. (line 1037)
  46581. * Wno-memset-elt-size: Warning Options. (line 2093)
  46582. * Wno-memset-transposed-args: Warning Options. (line 2101)
  46583. * Wno-misleading-indentation: Warning Options. (line 673)
  46584. * Wno-missing-braces: Warning Options. (line 707)
  46585. * Wno-missing-declarations: Warning Options. (line 2207)
  46586. * Wno-missing-field-initializers: Warning Options. (line 2217)
  46587. * Wno-missing-format-attribute: Warning Options. (line 1278)
  46588. * Wno-missing-include-dirs: Warning Options. (line 718)
  46589. * Wno-missing-parameter-type: Warning Options. (line 2189)
  46590. * Wno-missing-prototypes: Warning Options. (line 2197)
  46591. * Wno-multichar: Warning Options. (line 2241)
  46592. * Wno-narrowing: C++ Dialect Options.
  46593. (line 601)
  46594. * Wno-nested-externs: Warning Options. (line 2375)
  46595. * Wno-noexcept: C++ Dialect Options.
  46596. (line 617)
  46597. * Wno-noexcept-type: C++ Dialect Options.
  46598. (line 623)
  46599. * Wno-non-template-friend: C++ Dialect Options.
  46600. (line 707)
  46601. * Wno-non-virtual-dtor: C++ Dialect Options.
  46602. (line 632)
  46603. * Wno-nonnull: Warning Options. (line 480)
  46604. * Wno-nonnull-compare: Warning Options. (line 487)
  46605. * Wno-normalized: Warning Options. (line 2247)
  46606. * Wno-null-dereference: Warning Options. (line 494)
  46607. * Wno-odr: Warning Options. (line 2303)
  46608. * Wno-old-style-cast: C++ Dialect Options.
  46609. (line 716)
  46610. * Wno-old-style-declaration: Warning Options. (line 2179)
  46611. * Wno-old-style-definition: Warning Options. (line 2185)
  46612. * Wno-overflow: Warning Options. (line 2300)
  46613. * Wno-overlength-strings: Warning Options. (line 2510)
  46614. * Wno-overloaded-virtual: C++ Dialect Options.
  46615. (line 722)
  46616. * Wno-override-init: Warning Options. (line 2313)
  46617. * Wno-override-init-side-effects: Warning Options. (line 2321)
  46618. * Wno-packed: Warning Options. (line 2326)
  46619. * Wno-packed-bitfield-compat: Warning Options. (line 2343)
  46620. * Wno-padded: Warning Options. (line 2360)
  46621. * Wno-parentheses: Warning Options. (line 721)
  46622. * Wno-pedantic-ms-format: Warning Options. (line 1721)
  46623. * Wno-placement-new: Warning Options. (line 1738)
  46624. * Wno-pmf-conversions: C++ Dialect Options.
  46625. (line 741)
  46626. * Wno-pmf-conversions <1>: Bound member functions.
  46627. (line 35)
  46628. * Wno-pointer-arith: Warning Options. (line 1773)
  46629. * Wno-pointer-compare: Warning Options. (line 1780)
  46630. * Wno-pointer-sign: Warning Options. (line 2499)
  46631. * Wno-pointer-to-int-cast: Warning Options. (line 2421)
  46632. * Wno-pragmas: Warning Options. (line 1087)
  46633. * Wno-protocol: Objective-C and Objective-C++ Dialect Options.
  46634. (line 174)
  46635. * Wno-redundant-decls: Warning Options. (line 2367)
  46636. * Wno-register: C++ Dialect Options.
  46637. (line 640)
  46638. * Wno-reorder: C++ Dialect Options.
  46639. (line 647)
  46640. * Wno-restrict: Warning Options. (line 2371)
  46641. * Wno-return-local-addr: Warning Options. (line 792)
  46642. * Wno-return-type: Warning Options. (line 796)
  46643. * Wno-selector: Objective-C and Objective-C++ Dialect Options.
  46644. (line 184)
  46645. * Wno-sequence-point: Warning Options. (line 739)
  46646. * Wno-shadow: Warning Options. (line 1630)
  46647. * Wno-shadow-ivar: Warning Options. (line 1638)
  46648. * Wno-shift-count-negative: Warning Options. (line 814)
  46649. * Wno-shift-count-overflow: Warning Options. (line 818)
  46650. * Wno-shift-negative-value: Warning Options. (line 822)
  46651. * Wno-shift-overflow: Warning Options. (line 827)
  46652. * Wno-sign-compare: Warning Options. (line 2047)
  46653. * Wno-sign-conversion: Warning Options. (line 2053)
  46654. * Wno-sign-promo: C++ Dialect Options.
  46655. (line 745)
  46656. * Wno-sized-deallocation: Warning Options. (line 2069)
  46657. * Wno-sizeof-array-argument: Warning Options. (line 2088)
  46658. * Wno-sizeof-pointer-memaccess: Warning Options. (line 2080)
  46659. * Wno-stack-protector: Warning Options. (line 2505)
  46660. * Wno-strict-aliasing: Warning Options. (line 1092)
  46661. * Wno-strict-null-sentinel: C++ Dialect Options.
  46662. (line 700)
  46663. * Wno-strict-overflow: Warning Options. (line 1131)
  46664. * Wno-strict-prototypes: Warning Options. (line 2173)
  46665. * Wno-strict-selector-match: Objective-C and Objective-C++ Dialect Options.
  46666. (line 196)
  46667. * Wno-stringop-overflow: Warning Options. (line 1181)
  46668. * Wno-stringop-overflow <1>: Warning Options. (line 1220)
  46669. * Wno-subobject-linkage: Warning Options. (line 1967)
  46670. * Wno-suggest-attribute=: Warning Options. (line 1258)
  46671. * Wno-suggest-attribute=const: Warning Options. (line 1264)
  46672. * Wno-suggest-attribute=format: Warning Options. (line 1278)
  46673. * Wno-suggest-attribute=noreturn: Warning Options. (line 1264)
  46674. * Wno-suggest-attribute=pure: Warning Options. (line 1264)
  46675. * Wno-suggest-final-methods: Warning Options. (line 1308)
  46676. * Wno-suggest-final-types: Warning Options. (line 1299)
  46677. * Wno-switch: Warning Options. (line 842)
  46678. * Wno-switch-bool: Warning Options. (line 862)
  46679. * Wno-switch-default: Warning Options. (line 850)
  46680. * Wno-switch-enum: Warning Options. (line 853)
  46681. * Wno-switch-unreachable: Warning Options. (line 873)
  46682. * Wno-sync-nand: Warning Options. (line 897)
  46683. * Wno-system-headers: Warning Options. (line 1495)
  46684. * Wno-tautological-compare: Warning Options. (line 1506)
  46685. * Wno-terminate: C++ Dialect Options.
  46686. (line 779)
  46687. * Wno-traditional: Warning Options. (line 1539)
  46688. * Wno-traditional-conversion: Warning Options. (line 1616)
  46689. * Wno-trampolines: Warning Options. (line 1514)
  46690. * Wno-type-limits: Warning Options. (line 1793)
  46691. * Wno-undeclared-selector: Objective-C and Objective-C++ Dialect Options.
  46692. (line 204)
  46693. * Wno-undef: Warning Options. (line 1816)
  46694. * Wno-uninitialized: Warning Options. (line 998)
  46695. * Wno-unknown-pragmas: Warning Options. (line 1080)
  46696. * Wno-unsafe-loop-optimizations: Warning Options. (line 1715)
  46697. * Wno-unused: Warning Options. (line 991)
  46698. * Wno-unused-but-set-parameter: Warning Options. (line 902)
  46699. * Wno-unused-but-set-variable: Warning Options. (line 911)
  46700. * Wno-unused-const-variable: Warning Options. (line 958)
  46701. * Wno-unused-function: Warning Options. (line 921)
  46702. * Wno-unused-label: Warning Options. (line 926)
  46703. * Wno-unused-parameter: Warning Options. (line 937)
  46704. * Wno-unused-result: Warning Options. (line 944)
  46705. * Wno-unused-value: Warning Options. (line 981)
  46706. * Wno-unused-variable: Warning Options. (line 949)
  46707. * Wno-useless-cast: Warning Options. (line 2023)
  46708. * Wno-varargs: Warning Options. (line 2440)
  46709. * Wno-variadic-macros: Warning Options. (line 2434)
  46710. * Wno-vector-operation-performance: Warning Options. (line 2445)
  46711. * Wno-virtual-move-assign: Warning Options. (line 2455)
  46712. * Wno-vla: Warning Options. (line 2464)
  46713. * Wno-volatile-register-var: Warning Options. (line 2484)
  46714. * Wno-write-strings: Warning Options. (line 1921)
  46715. * Wno-zero-as-null-pointer-constant: Warning Options. (line 1963)
  46716. * Wnoexcept: C++ Dialect Options.
  46717. (line 617)
  46718. * Wnoexcept-type: C++ Dialect Options.
  46719. (line 623)
  46720. * Wnon-template-friend: C++ Dialect Options.
  46721. (line 707)
  46722. * Wnon-virtual-dtor: C++ Dialect Options.
  46723. (line 632)
  46724. * Wnonnull: Warning Options. (line 480)
  46725. * Wnonnull-compare: Warning Options. (line 487)
  46726. * Wnormalized: Warning Options. (line 2247)
  46727. * Wnormalized=: Warning Options. (line 2247)
  46728. * Wnull-dereference: Warning Options. (line 494)
  46729. * Wodr: Warning Options. (line 2303)
  46730. * Wold-style-cast: C++ Dialect Options.
  46731. (line 716)
  46732. * Wold-style-declaration: Warning Options. (line 2179)
  46733. * Wold-style-definition: Warning Options. (line 2185)
  46734. * Wopenm-simd: Warning Options. (line 2308)
  46735. * Woverflow: Warning Options. (line 2300)
  46736. * Woverlength-strings: Warning Options. (line 2510)
  46737. * Woverloaded-virtual: C++ Dialect Options.
  46738. (line 722)
  46739. * Woverride-init: Warning Options. (line 2313)
  46740. * Woverride-init-side-effects: Warning Options. (line 2321)
  46741. * Wp: Preprocessor Options.
  46742. (line 445)
  46743. * Wpacked: Warning Options. (line 2326)
  46744. * Wpacked-bitfield-compat: Warning Options. (line 2343)
  46745. * Wpadded: Warning Options. (line 2360)
  46746. * Wparentheses: Warning Options. (line 721)
  46747. * Wpedantic: Warning Options. (line 80)
  46748. * Wpedantic-ms-format: Warning Options. (line 1721)
  46749. * Wplacement-new: Warning Options. (line 1738)
  46750. * Wpmf-conversions: C++ Dialect Options.
  46751. (line 741)
  46752. * Wpointer-arith: Warning Options. (line 1773)
  46753. * Wpointer-arith <1>: Pointer Arith. (line 13)
  46754. * Wpointer-compare: Warning Options. (line 1780)
  46755. * Wpointer-sign: Warning Options. (line 2499)
  46756. * Wpointer-to-int-cast: Warning Options. (line 2421)
  46757. * Wpragmas: Warning Options. (line 1087)
  46758. * Wprotocol: Objective-C and Objective-C++ Dialect Options.
  46759. (line 174)
  46760. * wrapper: Overall Options. (line 349)
  46761. * Wredundant-decls: Warning Options. (line 2367)
  46762. * Wregister: C++ Dialect Options.
  46763. (line 640)
  46764. * Wreorder: C++ Dialect Options.
  46765. (line 647)
  46766. * Wrestrict: Warning Options. (line 2371)
  46767. * Wreturn-local-addr: Warning Options. (line 792)
  46768. * Wreturn-type: Warning Options. (line 796)
  46769. * Wselector: Objective-C and Objective-C++ Dialect Options.
  46770. (line 184)
  46771. * Wsequence-point: Warning Options. (line 739)
  46772. * Wshadow: Warning Options. (line 1630)
  46773. * Wshadow-ivar: Warning Options. (line 1638)
  46774. * Wshadow=compatible-local: Warning Options. (line 1649)
  46775. * Wshadow=local: Warning Options. (line 1642)
  46776. * Wshadow=local <1>: Warning Options. (line 1645)
  46777. * Wshift-count-negative: Warning Options. (line 814)
  46778. * Wshift-count-overflow: Warning Options. (line 818)
  46779. * Wshift-negative-value: Warning Options. (line 822)
  46780. * Wshift-overflow: Warning Options. (line 827)
  46781. * Wsign-compare: Warning Options. (line 2047)
  46782. * Wsign-conversion: Warning Options. (line 2053)
  46783. * Wsign-promo: C++ Dialect Options.
  46784. (line 745)
  46785. * Wsized-deallocation: Warning Options. (line 2069)
  46786. * Wsizeof-array-argument: Warning Options. (line 2088)
  46787. * Wsizeof-pointer-memaccess: Warning Options. (line 2080)
  46788. * Wstack-protector: Warning Options. (line 2505)
  46789. * Wstack-usage: Warning Options. (line 1695)
  46790. * Wstrict-aliasing: Warning Options. (line 1092)
  46791. * Wstrict-aliasing=n: Warning Options. (line 1099)
  46792. * Wstrict-null-sentinel: C++ Dialect Options.
  46793. (line 700)
  46794. * Wstrict-overflow: Warning Options. (line 1131)
  46795. * Wstrict-prototypes: Warning Options. (line 2173)
  46796. * Wstrict-selector-match: Objective-C and Objective-C++ Dialect Options.
  46797. (line 196)
  46798. * Wstringop-overflow: Warning Options. (line 1181)
  46799. * Wstringop-overflow <1>: Warning Options. (line 1220)
  46800. * Wsubobject-linkage: Warning Options. (line 1967)
  46801. * Wsuggest-attribute=: Warning Options. (line 1258)
  46802. * Wsuggest-attribute=const: Warning Options. (line 1264)
  46803. * Wsuggest-attribute=format: Warning Options. (line 1278)
  46804. * Wsuggest-attribute=noreturn: Warning Options. (line 1264)
  46805. * Wsuggest-attribute=pure: Warning Options. (line 1264)
  46806. * Wsuggest-final-methods: Warning Options. (line 1308)
  46807. * Wsuggest-final-types: Warning Options. (line 1299)
  46808. * Wswitch: Warning Options. (line 842)
  46809. * Wswitch-bool: Warning Options. (line 862)
  46810. * Wswitch-default: Warning Options. (line 850)
  46811. * Wswitch-enum: Warning Options. (line 853)
  46812. * Wswitch-unreachable: Warning Options. (line 873)
  46813. * Wsync-nand: Warning Options. (line 897)
  46814. * Wsystem-headers: Warning Options. (line 1495)
  46815. * Wtautological-compare: Warning Options. (line 1506)
  46816. * Wtemplates: C++ Dialect Options.
  46817. (line 751)
  46818. * Wterminate: C++ Dialect Options.
  46819. (line 779)
  46820. * Wtraditional: Warning Options. (line 1539)
  46821. * Wtraditional-conversion: Warning Options. (line 1616)
  46822. * Wtrampolines: Warning Options. (line 1514)
  46823. * Wtrigraphs: Warning Options. (line 1806)
  46824. * Wtype-limits: Warning Options. (line 1793)
  46825. * Wundeclared-selector: Objective-C and Objective-C++ Dialect Options.
  46826. (line 204)
  46827. * Wundef: Warning Options. (line 1816)
  46828. * Wuninitialized: Warning Options. (line 998)
  46829. * Wunknown-pragmas: Warning Options. (line 1080)
  46830. * Wunsafe-loop-optimizations: Warning Options. (line 1715)
  46831. * Wunsuffixed-float-constants: Warning Options. (line 2525)
  46832. * Wunused: Warning Options. (line 991)
  46833. * Wunused-but-set-parameter: Warning Options. (line 902)
  46834. * Wunused-but-set-variable: Warning Options. (line 911)
  46835. * Wunused-const-variable: Warning Options. (line 958)
  46836. * Wunused-function: Warning Options. (line 921)
  46837. * Wunused-label: Warning Options. (line 926)
  46838. * Wunused-local-typedefs: Warning Options. (line 933)
  46839. * Wunused-macros: Warning Options. (line 1826)
  46840. * Wunused-parameter: Warning Options. (line 937)
  46841. * Wunused-result: Warning Options. (line 944)
  46842. * Wunused-value: Warning Options. (line 981)
  46843. * Wunused-variable: Warning Options. (line 949)
  46844. * Wuseless-cast: Warning Options. (line 2023)
  46845. * Wvarargs: Warning Options. (line 2440)
  46846. * Wvariadic-macros: Warning Options. (line 2434)
  46847. * Wvector-operation-performance: Warning Options. (line 2445)
  46848. * Wvirtual-inheritance: C++ Dialect Options.
  46849. (line 765)
  46850. * Wvirtual-move-assign: Warning Options. (line 2455)
  46851. * Wvla: Warning Options. (line 2464)
  46852. * Wvolatile-register-var: Warning Options. (line 2484)
  46853. * Wwrite-strings: Warning Options. (line 1921)
  46854. * Wzero-as-null-pointer-constant: Warning Options. (line 1963)
  46855. * x: Overall Options. (line 129)
  46856. * Xassembler: Assembler Options. (line 13)
  46857. * Xbind-lazy: VxWorks Options. (line 26)
  46858. * Xbind-now: VxWorks Options. (line 30)
  46859. * Xlinker: Link Options. (line 253)
  46860. * Xpreprocessor: Preprocessor Options.
  46861. (line 456)
  46862. * Ym: System V Options. (line 26)
  46863. * YP: System V Options. (line 22)
  46864. * z: Link Options. (line 284)
  46865. 
  46866. File: gcc.info, Node: Keyword Index, Prev: Option Index, Up: Top
  46867. Keyword Index
  46868. *************
  46869. �[index�]
  46870. * Menu:
  46871. * '#pragma': Pragmas. (line 6)
  46872. * #pragma implementation: C++ Interface. (line 36)
  46873. * '#pragma implementation', implied: C++ Interface. (line 43)
  46874. * #pragma interface: C++ Interface. (line 17)
  46875. * $: Dollar Signs. (line 6)
  46876. * '%' in constraint: Modifiers. (line 52)
  46877. * '%include': Spec Files. (line 26)
  46878. * '%include_noerr': Spec Files. (line 30)
  46879. * '%rename': Spec Files. (line 34)
  46880. * '&' in constraint: Modifiers. (line 25)
  46881. * ''': Incompatibilities. (line 116)
  46882. * *__builtin_alloca: Other Builtins. (line 129)
  46883. * *__builtin_alloca_with_align: Other Builtins. (line 166)
  46884. * '+' in constraint: Modifiers. (line 12)
  46885. * '-lgcc', use with '-nodefaultlibs': Link Options. (line 91)
  46886. * '-lgcc', use with '-nostdlib': Link Options. (line 91)
  46887. * '-march' feature modifiers: AArch64 Options. (line 209)
  46888. * '-mcpu' feature modifiers: AArch64 Options. (line 209)
  46889. * '-nodefaultlibs' and unresolved references: Link Options. (line 91)
  46890. * '-nostdlib' and unresolved references: Link Options. (line 91)
  46891. * .sdata/.sdata2 references (PowerPC): RS/6000 and PowerPC Options.
  46892. (line 829)
  46893. * '//': C++ Comments. (line 6)
  46894. * '0' in constraint: Simple Constraints. (line 125)
  46895. * '<' in constraint: Simple Constraints. (line 47)
  46896. * '=' in constraint: Modifiers. (line 8)
  46897. * '>' in constraint: Simple Constraints. (line 59)
  46898. * '?:' extensions: Conditionals. (line 6)
  46899. * '?:' side effect: Conditionals. (line 20)
  46900. * '_' in variables in macros: Typeof. (line 46)
  46901. * '_Accum' data type: Fixed-Point. (line 6)
  46902. * '_Complex' keyword: Complex. (line 6)
  46903. * '_Decimal128' data type: Decimal Float. (line 6)
  46904. * '_Decimal32' data type: Decimal Float. (line 6)
  46905. * '_Decimal64' data type: Decimal Float. (line 6)
  46906. * _Exit: Other Builtins. (line 6)
  46907. * _exit: Other Builtins. (line 6)
  46908. * '_FloatN' data types: Floating Types. (line 6)
  46909. * '_FloatNx' data types: Floating Types. (line 6)
  46910. * '_Fract' data type: Fixed-Point. (line 6)
  46911. * _HTM_FIRST_USER_ABORT_CODE: S/390 System z Built-in Functions.
  46912. (line 44)
  46913. * '_Sat' data type: Fixed-Point. (line 6)
  46914. * _xabort: x86 transactional memory intrinsics.
  46915. (line 57)
  46916. * _xbegin: x86 transactional memory intrinsics.
  46917. (line 19)
  46918. * _xend: x86 transactional memory intrinsics.
  46919. (line 48)
  46920. * _xtest: x86 transactional memory intrinsics.
  46921. (line 53)
  46922. * __atomic_add_fetch: __atomic Builtins. (line 179)
  46923. * __atomic_always_lock_free: __atomic Builtins. (line 265)
  46924. * __atomic_and_fetch: __atomic Builtins. (line 183)
  46925. * __atomic_clear: __atomic Builtins. (line 239)
  46926. * __atomic_compare_exchange: __atomic Builtins. (line 171)
  46927. * __atomic_compare_exchange_n: __atomic Builtins. (line 147)
  46928. * __atomic_exchange: __atomic Builtins. (line 141)
  46929. * __atomic_exchange_n: __atomic Builtins. (line 131)
  46930. * __atomic_fetch_add: __atomic Builtins. (line 203)
  46931. * __atomic_fetch_and: __atomic Builtins. (line 207)
  46932. * __atomic_fetch_nand: __atomic Builtins. (line 213)
  46933. * __atomic_fetch_or: __atomic Builtins. (line 211)
  46934. * __atomic_fetch_sub: __atomic Builtins. (line 205)
  46935. * __atomic_fetch_xor: __atomic Builtins. (line 209)
  46936. * __atomic_is_lock_free: __atomic Builtins. (line 279)
  46937. * __atomic_load: __atomic Builtins. (line 113)
  46938. * __atomic_load_n: __atomic Builtins. (line 106)
  46939. * __atomic_nand_fetch: __atomic Builtins. (line 189)
  46940. * __atomic_or_fetch: __atomic Builtins. (line 187)
  46941. * __atomic_signal_fence: __atomic Builtins. (line 258)
  46942. * __atomic_store: __atomic Builtins. (line 126)
  46943. * __atomic_store_n: __atomic Builtins. (line 118)
  46944. * __atomic_sub_fetch: __atomic Builtins. (line 181)
  46945. * __atomic_test_and_set: __atomic Builtins. (line 227)
  46946. * __atomic_thread_fence: __atomic Builtins. (line 251)
  46947. * __atomic_xor_fetch: __atomic Builtins. (line 185)
  46948. * __builtin_add_overflow: Integer Overflow Builtins.
  46949. (line 9)
  46950. * __builtin_add_overflow_p: Integer Overflow Builtins.
  46951. (line 86)
  46952. * __builtin_alloca: Other Builtins. (line 6)
  46953. * __builtin_alloca_with_align: Other Builtins. (line 6)
  46954. * __builtin_apply: Constructing Calls. (line 29)
  46955. * __builtin_apply_args: Constructing Calls. (line 19)
  46956. * __builtin_arc_aligned: ARC Built-in Functions.
  46957. (line 18)
  46958. * __builtin_arc_brk: ARC Built-in Functions.
  46959. (line 28)
  46960. * __builtin_arc_core_read: ARC Built-in Functions.
  46961. (line 32)
  46962. * __builtin_arc_core_write: ARC Built-in Functions.
  46963. (line 39)
  46964. * __builtin_arc_divaw: ARC Built-in Functions.
  46965. (line 46)
  46966. * __builtin_arc_flag: ARC Built-in Functions.
  46967. (line 53)
  46968. * __builtin_arc_lr: ARC Built-in Functions.
  46969. (line 57)
  46970. * __builtin_arc_mul64: ARC Built-in Functions.
  46971. (line 64)
  46972. * __builtin_arc_mulu64: ARC Built-in Functions.
  46973. (line 68)
  46974. * __builtin_arc_nop: ARC Built-in Functions.
  46975. (line 73)
  46976. * __builtin_arc_norm: ARC Built-in Functions.
  46977. (line 77)
  46978. * __builtin_arc_normw: ARC Built-in Functions.
  46979. (line 84)
  46980. * __builtin_arc_rtie: ARC Built-in Functions.
  46981. (line 91)
  46982. * __builtin_arc_sleep: ARC Built-in Functions.
  46983. (line 95)
  46984. * __builtin_arc_sr: ARC Built-in Functions.
  46985. (line 99)
  46986. * __builtin_arc_swap: ARC Built-in Functions.
  46987. (line 106)
  46988. * __builtin_arc_swi: ARC Built-in Functions.
  46989. (line 112)
  46990. * __builtin_arc_sync: ARC Built-in Functions.
  46991. (line 116)
  46992. * __builtin_arc_trap_s: ARC Built-in Functions.
  46993. (line 120)
  46994. * __builtin_arc_unimp_s: ARC Built-in Functions.
  46995. (line 124)
  46996. * __builtin_assume_aligned: Other Builtins. (line 441)
  46997. * __builtin_bswap16: Other Builtins. (line 757)
  46998. * __builtin_bswap32: Other Builtins. (line 761)
  46999. * __builtin_bswap64: Other Builtins. (line 765)
  47000. * __builtin_call_with_static_chain: Other Builtins. (line 6)
  47001. * __builtin_call_with_static_chain <1>: Other Builtins. (line 256)
  47002. * __builtin_choose_expr: Other Builtins. (line 267)
  47003. * __builtin_clrsb: Other Builtins. (line 687)
  47004. * __builtin_clrsbl: Other Builtins. (line 709)
  47005. * __builtin_clrsbll: Other Builtins. (line 732)
  47006. * __builtin_clz: Other Builtins. (line 679)
  47007. * __builtin_clzl: Other Builtins. (line 701)
  47008. * __builtin_clzll: Other Builtins. (line 724)
  47009. * __builtin_complex: Other Builtins. (line 307)
  47010. * __builtin_constant_p: Other Builtins. (line 316)
  47011. * __builtin_cpu_init: PowerPC Built-in Functions.
  47012. (line 9)
  47013. * __builtin_cpu_init <1>: PowerPC Built-in Functions.
  47014. (line 13)
  47015. * __builtin_cpu_init <2>: x86 Built-in Functions.
  47016. (line 68)
  47017. * __builtin_cpu_is: PowerPC Built-in Functions.
  47018. (line 17)
  47019. * __builtin_cpu_is <1>: x86 Built-in Functions.
  47020. (line 96)
  47021. * __builtin_cpu_supports: PowerPC Built-in Functions.
  47022. (line 75)
  47023. * __builtin_cpu_supports <1>: x86 Built-in Functions.
  47024. (line 174)
  47025. * __builtin_ctz: Other Builtins. (line 683)
  47026. * __builtin_ctzl: Other Builtins. (line 705)
  47027. * __builtin_ctzll: Other Builtins. (line 728)
  47028. * __builtin_expect: Other Builtins. (line 361)
  47029. * __builtin_extract_return_addr: Return Address. (line 38)
  47030. * __builtin_ffs: Other Builtins. (line 675)
  47031. * __builtin_ffsl: Other Builtins. (line 698)
  47032. * __builtin_ffsll: Other Builtins. (line 720)
  47033. * __builtin_FILE: Other Builtins. (line 474)
  47034. * __builtin_fpclassify: Other Builtins. (line 6)
  47035. * __builtin_fpclassify <1>: Other Builtins. (line 571)
  47036. * __builtin_frame_address: Return Address. (line 50)
  47037. * __builtin_frob_return_address: Return Address. (line 47)
  47038. * __builtin_FUNCTION: Other Builtins. (line 466)
  47039. * __builtin_huge_val: Other Builtins. (line 551)
  47040. * __builtin_huge_valf: Other Builtins. (line 556)
  47041. * __builtin_huge_vall: Other Builtins. (line 559)
  47042. * __builtin_huge_valq: PowerPC Built-in Functions.
  47043. (line 227)
  47044. * __builtin_huge_valq <1>: x86 Built-in Functions.
  47045. (line 50)
  47046. * __builtin_inf: Other Builtins. (line 582)
  47047. * __builtin_infd128: Other Builtins. (line 592)
  47048. * __builtin_infd32: Other Builtins. (line 586)
  47049. * __builtin_infd64: Other Builtins. (line 589)
  47050. * __builtin_inff: Other Builtins. (line 596)
  47051. * __builtin_infl: Other Builtins. (line 601)
  47052. * __builtin_infq: PowerPC Built-in Functions.
  47053. (line 224)
  47054. * __builtin_infq <1>: x86 Built-in Functions.
  47055. (line 47)
  47056. * __builtin_isfinite: Other Builtins. (line 6)
  47057. * __builtin_isgreater: Other Builtins. (line 6)
  47058. * __builtin_isgreaterequal: Other Builtins. (line 6)
  47059. * __builtin_isinf_sign: Other Builtins. (line 6)
  47060. * __builtin_isinf_sign <1>: Other Builtins. (line 611)
  47061. * __builtin_isless: Other Builtins. (line 6)
  47062. * __builtin_islessequal: Other Builtins. (line 6)
  47063. * __builtin_islessgreater: Other Builtins. (line 6)
  47064. * __builtin_isnormal: Other Builtins. (line 6)
  47065. * __builtin_isunordered: Other Builtins. (line 6)
  47066. * __builtin_LINE: Other Builtins. (line 459)
  47067. * __builtin_mul_overflow: Integer Overflow Builtins.
  47068. (line 63)
  47069. * __builtin_mul_overflow_p: Integer Overflow Builtins.
  47070. (line 90)
  47071. * __builtin_nan: Other Builtins. (line 619)
  47072. * __builtin_nand128: Other Builtins. (line 641)
  47073. * __builtin_nand32: Other Builtins. (line 635)
  47074. * __builtin_nand64: Other Builtins. (line 638)
  47075. * __builtin_nanf: Other Builtins. (line 645)
  47076. * __builtin_nanl: Other Builtins. (line 648)
  47077. * __builtin_nanq: PowerPC Built-in Functions.
  47078. (line 231)
  47079. * __builtin_nanq <1>: x86 Built-in Functions.
  47080. (line 54)
  47081. * __builtin_nans: Other Builtins. (line 658)
  47082. * __builtin_nansf: Other Builtins. (line 662)
  47083. * __builtin_nansl: Other Builtins. (line 665)
  47084. * __builtin_nansq: PowerPC Built-in Functions.
  47085. (line 234)
  47086. * __builtin_nansq <1>: x86 Built-in Functions.
  47087. (line 57)
  47088. * __builtin_nds32_isb: NDS32 Built-in Functions.
  47089. (line 12)
  47090. * __builtin_nds32_isync: NDS32 Built-in Functions.
  47091. (line 8)
  47092. * __builtin_nds32_mfsr: NDS32 Built-in Functions.
  47093. (line 15)
  47094. * __builtin_nds32_mfusr: NDS32 Built-in Functions.
  47095. (line 18)
  47096. * __builtin_nds32_mtsr: NDS32 Built-in Functions.
  47097. (line 21)
  47098. * __builtin_nds32_mtusr: NDS32 Built-in Functions.
  47099. (line 24)
  47100. * __builtin_nds32_setgie_dis: NDS32 Built-in Functions.
  47101. (line 30)
  47102. * __builtin_nds32_setgie_en: NDS32 Built-in Functions.
  47103. (line 27)
  47104. * __builtin_non_tx_store: S/390 System z Built-in Functions.
  47105. (line 98)
  47106. * __builtin_object_size: Object Size Checking.
  47107. (line 6)
  47108. * __builtin_object_size <1>: Object Size Checking.
  47109. (line 16)
  47110. * __builtin_offsetof: Offsetof. (line 6)
  47111. * __builtin_parity: Other Builtins. (line 695)
  47112. * __builtin_parityl: Other Builtins. (line 716)
  47113. * __builtin_parityll: Other Builtins. (line 740)
  47114. * __builtin_popcount: Other Builtins. (line 692)
  47115. * __builtin_popcountl: Other Builtins. (line 712)
  47116. * __builtin_popcountll: Other Builtins. (line 736)
  47117. * __builtin_powi: Other Builtins. (line 6)
  47118. * __builtin_powi <1>: Other Builtins. (line 744)
  47119. * __builtin_powif: Other Builtins. (line 6)
  47120. * __builtin_powif <1>: Other Builtins. (line 749)
  47121. * __builtin_powil: Other Builtins. (line 6)
  47122. * __builtin_powil <1>: Other Builtins. (line 753)
  47123. * __builtin_prefetch: Other Builtins. (line 512)
  47124. * __builtin_return: Constructing Calls. (line 47)
  47125. * __builtin_return_address: Return Address. (line 9)
  47126. * __builtin_rx_brk: RX Built-in Functions.
  47127. (line 10)
  47128. * __builtin_rx_clrpsw: RX Built-in Functions.
  47129. (line 13)
  47130. * __builtin_rx_int: RX Built-in Functions.
  47131. (line 17)
  47132. * __builtin_rx_machi: RX Built-in Functions.
  47133. (line 21)
  47134. * __builtin_rx_maclo: RX Built-in Functions.
  47135. (line 26)
  47136. * __builtin_rx_mulhi: RX Built-in Functions.
  47137. (line 31)
  47138. * __builtin_rx_mullo: RX Built-in Functions.
  47139. (line 36)
  47140. * __builtin_rx_mvfachi: RX Built-in Functions.
  47141. (line 41)
  47142. * __builtin_rx_mvfacmi: RX Built-in Functions.
  47143. (line 45)
  47144. * __builtin_rx_mvfc: RX Built-in Functions.
  47145. (line 49)
  47146. * __builtin_rx_mvtachi: RX Built-in Functions.
  47147. (line 53)
  47148. * __builtin_rx_mvtaclo: RX Built-in Functions.
  47149. (line 57)
  47150. * __builtin_rx_mvtc: RX Built-in Functions.
  47151. (line 61)
  47152. * __builtin_rx_mvtipl: RX Built-in Functions.
  47153. (line 65)
  47154. * __builtin_rx_racw: RX Built-in Functions.
  47155. (line 69)
  47156. * __builtin_rx_revw: RX Built-in Functions.
  47157. (line 73)
  47158. * __builtin_rx_rmpa: RX Built-in Functions.
  47159. (line 78)
  47160. * __builtin_rx_round: RX Built-in Functions.
  47161. (line 82)
  47162. * __builtin_rx_sat: RX Built-in Functions.
  47163. (line 87)
  47164. * __builtin_rx_setpsw: RX Built-in Functions.
  47165. (line 91)
  47166. * __builtin_rx_wait: RX Built-in Functions.
  47167. (line 95)
  47168. * __builtin_saddll_overflow: Integer Overflow Builtins.
  47169. (line 15)
  47170. * __builtin_saddl_overflow: Integer Overflow Builtins.
  47171. (line 13)
  47172. * __builtin_sadd_overflow: Integer Overflow Builtins.
  47173. (line 11)
  47174. * __builtin_set_thread_pointer: SH Built-in Functions.
  47175. (line 9)
  47176. * __builtin_shuffle: Vector Extensions. (line 126)
  47177. * __builtin_sh_get_fpscr: SH Built-in Functions.
  47178. (line 35)
  47179. * __builtin_sh_set_fpscr: SH Built-in Functions.
  47180. (line 38)
  47181. * __builtin_smulll_overflow: Integer Overflow Builtins.
  47182. (line 69)
  47183. * __builtin_smull_overflow: Integer Overflow Builtins.
  47184. (line 67)
  47185. * __builtin_smul_overflow: Integer Overflow Builtins.
  47186. (line 65)
  47187. * __builtin_ssubll_overflow: Integer Overflow Builtins.
  47188. (line 49)
  47189. * __builtin_ssubl_overflow: Integer Overflow Builtins.
  47190. (line 47)
  47191. * __builtin_ssub_overflow: Integer Overflow Builtins.
  47192. (line 45)
  47193. * __builtin_sub_overflow: Integer Overflow Builtins.
  47194. (line 43)
  47195. * __builtin_sub_overflow_p: Integer Overflow Builtins.
  47196. (line 88)
  47197. * __builtin_tabort: S/390 System z Built-in Functions.
  47198. (line 82)
  47199. * __builtin_tbegin: S/390 System z Built-in Functions.
  47200. (line 6)
  47201. * __builtin_tbeginc: S/390 System z Built-in Functions.
  47202. (line 73)
  47203. * __builtin_tbegin_nofloat: S/390 System z Built-in Functions.
  47204. (line 54)
  47205. * __builtin_tbegin_retry: S/390 System z Built-in Functions.
  47206. (line 60)
  47207. * __builtin_tbegin_retry_nofloat: S/390 System z Built-in Functions.
  47208. (line 67)
  47209. * __builtin_tend: S/390 System z Built-in Functions.
  47210. (line 77)
  47211. * __builtin_thread_pointer: SH Built-in Functions.
  47212. (line 18)
  47213. * __builtin_trap: Other Builtins. (line 385)
  47214. * __builtin_tx_assist: S/390 System z Built-in Functions.
  47215. (line 87)
  47216. * __builtin_tx_nesting_depth: S/390 System z Built-in Functions.
  47217. (line 93)
  47218. * __builtin_types_compatible_p: Other Builtins. (line 211)
  47219. * __builtin_uaddll_overflow: Integer Overflow Builtins.
  47220. (line 21)
  47221. * __builtin_uaddl_overflow: Integer Overflow Builtins.
  47222. (line 19)
  47223. * __builtin_uadd_overflow: Integer Overflow Builtins.
  47224. (line 17)
  47225. * __builtin_umulll_overflow: Integer Overflow Builtins.
  47226. (line 75)
  47227. * __builtin_umull_overflow: Integer Overflow Builtins.
  47228. (line 73)
  47229. * __builtin_umul_overflow: Integer Overflow Builtins.
  47230. (line 71)
  47231. * __builtin_unreachable: Other Builtins. (line 392)
  47232. * __builtin_usubll_overflow: Integer Overflow Builtins.
  47233. (line 55)
  47234. * __builtin_usubl_overflow: Integer Overflow Builtins.
  47235. (line 53)
  47236. * __builtin_usub_overflow: Integer Overflow Builtins.
  47237. (line 51)
  47238. * __builtin_va_arg_pack: Constructing Calls. (line 52)
  47239. * __builtin_va_arg_pack_len: Constructing Calls. (line 75)
  47240. * __builtin___bnd_chk_ptr_bounds: Pointer Bounds Checker builtins.
  47241. (line 6)
  47242. * __builtin___bnd_chk_ptr_bounds <1>: Pointer Bounds Checker builtins.
  47243. (line 110)
  47244. * __builtin___bnd_chk_ptr_lbounds: Pointer Bounds Checker builtins.
  47245. (line 6)
  47246. * __builtin___bnd_chk_ptr_lbounds <1>: Pointer Bounds Checker builtins.
  47247. (line 85)
  47248. * __builtin___bnd_chk_ptr_ubounds: Pointer Bounds Checker builtins.
  47249. (line 6)
  47250. * __builtin___bnd_chk_ptr_ubounds <1>: Pointer Bounds Checker builtins.
  47251. (line 103)
  47252. * __builtin___bnd_copy_ptr_bounds: Pointer Bounds Checker builtins.
  47253. (line 6)
  47254. * __builtin___bnd_copy_ptr_bounds <1>: Pointer Bounds Checker builtins.
  47255. (line 46)
  47256. * __builtin___bnd_get_ptr_lbound: Pointer Bounds Checker builtins.
  47257. (line 6)
  47258. * __builtin___bnd_get_ptr_lbound <1>: Pointer Bounds Checker builtins.
  47259. (line 128)
  47260. * __builtin___bnd_get_ptr_ubound: Pointer Bounds Checker builtins.
  47261. (line 6)
  47262. * __builtin___bnd_get_ptr_ubound <1>: Pointer Bounds Checker builtins.
  47263. (line 140)
  47264. * __builtin___bnd_init_ptr_bounds: Pointer Bounds Checker builtins.
  47265. (line 6)
  47266. * __builtin___bnd_init_ptr_bounds <1>: Pointer Bounds Checker builtins.
  47267. (line 59)
  47268. * __builtin___bnd_narrow_ptr_bounds: Pointer Bounds Checker builtins.
  47269. (line 6)
  47270. * __builtin___bnd_narrow_ptr_bounds <1>: Pointer Bounds Checker builtins.
  47271. (line 27)
  47272. * __builtin___bnd_null_ptr_bounds: Pointer Bounds Checker builtins.
  47273. (line 6)
  47274. * __builtin___bnd_null_ptr_bounds <1>: Pointer Bounds Checker builtins.
  47275. (line 67)
  47276. * __builtin___bnd_set_ptr_bounds: Pointer Bounds Checker builtins.
  47277. (line 6)
  47278. * __builtin___bnd_set_ptr_bounds <1>: Pointer Bounds Checker builtins.
  47279. (line 12)
  47280. * __builtin___bnd_store_ptr_bounds: Pointer Bounds Checker builtins.
  47281. (line 6)
  47282. * __builtin___bnd_store_ptr_bounds <1>: Pointer Bounds Checker builtins.
  47283. (line 75)
  47284. * __builtin___clear_cache: Other Builtins. (line 499)
  47285. * __builtin___fprintf_chk: Object Size Checking.
  47286. (line 6)
  47287. * __builtin___memcpy_chk: Object Size Checking.
  47288. (line 6)
  47289. * __builtin___memmove_chk: Object Size Checking.
  47290. (line 6)
  47291. * __builtin___mempcpy_chk: Object Size Checking.
  47292. (line 6)
  47293. * __builtin___memset_chk: Object Size Checking.
  47294. (line 6)
  47295. * __builtin___printf_chk: Object Size Checking.
  47296. (line 6)
  47297. * __builtin___snprintf_chk: Object Size Checking.
  47298. (line 6)
  47299. * __builtin___sprintf_chk: Object Size Checking.
  47300. (line 6)
  47301. * __builtin___stpcpy_chk: Object Size Checking.
  47302. (line 6)
  47303. * __builtin___strcat_chk: Object Size Checking.
  47304. (line 6)
  47305. * __builtin___strcpy_chk: Object Size Checking.
  47306. (line 6)
  47307. * __builtin___strncat_chk: Object Size Checking.
  47308. (line 6)
  47309. * __builtin___strncpy_chk: Object Size Checking.
  47310. (line 6)
  47311. * __builtin___vfprintf_chk: Object Size Checking.
  47312. (line 6)
  47313. * __builtin___vprintf_chk: Object Size Checking.
  47314. (line 6)
  47315. * __builtin___vsnprintf_chk: Object Size Checking.
  47316. (line 6)
  47317. * __builtin___vsprintf_chk: Object Size Checking.
  47318. (line 6)
  47319. * '__complex__' keyword: Complex. (line 6)
  47320. * '__declspec(dllexport)': Microsoft Windows Function Attributes.
  47321. (line 10)
  47322. * '__declspec(dllimport)': Microsoft Windows Function Attributes.
  47323. (line 42)
  47324. * '__ea' SPU Named Address Spaces: Named Address Spaces.
  47325. (line 159)
  47326. * __extension__: Alternate Keywords. (line 30)
  47327. * '__far' M32C Named Address Spaces: Named Address Spaces.
  47328. (line 142)
  47329. * '__far' RL78 Named Address Spaces: Named Address Spaces.
  47330. (line 151)
  47331. * '__flash' AVR Named Address Spaces: Named Address Spaces.
  47332. (line 31)
  47333. * '__flash1' AVR Named Address Spaces: Named Address Spaces.
  47334. (line 40)
  47335. * '__flash2' AVR Named Address Spaces: Named Address Spaces.
  47336. (line 40)
  47337. * '__flash3' AVR Named Address Spaces: Named Address Spaces.
  47338. (line 40)
  47339. * '__flash4' AVR Named Address Spaces: Named Address Spaces.
  47340. (line 40)
  47341. * '__flash5' AVR Named Address Spaces: Named Address Spaces.
  47342. (line 40)
  47343. * '__float128' data type: Floating Types. (line 6)
  47344. * '__float80' data type: Floating Types. (line 6)
  47345. * '__fp16' data type: Half-Precision. (line 6)
  47346. * '__FUNCTION__' identifier: Function Names. (line 6)
  47347. * '__func__' identifier: Function Names. (line 6)
  47348. * '__ibm128' data type: Floating Types. (line 6)
  47349. * '__imag__' keyword: Complex. (line 27)
  47350. * '__int128' data types: __int128. (line 6)
  47351. * '__memx' AVR Named Address Spaces: Named Address Spaces.
  47352. (line 46)
  47353. * '__PRETTY_FUNCTION__' identifier: Function Names. (line 6)
  47354. * '__real__' keyword: Complex. (line 27)
  47355. * '__seg_fs' x86 named address space: Named Address Spaces.
  47356. (line 177)
  47357. * '__seg_gs' x86 named address space: Named Address Spaces.
  47358. (line 177)
  47359. * __STDC_HOSTED__: Standards. (line 13)
  47360. * __sync_add_and_fetch: __sync Builtins. (line 72)
  47361. * __sync_and_and_fetch: __sync Builtins. (line 72)
  47362. * __sync_bool_compare_and_swap: __sync Builtins. (line 88)
  47363. * __sync_fetch_and_add: __sync Builtins. (line 50)
  47364. * __sync_fetch_and_and: __sync Builtins. (line 50)
  47365. * __sync_fetch_and_nand: __sync Builtins. (line 50)
  47366. * __sync_fetch_and_or: __sync Builtins. (line 50)
  47367. * __sync_fetch_and_sub: __sync Builtins. (line 50)
  47368. * __sync_fetch_and_xor: __sync Builtins. (line 50)
  47369. * __sync_lock_release: __sync Builtins. (line 118)
  47370. * __sync_lock_test_and_set: __sync Builtins. (line 100)
  47371. * __sync_nand_and_fetch: __sync Builtins. (line 72)
  47372. * __sync_or_and_fetch: __sync Builtins. (line 72)
  47373. * __sync_sub_and_fetch: __sync Builtins. (line 72)
  47374. * __sync_synchronize: __sync Builtins. (line 97)
  47375. * __sync_val_compare_and_swap: __sync Builtins. (line 88)
  47376. * __sync_xor_and_fetch: __sync Builtins. (line 72)
  47377. * '__thread': Thread-Local. (line 6)
  47378. * AArch64 Options: AArch64 Options. (line 6)
  47379. * ABI: Compatibility. (line 6)
  47380. * 'abi_tag' function attribute: C++ Attributes. (line 9)
  47381. * 'abi_tag' type attribute: C++ Attributes. (line 9)
  47382. * 'abi_tag' variable attribute: C++ Attributes. (line 9)
  47383. * abort: Other Builtins. (line 6)
  47384. * abs: Other Builtins. (line 6)
  47385. * 'absdata' variable attribute, AVR: AVR Variable Attributes.
  47386. (line 111)
  47387. * accessing volatiles: Volatiles. (line 6)
  47388. * accessing volatiles <1>: C++ Volatiles. (line 6)
  47389. * acos: Other Builtins. (line 6)
  47390. * acosf: Other Builtins. (line 6)
  47391. * acosh: Other Builtins. (line 6)
  47392. * acoshf: Other Builtins. (line 6)
  47393. * acoshl: Other Builtins. (line 6)
  47394. * acosl: Other Builtins. (line 6)
  47395. * Ada: G++ and GCC. (line 6)
  47396. * Ada <1>: G++ and GCC. (line 30)
  47397. * additional floating types: Floating Types. (line 6)
  47398. * address constraints: Simple Constraints. (line 152)
  47399. * address of a label: Labels as Values. (line 6)
  47400. * 'address' variable attribute, AVR: AVR Variable Attributes.
  47401. (line 104)
  47402. * address_operand: Simple Constraints. (line 156)
  47403. * 'alias' function attribute: Common Function Attributes.
  47404. (line 9)
  47405. * 'aligned' function attribute: Common Function Attributes.
  47406. (line 23)
  47407. * 'aligned' type attribute: Common Type Attributes.
  47408. (line 8)
  47409. * 'aligned' variable attribute: Common Variable Attributes.
  47410. (line 8)
  47411. * alignment: Alignment. (line 6)
  47412. * alloca: Other Builtins. (line 6)
  47413. * 'alloca' vs variable-length arrays: Variable Length. (line 35)
  47414. * 'alloc_align' function attribute: Common Function Attributes.
  47415. (line 43)
  47416. * 'alloc_size' function attribute: Common Function Attributes.
  47417. (line 60)
  47418. * Allow nesting in an interrupt handler on the Blackfin processor: Blackfin Function Attributes.
  47419. (line 45)
  47420. * Altera Nios II options: Nios II Options. (line 6)
  47421. * alternate keywords: Alternate Keywords. (line 6)
  47422. * 'altivec' type attribute, PowerPC: PowerPC Type Attributes.
  47423. (line 12)
  47424. * 'altivec' variable attribute, PowerPC: PowerPC Variable Attributes.
  47425. (line 12)
  47426. * 'always_inline' function attribute: Common Function Attributes.
  47427. (line 81)
  47428. * AMD1: Standards. (line 13)
  47429. * ANSI C: Standards. (line 13)
  47430. * ANSI C standard: Standards. (line 13)
  47431. * ANSI C89: Standards. (line 13)
  47432. * ANSI support: C Dialect Options. (line 10)
  47433. * ANSI X3.159-1989: Standards. (line 13)
  47434. * apostrophes: Incompatibilities. (line 116)
  47435. * application binary interface: Compatibility. (line 6)
  47436. * ARC options: ARC Options. (line 6)
  47437. * 'arch=' function attribute, AArch64: AArch64 Function Attributes.
  47438. (line 49)
  47439. * ARM options: ARM Options. (line 6)
  47440. * ARM [Annotated C++ Reference Manual]: Backwards Compatibility.
  47441. (line 6)
  47442. * arrays of length zero: Zero Length. (line 6)
  47443. * arrays of variable length: Variable Length. (line 6)
  47444. * arrays, non-lvalue: Subscripting. (line 6)
  47445. * 'artificial' function attribute: Common Function Attributes.
  47446. (line 91)
  47447. * asin: Other Builtins. (line 6)
  47448. * asinf: Other Builtins. (line 6)
  47449. * asinh: Other Builtins. (line 6)
  47450. * asinhf: Other Builtins. (line 6)
  47451. * asinhl: Other Builtins. (line 6)
  47452. * asinl: Other Builtins. (line 6)
  47453. * 'asm' assembler template: Extended Asm. (line 225)
  47454. * 'asm' clobbers: Extended Asm. (line 653)
  47455. * 'asm' constraints: Constraints. (line 6)
  47456. * 'asm' expressions: Extended Asm. (line 558)
  47457. * 'asm' flag output operands: Extended Asm. (line 487)
  47458. * 'asm' goto labels: Extended Asm. (line 722)
  47459. * 'asm inline': Size of an asm. (line 25)
  47460. * 'asm' input operands: Extended Asm. (line 558)
  47461. * 'asm' keyword: Using Assembly Language with C.
  47462. (line 6)
  47463. * 'asm' output operands: Extended Asm. (line 328)
  47464. * 'asm' volatile: Extended Asm. (line 116)
  47465. * assembler names for identifiers: Asm Labels. (line 6)
  47466. * assembly code, invalid: Bug Criteria. (line 12)
  47467. * assembly language in C: Using Assembly Language with C.
  47468. (line 6)
  47469. * assembly language in C, basic: Basic Asm. (line 6)
  47470. * assembly language in C, extended: Extended Asm. (line 6)
  47471. * 'assume_aligned' function attribute: Common Function Attributes.
  47472. (line 98)
  47473. * atan: Other Builtins. (line 6)
  47474. * atan2: Other Builtins. (line 6)
  47475. * atan2f: Other Builtins. (line 6)
  47476. * atan2l: Other Builtins. (line 6)
  47477. * atanf: Other Builtins. (line 6)
  47478. * atanh: Other Builtins. (line 6)
  47479. * atanhf: Other Builtins. (line 6)
  47480. * atanhl: Other Builtins. (line 6)
  47481. * atanl: Other Builtins. (line 6)
  47482. * attribute of types: Type Attributes. (line 6)
  47483. * attribute of variables: Variable Attributes.
  47484. (line 6)
  47485. * attribute syntax: Attribute Syntax. (line 6)
  47486. * autoincrement/decrement addressing: Simple Constraints. (line 30)
  47487. * automatic 'inline' for C++ member fns: Inline. (line 68)
  47488. * AVR Options: AVR Options. (line 6)
  47489. * Backwards Compatibility: Backwards Compatibility.
  47490. (line 6)
  47491. * 'bank_switch' function attribute, M32C: M32C Function Attributes.
  47492. (line 9)
  47493. * base class members: Name lookup. (line 6)
  47494. * 'based' type attribute, MeP: MeP Type Attributes.
  47495. (line 6)
  47496. * 'based' variable attribute, MeP: MeP Variable Attributes.
  47497. (line 16)
  47498. * basic 'asm': Basic Asm. (line 6)
  47499. * bcmp: Other Builtins. (line 6)
  47500. * 'below100' variable attribute, Xstormy16: Xstormy16 Variable Attributes.
  47501. (line 10)
  47502. * binary compatibility: Compatibility. (line 6)
  47503. * Binary constants using the '0b' prefix: Binary constants. (line 6)
  47504. * Blackfin Options: Blackfin Options. (line 6)
  47505. * 'bnd_instrument' function attribute: Common Function Attributes.
  47506. (line 113)
  47507. * 'bnd_legacy' function attribute: Common Function Attributes.
  47508. (line 118)
  47509. * 'bnd_variable_size' type attribute: Common Type Attributes.
  47510. (line 84)
  47511. * bound pointer to member function: Bound member functions.
  47512. (line 6)
  47513. * break handler functions: MicroBlaze Function Attributes.
  47514. (line 17)
  47515. * 'break_handler' function attribute, MicroBlaze: MicroBlaze Function Attributes.
  47516. (line 17)
  47517. * 'brk_interrupt' function attribute, RL78: RL78 Function Attributes.
  47518. (line 10)
  47519. * bug criteria: Bug Criteria. (line 6)
  47520. * bugs: Bugs. (line 6)
  47521. * bugs, known: Trouble. (line 6)
  47522. * built-in functions: C Dialect Options. (line 231)
  47523. * built-in functions <1>: Other Builtins. (line 6)
  47524. * bzero: Other Builtins. (line 6)
  47525. * C compilation options: Invoking GCC. (line 18)
  47526. * C intermediate output, nonexistent: G++ and GCC. (line 35)
  47527. * C language extensions: C Extensions. (line 6)
  47528. * C language, traditional: Preprocessor Options.
  47529. (line 355)
  47530. * C standard: Standards. (line 13)
  47531. * C standards: Standards. (line 13)
  47532. * c++: Invoking G++. (line 14)
  47533. * C++: G++ and GCC. (line 30)
  47534. * C++ comments: C++ Comments. (line 6)
  47535. * C++ interface and implementation headers: C++ Interface. (line 6)
  47536. * C++ language extensions: C++ Extensions. (line 6)
  47537. * C++ member fns, automatically 'inline': Inline. (line 68)
  47538. * C++ misunderstandings: C++ Misunderstandings.
  47539. (line 6)
  47540. * C++ options, command-line: C++ Dialect Options.
  47541. (line 6)
  47542. * C++ pragmas, effect on inlining: C++ Interface. (line 57)
  47543. * C++ source file suffixes: Invoking G++. (line 6)
  47544. * C++ static data, declaring and defining: Static Definitions.
  47545. (line 6)
  47546. * C11: Standards. (line 13)
  47547. * C1X: Standards. (line 13)
  47548. * C6X Options: C6X Options. (line 6)
  47549. * C89: Standards. (line 13)
  47550. * C90: Standards. (line 13)
  47551. * C94: Standards. (line 13)
  47552. * C95: Standards. (line 13)
  47553. * C99: Standards. (line 13)
  47554. * C9X: Standards. (line 13)
  47555. * cabs: Other Builtins. (line 6)
  47556. * cabsf: Other Builtins. (line 6)
  47557. * cabsl: Other Builtins. (line 6)
  47558. * cacos: Other Builtins. (line 6)
  47559. * cacosf: Other Builtins. (line 6)
  47560. * cacosh: Other Builtins. (line 6)
  47561. * cacoshf: Other Builtins. (line 6)
  47562. * cacoshl: Other Builtins. (line 6)
  47563. * cacosl: Other Builtins. (line 6)
  47564. * 'callee_pop_aggregate_return' function attribute, x86: x86 Function Attributes.
  47565. (line 47)
  47566. * calling functions through the function vector on SH2A: SH Function Attributes.
  47567. (line 9)
  47568. * calloc: Other Builtins. (line 6)
  47569. * carg: Other Builtins. (line 6)
  47570. * cargf: Other Builtins. (line 6)
  47571. * cargl: Other Builtins. (line 6)
  47572. * case labels in initializers: Designated Inits. (line 6)
  47573. * case ranges: Case Ranges. (line 6)
  47574. * casin: Other Builtins. (line 6)
  47575. * casinf: Other Builtins. (line 6)
  47576. * casinh: Other Builtins. (line 6)
  47577. * casinhf: Other Builtins. (line 6)
  47578. * casinhl: Other Builtins. (line 6)
  47579. * casinl: Other Builtins. (line 6)
  47580. * cast to a union: Cast to Union. (line 6)
  47581. * catan: Other Builtins. (line 6)
  47582. * catanf: Other Builtins. (line 6)
  47583. * catanh: Other Builtins. (line 6)
  47584. * catanhf: Other Builtins. (line 6)
  47585. * catanhl: Other Builtins. (line 6)
  47586. * catanl: Other Builtins. (line 6)
  47587. * 'cb' variable attribute, MeP: MeP Variable Attributes.
  47588. (line 46)
  47589. * cbrt: Other Builtins. (line 6)
  47590. * cbrtf: Other Builtins. (line 6)
  47591. * cbrtl: Other Builtins. (line 6)
  47592. * ccos: Other Builtins. (line 6)
  47593. * ccosf: Other Builtins. (line 6)
  47594. * ccosh: Other Builtins. (line 6)
  47595. * ccoshf: Other Builtins. (line 6)
  47596. * ccoshl: Other Builtins. (line 6)
  47597. * ccosl: Other Builtins. (line 6)
  47598. * 'cdecl' function attribute, x86-32: x86 Function Attributes.
  47599. (line 9)
  47600. * ceil: Other Builtins. (line 6)
  47601. * ceilf: Other Builtins. (line 6)
  47602. * ceill: Other Builtins. (line 6)
  47603. * cexp: Other Builtins. (line 6)
  47604. * cexpf: Other Builtins. (line 6)
  47605. * cexpl: Other Builtins. (line 6)
  47606. * character set, execution: Preprocessor Options.
  47607. (line 255)
  47608. * character set, input: Preprocessor Options.
  47609. (line 268)
  47610. * character set, input normalization: Warning Options. (line 2247)
  47611. * character set, wide execution: Preprocessor Options.
  47612. (line 260)
  47613. * cimag: Other Builtins. (line 6)
  47614. * cimagf: Other Builtins. (line 6)
  47615. * cimagl: Other Builtins. (line 6)
  47616. * 'cleanup' variable attribute: Common Variable Attributes.
  47617. (line 74)
  47618. * clog: Other Builtins. (line 6)
  47619. * clog10: Other Builtins. (line 6)
  47620. * clog10f: Other Builtins. (line 6)
  47621. * clog10l: Other Builtins. (line 6)
  47622. * clogf: Other Builtins. (line 6)
  47623. * clogl: Other Builtins. (line 6)
  47624. * 'cmodel=' function attribute, AArch64: AArch64 Function Attributes.
  47625. (line 27)
  47626. * COBOL: G++ and GCC. (line 23)
  47627. * code generation conventions: Code Gen Options. (line 6)
  47628. * code, mixed with declarations: Mixed Declarations. (line 6)
  47629. * 'cold' function attribute: Common Function Attributes.
  47630. (line 123)
  47631. * 'cold' label attribute: Label Attributes. (line 45)
  47632. * command options: Invoking GCC. (line 6)
  47633. * comments, C++ style: C++ Comments. (line 6)
  47634. * 'common' variable attribute: Common Variable Attributes.
  47635. (line 89)
  47636. * comparison of signed and unsigned values, warning: Warning Options.
  47637. (line 2047)
  47638. * compilation statistics: Developer Options. (line 6)
  47639. * compiler bugs, reporting: Bug Reporting. (line 6)
  47640. * compiler compared to C++ preprocessor: G++ and GCC. (line 35)
  47641. * compiler options, C++: C++ Dialect Options.
  47642. (line 6)
  47643. * compiler options, Objective-C and Objective-C++: Objective-C and Objective-C++ Dialect Options.
  47644. (line 6)
  47645. * compiler version, specifying: Invoking GCC. (line 24)
  47646. * COMPILER_PATH: Environment Variables.
  47647. (line 91)
  47648. * complex conjugation: Complex. (line 34)
  47649. * complex numbers: Complex. (line 6)
  47650. * compound literals: Compound Literals. (line 6)
  47651. * computed gotos: Labels as Values. (line 6)
  47652. * conditional expressions, extensions: Conditionals. (line 6)
  47653. * conflicting types: Disappointments. (line 21)
  47654. * conj: Other Builtins. (line 6)
  47655. * conjf: Other Builtins. (line 6)
  47656. * conjl: Other Builtins. (line 6)
  47657. * 'const' applied to function: Function Attributes.
  47658. (line 6)
  47659. * 'const' function attribute: Common Function Attributes.
  47660. (line 139)
  47661. * const qualifier: Pointers to Arrays. (line 6)
  47662. * constants in constraints: Simple Constraints. (line 68)
  47663. * constraint modifier characters: Modifiers. (line 6)
  47664. * constraint, matching: Simple Constraints. (line 137)
  47665. * constraints, 'asm': Constraints. (line 6)
  47666. * constraints, machine specific: Machine Constraints.
  47667. (line 6)
  47668. * constructing calls: Constructing Calls. (line 6)
  47669. * constructor expressions: Compound Literals. (line 6)
  47670. * 'constructor' function attribute: Common Function Attributes.
  47671. (line 154)
  47672. * contributors: Contributors. (line 6)
  47673. * copysign: Other Builtins. (line 6)
  47674. * copysignf: Other Builtins. (line 6)
  47675. * copysignl: Other Builtins. (line 6)
  47676. * core dump: Bug Criteria. (line 9)
  47677. * cos: Other Builtins. (line 6)
  47678. * cosf: Other Builtins. (line 6)
  47679. * cosh: Other Builtins. (line 6)
  47680. * coshf: Other Builtins. (line 6)
  47681. * coshl: Other Builtins. (line 6)
  47682. * cosl: Other Builtins. (line 6)
  47683. * CPATH: Environment Variables.
  47684. (line 127)
  47685. * CPLUS_INCLUDE_PATH: Environment Variables.
  47686. (line 129)
  47687. * cpow: Other Builtins. (line 6)
  47688. * cpowf: Other Builtins. (line 6)
  47689. * cpowl: Other Builtins. (line 6)
  47690. * cproj: Other Builtins. (line 6)
  47691. * cprojf: Other Builtins. (line 6)
  47692. * cprojl: Other Builtins. (line 6)
  47693. * 'cpu=' function attribute, AArch64: AArch64 Function Attributes.
  47694. (line 59)
  47695. * CR16 Options: CR16 Options. (line 6)
  47696. * creal: Other Builtins. (line 6)
  47697. * crealf: Other Builtins. (line 6)
  47698. * creall: Other Builtins. (line 6)
  47699. * CRIS Options: CRIS Options. (line 6)
  47700. * 'critical' function attribute, MSP430: MSP430 Function Attributes.
  47701. (line 9)
  47702. * cross compiling: Invoking GCC. (line 24)
  47703. * csin: Other Builtins. (line 6)
  47704. * csinf: Other Builtins. (line 6)
  47705. * csinh: Other Builtins. (line 6)
  47706. * csinhf: Other Builtins. (line 6)
  47707. * csinhl: Other Builtins. (line 6)
  47708. * csinl: Other Builtins. (line 6)
  47709. * csqrt: Other Builtins. (line 6)
  47710. * csqrtf: Other Builtins. (line 6)
  47711. * csqrtl: Other Builtins. (line 6)
  47712. * ctan: Other Builtins. (line 6)
  47713. * ctanf: Other Builtins. (line 6)
  47714. * ctanh: Other Builtins. (line 6)
  47715. * ctanhf: Other Builtins. (line 6)
  47716. * ctanhl: Other Builtins. (line 6)
  47717. * ctanl: Other Builtins. (line 6)
  47718. * C_INCLUDE_PATH: Environment Variables.
  47719. (line 128)
  47720. * Darwin options: Darwin Options. (line 6)
  47721. * dcgettext: Other Builtins. (line 6)
  47722. * 'dd' integer suffix: Decimal Float. (line 6)
  47723. * 'DD' integer suffix: Decimal Float. (line 6)
  47724. * deallocating variable length arrays: Variable Length. (line 22)
  47725. * debug dump options: Developer Options. (line 6)
  47726. * debugging GCC: Developer Options. (line 6)
  47727. * debugging information options: Debugging Options. (line 6)
  47728. * decimal floating types: Decimal Float. (line 6)
  47729. * declaration scope: Incompatibilities. (line 80)
  47730. * declarations inside expressions: Statement Exprs. (line 6)
  47731. * declarations, mixed with code: Mixed Declarations. (line 6)
  47732. * declaring attributes of functions: Function Attributes.
  47733. (line 6)
  47734. * declaring static data in C++: Static Definitions. (line 6)
  47735. * defining static data in C++: Static Definitions. (line 6)
  47736. * dependencies for make as output: Environment Variables.
  47737. (line 155)
  47738. * dependencies for make as output <1>: Environment Variables.
  47739. (line 171)
  47740. * dependencies, 'make': Preprocessor Options.
  47741. (line 77)
  47742. * DEPENDENCIES_OUTPUT: Environment Variables.
  47743. (line 154)
  47744. * dependent name lookup: Name lookup. (line 6)
  47745. * 'deprecated' enumerator attribute: Enumerator Attributes.
  47746. (line 28)
  47747. * 'deprecated' function attribute: Common Function Attributes.
  47748. (line 178)
  47749. * 'deprecated' type attribute: Common Type Attributes.
  47750. (line 111)
  47751. * 'deprecated' variable attribute: Common Variable Attributes.
  47752. (line 98)
  47753. * designated initializers: Designated Inits. (line 6)
  47754. * 'designated_init' type attribute: Common Type Attributes.
  47755. (line 139)
  47756. * designator lists: Designated Inits. (line 96)
  47757. * designators: Designated Inits. (line 64)
  47758. * 'destructor' function attribute: Common Function Attributes.
  47759. (line 154)
  47760. * developer options: Developer Options. (line 6)
  47761. * 'df' integer suffix: Decimal Float. (line 6)
  47762. * 'DF' integer suffix: Decimal Float. (line 6)
  47763. * dgettext: Other Builtins. (line 6)
  47764. * diagnostic messages: Diagnostic Message Formatting Options.
  47765. (line 6)
  47766. * dialect options: C Dialect Options. (line 6)
  47767. * diff-delete GCC_COLORS capability: Diagnostic Message Formatting Options.
  47768. (line 107)
  47769. * diff-filename GCC_COLORS capability: Diagnostic Message Formatting Options.
  47770. (line 100)
  47771. * diff-hunk GCC_COLORS capability: Diagnostic Message Formatting Options.
  47772. (line 103)
  47773. * diff-insert GCC_COLORS capability: Diagnostic Message Formatting Options.
  47774. (line 110)
  47775. * digits in constraint: Simple Constraints. (line 125)
  47776. * directory options: Directory Options. (line 6)
  47777. * 'disinterrupt' function attribute, Epiphany: Epiphany Function Attributes.
  47778. (line 9)
  47779. * 'disinterrupt' function attribute, MeP: MeP Function Attributes.
  47780. (line 9)
  47781. * 'dl' integer suffix: Decimal Float. (line 6)
  47782. * 'DL' integer suffix: Decimal Float. (line 6)
  47783. * 'dllexport' function attribute: Microsoft Windows Function Attributes.
  47784. (line 10)
  47785. * 'dllexport' variable attribute: Microsoft Windows Variable Attributes.
  47786. (line 12)
  47787. * 'dllimport' function attribute: Microsoft Windows Function Attributes.
  47788. (line 42)
  47789. * 'dllimport' variable attribute: Microsoft Windows Variable Attributes.
  47790. (line 12)
  47791. * dollar signs in identifier names: Dollar Signs. (line 6)
  47792. * double-word arithmetic: Long Long. (line 6)
  47793. * downward funargs: Nested Functions. (line 6)
  47794. * drem: Other Builtins. (line 6)
  47795. * dremf: Other Builtins. (line 6)
  47796. * dreml: Other Builtins. (line 6)
  47797. * dump options: Developer Options. (line 6)
  47798. * 'E' in constraint: Simple Constraints. (line 87)
  47799. * earlyclobber operand: Modifiers. (line 25)
  47800. * eight-bit data on the H8/300, H8/300H, and H8S: H8/300 Variable Attributes.
  47801. (line 9)
  47802. * 'eightbit_data' variable attribute, H8/300: H8/300 Variable Attributes.
  47803. (line 9)
  47804. * 'EIND': AVR Options. (line 260)
  47805. * 'either' function attribute, MSP430: MSP430 Function Attributes.
  47806. (line 53)
  47807. * 'either' variable attribute, MSP430: MSP430 Variable Attributes.
  47808. (line 24)
  47809. * empty structures: Empty Structures. (line 6)
  47810. * Enable Cilk Plus: C Dialect Options. (line 318)
  47811. * Enumerator Attributes: Enumerator Attributes.
  47812. (line 6)
  47813. * environment variables: Environment Variables.
  47814. (line 6)
  47815. * erf: Other Builtins. (line 6)
  47816. * erfc: Other Builtins. (line 6)
  47817. * erfcf: Other Builtins. (line 6)
  47818. * erfcl: Other Builtins. (line 6)
  47819. * erff: Other Builtins. (line 6)
  47820. * erfl: Other Builtins. (line 6)
  47821. * 'error' function attribute: Common Function Attributes.
  47822. (line 199)
  47823. * error GCC_COLORS capability: Diagnostic Message Formatting Options.
  47824. (line 71)
  47825. * error messages: Warnings and Errors.
  47826. (line 6)
  47827. * escaped newlines: Escaped Newlines. (line 6)
  47828. * 'exception' function attribute: NDS32 Function Attributes.
  47829. (line 9)
  47830. * exception handler functions, Blackfin: Blackfin Function Attributes.
  47831. (line 9)
  47832. * exception handler functions, NDS32: NDS32 Function Attributes.
  47833. (line 9)
  47834. * 'exception_handler' function attribute: Blackfin Function Attributes.
  47835. (line 9)
  47836. * exit: Other Builtins. (line 6)
  47837. * exp: Other Builtins. (line 6)
  47838. * exp10: Other Builtins. (line 6)
  47839. * exp10f: Other Builtins. (line 6)
  47840. * exp10l: Other Builtins. (line 6)
  47841. * exp2: Other Builtins. (line 6)
  47842. * exp2f: Other Builtins. (line 6)
  47843. * exp2l: Other Builtins. (line 6)
  47844. * expf: Other Builtins. (line 6)
  47845. * expl: Other Builtins. (line 6)
  47846. * explicit register variables: Explicit Register Variables.
  47847. (line 6)
  47848. * expm1: Other Builtins. (line 6)
  47849. * expm1f: Other Builtins. (line 6)
  47850. * expm1l: Other Builtins. (line 6)
  47851. * expressions containing statements: Statement Exprs. (line 6)
  47852. * expressions, constructor: Compound Literals. (line 6)
  47853. * extended 'asm': Extended Asm. (line 6)
  47854. * extensible constraints: Simple Constraints. (line 161)
  47855. * extensions, '?:': Conditionals. (line 6)
  47856. * extensions, C language: C Extensions. (line 6)
  47857. * extensions, C++ language: C++ Extensions. (line 6)
  47858. * external declaration scope: Incompatibilities. (line 80)
  47859. * 'externally_visible' function attribute: Common Function Attributes.
  47860. (line 216)
  47861. * 'F' in constraint: Simple Constraints. (line 92)
  47862. * fabs: Other Builtins. (line 6)
  47863. * fabsf: Other Builtins. (line 6)
  47864. * fabsl: Other Builtins. (line 6)
  47865. * 'fallthrough' statement attribute: Statement Attributes.
  47866. (line 26)
  47867. * 'far' function attribute, MeP: MeP Function Attributes.
  47868. (line 25)
  47869. * 'far' function attribute, MIPS: MIPS Function Attributes.
  47870. (line 62)
  47871. * 'far' type attribute, MeP: MeP Type Attributes.
  47872. (line 6)
  47873. * 'far' variable attribute, MeP: MeP Variable Attributes.
  47874. (line 30)
  47875. * 'fastcall' function attribute, x86-32: x86 Function Attributes.
  47876. (line 15)
  47877. * 'fast_interrupt' function attribute, M32C: M32C Function Attributes.
  47878. (line 14)
  47879. * 'fast_interrupt' function attribute, MicroBlaze: MicroBlaze Function Attributes.
  47880. (line 27)
  47881. * 'fast_interrupt' function attribute, RX: RX Function Attributes.
  47882. (line 9)
  47883. * fatal signal: Bug Criteria. (line 9)
  47884. * fdim: Other Builtins. (line 6)
  47885. * fdimf: Other Builtins. (line 6)
  47886. * fdiml: Other Builtins. (line 6)
  47887. * FDL, GNU Free Documentation License: GNU Free Documentation License.
  47888. (line 6)
  47889. * ffs: Other Builtins. (line 6)
  47890. * file name suffix: Overall Options. (line 14)
  47891. * file names: Link Options. (line 10)
  47892. * 'fix-cortex-a53-835769' function attribute, AArch64: AArch64 Function Attributes.
  47893. (line 19)
  47894. * fixed-point types: Fixed-Point. (line 6)
  47895. * fixit-delete GCC_COLORS capability: Diagnostic Message Formatting Options.
  47896. (line 97)
  47897. * fixit-insert GCC_COLORS capability: Diagnostic Message Formatting Options.
  47898. (line 93)
  47899. * 'flatten' function attribute: Common Function Attributes.
  47900. (line 229)
  47901. * flexible array members: Zero Length. (line 6)
  47902. * 'float' as function value type: Incompatibilities. (line 141)
  47903. * floating point precision: Disappointments. (line 68)
  47904. * floating-point precision: Optimize Options. (line 1993)
  47905. * floor: Other Builtins. (line 6)
  47906. * floorf: Other Builtins. (line 6)
  47907. * floorl: Other Builtins. (line 6)
  47908. * fma: Other Builtins. (line 6)
  47909. * fmaf: Other Builtins. (line 6)
  47910. * fmal: Other Builtins. (line 6)
  47911. * fmax: Other Builtins. (line 6)
  47912. * fmaxf: Other Builtins. (line 6)
  47913. * fmaxl: Other Builtins. (line 6)
  47914. * fmin: Other Builtins. (line 6)
  47915. * fminf: Other Builtins. (line 6)
  47916. * fminl: Other Builtins. (line 6)
  47917. * fmod: Other Builtins. (line 6)
  47918. * fmodf: Other Builtins. (line 6)
  47919. * fmodl: Other Builtins. (line 6)
  47920. * 'force_align_arg_pointer' function attribute, x86: x86 Function Attributes.
  47921. (line 90)
  47922. * 'format' function attribute: Common Function Attributes.
  47923. (line 236)
  47924. * 'format_arg' function attribute: Common Function Attributes.
  47925. (line 301)
  47926. * Fortran: G++ and GCC. (line 6)
  47927. * 'forwarder_section' function attribute, Epiphany: Epiphany Function Attributes.
  47928. (line 13)
  47929. * forwarding calls: Constructing Calls. (line 6)
  47930. * fprintf: Other Builtins. (line 6)
  47931. * fprintf_unlocked: Other Builtins. (line 6)
  47932. * fputs: Other Builtins. (line 6)
  47933. * fputs_unlocked: Other Builtins. (line 6)
  47934. * FR30 Options: FR30 Options. (line 6)
  47935. * freestanding environment: Standards. (line 13)
  47936. * freestanding implementation: Standards. (line 13)
  47937. * frexp: Other Builtins. (line 6)
  47938. * frexpf: Other Builtins. (line 6)
  47939. * frexpl: Other Builtins. (line 6)
  47940. * FRV Options: FRV Options. (line 6)
  47941. * fscanf: Other Builtins. (line 6)
  47942. * 'fscanf', and constant strings: Incompatibilities. (line 17)
  47943. * FT32 Options: FT32 Options. (line 6)
  47944. * function addressability on the M32R/D: M32R/D Function Attributes.
  47945. (line 15)
  47946. * function attributes: Function Attributes.
  47947. (line 6)
  47948. * function pointers, arithmetic: Pointer Arith. (line 6)
  47949. * function prototype declarations: Function Prototypes.
  47950. (line 6)
  47951. * function versions: Function Multiversioning.
  47952. (line 6)
  47953. * function, size of pointer to: Pointer Arith. (line 6)
  47954. * functions in arbitrary sections: Common Function Attributes.
  47955. (line 699)
  47956. * functions that are dynamically resolved: Common Function Attributes.
  47957. (line 393)
  47958. * functions that are passed arguments in registers on x86-32: x86 Function Attributes.
  47959. (line 66)
  47960. * functions that behave like malloc: Common Function Attributes.
  47961. (line 478)
  47962. * functions that have no side effects: Common Function Attributes.
  47963. (line 139)
  47964. * functions that have no side effects <1>: Common Function Attributes.
  47965. (line 661)
  47966. * functions that never return: Common Function Attributes.
  47967. (line 608)
  47968. * functions that pop the argument stack on x86-32: x86 Function Attributes.
  47969. (line 9)
  47970. * functions that pop the argument stack on x86-32 <1>: x86 Function Attributes.
  47971. (line 15)
  47972. * functions that pop the argument stack on x86-32 <2>: x86 Function Attributes.
  47973. (line 23)
  47974. * functions that pop the argument stack on x86-32 <3>: x86 Function Attributes.
  47975. (line 98)
  47976. * functions that return more than once: Common Function Attributes.
  47977. (line 690)
  47978. * functions with non-null pointer arguments: Common Function Attributes.
  47979. (line 560)
  47980. * functions with 'printf', 'scanf', 'strftime' or 'strfmon' style arguments: Common Function Attributes.
  47981. (line 236)
  47982. * 'function_return' function attribute, x86: x86 Function Attributes.
  47983. (line 303)
  47984. * 'function_vector' function attribute, H8/300: H8/300 Function Attributes.
  47985. (line 9)
  47986. * 'function_vector' function attribute, M16C/M32C: M32C Function Attributes.
  47987. (line 20)
  47988. * 'function_vector' function attribute, SH: SH Function Attributes.
  47989. (line 9)
  47990. * 'G' in constraint: Simple Constraints. (line 96)
  47991. * 'g' in constraint: Simple Constraints. (line 118)
  47992. * g++: Invoking G++. (line 14)
  47993. * G++: G++ and GCC. (line 30)
  47994. * gamma: Other Builtins. (line 6)
  47995. * gammaf: Other Builtins. (line 6)
  47996. * gammaf_r: Other Builtins. (line 6)
  47997. * gammal: Other Builtins. (line 6)
  47998. * gammal_r: Other Builtins. (line 6)
  47999. * gamma_r: Other Builtins. (line 6)
  48000. * GCC: G++ and GCC. (line 6)
  48001. * GCC command options: Invoking GCC. (line 6)
  48002. * GCC_COLORS environment variable: Diagnostic Message Formatting Options.
  48003. (line 35)
  48004. * GCC_COMPARE_DEBUG: Environment Variables.
  48005. (line 52)
  48006. * GCC_EXEC_PREFIX: Environment Variables.
  48007. (line 57)
  48008. * 'gcc_struct' type attribute, PowerPC: PowerPC Type Attributes.
  48009. (line 9)
  48010. * 'gcc_struct' type attribute, x86: x86 Type Attributes.
  48011. (line 11)
  48012. * 'gcc_struct' variable attribute, PowerPC: PowerPC Variable Attributes.
  48013. (line 9)
  48014. * 'gcc_struct' variable attribute, x86: x86 Variable Attributes.
  48015. (line 11)
  48016. * 'gcov': Instrumentation Options.
  48017. (line 50)
  48018. * 'general-regs-only' function attribute, AArch64: AArch64 Function Attributes.
  48019. (line 12)
  48020. * gettext: Other Builtins. (line 6)
  48021. * global offset table: Code Gen Options. (line 349)
  48022. * global register after 'longjmp': Global Register Variables.
  48023. (line 74)
  48024. * global register variables: Global Register Variables.
  48025. (line 6)
  48026. * GNAT: G++ and GCC. (line 30)
  48027. * GNU C Compiler: G++ and GCC. (line 6)
  48028. * GNU Compiler Collection: G++ and GCC. (line 6)
  48029. * 'gnu_inline' function attribute: Common Function Attributes.
  48030. (line 347)
  48031. * Go: G++ and GCC. (line 6)
  48032. * goto with computed label: Labels as Values. (line 6)
  48033. * 'gprof': Instrumentation Options.
  48034. (line 24)
  48035. * grouping options: Invoking GCC. (line 31)
  48036. * 'H' in constraint: Simple Constraints. (line 96)
  48037. * half-precision floating point: Half-Precision. (line 6)
  48038. * hardware models and configurations, specifying: Submodel Options.
  48039. (line 6)
  48040. * hex floats: Hex Floats. (line 6)
  48041. * highlight, color: Diagnostic Message Formatting Options.
  48042. (line 35)
  48043. * 'hk' fixed-suffix: Fixed-Point. (line 6)
  48044. * 'HK' fixed-suffix: Fixed-Point. (line 6)
  48045. * hosted environment: Standards. (line 13)
  48046. * hosted environment <1>: C Dialect Options. (line 271)
  48047. * hosted environment <2>: C Dialect Options. (line 279)
  48048. * hosted implementation: Standards. (line 13)
  48049. * 'hot' function attribute: Common Function Attributes.
  48050. (line 383)
  48051. * 'hot' label attribute: Label Attributes. (line 38)
  48052. * 'hotpatch' function attribute, S/390: S/390 Function Attributes.
  48053. (line 9)
  48054. * HPPA Options: HPPA Options. (line 6)
  48055. * 'hr' fixed-suffix: Fixed-Point. (line 6)
  48056. * 'HR' fixed-suffix: Fixed-Point. (line 6)
  48057. * hypot: Other Builtins. (line 6)
  48058. * hypotf: Other Builtins. (line 6)
  48059. * hypotl: Other Builtins. (line 6)
  48060. * 'i' in constraint: Simple Constraints. (line 68)
  48061. * 'I' in constraint: Simple Constraints. (line 79)
  48062. * IA-64 Options: IA-64 Options. (line 6)
  48063. * IBM RS/6000 and PowerPC Options: RS/6000 and PowerPC Options.
  48064. (line 6)
  48065. * identifier names, dollar signs in: Dollar Signs. (line 6)
  48066. * identifiers, names in assembler code: Asm Labels. (line 6)
  48067. * 'ifunc' function attribute: Common Function Attributes.
  48068. (line 393)
  48069. * ilogb: Other Builtins. (line 6)
  48070. * ilogbf: Other Builtins. (line 6)
  48071. * ilogbl: Other Builtins. (line 6)
  48072. * imaxabs: Other Builtins. (line 6)
  48073. * implementation-defined behavior, C language: C Implementation.
  48074. (line 6)
  48075. * implementation-defined behavior, C++ language: C++ Implementation.
  48076. (line 6)
  48077. * implied '#pragma implementation': C++ Interface. (line 43)
  48078. * incompatibilities of GCC: Incompatibilities. (line 6)
  48079. * increment operators: Bug Criteria. (line 17)
  48080. * index: Other Builtins. (line 6)
  48081. * indirect calls, ARC: ARC Function Attributes.
  48082. (line 24)
  48083. * indirect calls, ARM: ARM Function Attributes.
  48084. (line 31)
  48085. * indirect calls, Blackfin: Blackfin Function Attributes.
  48086. (line 38)
  48087. * indirect calls, Epiphany: Epiphany Function Attributes.
  48088. (line 59)
  48089. * indirect calls, MIPS: MIPS Function Attributes.
  48090. (line 62)
  48091. * indirect calls, PowerPC: PowerPC Function Attributes.
  48092. (line 10)
  48093. * indirect functions: Common Function Attributes.
  48094. (line 393)
  48095. * 'indirect_branch' function attribute, x86: x86 Function Attributes.
  48096. (line 293)
  48097. * initializations in expressions: Compound Literals. (line 6)
  48098. * initializers with labeled elements: Designated Inits. (line 6)
  48099. * initializers, non-constant: Initializers. (line 6)
  48100. * 'init_priority' variable attribute: C++ Attributes. (line 50)
  48101. * inline assembly language: Using Assembly Language with C.
  48102. (line 6)
  48103. * 'inline' automatic for C++ member fns: Inline. (line 68)
  48104. * inline functions: Inline. (line 6)
  48105. * inline functions, omission of: Inline. (line 51)
  48106. * inlining and C++ pragmas: C++ Interface. (line 57)
  48107. * installation trouble: Trouble. (line 6)
  48108. * instrumentation options: Instrumentation Options.
  48109. (line 6)
  48110. * integrating function code: Inline. (line 6)
  48111. * interface and implementation headers, C++: C++ Interface. (line 6)
  48112. * intermediate C version, nonexistent: G++ and GCC. (line 35)
  48113. * 'interrupt' function attribute, ARC: ARC Function Attributes.
  48114. (line 9)
  48115. * 'interrupt' function attribute, ARM: ARM Function Attributes.
  48116. (line 9)
  48117. * 'interrupt' function attribute, AVR: AVR Function Attributes.
  48118. (line 9)
  48119. * 'interrupt' function attribute, CR16: CR16 Function Attributes.
  48120. (line 9)
  48121. * 'interrupt' function attribute, Epiphany: Epiphany Function Attributes.
  48122. (line 20)
  48123. * 'interrupt' function attribute, M32C: M32C Function Attributes.
  48124. (line 53)
  48125. * 'interrupt' function attribute, M32R/D: M32R/D Function Attributes.
  48126. (line 9)
  48127. * 'interrupt' function attribute, m68k: m68k Function Attributes.
  48128. (line 10)
  48129. * 'interrupt' function attribute, MeP: MeP Function Attributes.
  48130. (line 14)
  48131. * 'interrupt' function attribute, MIPS: MIPS Function Attributes.
  48132. (line 9)
  48133. * 'interrupt' function attribute, MSP430: MSP430 Function Attributes.
  48134. (line 15)
  48135. * 'interrupt' function attribute, NDS32: NDS32 Function Attributes.
  48136. (line 14)
  48137. * 'interrupt' function attribute, RL78: RL78 Function Attributes.
  48138. (line 10)
  48139. * 'interrupt' function attribute, RX: RX Function Attributes.
  48140. (line 15)
  48141. * 'interrupt' function attribute, V850: V850 Function Attributes.
  48142. (line 10)
  48143. * 'interrupt' function attribute, Visium: Visium Function Attributes.
  48144. (line 9)
  48145. * 'interrupt' function attribute, x86: x86 Function Attributes.
  48146. (line 114)
  48147. * 'interrupt' function attribute, Xstormy16: Xstormy16 Function Attributes.
  48148. (line 9)
  48149. * 'interrupt_handler' function attribute, Blackfin: Blackfin Function Attributes.
  48150. (line 15)
  48151. * 'interrupt_handler' function attribute, H8/300: H8/300 Function Attributes.
  48152. (line 17)
  48153. * 'interrupt_handler' function attribute, m68k: m68k Function Attributes.
  48154. (line 10)
  48155. * 'interrupt_handler' function attribute, MicroBlaze: MicroBlaze Function Attributes.
  48156. (line 27)
  48157. * 'interrupt_handler' function attribute, SH: SH Function Attributes.
  48158. (line 28)
  48159. * 'interrupt_handler' function attribute, V850: V850 Function Attributes.
  48160. (line 10)
  48161. * 'interrupt_thread' function attribute, fido: m68k Function Attributes.
  48162. (line 16)
  48163. * introduction: Top. (line 6)
  48164. * invalid assembly code: Bug Criteria. (line 12)
  48165. * invalid input: Bug Criteria. (line 42)
  48166. * invoking 'g++': Invoking G++. (line 22)
  48167. * 'io' variable attribute, AVR: AVR Variable Attributes.
  48168. (line 80)
  48169. * 'io' variable attribute, MeP: MeP Variable Attributes.
  48170. (line 36)
  48171. * 'io_low' variable attribute, AVR: AVR Variable Attributes.
  48172. (line 98)
  48173. * isalnum: Other Builtins. (line 6)
  48174. * isalpha: Other Builtins. (line 6)
  48175. * isascii: Other Builtins. (line 6)
  48176. * isblank: Other Builtins. (line 6)
  48177. * iscntrl: Other Builtins. (line 6)
  48178. * isdigit: Other Builtins. (line 6)
  48179. * isgraph: Other Builtins. (line 6)
  48180. * islower: Other Builtins. (line 6)
  48181. * ISO 9899: Standards. (line 13)
  48182. * ISO C: Standards. (line 13)
  48183. * ISO C standard: Standards. (line 13)
  48184. * ISO C11: Standards. (line 13)
  48185. * ISO C1X: Standards. (line 13)
  48186. * ISO C90: Standards. (line 13)
  48187. * ISO C94: Standards. (line 13)
  48188. * ISO C95: Standards. (line 13)
  48189. * ISO C99: Standards. (line 13)
  48190. * ISO C9X: Standards. (line 13)
  48191. * ISO support: C Dialect Options. (line 10)
  48192. * ISO/IEC 9899: Standards. (line 13)
  48193. * isprint: Other Builtins. (line 6)
  48194. * ispunct: Other Builtins. (line 6)
  48195. * 'isr' function attribute, ARM: ARM Function Attributes.
  48196. (line 26)
  48197. * isspace: Other Builtins. (line 6)
  48198. * isupper: Other Builtins. (line 6)
  48199. * iswalnum: Other Builtins. (line 6)
  48200. * iswalpha: Other Builtins. (line 6)
  48201. * iswblank: Other Builtins. (line 6)
  48202. * iswcntrl: Other Builtins. (line 6)
  48203. * iswdigit: Other Builtins. (line 6)
  48204. * iswgraph: Other Builtins. (line 6)
  48205. * iswlower: Other Builtins. (line 6)
  48206. * iswprint: Other Builtins. (line 6)
  48207. * iswpunct: Other Builtins. (line 6)
  48208. * iswspace: Other Builtins. (line 6)
  48209. * iswupper: Other Builtins. (line 6)
  48210. * iswxdigit: Other Builtins. (line 6)
  48211. * isxdigit: Other Builtins. (line 6)
  48212. * j0: Other Builtins. (line 6)
  48213. * j0f: Other Builtins. (line 6)
  48214. * j0l: Other Builtins. (line 6)
  48215. * j1: Other Builtins. (line 6)
  48216. * j1f: Other Builtins. (line 6)
  48217. * j1l: Other Builtins. (line 6)
  48218. * jn: Other Builtins. (line 6)
  48219. * jnf: Other Builtins. (line 6)
  48220. * jnl: Other Builtins. (line 6)
  48221. * 'k' fixed-suffix: Fixed-Point. (line 6)
  48222. * 'K' fixed-suffix: Fixed-Point. (line 6)
  48223. * 'keep_interrupts_masked' function attribute, MIPS: MIPS Function Attributes.
  48224. (line 34)
  48225. * 'kernel' attribute, Nvidia PTX: Nvidia PTX Function Attributes.
  48226. (line 9)
  48227. * keywords, alternate: Alternate Keywords. (line 6)
  48228. * known causes of trouble: Trouble. (line 6)
  48229. * 'kspisusp' function attribute, Blackfin: Blackfin Function Attributes.
  48230. (line 21)
  48231. * 'l1_data' variable attribute, Blackfin: Blackfin Variable Attributes.
  48232. (line 11)
  48233. * 'l1_data_A' variable attribute, Blackfin: Blackfin Variable Attributes.
  48234. (line 11)
  48235. * 'l1_data_B' variable attribute, Blackfin: Blackfin Variable Attributes.
  48236. (line 11)
  48237. * 'l1_text' function attribute, Blackfin: Blackfin Function Attributes.
  48238. (line 26)
  48239. * 'l2' function attribute, Blackfin: Blackfin Function Attributes.
  48240. (line 32)
  48241. * 'l2' variable attribute, Blackfin: Blackfin Variable Attributes.
  48242. (line 19)
  48243. * Label Attributes: Label Attributes. (line 6)
  48244. * labeled elements in initializers: Designated Inits. (line 6)
  48245. * labels as values: Labels as Values. (line 6)
  48246. * labs: Other Builtins. (line 6)
  48247. * LANG: Environment Variables.
  48248. (line 21)
  48249. * LANG <1>: Environment Variables.
  48250. (line 106)
  48251. * language dialect options: C Dialect Options. (line 6)
  48252. * LC_ALL: Environment Variables.
  48253. (line 21)
  48254. * LC_CTYPE: Environment Variables.
  48255. (line 21)
  48256. * LC_MESSAGES: Environment Variables.
  48257. (line 21)
  48258. * ldexp: Other Builtins. (line 6)
  48259. * ldexpf: Other Builtins. (line 6)
  48260. * ldexpl: Other Builtins. (line 6)
  48261. * 'leaf' function attribute: Common Function Attributes.
  48262. (line 441)
  48263. * length-zero arrays: Zero Length. (line 6)
  48264. * lgamma: Other Builtins. (line 6)
  48265. * lgammaf: Other Builtins. (line 6)
  48266. * lgammaf_r: Other Builtins. (line 6)
  48267. * lgammal: Other Builtins. (line 6)
  48268. * lgammal_r: Other Builtins. (line 6)
  48269. * lgamma_r: Other Builtins. (line 6)
  48270. * Libraries: Link Options. (line 30)
  48271. * LIBRARY_PATH: Environment Variables.
  48272. (line 97)
  48273. * link options: Link Options. (line 6)
  48274. * linker script: Link Options. (line 247)
  48275. * 'lk' fixed-suffix: Fixed-Point. (line 6)
  48276. * 'LK' fixed-suffix: Fixed-Point. (line 6)
  48277. * 'LL' integer suffix: Long Long. (line 6)
  48278. * llabs: Other Builtins. (line 6)
  48279. * 'llk' fixed-suffix: Fixed-Point. (line 6)
  48280. * 'LLK' fixed-suffix: Fixed-Point. (line 6)
  48281. * 'llr' fixed-suffix: Fixed-Point. (line 6)
  48282. * 'LLR' fixed-suffix: Fixed-Point. (line 6)
  48283. * llrint: Other Builtins. (line 6)
  48284. * llrintf: Other Builtins. (line 6)
  48285. * llrintl: Other Builtins. (line 6)
  48286. * llround: Other Builtins. (line 6)
  48287. * llroundf: Other Builtins. (line 6)
  48288. * llroundl: Other Builtins. (line 6)
  48289. * LM32 options: LM32 Options. (line 6)
  48290. * load address instruction: Simple Constraints. (line 152)
  48291. * local labels: Local Labels. (line 6)
  48292. * local variables in macros: Typeof. (line 46)
  48293. * local variables, specifying registers: Local Register Variables.
  48294. (line 6)
  48295. * locale: Environment Variables.
  48296. (line 21)
  48297. * locale definition: Environment Variables.
  48298. (line 106)
  48299. * locus GCC_COLORS capability: Diagnostic Message Formatting Options.
  48300. (line 86)
  48301. * log: Other Builtins. (line 6)
  48302. * log10: Other Builtins. (line 6)
  48303. * log10f: Other Builtins. (line 6)
  48304. * log10l: Other Builtins. (line 6)
  48305. * log1p: Other Builtins. (line 6)
  48306. * log1pf: Other Builtins. (line 6)
  48307. * log1pl: Other Builtins. (line 6)
  48308. * log2: Other Builtins. (line 6)
  48309. * log2f: Other Builtins. (line 6)
  48310. * log2l: Other Builtins. (line 6)
  48311. * logb: Other Builtins. (line 6)
  48312. * logbf: Other Builtins. (line 6)
  48313. * logbl: Other Builtins. (line 6)
  48314. * logf: Other Builtins. (line 6)
  48315. * logl: Other Builtins. (line 6)
  48316. * 'long long' data types: Long Long. (line 6)
  48317. * 'longcall' function attribute, Blackfin: Blackfin Function Attributes.
  48318. (line 38)
  48319. * 'longcall' function attribute, PowerPC: PowerPC Function Attributes.
  48320. (line 10)
  48321. * longjmp: Global Register Variables.
  48322. (line 74)
  48323. * 'longjmp' incompatibilities: Incompatibilities. (line 39)
  48324. * 'longjmp' warnings: Warning Options. (line 1063)
  48325. * 'long_call' function attribute, ARC: ARC Function Attributes.
  48326. (line 24)
  48327. * 'long_call' function attribute, ARM: ARM Function Attributes.
  48328. (line 31)
  48329. * 'long_call' function attribute, Epiphany: Epiphany Function Attributes.
  48330. (line 59)
  48331. * 'long_call' function attribute, MIPS: MIPS Function Attributes.
  48332. (line 62)
  48333. * 'lower' function attribute, MSP430: MSP430 Function Attributes.
  48334. (line 53)
  48335. * 'lower' variable attribute, MSP430: MSP430 Variable Attributes.
  48336. (line 24)
  48337. * 'lr' fixed-suffix: Fixed-Point. (line 6)
  48338. * 'LR' fixed-suffix: Fixed-Point. (line 6)
  48339. * lrint: Other Builtins. (line 6)
  48340. * lrintf: Other Builtins. (line 6)
  48341. * lrintl: Other Builtins. (line 6)
  48342. * lround: Other Builtins. (line 6)
  48343. * lroundf: Other Builtins. (line 6)
  48344. * lroundl: Other Builtins. (line 6)
  48345. * 'm' in constraint: Simple Constraints. (line 17)
  48346. * M32C options: M32C Options. (line 6)
  48347. * M32R/D options: M32R/D Options. (line 6)
  48348. * M680x0 options: M680x0 Options. (line 6)
  48349. * machine specific constraints: Machine Constraints.
  48350. (line 6)
  48351. * machine-dependent options: Submodel Options. (line 6)
  48352. * macro with variable arguments: Variadic Macros. (line 6)
  48353. * macros, inline alternative: Inline. (line 6)
  48354. * macros, local labels: Local Labels. (line 6)
  48355. * macros, local variables in: Typeof. (line 46)
  48356. * macros, statements in expressions: Statement Exprs. (line 6)
  48357. * macros, types of arguments: Typeof. (line 6)
  48358. * 'make': Preprocessor Options.
  48359. (line 77)
  48360. * malloc: Other Builtins. (line 6)
  48361. * 'malloc' function attribute: Common Function Attributes.
  48362. (line 478)
  48363. * matching constraint: Simple Constraints. (line 137)
  48364. * 'may_alias' type attribute: Common Type Attributes.
  48365. (line 150)
  48366. * MCore options: MCore Options. (line 6)
  48367. * 'medium_call' function attribute, ARC: ARC Function Attributes.
  48368. (line 24)
  48369. * member fns, automatically 'inline': Inline. (line 68)
  48370. * memchr: Other Builtins. (line 6)
  48371. * memcmp: Other Builtins. (line 6)
  48372. * memcpy: Other Builtins. (line 6)
  48373. * memory references in constraints: Simple Constraints. (line 17)
  48374. * mempcpy: Other Builtins. (line 6)
  48375. * memset: Other Builtins. (line 6)
  48376. * MeP options: MeP Options. (line 6)
  48377. * Mercury: G++ and GCC. (line 23)
  48378. * message formatting: Diagnostic Message Formatting Options.
  48379. (line 6)
  48380. * messages, warning: Warning Options. (line 6)
  48381. * messages, warning and error: Warnings and Errors.
  48382. (line 6)
  48383. * MicroBlaze Options: MicroBlaze Options. (line 6)
  48384. * 'micromips' function attribute: MIPS Function Attributes.
  48385. (line 89)
  48386. * middle-operands, omitted: Conditionals. (line 6)
  48387. * MIPS options: MIPS Options. (line 6)
  48388. * 'mips16' function attribute, MIPS: MIPS Function Attributes.
  48389. (line 73)
  48390. * misunderstandings in C++: C++ Misunderstandings.
  48391. (line 6)
  48392. * mixed declarations and code: Mixed Declarations. (line 6)
  48393. * mixing assembly language and C: Using Assembly Language with C.
  48394. (line 6)
  48395. * 'mktemp', and constant strings: Incompatibilities. (line 13)
  48396. * MMIX Options: MMIX Options. (line 6)
  48397. * MN10300 options: MN10300 Options. (line 6)
  48398. * 'mode' variable attribute: Common Variable Attributes.
  48399. (line 119)
  48400. * 'model' function attribute, M32R/D: M32R/D Function Attributes.
  48401. (line 15)
  48402. * 'model' variable attribute, IA-64: IA-64 Variable Attributes.
  48403. (line 9)
  48404. * 'model-name' variable attribute, M32R/D: M32R/D Variable Attributes.
  48405. (line 9)
  48406. * modf: Other Builtins. (line 6)
  48407. * modff: Other Builtins. (line 6)
  48408. * modfl: Other Builtins. (line 6)
  48409. * modifiers in constraints: Modifiers. (line 6)
  48410. * Moxie Options: Moxie Options. (line 6)
  48411. * MSP430 Options: MSP430 Options. (line 6)
  48412. * 'ms_abi' function attribute, x86: x86 Function Attributes.
  48413. (line 34)
  48414. * 'ms_hook_prologue' function attribute, x86: x86 Function Attributes.
  48415. (line 59)
  48416. * 'ms_struct' type attribute, PowerPC: PowerPC Type Attributes.
  48417. (line 9)
  48418. * 'ms_struct' type attribute, x86: x86 Type Attributes.
  48419. (line 11)
  48420. * 'ms_struct' variable attribute, PowerPC: PowerPC Variable Attributes.
  48421. (line 9)
  48422. * 'ms_struct' variable attribute, x86: x86 Variable Attributes.
  48423. (line 11)
  48424. * multiple alternative constraints: Multi-Alternative. (line 6)
  48425. * multiprecision arithmetic: Long Long. (line 6)
  48426. * N: Other Builtins. (line 563)
  48427. * N <1>: Other Builtins. (line 567)
  48428. * N <2>: Other Builtins. (line 605)
  48429. * N <3>: Other Builtins. (line 608)
  48430. * N <4>: Other Builtins. (line 652)
  48431. * N <5>: Other Builtins. (line 655)
  48432. * N <6>: Other Builtins. (line 669)
  48433. * N <7>: Other Builtins. (line 672)
  48434. * 'n' in constraint: Simple Constraints. (line 73)
  48435. * 'naked' function attribute, ARM: ARM Function Attributes.
  48436. (line 41)
  48437. * 'naked' function attribute, AVR: AVR Function Attributes.
  48438. (line 23)
  48439. * 'naked' function attribute, MCORE: MCORE Function Attributes.
  48440. (line 9)
  48441. * 'naked' function attribute, MSP430: MSP430 Function Attributes.
  48442. (line 30)
  48443. * 'naked' function attribute, NDS32: NDS32 Function Attributes.
  48444. (line 35)
  48445. * 'naked' function attribute, RL78: RL78 Function Attributes.
  48446. (line 20)
  48447. * 'naked' function attribute, RX: RX Function Attributes.
  48448. (line 39)
  48449. * 'naked' function attribute, SPU: SPU Function Attributes.
  48450. (line 9)
  48451. * Named Address Spaces: Named Address Spaces.
  48452. (line 6)
  48453. * names used in assembler code: Asm Labels. (line 6)
  48454. * naming convention, implementation headers: C++ Interface. (line 43)
  48455. * NDS32 Options: NDS32 Options. (line 6)
  48456. * 'near' function attribute, MeP: MeP Function Attributes.
  48457. (line 20)
  48458. * 'near' function attribute, MIPS: MIPS Function Attributes.
  48459. (line 62)
  48460. * 'near' type attribute, MeP: MeP Type Attributes.
  48461. (line 6)
  48462. * 'near' variable attribute, MeP: MeP Variable Attributes.
  48463. (line 24)
  48464. * nearbyint: Other Builtins. (line 6)
  48465. * nearbyintf: Other Builtins. (line 6)
  48466. * nearbyintl: Other Builtins. (line 6)
  48467. * 'nested' function attribute, NDS32: NDS32 Function Attributes.
  48468. (line 19)
  48469. * nested functions: Nested Functions. (line 6)
  48470. * 'nested_ready' function attribute, NDS32: NDS32 Function Attributes.
  48471. (line 23)
  48472. * 'nesting' function attribute, Blackfin: Blackfin Function Attributes.
  48473. (line 45)
  48474. * newlines (escaped): Escaped Newlines. (line 6)
  48475. * nextafter: Other Builtins. (line 6)
  48476. * nextafterf: Other Builtins. (line 6)
  48477. * nextafterl: Other Builtins. (line 6)
  48478. * nexttoward: Other Builtins. (line 6)
  48479. * nexttowardf: Other Builtins. (line 6)
  48480. * nexttowardl: Other Builtins. (line 6)
  48481. * NFC: Warning Options. (line 2247)
  48482. * NFKC: Warning Options. (line 2247)
  48483. * Nios II options: Nios II Options. (line 6)
  48484. * 'nmi' function attribute, NDS32: NDS32 Function Attributes.
  48485. (line 50)
  48486. * NMI handler functions on the Blackfin processor: Blackfin Function Attributes.
  48487. (line 50)
  48488. * 'nmi_handler' function attribute, Blackfin: Blackfin Function Attributes.
  48489. (line 50)
  48490. * 'noclone' function attribute: Common Function Attributes.
  48491. (line 543)
  48492. * 'nocommon' variable attribute: Common Variable Attributes.
  48493. (line 89)
  48494. * 'nocompression' function attribute, MIPS: MIPS Function Attributes.
  48495. (line 106)
  48496. * 'noinit' variable attribute, MSP430: MSP430 Variable Attributes.
  48497. (line 7)
  48498. * 'noinline' function attribute: Common Function Attributes.
  48499. (line 549)
  48500. * 'nomicromips' function attribute: MIPS Function Attributes.
  48501. (line 89)
  48502. * 'nomips16' function attribute, MIPS: MIPS Function Attributes.
  48503. (line 73)
  48504. * non-constant initializers: Initializers. (line 6)
  48505. * non-static inline function: Inline. (line 82)
  48506. * 'nonnull' function attribute: Common Function Attributes.
  48507. (line 560)
  48508. * 'noplt' function attribute: Common Function Attributes.
  48509. (line 584)
  48510. * 'noreturn' function attribute: Common Function Attributes.
  48511. (line 608)
  48512. * 'nosave_low_regs' function attribute, SH: SH Function Attributes.
  48513. (line 34)
  48514. * note GCC_COLORS capability: Diagnostic Message Formatting Options.
  48515. (line 77)
  48516. * 'nothrow' function attribute: Common Function Attributes.
  48517. (line 639)
  48518. * 'notshared' type attribute, ARM: ARM Type Attributes.
  48519. (line 6)
  48520. * 'not_nested' function attribute, NDS32: NDS32 Function Attributes.
  48521. (line 21)
  48522. * 'no_caller_saved_registers' function attribute, x86: x86 Function Attributes.
  48523. (line 103)
  48524. * 'no_icf' function attribute: Common Function Attributes.
  48525. (line 490)
  48526. * 'no_instrument_function' function attribute: Common Function Attributes.
  48527. (line 494)
  48528. * 'no_profile_instrument_function' function attribute: Common Function Attributes.
  48529. (line 499)
  48530. * 'no_reorder' function attribute: Common Function Attributes.
  48531. (line 504)
  48532. * 'no_sanitize_address' function attribute: Common Function Attributes.
  48533. (line 513)
  48534. * 'no_sanitize_thread' function attribute: Common Function Attributes.
  48535. (line 521)
  48536. * 'no_sanitize_undefined' function attribute: Common Function Attributes.
  48537. (line 526)
  48538. * 'no_split_stack' function attribute: Common Function Attributes.
  48539. (line 532)
  48540. * 'no_stack_limit' function attribute: Common Function Attributes.
  48541. (line 538)
  48542. * Nvidia PTX options: Nvidia PTX Options. (line 6)
  48543. * nvptx options: Nvidia PTX Options. (line 6)
  48544. * 'o' in constraint: Simple Constraints. (line 23)
  48545. * OBJC_INCLUDE_PATH: Environment Variables.
  48546. (line 130)
  48547. * Objective-C: G++ and GCC. (line 6)
  48548. * Objective-C <1>: Standards. (line 183)
  48549. * Objective-C and Objective-C++ options, command-line: Objective-C and Objective-C++ Dialect Options.
  48550. (line 6)
  48551. * Objective-C++: G++ and GCC. (line 6)
  48552. * Objective-C++ <1>: Standards. (line 183)
  48553. * offsettable address: Simple Constraints. (line 23)
  48554. * old-style function definitions: Function Prototypes.
  48555. (line 6)
  48556. * 'omit-leaf-frame-pointer' function attribute, AArch64: AArch64 Function Attributes.
  48557. (line 37)
  48558. * omitted middle-operands: Conditionals. (line 6)
  48559. * open coding: Inline. (line 6)
  48560. * OpenACC accelerator programming: C Dialect Options. (line 290)
  48561. * OpenACC accelerator programming <1>: C Dialect Options. (line 299)
  48562. * OpenMP parallel: C Dialect Options. (line 305)
  48563. * OpenMP SIMD: C Dialect Options. (line 314)
  48564. * operand constraints, 'asm': Constraints. (line 6)
  48565. * 'optimize' function attribute: Common Function Attributes.
  48566. (line 646)
  48567. * optimize options: Optimize Options. (line 6)
  48568. * options to control diagnostics formatting: Diagnostic Message Formatting Options.
  48569. (line 6)
  48570. * options to control warnings: Warning Options. (line 6)
  48571. * options, C++: C++ Dialect Options.
  48572. (line 6)
  48573. * options, code generation: Code Gen Options. (line 6)
  48574. * options, debugging: Debugging Options. (line 6)
  48575. * options, dialect: C Dialect Options. (line 6)
  48576. * options, directory search: Directory Options. (line 6)
  48577. * options, GCC command: Invoking GCC. (line 6)
  48578. * options, grouping: Invoking GCC. (line 31)
  48579. * options, linking: Link Options. (line 6)
  48580. * options, Objective-C and Objective-C++: Objective-C and Objective-C++ Dialect Options.
  48581. (line 6)
  48582. * options, optimization: Optimize Options. (line 6)
  48583. * options, order: Invoking GCC. (line 35)
  48584. * options, preprocessor: Preprocessor Options.
  48585. (line 6)
  48586. * options, profiling: Instrumentation Options.
  48587. (line 6)
  48588. * options, program instrumentation: Instrumentation Options.
  48589. (line 6)
  48590. * options, run-time error checking: Instrumentation Options.
  48591. (line 6)
  48592. * order of evaluation, side effects: Non-bugs. (line 196)
  48593. * order of options: Invoking GCC. (line 35)
  48594. * 'OS_main' function attribute, AVR: AVR Function Attributes.
  48595. (line 34)
  48596. * 'OS_task' function attribute, AVR: AVR Function Attributes.
  48597. (line 34)
  48598. * other register constraints: Simple Constraints. (line 161)
  48599. * output file option: Overall Options. (line 186)
  48600. * overloaded virtual function, warning: C++ Dialect Options.
  48601. (line 722)
  48602. * 'p' in constraint: Simple Constraints. (line 152)
  48603. * 'packed' type attribute: Common Type Attributes.
  48604. (line 186)
  48605. * 'packed' variable attribute: Common Variable Attributes.
  48606. (line 131)
  48607. * parameter forward declaration: Variable Length. (line 66)
  48608. * 'partial_save' function attribute, NDS32: NDS32 Function Attributes.
  48609. (line 31)
  48610. * Pascal: G++ and GCC. (line 23)
  48611. * 'pcs' function attribute, ARM: ARM Function Attributes.
  48612. (line 51)
  48613. * PDP-11 Options: PDP-11 Options. (line 6)
  48614. * 'persistent' variable attribute, MSP430: MSP430 Variable Attributes.
  48615. (line 12)
  48616. * PIC: Code Gen Options. (line 349)
  48617. * picoChip options: picoChip Options. (line 6)
  48618. * pmf: Bound member functions.
  48619. (line 6)
  48620. * pointer arguments: Common Function Attributes.
  48621. (line 144)
  48622. * Pointer Bounds Checker attributes: Common Function Attributes.
  48623. (line 118)
  48624. * Pointer Bounds Checker attributes <1>: Common Type Attributes.
  48625. (line 84)
  48626. * Pointer Bounds Checker builtins: Pointer Bounds Checker builtins.
  48627. (line 6)
  48628. * Pointer Bounds Checker options: Instrumentation Options.
  48629. (line 399)
  48630. * pointer to member function: Bound member functions.
  48631. (line 6)
  48632. * pointers to arrays: Pointers to Arrays. (line 6)
  48633. * portions of temporary objects, pointers to: Temporaries. (line 6)
  48634. * pow: Other Builtins. (line 6)
  48635. * pow10: Other Builtins. (line 6)
  48636. * pow10f: Other Builtins. (line 6)
  48637. * pow10l: Other Builtins. (line 6)
  48638. * PowerPC options: PowerPC Options. (line 6)
  48639. * powf: Other Builtins. (line 6)
  48640. * powl: Other Builtins. (line 6)
  48641. * pragma GCC ivdep: Loop-Specific Pragmas.
  48642. (line 7)
  48643. * pragma GCC optimize: Function Specific Option Pragmas.
  48644. (line 20)
  48645. * pragma GCC pop_options: Function Specific Option Pragmas.
  48646. (line 31)
  48647. * pragma GCC push_options: Function Specific Option Pragmas.
  48648. (line 31)
  48649. * pragma GCC reset_options: Function Specific Option Pragmas.
  48650. (line 39)
  48651. * pragma GCC target: Function Specific Option Pragmas.
  48652. (line 7)
  48653. * pragma, address: M32C Pragmas. (line 15)
  48654. * pragma, align: Solaris Pragmas. (line 11)
  48655. * pragma, call: MeP Pragmas. (line 48)
  48656. * pragma, coprocessor available: MeP Pragmas. (line 13)
  48657. * pragma, coprocessor call_saved: MeP Pragmas. (line 20)
  48658. * pragma, coprocessor subclass: MeP Pragmas. (line 28)
  48659. * pragma, custom io_volatile: MeP Pragmas. (line 7)
  48660. * pragma, diagnostic: Diagnostic Pragmas. (line 14)
  48661. * pragma, diagnostic <1>: Diagnostic Pragmas. (line 57)
  48662. * pragma, disinterrupt: MeP Pragmas. (line 38)
  48663. * pragma, fini: Solaris Pragmas. (line 20)
  48664. * pragma, init: Solaris Pragmas. (line 26)
  48665. * pragma, longcall: RS/6000 and PowerPC Pragmas.
  48666. (line 14)
  48667. * pragma, long_calls: ARM Pragmas. (line 11)
  48668. * pragma, long_calls_off: ARM Pragmas. (line 17)
  48669. * pragma, mark: Darwin Pragmas. (line 11)
  48670. * pragma, memregs: M32C Pragmas. (line 7)
  48671. * pragma, no_long_calls: ARM Pragmas. (line 14)
  48672. * pragma, options align: Darwin Pragmas. (line 14)
  48673. * pragma, pop_macro: Push/Pop Macro Pragmas.
  48674. (line 15)
  48675. * pragma, push_macro: Push/Pop Macro Pragmas.
  48676. (line 11)
  48677. * pragma, redefine_extname: Symbol-Renaming Pragmas.
  48678. (line 13)
  48679. * pragma, segment: Darwin Pragmas. (line 21)
  48680. * pragma, unused: Darwin Pragmas. (line 24)
  48681. * pragma, visibility: Visibility Pragmas. (line 8)
  48682. * pragma, weak: Weak Pragmas. (line 10)
  48683. * pragmas: Pragmas. (line 6)
  48684. * pragmas in C++, effect on inlining: C++ Interface. (line 57)
  48685. * pragmas, interface and implementation: C++ Interface. (line 6)
  48686. * pragmas, warning of unknown: Warning Options. (line 1080)
  48687. * precompiled headers: Precompiled Headers.
  48688. (line 6)
  48689. * preprocessing numbers: Incompatibilities. (line 173)
  48690. * preprocessing tokens: Incompatibilities. (line 173)
  48691. * preprocessor options: Preprocessor Options.
  48692. (line 6)
  48693. * printf: Other Builtins. (line 6)
  48694. * printf_unlocked: Other Builtins. (line 6)
  48695. * 'prof': Instrumentation Options.
  48696. (line 18)
  48697. * profiling options: Instrumentation Options.
  48698. (line 6)
  48699. * 'progmem' variable attribute, AVR: AVR Variable Attributes.
  48700. (line 7)
  48701. * program instrumentation options: Instrumentation Options.
  48702. (line 6)
  48703. * promotion of formal parameters: Function Prototypes.
  48704. (line 6)
  48705. * 'pure' function attribute: Common Function Attributes.
  48706. (line 661)
  48707. * push address instruction: Simple Constraints. (line 152)
  48708. * putchar: Other Builtins. (line 6)
  48709. * puts: Other Builtins. (line 6)
  48710. * 'q' floating point suffix: Floating Types. (line 6)
  48711. * 'Q' floating point suffix: Floating Types. (line 6)
  48712. * 'qsort', and global register variables: Global Register Variables.
  48713. (line 60)
  48714. * quote GCC_COLORS capability: Diagnostic Message Formatting Options.
  48715. (line 90)
  48716. * 'r' fixed-suffix: Fixed-Point. (line 6)
  48717. * 'R' fixed-suffix: Fixed-Point. (line 6)
  48718. * 'r' in constraint: Simple Constraints. (line 64)
  48719. * 'RAMPD': AVR Options. (line 371)
  48720. * 'RAMPX': AVR Options. (line 371)
  48721. * 'RAMPY': AVR Options. (line 371)
  48722. * 'RAMPZ': AVR Options. (line 371)
  48723. * range1 GCC_COLORS capability: Diagnostic Message Formatting Options.
  48724. (line 80)
  48725. * range2 GCC_COLORS capability: Diagnostic Message Formatting Options.
  48726. (line 83)
  48727. * ranges in case statements: Case Ranges. (line 6)
  48728. * read-only strings: Incompatibilities. (line 9)
  48729. * 'reentrant' function attribute, MSP430: MSP430 Function Attributes.
  48730. (line 40)
  48731. * register variable after 'longjmp': Global Register Variables.
  48732. (line 74)
  48733. * registers for local variables: Local Register Variables.
  48734. (line 6)
  48735. * registers in constraints: Simple Constraints. (line 64)
  48736. * registers, global allocation: Global Register Variables.
  48737. (line 6)
  48738. * registers, global variables in: Global Register Variables.
  48739. (line 6)
  48740. * 'regparm' function attribute, x86: x86 Function Attributes.
  48741. (line 66)
  48742. * relocation truncated to fit (ColdFire): M680x0 Options. (line 325)
  48743. * relocation truncated to fit (MIPS): MIPS Options. (line 236)
  48744. * remainder: Other Builtins. (line 6)
  48745. * remainderf: Other Builtins. (line 6)
  48746. * remainderl: Other Builtins. (line 6)
  48747. * remquo: Other Builtins. (line 6)
  48748. * remquof: Other Builtins. (line 6)
  48749. * remquol: Other Builtins. (line 6)
  48750. * 'renesas' function attribute, SH: SH Function Attributes.
  48751. (line 40)
  48752. * reordering, warning: C++ Dialect Options.
  48753. (line 647)
  48754. * reporting bugs: Bugs. (line 6)
  48755. * 'resbank' function attribute, SH: SH Function Attributes.
  48756. (line 44)
  48757. * 'reset' function attribute, NDS32: NDS32 Function Attributes.
  48758. (line 45)
  48759. * reset handler functions: NDS32 Function Attributes.
  48760. (line 45)
  48761. * rest argument (in macro): Variadic Macros. (line 6)
  48762. * restricted pointers: Restricted Pointers.
  48763. (line 6)
  48764. * restricted references: Restricted Pointers.
  48765. (line 6)
  48766. * restricted this pointer: Restricted Pointers.
  48767. (line 6)
  48768. * 'returns_nonnull' function attribute: Common Function Attributes.
  48769. (line 680)
  48770. * 'returns_twice' function attribute: Common Function Attributes.
  48771. (line 690)
  48772. * rindex: Other Builtins. (line 6)
  48773. * rint: Other Builtins. (line 6)
  48774. * rintf: Other Builtins. (line 6)
  48775. * rintl: Other Builtins. (line 6)
  48776. * RISC-V Options: RISC-V Options. (line 6)
  48777. * RL78 Options: RL78 Options. (line 6)
  48778. * round: Other Builtins. (line 6)
  48779. * roundf: Other Builtins. (line 6)
  48780. * roundl: Other Builtins. (line 6)
  48781. * RS/6000 and PowerPC Options: RS/6000 and PowerPC Options.
  48782. (line 6)
  48783. * RTTI: Vague Linkage. (line 42)
  48784. * run-time error checking options: Instrumentation Options.
  48785. (line 6)
  48786. * run-time options: Code Gen Options. (line 6)
  48787. * RX Options: RX Options. (line 6)
  48788. * 's' in constraint: Simple Constraints. (line 100)
  48789. * S/390 and zSeries Options: S/390 and zSeries Options.
  48790. (line 6)
  48791. * 'saddr' variable attribute, RL78: RL78 Variable Attributes.
  48792. (line 6)
  48793. * save all registers on the Blackfin: Blackfin Function Attributes.
  48794. (line 56)
  48795. * save all registers on the H8/300, H8/300H, and H8S: H8/300 Function Attributes.
  48796. (line 23)
  48797. * 'saveall' function attribute, Blackfin: Blackfin Function Attributes.
  48798. (line 56)
  48799. * 'saveall' function attribute, H8/300: H8/300 Function Attributes.
  48800. (line 23)
  48801. * 'save_all' function attribute, NDS32: NDS32 Function Attributes.
  48802. (line 28)
  48803. * 'save_volatiles' function attribute, MicroBlaze: MicroBlaze Function Attributes.
  48804. (line 9)
  48805. * 'scalar_storage_order' type attribute: Common Type Attributes.
  48806. (line 221)
  48807. * scalb: Other Builtins. (line 6)
  48808. * scalbf: Other Builtins. (line 6)
  48809. * scalbl: Other Builtins. (line 6)
  48810. * scalbln: Other Builtins. (line 6)
  48811. * scalblnf: Other Builtins. (line 6)
  48812. * scalblnf <1>: Other Builtins. (line 6)
  48813. * scalbn: Other Builtins. (line 6)
  48814. * scalbnf: Other Builtins. (line 6)
  48815. * 'scanf', and constant strings: Incompatibilities. (line 17)
  48816. * scanfnl: Other Builtins. (line 6)
  48817. * scope of a variable length array: Variable Length. (line 22)
  48818. * scope of declaration: Disappointments. (line 21)
  48819. * scope of external declarations: Incompatibilities. (line 80)
  48820. * Score Options: Score Options. (line 6)
  48821. * 'sda' variable attribute, V850: V850 Variable Attributes.
  48822. (line 9)
  48823. * search path: Directory Options. (line 6)
  48824. * 'section' function attribute: Common Function Attributes.
  48825. (line 699)
  48826. * 'section' variable attribute: Common Variable Attributes.
  48827. (line 152)
  48828. * 'selectany' variable attribute: Microsoft Windows Variable Attributes.
  48829. (line 16)
  48830. * 'sentinel' function attribute: Common Function Attributes.
  48831. (line 715)
  48832. * setjmp: Global Register Variables.
  48833. (line 74)
  48834. * 'setjmp' incompatibilities: Incompatibilities. (line 39)
  48835. * 'shared' attribute, Nvidia PTX: Nvidia PTX Variable Attributes.
  48836. (line 9)
  48837. * shared strings: Incompatibilities. (line 9)
  48838. * 'shared' variable attribute: Microsoft Windows Variable Attributes.
  48839. (line 37)
  48840. * 'shortcall' function attribute, Blackfin: Blackfin Function Attributes.
  48841. (line 38)
  48842. * 'shortcall' function attribute, PowerPC: PowerPC Function Attributes.
  48843. (line 10)
  48844. * 'short_call' function attribute, ARC: ARC Function Attributes.
  48845. (line 24)
  48846. * 'short_call' function attribute, ARM: ARM Function Attributes.
  48847. (line 31)
  48848. * 'short_call' function attribute, Epiphany: Epiphany Function Attributes.
  48849. (line 59)
  48850. * side effect in '?:': Conditionals. (line 20)
  48851. * side effects, macro argument: Statement Exprs. (line 35)
  48852. * side effects, order of evaluation: Non-bugs. (line 196)
  48853. * 'sign-return-address' function attribute, AArch64: AArch64 Function Attributes.
  48854. (line 65)
  48855. * 'signal' function attribute, AVR: AVR Function Attributes.
  48856. (line 58)
  48857. * signbit: Other Builtins. (line 6)
  48858. * signbitd128: Other Builtins. (line 6)
  48859. * signbitd32: Other Builtins. (line 6)
  48860. * signbitd64: Other Builtins. (line 6)
  48861. * signbitf: Other Builtins. (line 6)
  48862. * signbitl: Other Builtins. (line 6)
  48863. * signed and unsigned values, comparison warning: Warning Options.
  48864. (line 2047)
  48865. * significand: Other Builtins. (line 6)
  48866. * significandf: Other Builtins. (line 6)
  48867. * significandl: Other Builtins. (line 6)
  48868. * SIMD: C Dialect Options. (line 314)
  48869. * 'simd' function attribute: Common Function Attributes.
  48870. (line 741)
  48871. * simple constraints: Simple Constraints. (line 6)
  48872. * sin: Other Builtins. (line 6)
  48873. * sincos: Other Builtins. (line 6)
  48874. * sincosf: Other Builtins. (line 6)
  48875. * sincosl: Other Builtins. (line 6)
  48876. * sinf: Other Builtins. (line 6)
  48877. * sinh: Other Builtins. (line 6)
  48878. * sinhf: Other Builtins. (line 6)
  48879. * sinhl: Other Builtins. (line 6)
  48880. * sinl: Other Builtins. (line 6)
  48881. * sizeof: Typeof. (line 6)
  48882. * smaller data references: M32R/D Options. (line 57)
  48883. * smaller data references <1>: Nios II Options. (line 9)
  48884. * smaller data references (PowerPC): RS/6000 and PowerPC Options.
  48885. (line 829)
  48886. * snprintf: Other Builtins. (line 6)
  48887. * Solaris 2 options: Solaris 2 Options. (line 6)
  48888. * SOURCE_DATE_EPOCH: Environment Variables.
  48889. (line 176)
  48890. * SPARC options: SPARC Options. (line 6)
  48891. * Spec Files: Spec Files. (line 6)
  48892. * specified registers: Explicit Register Variables.
  48893. (line 6)
  48894. * specifying compiler version and target machine: Invoking GCC.
  48895. (line 24)
  48896. * specifying hardware config: Submodel Options. (line 6)
  48897. * specifying machine version: Invoking GCC. (line 24)
  48898. * specifying registers for local variables: Local Register Variables.
  48899. (line 6)
  48900. * speed of compilation: Precompiled Headers.
  48901. (line 6)
  48902. * sprintf: Other Builtins. (line 6)
  48903. * SPU options: SPU Options. (line 6)
  48904. * 'spu_vector' type attribute, SPU: SPU Type Attributes.
  48905. (line 6)
  48906. * 'spu_vector' variable attribute, SPU: SPU Variable Attributes.
  48907. (line 6)
  48908. * 'sp_switch' function attribute, SH: SH Function Attributes.
  48909. (line 58)
  48910. * sqrt: Other Builtins. (line 6)
  48911. * sqrtf: Other Builtins. (line 6)
  48912. * sqrtl: Other Builtins. (line 6)
  48913. * sscanf: Other Builtins. (line 6)
  48914. * 'sscanf', and constant strings: Incompatibilities. (line 17)
  48915. * 'sseregparm' function attribute, x86: x86 Function Attributes.
  48916. (line 83)
  48917. * 'stack_protect' function attribute: Common Function Attributes.
  48918. (line 763)
  48919. * Statement Attributes: Statement Attributes.
  48920. (line 6)
  48921. * statements inside expressions: Statement Exprs. (line 6)
  48922. * static data in C++, declaring and defining: Static Definitions.
  48923. (line 6)
  48924. * 'stdcall' function attribute, x86-32: x86 Function Attributes.
  48925. (line 98)
  48926. * stpcpy: Other Builtins. (line 6)
  48927. * stpncpy: Other Builtins. (line 6)
  48928. * strcasecmp: Other Builtins. (line 6)
  48929. * strcat: Other Builtins. (line 6)
  48930. * strchr: Other Builtins. (line 6)
  48931. * strcmp: Other Builtins. (line 6)
  48932. * strcpy: Other Builtins. (line 6)
  48933. * strcspn: Other Builtins. (line 6)
  48934. * strdup: Other Builtins. (line 6)
  48935. * strfmon: Other Builtins. (line 6)
  48936. * strftime: Other Builtins. (line 6)
  48937. * 'strict-align' function attribute, AArch64: AArch64 Function Attributes.
  48938. (line 32)
  48939. * string constants: Incompatibilities. (line 9)
  48940. * strlen: Other Builtins. (line 6)
  48941. * strncasecmp: Other Builtins. (line 6)
  48942. * strncat: Other Builtins. (line 6)
  48943. * strncmp: Other Builtins. (line 6)
  48944. * strncpy: Other Builtins. (line 6)
  48945. * strndup: Other Builtins. (line 6)
  48946. * strpbrk: Other Builtins. (line 6)
  48947. * strrchr: Other Builtins. (line 6)
  48948. * strspn: Other Builtins. (line 6)
  48949. * strstr: Other Builtins. (line 6)
  48950. * 'struct': Unnamed Fields. (line 6)
  48951. * struct __htm_tdb: S/390 System z Built-in Functions.
  48952. (line 49)
  48953. * structures: Incompatibilities. (line 146)
  48954. * structures, constructor expression: Compound Literals. (line 6)
  48955. * submodel options: Submodel Options. (line 6)
  48956. * subscripting: Subscripting. (line 6)
  48957. * subscripting and function values: Subscripting. (line 6)
  48958. * suffixes for C++ source: Invoking G++. (line 6)
  48959. * SUNPRO_DEPENDENCIES: Environment Variables.
  48960. (line 170)
  48961. * suppressing warnings: Warning Options. (line 6)
  48962. * surprises in C++: C++ Misunderstandings.
  48963. (line 6)
  48964. * syntax checking: Warning Options. (line 13)
  48965. * 'syscall_linkage' function attribute, IA-64: IA-64 Function Attributes.
  48966. (line 9)
  48967. * system headers, warnings from: Warning Options. (line 1495)
  48968. * 'sysv_abi' function attribute, x86: x86 Function Attributes.
  48969. (line 34)
  48970. * tan: Other Builtins. (line 6)
  48971. * tanf: Other Builtins. (line 6)
  48972. * tanh: Other Builtins. (line 6)
  48973. * tanhf: Other Builtins. (line 6)
  48974. * tanhl: Other Builtins. (line 6)
  48975. * tanl: Other Builtins. (line 6)
  48976. * 'target' function attribute: Common Function Attributes.
  48977. (line 768)
  48978. * 'target' function attribute <1>: ARM Function Attributes.
  48979. (line 70)
  48980. * 'target' function attribute <2>: Nios II Function Attributes.
  48981. (line 9)
  48982. * 'target' function attribute <3>: PowerPC Function Attributes.
  48983. (line 21)
  48984. * 'target' function attribute <4>: S/390 Function Attributes.
  48985. (line 22)
  48986. * 'target' function attribute <5>: x86 Function Attributes.
  48987. (line 170)
  48988. * target machine, specifying: Invoking GCC. (line 24)
  48989. * 'target("abm")' function attribute, x86: x86 Function Attributes.
  48990. (line 176)
  48991. * 'target("aes")' function attribute, x86: x86 Function Attributes.
  48992. (line 181)
  48993. * 'target("align-stringops")' function attribute, x86: x86 Function Attributes.
  48994. (line 270)
  48995. * 'target("altivec")' function attribute, PowerPC: PowerPC Function Attributes.
  48996. (line 28)
  48997. * 'target("arch=ARCH")' function attribute, x86: x86 Function Attributes.
  48998. (line 279)
  48999. * 'target("arm")' function attribute, ARM: ARM Function Attributes.
  49000. (line 80)
  49001. * 'target("avoid-indexed-addresses")' function attribute, PowerPC: PowerPC Function Attributes.
  49002. (line 149)
  49003. * 'target("cld")' function attribute, x86: x86 Function Attributes.
  49004. (line 246)
  49005. * 'target("cmpb")' function attribute, PowerPC: PowerPC Function Attributes.
  49006. (line 34)
  49007. * 'target("cpu=CPU")' function attribute, PowerPC: PowerPC Function Attributes.
  49008. (line 164)
  49009. * 'target("custom-fpu-cfg=NAME")' function attribute, Nios II: Nios II Function Attributes.
  49010. (line 25)
  49011. * 'target("custom-INSN=N")' function attribute, Nios II: Nios II Function Attributes.
  49012. (line 16)
  49013. * 'target("default")' function attribute, x86: x86 Function Attributes.
  49014. (line 184)
  49015. * 'target("dlmzb")' function attribute, PowerPC: PowerPC Function Attributes.
  49016. (line 40)
  49017. * 'target("fancy-math-387")' function attribute, x86: x86 Function Attributes.
  49018. (line 250)
  49019. * 'target("fma4")' function attribute, x86: x86 Function Attributes.
  49020. (line 230)
  49021. * 'target("fpmath=FPMATH")' function attribute, x86: x86 Function Attributes.
  49022. (line 287)
  49023. * 'target("fprnd")' function attribute, PowerPC: PowerPC Function Attributes.
  49024. (line 47)
  49025. * 'target("fpu=")' function attribute, ARM: ARM Function Attributes.
  49026. (line 86)
  49027. * 'target("friz")' function attribute, PowerPC: PowerPC Function Attributes.
  49028. (line 140)
  49029. * 'target("hard-dfp")' function attribute, PowerPC: PowerPC Function Attributes.
  49030. (line 53)
  49031. * 'target("ieee-fp")' function attribute, x86: x86 Function Attributes.
  49032. (line 255)
  49033. * 'target("inline-all-stringops")' function attribute, x86: x86 Function Attributes.
  49034. (line 260)
  49035. * 'target("inline-stringops-dynamically")' function attribute, x86: x86 Function Attributes.
  49036. (line 264)
  49037. * 'target("isel")' function attribute, PowerPC: PowerPC Function Attributes.
  49038. (line 59)
  49039. * 'target("longcall")' function attribute, PowerPC: PowerPC Function Attributes.
  49040. (line 159)
  49041. * 'target("lwp")' function attribute, x86: x86 Function Attributes.
  49042. (line 238)
  49043. * 'target("mfcrf")' function attribute, PowerPC: PowerPC Function Attributes.
  49044. (line 63)
  49045. * 'target("mfpgpr")' function attribute, PowerPC: PowerPC Function Attributes.
  49046. (line 70)
  49047. * 'target("mmx")' function attribute, x86: x86 Function Attributes.
  49048. (line 189)
  49049. * 'target("mulhw")' function attribute, PowerPC: PowerPC Function Attributes.
  49050. (line 77)
  49051. * 'target("multiple")' function attribute, PowerPC: PowerPC Function Attributes.
  49052. (line 84)
  49053. * 'target("no-custom-INSN")' function attribute, Nios II: Nios II Function Attributes.
  49054. (line 16)
  49055. * 'target("paired")' function attribute, PowerPC: PowerPC Function Attributes.
  49056. (line 154)
  49057. * 'target("pclmul")' function attribute, x86: x86 Function Attributes.
  49058. (line 193)
  49059. * 'target("popcnt")' function attribute, x86: x86 Function Attributes.
  49060. (line 197)
  49061. * 'target("popcntb")' function attribute, PowerPC: PowerPC Function Attributes.
  49062. (line 95)
  49063. * 'target("popcntd")' function attribute, PowerPC: PowerPC Function Attributes.
  49064. (line 102)
  49065. * 'target("powerpc-gfxopt")' function attribute, PowerPC: PowerPC Function Attributes.
  49066. (line 108)
  49067. * 'target("powerpc-gpopt")' function attribute, PowerPC: PowerPC Function Attributes.
  49068. (line 114)
  49069. * 'target("recip")' function attribute, x86: x86 Function Attributes.
  49070. (line 274)
  49071. * 'target("recip-precision")' function attribute, PowerPC: PowerPC Function Attributes.
  49072. (line 120)
  49073. * 'target("sse")' function attribute, x86: x86 Function Attributes.
  49074. (line 201)
  49075. * 'target("sse2")' function attribute, x86: x86 Function Attributes.
  49076. (line 205)
  49077. * 'target("sse3")' function attribute, x86: x86 Function Attributes.
  49078. (line 209)
  49079. * 'target("sse4")' function attribute, x86: x86 Function Attributes.
  49080. (line 213)
  49081. * 'target("sse4.1")' function attribute, x86: x86 Function Attributes.
  49082. (line 218)
  49083. * 'target("sse4.2")' function attribute, x86: x86 Function Attributes.
  49084. (line 222)
  49085. * 'target("sse4a")' function attribute, x86: x86 Function Attributes.
  49086. (line 226)
  49087. * 'target("ssse3")' function attribute, x86: x86 Function Attributes.
  49088. (line 242)
  49089. * 'target("string")' function attribute, PowerPC: PowerPC Function Attributes.
  49090. (line 126)
  49091. * 'target("thumb")' function attribute, ARM: ARM Function Attributes.
  49092. (line 76)
  49093. * 'target("tune=TUNE")' function attribute, PowerPC: PowerPC Function Attributes.
  49094. (line 171)
  49095. * 'target("tune=TUNE")' function attribute, x86: x86 Function Attributes.
  49096. (line 283)
  49097. * 'target("update")' function attribute, PowerPC: PowerPC Function Attributes.
  49098. (line 89)
  49099. * 'target("vsx")' function attribute, PowerPC: PowerPC Function Attributes.
  49100. (line 132)
  49101. * 'target("xop")' function attribute, x86: x86 Function Attributes.
  49102. (line 234)
  49103. * target-dependent options: Submodel Options. (line 6)
  49104. * 'target_clones' function attribute: Common Function Attributes.
  49105. (line 801)
  49106. * TC1: Standards. (line 13)
  49107. * TC2: Standards. (line 13)
  49108. * TC3: Standards. (line 13)
  49109. * 'tda' variable attribute, V850: V850 Variable Attributes.
  49110. (line 13)
  49111. * Technical Corrigenda: Standards. (line 13)
  49112. * Technical Corrigendum 1: Standards. (line 13)
  49113. * Technical Corrigendum 2: Standards. (line 13)
  49114. * Technical Corrigendum 3: Standards. (line 13)
  49115. * template instantiation: Template Instantiation.
  49116. (line 6)
  49117. * temporaries, lifetime of: Temporaries. (line 6)
  49118. * tentative definitions: Code Gen Options. (line 221)
  49119. * tgamma: Other Builtins. (line 6)
  49120. * tgammaf: Other Builtins. (line 6)
  49121. * tgammal: Other Builtins. (line 6)
  49122. * 'thiscall' function attribute, x86-32: x86 Function Attributes.
  49123. (line 23)
  49124. * Thread-Local Storage: Thread-Local. (line 6)
  49125. * thunks: Nested Functions. (line 6)
  49126. * TILE-Gx options: TILE-Gx Options. (line 6)
  49127. * TILEPro options: TILEPro Options. (line 6)
  49128. * tiny data section on the H8/300H and H8S: H8/300 Variable Attributes.
  49129. (line 19)
  49130. * 'tiny' type attribute, MeP: MeP Type Attributes.
  49131. (line 6)
  49132. * 'tiny' variable attribute, MeP: MeP Variable Attributes.
  49133. (line 20)
  49134. * 'tiny_data' variable attribute, H8/300: H8/300 Variable Attributes.
  49135. (line 19)
  49136. * TLS: Thread-Local. (line 6)
  49137. * 'tls-dialect=' function attribute, AArch64: AArch64 Function Attributes.
  49138. (line 44)
  49139. * 'tls_model' variable attribute: Common Variable Attributes.
  49140. (line 197)
  49141. * TMPDIR: Environment Variables.
  49142. (line 45)
  49143. * toascii: Other Builtins. (line 6)
  49144. * tolower: Other Builtins. (line 6)
  49145. * toupper: Other Builtins. (line 6)
  49146. * towlower: Other Builtins. (line 6)
  49147. * towupper: Other Builtins. (line 6)
  49148. * traditional C language: Preprocessor Options.
  49149. (line 355)
  49150. * 'transparent_union' type attribute: Common Type Attributes.
  49151. (line 261)
  49152. * 'trapa_handler' function attribute, SH: SH Function Attributes.
  49153. (line 73)
  49154. * 'trap_exit' function attribute, SH: SH Function Attributes.
  49155. (line 68)
  49156. * trunc: Other Builtins. (line 6)
  49157. * truncf: Other Builtins. (line 6)
  49158. * truncl: Other Builtins. (line 6)
  49159. * 'tune=' function attribute, AArch64: AArch64 Function Attributes.
  49160. (line 54)
  49161. * two-stage name lookup: Name lookup. (line 6)
  49162. * type alignment: Alignment. (line 6)
  49163. * type attributes: Type Attributes. (line 6)
  49164. * typedef names as function parameters: Incompatibilities. (line 97)
  49165. * typeof: Typeof. (line 6)
  49166. * 'type_info': Vague Linkage. (line 42)
  49167. * 'uhk' fixed-suffix: Fixed-Point. (line 6)
  49168. * 'UHK' fixed-suffix: Fixed-Point. (line 6)
  49169. * 'uhr' fixed-suffix: Fixed-Point. (line 6)
  49170. * 'UHR' fixed-suffix: Fixed-Point. (line 6)
  49171. * 'uk' fixed-suffix: Fixed-Point. (line 6)
  49172. * 'UK' fixed-suffix: Fixed-Point. (line 6)
  49173. * 'ulk' fixed-suffix: Fixed-Point. (line 6)
  49174. * 'ULK' fixed-suffix: Fixed-Point. (line 6)
  49175. * 'ULL' integer suffix: Long Long. (line 6)
  49176. * 'ullk' fixed-suffix: Fixed-Point. (line 6)
  49177. * 'ULLK' fixed-suffix: Fixed-Point. (line 6)
  49178. * 'ullr' fixed-suffix: Fixed-Point. (line 6)
  49179. * 'ULLR' fixed-suffix: Fixed-Point. (line 6)
  49180. * 'ulr' fixed-suffix: Fixed-Point. (line 6)
  49181. * 'ULR' fixed-suffix: Fixed-Point. (line 6)
  49182. * undefined behavior: Bug Criteria. (line 17)
  49183. * undefined function value: Bug Criteria. (line 17)
  49184. * underscores in variables in macros: Typeof. (line 46)
  49185. * 'union': Unnamed Fields. (line 6)
  49186. * union, casting to a: Cast to Union. (line 6)
  49187. * unions: Incompatibilities. (line 146)
  49188. * unknown pragmas, warning: Warning Options. (line 1080)
  49189. * unresolved references and '-nodefaultlibs': Link Options. (line 91)
  49190. * unresolved references and '-nostdlib': Link Options. (line 91)
  49191. * 'unused' function attribute: Common Function Attributes.
  49192. (line 813)
  49193. * 'unused' label attribute: Label Attributes. (line 31)
  49194. * 'unused' type attribute: Common Type Attributes.
  49195. (line 314)
  49196. * 'unused' variable attribute: Common Variable Attributes.
  49197. (line 206)
  49198. * 'upper' function attribute, MSP430: MSP430 Function Attributes.
  49199. (line 53)
  49200. * 'upper' variable attribute, MSP430: MSP430 Variable Attributes.
  49201. (line 24)
  49202. * 'ur' fixed-suffix: Fixed-Point. (line 6)
  49203. * 'UR' fixed-suffix: Fixed-Point. (line 6)
  49204. * 'used' function attribute: Common Function Attributes.
  49205. (line 818)
  49206. * 'used' variable attribute: Common Variable Attributes.
  49207. (line 211)
  49208. * User stack pointer in interrupts on the Blackfin: Blackfin Function Attributes.
  49209. (line 21)
  49210. * 'use_debug_exception_return' function attribute, MIPS: MIPS Function Attributes.
  49211. (line 39)
  49212. * 'use_shadow_register_set' function attribute, MIPS: MIPS Function Attributes.
  49213. (line 28)
  49214. * 'V' in constraint: Simple Constraints. (line 43)
  49215. * V850 Options: V850 Options. (line 6)
  49216. * vague linkage: Vague Linkage. (line 6)
  49217. * value after 'longjmp': Global Register Variables.
  49218. (line 74)
  49219. * variable addressability on the M32R/D: M32R/D Variable Attributes.
  49220. (line 9)
  49221. * variable alignment: Alignment. (line 6)
  49222. * variable attributes: Variable Attributes.
  49223. (line 6)
  49224. * variable number of arguments: Variadic Macros. (line 6)
  49225. * variable-length array in a structure: Variable Length. (line 26)
  49226. * variable-length array scope: Variable Length. (line 22)
  49227. * variable-length arrays: Variable Length. (line 6)
  49228. * variables in specified registers: Explicit Register Variables.
  49229. (line 6)
  49230. * variables, local, in macros: Typeof. (line 46)
  49231. * variadic macros: Variadic Macros. (line 6)
  49232. * VAX options: VAX Options. (line 6)
  49233. * 'vector' function attribute, RX: RX Function Attributes.
  49234. (line 49)
  49235. * 'vector_size' variable attribute: Common Variable Attributes.
  49236. (line 220)
  49237. * 'version_id' function attribute, IA-64: IA-64 Function Attributes.
  49238. (line 16)
  49239. * vfprintf: Other Builtins. (line 6)
  49240. * vfscanf: Other Builtins. (line 6)
  49241. * 'visibility' function attribute: Common Function Attributes.
  49242. (line 828)
  49243. * 'visibility' type attribute: Common Type Attributes.
  49244. (line 323)
  49245. * 'visibility' variable attribute: Common Variable Attributes.
  49246. (line 243)
  49247. * Visium options: Visium Options. (line 6)
  49248. * VLAs: Variable Length. (line 6)
  49249. * 'vliw' function attribute, MeP: MeP Function Attributes.
  49250. (line 30)
  49251. * void pointers, arithmetic: Pointer Arith. (line 6)
  49252. * void, size of pointer to: Pointer Arith. (line 6)
  49253. * volatile access: Volatiles. (line 6)
  49254. * volatile access <1>: C++ Volatiles. (line 6)
  49255. * 'volatile' applied to function: Function Attributes.
  49256. (line 6)
  49257. * volatile 'asm': Extended Asm. (line 116)
  49258. * volatile read: Volatiles. (line 6)
  49259. * volatile read <1>: C++ Volatiles. (line 6)
  49260. * volatile write: Volatiles. (line 6)
  49261. * volatile write <1>: C++ Volatiles. (line 6)
  49262. * vprintf: Other Builtins. (line 6)
  49263. * vscanf: Other Builtins. (line 6)
  49264. * vsnprintf: Other Builtins. (line 6)
  49265. * vsprintf: Other Builtins. (line 6)
  49266. * vsscanf: Other Builtins. (line 6)
  49267. * vtable: Vague Linkage. (line 27)
  49268. * VxWorks Options: VxWorks Options. (line 6)
  49269. * 'w' floating point suffix: Floating Types. (line 6)
  49270. * 'W' floating point suffix: Floating Types. (line 6)
  49271. * 'wakeup' function attribute, MSP430: MSP430 Function Attributes.
  49272. (line 45)
  49273. * 'warm' function attribute, NDS32: NDS32 Function Attributes.
  49274. (line 52)
  49275. * warning for comparison of signed and unsigned values: Warning Options.
  49276. (line 2047)
  49277. * warning for overloaded virtual function: C++ Dialect Options.
  49278. (line 722)
  49279. * warning for reordering of member initializers: C++ Dialect Options.
  49280. (line 647)
  49281. * warning for unknown pragmas: Warning Options. (line 1080)
  49282. * 'warning' function attribute: Common Function Attributes.
  49283. (line 199)
  49284. * warning GCC_COLORS capability: Diagnostic Message Formatting Options.
  49285. (line 74)
  49286. * warning messages: Warning Options. (line 6)
  49287. * warnings from system headers: Warning Options. (line 1495)
  49288. * warnings vs errors: Warnings and Errors.
  49289. (line 6)
  49290. * 'warn_unused' type attribute: C++ Attributes. (line 71)
  49291. * 'warn_unused_result' function attribute: Common Function Attributes.
  49292. (line 928)
  49293. * 'weak' function attribute: Common Function Attributes.
  49294. (line 945)
  49295. * 'weak' variable attribute: Common Variable Attributes.
  49296. (line 248)
  49297. * 'weakref' function attribute: Common Function Attributes.
  49298. (line 954)
  49299. * whitespace: Incompatibilities. (line 112)
  49300. * Windows Options for x86: x86 Windows Options.
  49301. (line 6)
  49302. * 'X' in constraint: Simple Constraints. (line 122)
  49303. * X3.159-1989: Standards. (line 13)
  49304. * x86 named address spaces: Named Address Spaces.
  49305. (line 172)
  49306. * x86 Options: x86 Options. (line 6)
  49307. * x86 Windows Options: x86 Windows Options.
  49308. (line 6)
  49309. * Xstormy16 Options: Xstormy16 Options. (line 6)
  49310. * Xtensa Options: Xtensa Options. (line 6)
  49311. * y0: Other Builtins. (line 6)
  49312. * y0f: Other Builtins. (line 6)
  49313. * y0l: Other Builtins. (line 6)
  49314. * y1: Other Builtins. (line 6)
  49315. * y1f: Other Builtins. (line 6)
  49316. * y1l: Other Builtins. (line 6)
  49317. * yn: Other Builtins. (line 6)
  49318. * ynf: Other Builtins. (line 6)
  49319. * ynl: Other Builtins. (line 6)
  49320. * 'zda' variable attribute, V850: V850 Variable Attributes.
  49321. (line 17)
  49322. * zero-length arrays: Zero Length. (line 6)
  49323. * zero-size structures: Empty Structures. (line 6)
  49324. * zSeries options: zSeries Options. (line 6)
  49325. 
  49326. Tag Table:
  49327. Node: Top2057
  49328. Node: G++ and GCC3966
  49329. Node: Standards6031
  49330. Node: Invoking GCC19057
  49331. Node: Option Summary23258
  49332. Node: Overall Options72312
  49333. Node: Invoking G++86844
  49334. Node: C Dialect Options88367
  49335. Node: C++ Dialect Options107065
  49336. Node: Objective-C and Objective-C++ Dialect Options142518
  49337. Node: Diagnostic Message Formatting Options153748
  49338. Node: Warning Options161230
  49339. Ref: Wtrigraphs241838
  49340. Node: Debugging Options274475
  49341. Node: Optimize Options288924
  49342. Ref: Type-punning351744
  49343. Node: Instrumentation Options442467
  49344. Node: Preprocessor Options477770
  49345. Ref: dashMF482617
  49346. Ref: fdollars-in-identifiers487127
  49347. Node: Assembler Options498900
  49348. Node: Link Options499591
  49349. Ref: Link Options-Footnote-1513414
  49350. Node: Directory Options513750
  49351. Node: Code Gen Options522125
  49352. Node: Developer Options550374
  49353. Node: Submodel Options589403
  49354. Node: AArch64 Options591137
  49355. Ref: aarch64-feature-modifiers600163
  49356. Node: Adapteva Epiphany Options601528
  49357. Node: ARC Options607475
  49358. Node: ARM Options626163
  49359. Node: AVR Options646760
  49360. Node: Blackfin Options668673
  49361. Node: C6X Options676691
  49362. Node: CRIS Options678234
  49363. Node: CR16 Options681973
  49364. Node: Darwin Options682884
  49365. Node: DEC Alpha Options690324
  49366. Node: FR30 Options701940
  49367. Node: FT32 Options702505
  49368. Node: FRV Options703230
  49369. Node: GNU/Linux Options709994
  49370. Node: H8/300 Options711375
  49371. Node: HPPA Options712827
  49372. Node: IA-64 Options722359
  49373. Node: LM32 Options730487
  49374. Node: M32C Options731010
  49375. Node: M32R/D Options732283
  49376. Node: M680x0 Options735828
  49377. Node: MCore Options749980
  49378. Node: MeP Options751482
  49379. Node: MicroBlaze Options755442
  49380. Node: MIPS Options758244
  49381. Node: MMIX Options793696
  49382. Node: MN10300 Options796173
  49383. Node: Moxie Options798714
  49384. Node: MSP430 Options799201
  49385. Node: NDS32 Options803905
  49386. Node: Nios II Options805799
  49387. Node: Nvidia PTX Options816732
  49388. Node: PDP-11 Options818994
  49389. Node: picoChip Options820691
  49390. Node: PowerPC Options822829
  49391. Node: RISC-V Options823052
  49392. Node: RL78 Options826814
  49393. Node: RS/6000 and PowerPC Options830589
  49394. Node: RX Options873862
  49395. Node: S/390 and zSeries Options882464
  49396. Node: Score Options892929
  49397. Node: SH Options893778
  49398. Node: Solaris 2 Options908920
  49399. Node: SPARC Options910158
  49400. Node: SPU Options925779
  49401. Node: System V Options930718
  49402. Node: TILE-Gx Options931544
  49403. Node: TILEPro Options932562
  49404. Node: V850 Options933066
  49405. Node: VAX Options939753
  49406. Node: Visium Options940291
  49407. Node: VMS Options942599
  49408. Node: VxWorks Options943415
  49409. Node: x86 Options944567
  49410. Node: x86 Windows Options998804
  49411. Node: Xstormy16 Options1001609
  49412. Node: Xtensa Options1001903
  49413. Node: zSeries Options1007052
  49414. Node: Spec Files1007248
  49415. Node: Environment Variables1029071
  49416. Node: Precompiled Headers1037797
  49417. Node: C Implementation1043803
  49418. Node: Translation implementation1045493
  49419. Node: Environment implementation1046084
  49420. Node: Identifiers implementation1046638
  49421. Node: Characters implementation1047724
  49422. Node: Integers implementation1051374
  49423. Node: Floating point implementation1053423
  49424. Node: Arrays and pointers implementation1056486
  49425. Ref: Arrays and pointers implementation-Footnote-11057946
  49426. Node: Hints implementation1058072
  49427. Node: Structures unions enumerations and bit-fields implementation1059567
  49428. Node: Qualifiers implementation1061791
  49429. Node: Declarators implementation1063571
  49430. Node: Statements implementation1063912
  49431. Node: Preprocessing directives implementation1064238
  49432. Node: Library functions implementation1066559
  49433. Node: Architecture implementation1067208
  49434. Node: Locale-specific behavior implementation1068853
  49435. Node: C++ Implementation1069158
  49436. Node: Conditionally-supported behavior1070441
  49437. Node: Exception handling1071058
  49438. Node: C Extensions1071466
  49439. Node: Statement Exprs1076748
  49440. Node: Local Labels1081225
  49441. Node: Labels as Values1084198
  49442. Ref: Labels as Values-Footnote-11086725
  49443. Node: Nested Functions1086910
  49444. Node: Constructing Calls1090868
  49445. Node: Typeof1095585
  49446. Node: Conditionals1099514
  49447. Node: __int1281100403
  49448. Node: Long Long1100928
  49449. Node: Complex1102404
  49450. Node: Floating Types1104988
  49451. Node: Half-Precision1108455
  49452. Node: Decimal Float1110864
  49453. Node: Hex Floats1112718
  49454. Node: Fixed-Point1113755
  49455. Node: Named Address Spaces1117013
  49456. Ref: AVR Named Address Spaces1117699
  49457. Node: Zero Length1124035
  49458. Node: Empty Structures1127075
  49459. Node: Variable Length1127481
  49460. Node: Variadic Macros1130199
  49461. Node: Escaped Newlines1132577
  49462. Node: Subscripting1133438
  49463. Node: Pointer Arith1134163
  49464. Node: Pointers to Arrays1134737
  49465. Node: Initializers1135482
  49466. Node: Compound Literals1135983
  49467. Node: Designated Inits1139550
  49468. Node: Case Ranges1143286
  49469. Node: Cast to Union1143967
  49470. Node: Mixed Declarations1145093
  49471. Node: Function Attributes1145603
  49472. Node: Common Function Attributes1148717
  49473. Node: AArch64 Function Attributes1195155
  49474. Node: ARC Function Attributes1200561
  49475. Node: ARM Function Attributes1202253
  49476. Node: AVR Function Attributes1205914
  49477. Node: Blackfin Function Attributes1209389
  49478. Node: CR16 Function Attributes1211887
  49479. Node: Epiphany Function Attributes1212414
  49480. Node: H8/300 Function Attributes1215166
  49481. Node: IA-64 Function Attributes1216362
  49482. Node: M32C Function Attributes1217404
  49483. Node: M32R/D Function Attributes1219742
  49484. Node: m68k Function Attributes1221216
  49485. Node: MCORE Function Attributes1222160
  49486. Node: MeP Function Attributes1222971
  49487. Node: MicroBlaze Function Attributes1224272
  49488. Node: Microsoft Windows Function Attributes1225779
  49489. Node: MIPS Function Attributes1230348
  49490. Node: MSP430 Function Attributes1235911
  49491. Node: NDS32 Function Attributes1239759
  49492. Node: Nios II Function Attributes1242183
  49493. Node: Nvidia PTX Function Attributes1243480
  49494. Node: PowerPC Function Attributes1244095
  49495. Node: RL78 Function Attributes1251148
  49496. Node: RX Function Attributes1252388
  49497. Node: S/390 Function Attributes1254927
  49498. Node: SH Function Attributes1256755
  49499. Node: SPU Function Attributes1260176
  49500. Node: Symbian OS Function Attributes1260984
  49501. Node: V850 Function Attributes1261321
  49502. Node: Visium Function Attributes1261866
  49503. Node: x86 Function Attributes1262394
  49504. Node: Xstormy16 Function Attributes1274911
  49505. Node: Variable Attributes1275418
  49506. Node: Common Variable Attributes1276879
  49507. Node: AVR Variable Attributes1287956
  49508. Node: Blackfin Variable Attributes1293224
  49509. Node: H8/300 Variable Attributes1294082
  49510. Node: IA-64 Variable Attributes1295155
  49511. Node: M32R/D Variable Attributes1295906
  49512. Node: MeP Variable Attributes1296689
  49513. Node: Microsoft Windows Variable Attributes1298782
  49514. Node: MSP430 Variable Attributes1301235
  49515. Node: Nvidia PTX Variable Attributes1302434
  49516. Node: PowerPC Variable Attributes1303051
  49517. Node: RL78 Variable Attributes1303608
  49518. Node: SPU Variable Attributes1304026
  49519. Node: V850 Variable Attributes1304391
  49520. Node: x86 Variable Attributes1305023
  49521. Node: Xstormy16 Variable Attributes1306079
  49522. Node: Type Attributes1306649
  49523. Node: Common Type Attributes1307969
  49524. Node: ARM Type Attributes1323445
  49525. Node: MeP Type Attributes1324230
  49526. Node: PowerPC Type Attributes1324632
  49527. Node: SPU Type Attributes1325621
  49528. Node: x86 Type Attributes1326040
  49529. Node: Label Attributes1327028
  49530. Node: Enumerator Attributes1328961
  49531. Node: Statement Attributes1330280
  49532. Node: Attribute Syntax1331763
  49533. Node: Function Prototypes1343021
  49534. Node: C++ Comments1344801
  49535. Node: Dollar Signs1345320
  49536. Node: Character Escapes1345785
  49537. Node: Alignment1346069
  49538. Node: Inline1347441
  49539. Node: Volatiles1352243
  49540. Node: Using Assembly Language with C1355142
  49541. Node: Basic Asm1356379
  49542. Node: Extended Asm1361739
  49543. Ref: Volatile1365804
  49544. Ref: AssemblerTemplate1369889
  49545. Ref: OutputOperands1374127
  49546. Ref: FlagOutputOperands1381056
  49547. Ref: InputOperands1383085
  49548. Ref: Clobbers1387331
  49549. Ref: GotoLabels1390647
  49550. Ref: x86Operandmodifiers1392782
  49551. Ref: x86floatingpointasmoperands1394983
  49552. Node: Constraints1398312
  49553. Node: Simple Constraints1399418
  49554. Node: Multi-Alternative1406732
  49555. Node: Modifiers1408407
  49556. Node: Machine Constraints1411205
  49557. Node: Asm Labels1469907
  49558. Node: Explicit Register Variables1471527
  49559. Ref: Explicit Reg Vars1471741
  49560. Node: Global Register Variables1472350
  49561. Ref: Global Reg Vars1472558
  49562. Node: Local Register Variables1476410
  49563. Ref: Local Reg Vars1476630
  49564. Node: Size of an asm1479937
  49565. Node: Alternate Keywords1481415
  49566. Node: Incomplete Enums1482914
  49567. Node: Function Names1483671
  49568. Node: Return Address1485569
  49569. Node: Vector Extensions1489510
  49570. Node: Offsetof1496805
  49571. Node: __sync Builtins1497638
  49572. Node: __atomic Builtins1504079
  49573. Node: Integer Overflow Builtins1517560
  49574. Node: x86 specific memory model extensions for transactional memory1524036
  49575. Node: Object Size Checking1525302
  49576. Node: Pointer Bounds Checker builtins1531330
  49577. Node: Cilk Plus Builtins1537336
  49578. Node: Other Builtins1538242
  49579. Node: Target Builtins1575200
  49580. Node: AArch64 Built-in Functions1576769
  49581. Node: Alpha Built-in Functions1577224
  49582. Node: Altera Nios II Built-in Functions1580272
  49583. Node: ARC Built-in Functions1584641
  49584. Node: ARC SIMD Built-in Functions1589853
  49585. Node: ARM iWMMXt Built-in Functions1598749
  49586. Node: ARM C Language Extensions (ACLE)1605745
  49587. Node: ARM Floating Point Status and Control Intrinsics1607084
  49588. Node: ARM ARMv8-M Security Extensions1607569
  49589. Node: AVR Built-in Functions1608914
  49590. Node: Blackfin Built-in Functions1612250
  49591. Node: FR-V Built-in Functions1612869
  49592. Node: Argument Types1613737
  49593. Node: Directly-mapped Integer Functions1615491
  49594. Node: Directly-mapped Media Functions1616575
  49595. Node: Raw read/write Functions1624781
  49596. Node: Other Built-in Functions1625689
  49597. Node: MIPS DSP Built-in Functions1626875
  49598. Node: MIPS Paired-Single Support1639372
  49599. Node: MIPS Loongson Built-in Functions1640871
  49600. Node: Paired-Single Arithmetic1647393
  49601. Node: Paired-Single Built-in Functions1648341
  49602. Node: MIPS-3D Built-in Functions1651008
  49603. Node: MIPS SIMD Architecture (MSA) Support1656386
  49604. Node: MIPS SIMD Architecture Built-in Functions1659226
  49605. Node: Other MIPS Built-in Functions1686056
  49606. Node: MSP430 Built-in Functions1687065
  49607. Node: NDS32 Built-in Functions1688466
  49608. Node: picoChip Built-in Functions1689759
  49609. Node: PowerPC Built-in Functions1691102
  49610. Node: PowerPC AltiVec/VSX Built-in Functions1716763
  49611. Node: PowerPC Hardware Transactional Memory Built-in Functions1877813
  49612. Node: RX Built-in Functions1886304
  49613. Node: S/390 System z Built-in Functions1890337
  49614. Node: SH Built-in Functions1895567
  49615. Node: SPARC VIS Built-in Functions1897295
  49616. Node: SPU Built-in Functions1905824
  49617. Node: TI C6X Built-in Functions1907541
  49618. Node: TILE-Gx Built-in Functions1908566
  49619. Node: TILEPro Built-in Functions1909685
  49620. Node: x86 Built-in Functions1910785
  49621. Node: x86 transactional memory intrinsics1971023
  49622. Node: Target Format Checks1974243
  49623. Node: Solaris Format Checks1974675
  49624. Node: Darwin Format Checks1975101
  49625. Node: Pragmas1975919
  49626. Node: AArch64 Pragmas1976692
  49627. Node: ARM Pragmas1977149
  49628. Node: M32C Pragmas1977776
  49629. Node: MeP Pragmas1978848
  49630. Node: RS/6000 and PowerPC Pragmas1980916
  49631. Node: S/390 Pragmas1981656
  49632. Node: Darwin Pragmas1982222
  49633. Node: Solaris Pragmas1983275
  49634. Node: Symbol-Renaming Pragmas1984439
  49635. Node: Structure-Layout Pragmas1986055
  49636. Node: Weak Pragmas1988335
  49637. Node: Diagnostic Pragmas1989070
  49638. Node: Visibility Pragmas1992179
  49639. Node: Push/Pop Macro Pragmas1992864
  49640. Node: Function Specific Option Pragmas1993837
  49641. Node: Loop-Specific Pragmas1995685
  49642. Node: Unnamed Fields1996778
  49643. Node: Thread-Local1998975
  49644. Node: C99 Thread-Local Edits2001081
  49645. Node: C++98 Thread-Local Edits2003079
  49646. Node: Binary constants2006524
  49647. Node: C++ Extensions2007195
  49648. Node: C++ Volatiles2008825
  49649. Node: Restricted Pointers2011173
  49650. Node: Vague Linkage2012764
  49651. Node: C++ Interface2016387
  49652. Ref: C++ Interface-Footnote-12020184
  49653. Node: Template Instantiation2020322
  49654. Node: Bound member functions2027805
  49655. Node: C++ Attributes2029337
  49656. Node: Function Multiversioning2033409
  49657. Node: Type Traits2035216
  49658. Node: C++ Concepts2041699
  49659. Node: Deprecated Features2043198
  49660. Node: Backwards Compatibility2046162
  49661. Node: Objective-C2047509
  49662. Node: GNU Objective-C runtime API2048116
  49663. Node: Modern GNU Objective-C runtime API2049123
  49664. Node: Traditional GNU Objective-C runtime API2051559
  49665. Node: Executing code before main2052286
  49666. Node: What you can and what you cannot do in +load2055030
  49667. Node: Type encoding2057400
  49668. Node: Legacy type encoding2062541
  49669. Node: @encode2063631
  49670. Node: Method signatures2064176
  49671. Node: Garbage Collection2066168
  49672. Node: Constant string objects2068858
  49673. Node: compatibility_alias2071367
  49674. Node: Exceptions2072092
  49675. Node: Synchronization2074802
  49676. Node: Fast enumeration2075986
  49677. Node: Using fast enumeration2076298
  49678. Node: c99-like fast enumeration syntax2077509
  49679. Node: Fast enumeration details2078212
  49680. Node: Fast enumeration protocol2080552
  49681. Node: Messaging with the GNU Objective-C runtime2083704
  49682. Node: Dynamically registering methods2085076
  49683. Node: Forwarding hook2086767
  49684. Node: Compatibility2089808
  49685. Node: Gcov2096364
  49686. Node: Gcov Intro2096899
  49687. Node: Invoking Gcov2099617
  49688. Node: Gcov and Optimization2114831
  49689. Node: Gcov Data Files2118200
  49690. Node: Cross-profiling2119595
  49691. Node: Gcov-tool2121449
  49692. Node: Gcov-tool Intro2121874
  49693. Node: Invoking Gcov-tool2123844
  49694. Node: Gcov-dump2126422
  49695. Node: Gcov-dump Intro2126744
  49696. Node: Invoking Gcov-dump2127011
  49697. Node: Trouble2127680
  49698. Node: Actual Bugs2129098
  49699. Node: Interoperation2129545
  49700. Node: Incompatibilities2136436
  49701. Node: Fixed Headers2144588
  49702. Node: Standard Libraries2146246
  49703. Node: Disappointments2147618
  49704. Node: C++ Misunderstandings2151977
  49705. Node: Static Definitions2152788
  49706. Node: Name lookup2153841
  49707. Ref: Name lookup-Footnote-12158622
  49708. Node: Temporaries2158811
  49709. Node: Copy Assignment2160787
  49710. Node: Non-bugs2162594
  49711. Node: Warnings and Errors2173100
  49712. Node: Bugs2174862
  49713. Node: Bug Criteria2175329
  49714. Node: Bug Reporting2177539
  49715. Node: Service2177757
  49716. Node: Contributing2178576
  49717. Node: Funding2179316
  49718. Node: GNU Project2181806
  49719. Node: Copying2182452
  49720. Node: GNU Free Documentation License2219961
  49721. Node: Contributors2245079
  49722. Node: Option Index2284519
  49723. Node: Keyword Index2528599
  49724. 
  49725. End Tag Table