riscv64-unknown-elf-gcc.1 1.3 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054
  1. .\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is >0, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .nr rF 0
  58. .if \n(.g .if rF .nr rF 1
  59. .if (\n(rF:(\n(.g==0)) \{\
  60. . if \nF \{\
  61. . de IX
  62. . tm Index:\\$1\t\\n%\t"\\$2"
  63. ..
  64. . if !\nF==2 \{\
  65. . nr % 0
  66. . nr F 2
  67. . \}
  68. . \}
  69. .\}
  70. .rr rF
  71. .\"
  72. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  73. .\" Fear. Run. Save yourself. No user-serviceable parts.
  74. . \" fudge factors for nroff and troff
  75. .if n \{\
  76. . ds #H 0
  77. . ds #V .8m
  78. . ds #F .3m
  79. . ds #[ \f1
  80. . ds #] \fP
  81. .\}
  82. .if t \{\
  83. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  84. . ds #V .6m
  85. . ds #F 0
  86. . ds #[ \&
  87. . ds #] \&
  88. .\}
  89. . \" simple accents for nroff and troff
  90. .if n \{\
  91. . ds ' \&
  92. . ds ` \&
  93. . ds ^ \&
  94. . ds , \&
  95. . ds ~ ~
  96. . ds /
  97. .\}
  98. .if t \{\
  99. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  100. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  101. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  102. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  103. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  104. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  105. .\}
  106. . \" troff and (daisy-wheel) nroff accents
  107. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  108. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  109. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  110. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  111. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  112. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  113. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  114. .ds ae a\h'-(\w'a'u*4/10)'e
  115. .ds Ae A\h'-(\w'A'u*4/10)'E
  116. . \" corrections for vroff
  117. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  118. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  119. . \" for low resolution devices (crt and lpr)
  120. .if \n(.H>23 .if \n(.V>19 \
  121. \{\
  122. . ds : e
  123. . ds 8 ss
  124. . ds o a
  125. . ds d- d\h'-1'\(ga
  126. . ds D- D\h'-1'\(hy
  127. . ds th \o'bp'
  128. . ds Th \o'LP'
  129. . ds ae ae
  130. . ds Ae AE
  131. .\}
  132. .rm #[ #] #H #V #F C
  133. .\" ========================================================================
  134. .\"
  135. .IX Title "GCC 1"
  136. .TH GCC 1 "2021-04-27" "gcc-11.1.0" "GNU"
  137. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  138. .\" way too many mistakes in technical documents.
  139. .if n .ad l
  140. .nh
  141. .SH "NAME"
  142. gcc \- GNU project C and C++ compiler
  143. .SH "SYNOPSIS"
  144. .IX Header "SYNOPSIS"
  145. gcc [\fB\-c\fR|\fB\-S\fR|\fB\-E\fR] [\fB\-std=\fR\fIstandard\fR]
  146. [\fB\-g\fR] [\fB\-pg\fR] [\fB\-O\fR\fIlevel\fR]
  147. [\fB\-W\fR\fIwarn\fR...] [\fB\-Wpedantic\fR]
  148. [\fB\-I\fR\fIdir\fR...] [\fB\-L\fR\fIdir\fR...]
  149. [\fB\-D\fR\fImacro\fR[=\fIdefn\fR]...] [\fB\-U\fR\fImacro\fR]
  150. [\fB\-f\fR\fIoption\fR...] [\fB\-m\fR\fImachine-option\fR...]
  151. [\fB\-o\fR \fIoutfile\fR] [@\fIfile\fR] \fIinfile\fR...
  152. .PP
  153. Only the most useful options are listed here; see below for the
  154. remainder. \fBg++\fR accepts mostly the same options as \fBgcc\fR.
  155. .SH "DESCRIPTION"
  156. .IX Header "DESCRIPTION"
  157. When you invoke \s-1GCC,\s0 it normally does preprocessing, compilation,
  158. assembly and linking. The \*(L"overall options\*(R" allow you to stop this
  159. process at an intermediate stage. For example, the \fB\-c\fR option
  160. says not to run the linker. Then the output consists of object files
  161. output by the assembler.
  162. .PP
  163. Other options are passed on to one or more stages of processing. Some options
  164. control the preprocessor and others the compiler itself. Yet other
  165. options control the assembler and linker; most of these are not
  166. documented here, since you rarely need to use any of them.
  167. .PP
  168. Most of the command-line options that you can use with \s-1GCC\s0 are useful
  169. for C programs; when an option is only useful with another language
  170. (usually \*(C+), the explanation says so explicitly. If the description
  171. for a particular option does not mention a source language, you can use
  172. that option with all supported languages.
  173. .PP
  174. The usual way to run \s-1GCC\s0 is to run the executable called \fBgcc\fR, or
  175. \&\fImachine\fR\fB\-gcc\fR when cross-compiling, or
  176. \&\fImachine\fR\fB\-gcc\-\fR\fIversion\fR to run a specific version of \s-1GCC.\s0
  177. When you compile \*(C+ programs, you should invoke \s-1GCC\s0 as \fBg++\fR
  178. instead.
  179. .PP
  180. The \fBgcc\fR program accepts options and file names as operands. Many
  181. options have multi-letter names; therefore multiple single-letter options
  182. may \fInot\fR be grouped: \fB\-dv\fR is very different from \fB\-d\ \-v\fR.
  183. .PP
  184. You can mix options and other arguments. For the most part, the order
  185. you use doesn't matter. Order does matter when you use several
  186. options of the same kind; for example, if you specify \fB\-L\fR more
  187. than once, the directories are searched in the order specified. Also,
  188. the placement of the \fB\-l\fR option is significant.
  189. .PP
  190. Many options have long names starting with \fB\-f\fR or with
  191. \&\fB\-W\fR\-\-\-for example,
  192. \&\fB\-fmove\-loop\-invariants\fR, \fB\-Wformat\fR and so on. Most of
  193. these have both positive and negative forms; the negative form of
  194. \&\fB\-ffoo\fR is \fB\-fno\-foo\fR. This manual documents
  195. only one of these two forms, whichever one is not the default.
  196. .PP
  197. Some options take one or more arguments typically separated either
  198. by a space or by the equals sign (\fB=\fR) from the option name.
  199. Unless documented otherwise, an argument can be either numeric or
  200. a string. Numeric arguments must typically be small unsigned decimal
  201. or hexadecimal integers. Hexadecimal arguments must begin with
  202. the \fB0x\fR prefix. Arguments to options that specify a size
  203. threshold of some sort may be arbitrarily large decimal or hexadecimal
  204. integers followed by a byte size suffix designating a multiple of bytes
  205. such as \f(CW\*(C`kB\*(C'\fR and \f(CW\*(C`KiB\*(C'\fR for kilobyte and kibibyte, respectively,
  206. \&\f(CW\*(C`MB\*(C'\fR and \f(CW\*(C`MiB\*(C'\fR for megabyte and mebibyte, \f(CW\*(C`GB\*(C'\fR and
  207. \&\f(CW\*(C`GiB\*(C'\fR for gigabyte and gigibyte, and so on. Such arguments are
  208. designated by \fIbyte-size\fR in the following text. Refer to the \s-1NIST,
  209. IEC,\s0 and other relevant national and international standards for the full
  210. listing and explanation of the binary and decimal byte size prefixes.
  211. .SH "OPTIONS"
  212. .IX Header "OPTIONS"
  213. .SS "Option Summary"
  214. .IX Subsection "Option Summary"
  215. Here is a summary of all the options, grouped by type. Explanations are
  216. in the following sections.
  217. .IP "\fIOverall Options\fR" 4
  218. .IX Item "Overall Options"
  219. \&\fB\-c \-S \-E \-o\fR \fIfile\fR
  220. \&\fB\-dumpbase\fR \fIdumpbase\fR \fB\-dumpbase\-ext\fR \fIauxdropsuf\fR
  221. \&\fB\-dumpdir\fR \fIdumppfx\fR \fB\-x\fR \fIlanguage\fR
  222. \&\fB\-v \-### \-\-help\fR[\fB=\fR\fIclass\fR[\fB,...\fR]] \fB\-\-target\-help \-\-version
  223. \&\-pass\-exit\-codes \-pipe \-specs=\fR\fIfile\fR \fB\-wrapper
  224. @\fR\fIfile\fR \fB\-ffile\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR
  225. \&\fB\-fplugin=\fR\fIfile\fR \fB\-fplugin\-arg\-\fR\fIname\fR\fB=\fR\fIarg\fR
  226. \&\fB\-fdump\-ada\-spec\fR[\fB\-slim\fR] \fB\-fada\-spec\-parent=\fR\fIunit\fR \fB\-fdump\-go\-spec=\fR\fIfile\fR
  227. .IP "\fIC Language Options\fR" 4
  228. .IX Item "C Language Options"
  229. \&\fB\-ansi \-std=\fR\fIstandard\fR \fB\-fgnu89\-inline
  230. \&\-fpermitted\-flt\-eval\-methods=\fR\fIstandard\fR
  231. \&\fB\-aux\-info\fR \fIfilename\fR \fB\-fallow\-parameterless\-variadic\-functions
  232. \&\-fno\-asm \-fno\-builtin \-fno\-builtin\-\fR\fIfunction\fR \fB\-fgimple
  233. \&\-fhosted \-ffreestanding
  234. \&\-fopenacc \-fopenacc\-dim=\fR\fIgeom\fR
  235. \&\fB\-fopenmp \-fopenmp\-simd
  236. \&\-fms\-extensions \-fplan9\-extensions \-fsso\-struct=\fR\fIendianness\fR
  237. \&\fB\-fallow\-single\-precision \-fcond\-mismatch \-flax\-vector\-conversions
  238. \&\-fsigned\-bitfields \-fsigned\-char
  239. \&\-funsigned\-bitfields \-funsigned\-char\fR
  240. .IP "\fI\*(C+ Language Options\fR" 4
  241. .IX Item " Language Options"
  242. \&\fB\-fabi\-version=\fR\fIn\fR \fB\-fno\-access\-control
  243. \&\-faligned\-new=\fR\fIn\fR \fB\-fargs\-in\-order=\fR\fIn\fR \fB\-fchar8_t \-fcheck\-new
  244. \&\-fconstexpr\-depth=\fR\fIn\fR \fB\-fconstexpr\-cache\-depth=\fR\fIn\fR
  245. \&\fB\-fconstexpr\-loop\-limit=\fR\fIn\fR \fB\-fconstexpr\-ops\-limit=\fR\fIn\fR
  246. \&\fB\-fno\-elide\-constructors
  247. \&\-fno\-enforce\-eh\-specs
  248. \&\-fno\-gnu\-keywords
  249. \&\-fno\-implicit\-templates
  250. \&\-fno\-implicit\-inline\-templates
  251. \&\-fno\-implement\-inlines
  252. \&\-fmodule\-header\fR[\fB=\fR\fIkind\fR] \fB\-fmodule\-only \-fmodules\-ts
  253. \&\-fmodule\-implicit\-inline
  254. \&\-fno\-module\-lazy
  255. \&\-fmodule\-mapper=\fR\fIspecification\fR
  256. \&\fB\-fmodule\-version\-ignore
  257. \&\-fms\-extensions
  258. \&\-fnew\-inheriting\-ctors
  259. \&\-fnew\-ttp\-matching
  260. \&\-fno\-nonansi\-builtins \-fnothrow\-opt \-fno\-operator\-names
  261. \&\-fno\-optional\-diags \-fpermissive
  262. \&\-fno\-pretty\-templates
  263. \&\-fno\-rtti \-fsized\-deallocation
  264. \&\-ftemplate\-backtrace\-limit=\fR\fIn\fR
  265. \&\fB\-ftemplate\-depth=\fR\fIn\fR
  266. \&\fB\-fno\-threadsafe\-statics \-fuse\-cxa\-atexit
  267. \&\-fno\-weak \-nostdinc++
  268. \&\-fvisibility\-inlines\-hidden
  269. \&\-fvisibility\-ms\-compat
  270. \&\-fext\-numeric\-literals
  271. \&\-flang\-info\-include\-translate\fR[\fB=\fR\fIheader\fR]
  272. \&\fB\-flang\-info\-include\-translate\-not
  273. \&\-flang\-info\-module\-cmi\fR[\fB=\fR\fImodule\fR]
  274. \&\fB\-stdlib=\fR\fIlibstdc++,libc++\fR
  275. \&\fB\-Wabi\-tag \-Wcatch\-value \-Wcatch\-value=\fR\fIn\fR
  276. \&\fB\-Wno\-class\-conversion \-Wclass\-memaccess
  277. \&\-Wcomma\-subscript \-Wconditionally\-supported
  278. \&\-Wno\-conversion\-null \-Wctad\-maybe\-unsupported
  279. \&\-Wctor\-dtor\-privacy \-Wno\-delete\-incomplete
  280. \&\-Wdelete\-non\-virtual\-dtor \-Wdeprecated\-copy \-Wdeprecated\-copy\-dtor
  281. \&\-Wno\-deprecated\-enum\-enum\-conversion \-Wno\-deprecated\-enum\-float\-conversion
  282. \&\-Weffc++ \-Wno\-exceptions \-Wextra\-semi \-Wno\-inaccessible\-base
  283. \&\-Wno\-inherited\-variadic\-ctor \-Wno\-init\-list\-lifetime
  284. \&\-Winvalid\-imported\-macros
  285. \&\-Wno\-invalid\-offsetof \-Wno\-literal\-suffix
  286. \&\-Wno\-mismatched\-new\-delete \-Wmismatched\-tags
  287. \&\-Wmultiple\-inheritance \-Wnamespaces \-Wnarrowing
  288. \&\-Wnoexcept \-Wnoexcept\-type \-Wnon\-virtual\-dtor
  289. \&\-Wpessimizing\-move \-Wno\-placement\-new \-Wplacement\-new=\fR\fIn\fR
  290. \&\fB\-Wrange\-loop\-construct \-Wredundant\-move \-Wredundant\-tags
  291. \&\-Wreorder \-Wregister
  292. \&\-Wstrict\-null\-sentinel \-Wno\-subobject\-linkage \-Wtemplates
  293. \&\-Wno\-non\-template\-friend \-Wold\-style\-cast
  294. \&\-Woverloaded\-virtual \-Wno\-pmf\-conversions \-Wsign\-promo
  295. \&\-Wsized\-deallocation \-Wsuggest\-final\-methods
  296. \&\-Wsuggest\-final\-types \-Wsuggest\-override
  297. \&\-Wno\-terminate \-Wuseless\-cast \-Wno\-vexing\-parse
  298. \&\-Wvirtual\-inheritance
  299. \&\-Wno\-virtual\-move\-assign \-Wvolatile \-Wzero\-as\-null\-pointer\-constant\fR
  300. .IP "\fIObjective-C and Objective\-\*(C+ Language Options\fR" 4
  301. .IX Item "Objective-C and Objective- Language Options"
  302. \&\fB\-fconstant\-string\-class=\fR\fIclass-name\fR
  303. \&\fB\-fgnu\-runtime \-fnext\-runtime
  304. \&\-fno\-nil\-receivers
  305. \&\-fobjc\-abi\-version=\fR\fIn\fR
  306. \&\fB\-fobjc\-call\-cxx\-cdtors
  307. \&\-fobjc\-direct\-dispatch
  308. \&\-fobjc\-exceptions
  309. \&\-fobjc\-gc
  310. \&\-fobjc\-nilcheck
  311. \&\-fobjc\-std=objc1
  312. \&\-fno\-local\-ivars
  313. \&\-fivar\-visibility=\fR[\fBpublic\fR|\fBprotected\fR|\fBprivate\fR|\fBpackage\fR]
  314. \&\fB\-freplace\-objc\-classes
  315. \&\-fzero\-link
  316. \&\-gen\-decls
  317. \&\-Wassign\-intercept \-Wno\-property\-assign\-default
  318. \&\-Wno\-protocol \-Wobjc\-root\-class \-Wselector
  319. \&\-Wstrict\-selector\-match
  320. \&\-Wundeclared\-selector\fR
  321. .IP "\fIDiagnostic Message Formatting Options\fR" 4
  322. .IX Item "Diagnostic Message Formatting Options"
  323. \&\fB\-fmessage\-length=\fR\fIn\fR
  324. \&\fB\-fdiagnostics\-plain\-output
  325. \&\-fdiagnostics\-show\-location=\fR[\fBonce\fR|\fBevery-line\fR]
  326. \&\fB\-fdiagnostics\-color=\fR[\fBauto\fR|\fBnever\fR|\fBalways\fR]
  327. \&\fB\-fdiagnostics\-urls=\fR[\fBauto\fR|\fBnever\fR|\fBalways\fR]
  328. \&\fB\-fdiagnostics\-format=\fR[\fBtext\fR|\fBjson\fR]
  329. \&\fB\-fno\-diagnostics\-show\-option \-fno\-diagnostics\-show\-caret
  330. \&\-fno\-diagnostics\-show\-labels \-fno\-diagnostics\-show\-line\-numbers
  331. \&\-fno\-diagnostics\-show\-cwe
  332. \&\-fdiagnostics\-minimum\-margin\-width=\fR\fIwidth\fR
  333. \&\fB\-fdiagnostics\-parseable\-fixits \-fdiagnostics\-generate\-patch
  334. \&\-fdiagnostics\-show\-template\-tree \-fno\-elide\-type
  335. \&\-fdiagnostics\-path\-format=\fR[\fBnone\fR|\fBseparate-events\fR|\fBinline-events\fR]
  336. \&\fB\-fdiagnostics\-show\-path\-depths
  337. \&\-fno\-show\-column
  338. \&\-fdiagnostics\-column\-unit=\fR[\fBdisplay\fR|\fBbyte\fR]
  339. \&\fB\-fdiagnostics\-column\-origin=\fR\fIorigin\fR
  340. .IP "\fIWarning Options\fR" 4
  341. .IX Item "Warning Options"
  342. \&\fB\-fsyntax\-only \-fmax\-errors=\fR\fIn\fR \fB\-Wpedantic
  343. \&\-pedantic\-errors
  344. \&\-w \-Wextra \-Wall \-Wabi=\fR\fIn\fR
  345. \&\fB\-Waddress \-Wno\-address\-of\-packed\-member \-Waggregate\-return
  346. \&\-Walloc\-size\-larger\-than=\fR\fIbyte-size\fR \fB\-Walloc\-zero
  347. \&\-Walloca \-Walloca\-larger\-than=\fR\fIbyte-size\fR
  348. \&\fB\-Wno\-aggressive\-loop\-optimizations
  349. \&\-Warith\-conversion
  350. \&\-Warray\-bounds \-Warray\-bounds=\fR\fIn\fR
  351. \&\fB\-Wno\-attributes \-Wattribute\-alias=\fR\fIn\fR \fB\-Wno\-attribute\-alias
  352. \&\-Wno\-attribute\-warning \-Wbool\-compare \-Wbool\-operation
  353. \&\-Wno\-builtin\-declaration\-mismatch
  354. \&\-Wno\-builtin\-macro\-redefined \-Wc90\-c99\-compat \-Wc99\-c11\-compat
  355. \&\-Wc11\-c2x\-compat
  356. \&\-Wc++\-compat \-Wc++11\-compat \-Wc++14\-compat \-Wc++17\-compat
  357. \&\-Wc++20\-compat
  358. \&\-Wcast\-align \-Wcast\-align=strict \-Wcast\-function\-type \-Wcast\-qual
  359. \&\-Wchar\-subscripts
  360. \&\-Wclobbered \-Wcomment
  361. \&\-Wconversion \-Wno\-coverage\-mismatch \-Wno\-cpp
  362. \&\-Wdangling\-else \-Wdate\-time
  363. \&\-Wno\-deprecated \-Wno\-deprecated\-declarations \-Wno\-designated\-init
  364. \&\-Wdisabled\-optimization
  365. \&\-Wno\-discarded\-array\-qualifiers \-Wno\-discarded\-qualifiers
  366. \&\-Wno\-div\-by\-zero \-Wdouble\-promotion
  367. \&\-Wduplicated\-branches \-Wduplicated\-cond
  368. \&\-Wempty\-body \-Wno\-endif\-labels \-Wenum\-compare \-Wenum\-conversion
  369. \&\-Werror \-Werror=* \-Wexpansion\-to\-defined \-Wfatal\-errors
  370. \&\-Wfloat\-conversion \-Wfloat\-equal \-Wformat \-Wformat=2
  371. \&\-Wno\-format\-contains\-nul \-Wno\-format\-extra\-args
  372. \&\-Wformat\-nonliteral \-Wformat\-overflow=\fR\fIn\fR
  373. \&\fB\-Wformat\-security \-Wformat\-signedness \-Wformat\-truncation=\fR\fIn\fR
  374. \&\fB\-Wformat\-y2k \-Wframe\-address
  375. \&\-Wframe\-larger\-than=\fR\fIbyte-size\fR \fB\-Wno\-free\-nonheap\-object
  376. \&\-Wno\-if\-not\-aligned \-Wno\-ignored\-attributes
  377. \&\-Wignored\-qualifiers \-Wno\-incompatible\-pointer\-types
  378. \&\-Wimplicit \-Wimplicit\-fallthrough \-Wimplicit\-fallthrough=\fR\fIn\fR
  379. \&\fB\-Wno\-implicit\-function\-declaration \-Wno\-implicit\-int
  380. \&\-Winit\-self \-Winline \-Wno\-int\-conversion \-Wint\-in\-bool\-context
  381. \&\-Wno\-int\-to\-pointer\-cast \-Wno\-invalid\-memory\-model
  382. \&\-Winvalid\-pch \-Wjump\-misses\-init \-Wlarger\-than=\fR\fIbyte-size\fR
  383. \&\fB\-Wlogical\-not\-parentheses \-Wlogical\-op \-Wlong\-long
  384. \&\-Wno\-lto\-type\-mismatch \-Wmain \-Wmaybe\-uninitialized
  385. \&\-Wmemset\-elt\-size \-Wmemset\-transposed\-args
  386. \&\-Wmisleading\-indentation \-Wmissing\-attributes \-Wmissing\-braces
  387. \&\-Wmissing\-field\-initializers \-Wmissing\-format\-attribute
  388. \&\-Wmissing\-include\-dirs \-Wmissing\-noreturn \-Wno\-missing\-profile
  389. \&\-Wno\-multichar \-Wmultistatement\-macros \-Wnonnull \-Wnonnull\-compare
  390. \&\-Wnormalized=\fR[\fBnone\fR|\fBid\fR|\fBnfc\fR|\fBnfkc\fR]
  391. \&\fB\-Wnull\-dereference \-Wno\-odr \-Wopenmp\-simd
  392. \&\-Wno\-overflow \-Woverlength\-strings \-Wno\-override\-init\-side\-effects
  393. \&\-Wpacked \-Wno\-packed\-bitfield\-compat \-Wpacked\-not\-aligned \-Wpadded
  394. \&\-Wparentheses \-Wno\-pedantic\-ms\-format
  395. \&\-Wpointer\-arith \-Wno\-pointer\-compare \-Wno\-pointer\-to\-int\-cast
  396. \&\-Wno\-pragmas \-Wno\-prio\-ctor\-dtor \-Wredundant\-decls
  397. \&\-Wrestrict \-Wno\-return\-local\-addr \-Wreturn\-type
  398. \&\-Wno\-scalar\-storage\-order \-Wsequence\-point
  399. \&\-Wshadow \-Wshadow=global \-Wshadow=local \-Wshadow=compatible\-local
  400. \&\-Wno\-shadow\-ivar
  401. \&\-Wno\-shift\-count\-negative \-Wno\-shift\-count\-overflow \-Wshift\-negative\-value
  402. \&\-Wno\-shift\-overflow \-Wshift\-overflow=\fR\fIn\fR
  403. \&\fB\-Wsign\-compare \-Wsign\-conversion
  404. \&\-Wno\-sizeof\-array\-argument
  405. \&\-Wsizeof\-array\-div
  406. \&\-Wsizeof\-pointer\-div \-Wsizeof\-pointer\-memaccess
  407. \&\-Wstack\-protector \-Wstack\-usage=\fR\fIbyte-size\fR \fB\-Wstrict\-aliasing
  408. \&\-Wstrict\-aliasing=n \-Wstrict\-overflow \-Wstrict\-overflow=\fR\fIn\fR
  409. \&\fB\-Wstring\-compare
  410. \&\-Wno\-stringop\-overflow \-Wno\-stringop\-overread
  411. \&\-Wno\-stringop\-truncation
  412. \&\-Wsuggest\-attribute=\fR[\fBpure\fR|\fBconst\fR|\fBnoreturn\fR|\fBformat\fR|\fBmalloc\fR]
  413. \&\fB\-Wswitch \-Wno\-switch\-bool \-Wswitch\-default \-Wswitch\-enum
  414. \&\-Wno\-switch\-outside\-range \-Wno\-switch\-unreachable \-Wsync\-nand
  415. \&\-Wsystem\-headers \-Wtautological\-compare \-Wtrampolines \-Wtrigraphs
  416. \&\-Wtsan \-Wtype\-limits \-Wundef
  417. \&\-Wuninitialized \-Wunknown\-pragmas
  418. \&\-Wunsuffixed\-float\-constants \-Wunused
  419. \&\-Wunused\-but\-set\-parameter \-Wunused\-but\-set\-variable
  420. \&\-Wunused\-const\-variable \-Wunused\-const\-variable=\fR\fIn\fR
  421. \&\fB\-Wunused\-function \-Wunused\-label \-Wunused\-local\-typedefs
  422. \&\-Wunused\-macros
  423. \&\-Wunused\-parameter \-Wno\-unused\-result
  424. \&\-Wunused\-value \-Wunused\-variable
  425. \&\-Wno\-varargs \-Wvariadic\-macros
  426. \&\-Wvector\-operation\-performance
  427. \&\-Wvla \-Wvla\-larger\-than=\fR\fIbyte-size\fR \fB\-Wno\-vla\-larger\-than
  428. \&\-Wvolatile\-register\-var \-Wwrite\-strings
  429. \&\-Wzero\-length\-bounds\fR
  430. .IP "\fIStatic Analyzer Options\fR" 4
  431. .IX Item "Static Analyzer Options"
  432. \&\fB\-fanalyzer
  433. \&\-fanalyzer\-call\-summaries
  434. \&\-fanalyzer\-checker=\fR\fIname\fR
  435. \&\fB\-fno\-analyzer\-feasibility
  436. \&\-fanalyzer\-fine\-grained
  437. \&\-fanalyzer\-state\-merge
  438. \&\-fanalyzer\-state\-purge
  439. \&\-fanalyzer\-transitivity
  440. \&\-fanalyzer\-verbose\-edges
  441. \&\-fanalyzer\-verbose\-state\-changes
  442. \&\-fanalyzer\-verbosity=\fR\fIlevel\fR
  443. \&\fB\-fdump\-analyzer
  444. \&\-fdump\-analyzer\-stderr
  445. \&\-fdump\-analyzer\-callgraph
  446. \&\-fdump\-analyzer\-exploded\-graph
  447. \&\-fdump\-analyzer\-exploded\-nodes
  448. \&\-fdump\-analyzer\-exploded\-nodes\-2
  449. \&\-fdump\-analyzer\-exploded\-nodes\-3
  450. \&\-fdump\-analyzer\-feasibility
  451. \&\-fdump\-analyzer\-json
  452. \&\-fdump\-analyzer\-state\-purge
  453. \&\-fdump\-analyzer\-supergraph
  454. \&\-Wno\-analyzer\-double\-fclose
  455. \&\-Wno\-analyzer\-double\-free
  456. \&\-Wno\-analyzer\-exposure\-through\-output\-file
  457. \&\-Wno\-analyzer\-file\-leak
  458. \&\-Wno\-analyzer\-free\-of\-non\-heap
  459. \&\-Wno\-analyzer\-malloc\-leak
  460. \&\-Wno\-analyzer\-mismatching\-deallocation
  461. \&\-Wno\-analyzer\-null\-argument
  462. \&\-Wno\-analyzer\-null\-dereference
  463. \&\-Wno\-analyzer\-possible\-null\-argument
  464. \&\-Wno\-analyzer\-possible\-null\-dereference
  465. \&\-Wno\-analyzer\-shift\-count\-negative
  466. \&\-Wno\-analyzer\-shift\-count\-overflow
  467. \&\-Wno\-analyzer\-stale\-setjmp\-buffer
  468. \&\-Wno\-analyzer\-tainted\-array\-index
  469. \&\-Wanalyzer\-too\-complex
  470. \&\-Wno\-analyzer\-unsafe\-call\-within\-signal\-handler
  471. \&\-Wno\-analyzer\-use\-after\-free
  472. \&\-Wno\-analyzer\-use\-of\-pointer\-in\-stale\-stack\-frame
  473. \&\-Wno\-analyzer\-use\-of\-uninitialized\-value
  474. \&\-Wno\-analyzer\-write\-to\-const
  475. \&\-Wno\-analyzer\-write\-to\-string\-literal\fR
  476. .IP "\fIC and Objective-C-only Warning Options\fR" 4
  477. .IX Item "C and Objective-C-only Warning Options"
  478. \&\fB\-Wbad\-function\-cast \-Wmissing\-declarations
  479. \&\-Wmissing\-parameter\-type \-Wmissing\-prototypes \-Wnested\-externs
  480. \&\-Wold\-style\-declaration \-Wold\-style\-definition
  481. \&\-Wstrict\-prototypes \-Wtraditional \-Wtraditional\-conversion
  482. \&\-Wdeclaration\-after\-statement \-Wpointer\-sign\fR
  483. .IP "\fIDebugging Options\fR" 4
  484. .IX Item "Debugging Options"
  485. \&\fB\-g \-g\fR\fIlevel\fR \fB\-gdwarf \-gdwarf\-\fR\fIversion\fR
  486. \&\fB\-ggdb \-grecord\-gcc\-switches \-gno\-record\-gcc\-switches
  487. \&\-gstabs \-gstabs+ \-gstrict\-dwarf \-gno\-strict\-dwarf
  488. \&\-gas\-loc\-support \-gno\-as\-loc\-support
  489. \&\-gas\-locview\-support \-gno\-as\-locview\-support
  490. \&\-gcolumn\-info \-gno\-column\-info \-gdwarf32 \-gdwarf64
  491. \&\-gstatement\-frontiers \-gno\-statement\-frontiers
  492. \&\-gvariable\-location\-views \-gno\-variable\-location\-views
  493. \&\-ginternal\-reset\-location\-views \-gno\-internal\-reset\-location\-views
  494. \&\-ginline\-points \-gno\-inline\-points
  495. \&\-gvms \-gxcoff \-gxcoff+ \-gz\fR[\fB=\fR\fItype\fR]
  496. \&\fB\-gsplit\-dwarf \-gdescribe\-dies \-gno\-describe\-dies
  497. \&\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR \fB\-fdebug\-types\-section
  498. \&\-fno\-eliminate\-unused\-debug\-types
  499. \&\-femit\-struct\-debug\-baseonly \-femit\-struct\-debug\-reduced
  500. \&\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR]
  501. \&\fB\-fno\-eliminate\-unused\-debug\-symbols \-femit\-class\-debug\-always
  502. \&\-fno\-merge\-debug\-strings \-fno\-dwarf2\-cfi\-asm
  503. \&\-fvar\-tracking \-fvar\-tracking\-assignments\fR
  504. .IP "\fIOptimization Options\fR" 4
  505. .IX Item "Optimization Options"
  506. \&\fB\-faggressive\-loop\-optimizations
  507. \&\-falign\-functions[=\fR\fIn\fR\fB[:\fR\fIm\fR\fB:[\fR\fIn2\fR\fB[:\fR\fIm2\fR\fB]]]]
  508. \&\-falign\-jumps[=\fR\fIn\fR\fB[:\fR\fIm\fR\fB:[\fR\fIn2\fR\fB[:\fR\fIm2\fR\fB]]]]
  509. \&\-falign\-labels[=\fR\fIn\fR\fB[:\fR\fIm\fR\fB:[\fR\fIn2\fR\fB[:\fR\fIm2\fR\fB]]]]
  510. \&\-falign\-loops[=\fR\fIn\fR\fB[:\fR\fIm\fR\fB:[\fR\fIn2\fR\fB[:\fR\fIm2\fR\fB]]]]
  511. \&\-fno\-allocation\-dce \-fallow\-store\-data\-races
  512. \&\-fassociative\-math \-fauto\-profile \-fauto\-profile[=\fR\fIpath\fR\fB]
  513. \&\-fauto\-inc\-dec \-fbranch\-probabilities
  514. \&\-fcaller\-saves
  515. \&\-fcombine\-stack\-adjustments \-fconserve\-stack
  516. \&\-fcompare\-elim \-fcprop\-registers \-fcrossjumping
  517. \&\-fcse\-follow\-jumps \-fcse\-skip\-blocks \-fcx\-fortran\-rules
  518. \&\-fcx\-limited\-range
  519. \&\-fdata\-sections \-fdce \-fdelayed\-branch
  520. \&\-fdelete\-null\-pointer\-checks \-fdevirtualize \-fdevirtualize\-speculatively
  521. \&\-fdevirtualize\-at\-ltrans \-fdse
  522. \&\-fearly\-inlining \-fipa\-sra \-fexpensive\-optimizations \-ffat\-lto\-objects
  523. \&\-ffast\-math \-ffinite\-math\-only \-ffloat\-store \-fexcess\-precision=\fR\fIstyle\fR
  524. \&\fB\-ffinite\-loops
  525. \&\-fforward\-propagate \-ffp\-contract=\fR\fIstyle\fR \fB\-ffunction\-sections
  526. \&\-fgcse \-fgcse\-after\-reload \-fgcse\-las \-fgcse\-lm \-fgraphite\-identity
  527. \&\-fgcse\-sm \-fhoist\-adjacent\-loads \-fif\-conversion
  528. \&\-fif\-conversion2 \-findirect\-inlining
  529. \&\-finline\-functions \-finline\-functions\-called\-once \-finline\-limit=\fR\fIn\fR
  530. \&\fB\-finline\-small\-functions \-fipa\-modref \-fipa\-cp \-fipa\-cp\-clone
  531. \&\-fipa\-bit\-cp \-fipa\-vrp \-fipa\-pta \-fipa\-profile \-fipa\-pure\-const
  532. \&\-fipa\-reference \-fipa\-reference\-addressable
  533. \&\-fipa\-stack\-alignment \-fipa\-icf \-fira\-algorithm=\fR\fIalgorithm\fR
  534. \&\fB\-flive\-patching=\fR\fIlevel\fR
  535. \&\fB\-fira\-region=\fR\fIregion\fR \fB\-fira\-hoist\-pressure
  536. \&\-fira\-loop\-pressure \-fno\-ira\-share\-save\-slots
  537. \&\-fno\-ira\-share\-spill\-slots
  538. \&\-fisolate\-erroneous\-paths\-dereference \-fisolate\-erroneous\-paths\-attribute
  539. \&\-fivopts \-fkeep\-inline\-functions \-fkeep\-static\-functions
  540. \&\-fkeep\-static\-consts \-flimit\-function\-alignment \-flive\-range\-shrinkage
  541. \&\-floop\-block \-floop\-interchange \-floop\-strip\-mine
  542. \&\-floop\-unroll\-and\-jam \-floop\-nest\-optimize
  543. \&\-floop\-parallelize\-all \-flra\-remat \-flto \-flto\-compression\-level
  544. \&\-flto\-partition=\fR\fIalg\fR \fB\-fmerge\-all\-constants
  545. \&\-fmerge\-constants \-fmodulo\-sched \-fmodulo\-sched\-allow\-regmoves
  546. \&\-fmove\-loop\-invariants \-fno\-branch\-count\-reg
  547. \&\-fno\-defer\-pop \-fno\-fp\-int\-builtin\-inexact \-fno\-function\-cse
  548. \&\-fno\-guess\-branch\-probability \-fno\-inline \-fno\-math\-errno \-fno\-peephole
  549. \&\-fno\-peephole2 \-fno\-printf\-return\-value \-fno\-sched\-interblock
  550. \&\-fno\-sched\-spec \-fno\-signed\-zeros
  551. \&\-fno\-toplevel\-reorder \-fno\-trapping\-math \-fno\-zero\-initialized\-in\-bss
  552. \&\-fomit\-frame\-pointer \-foptimize\-sibling\-calls
  553. \&\-fpartial\-inlining \-fpeel\-loops \-fpredictive\-commoning
  554. \&\-fprefetch\-loop\-arrays
  555. \&\-fprofile\-correction
  556. \&\-fprofile\-use \-fprofile\-use=\fR\fIpath\fR \fB\-fprofile\-partial\-training
  557. \&\-fprofile\-values \-fprofile\-reorder\-functions
  558. \&\-freciprocal\-math \-free \-frename\-registers \-freorder\-blocks
  559. \&\-freorder\-blocks\-algorithm=\fR\fIalgorithm\fR
  560. \&\fB\-freorder\-blocks\-and\-partition \-freorder\-functions
  561. \&\-frerun\-cse\-after\-loop \-freschedule\-modulo\-scheduled\-loops
  562. \&\-frounding\-math \-fsave\-optimization\-record
  563. \&\-fsched2\-use\-superblocks \-fsched\-pressure
  564. \&\-fsched\-spec\-load \-fsched\-spec\-load\-dangerous
  565. \&\-fsched\-stalled\-insns\-dep[=\fR\fIn\fR\fB] \-fsched\-stalled\-insns[=\fR\fIn\fR\fB]
  566. \&\-fsched\-group\-heuristic \-fsched\-critical\-path\-heuristic
  567. \&\-fsched\-spec\-insn\-heuristic \-fsched\-rank\-heuristic
  568. \&\-fsched\-last\-insn\-heuristic \-fsched\-dep\-count\-heuristic
  569. \&\-fschedule\-fusion
  570. \&\-fschedule\-insns \-fschedule\-insns2 \-fsection\-anchors
  571. \&\-fselective\-scheduling \-fselective\-scheduling2
  572. \&\-fsel\-sched\-pipelining \-fsel\-sched\-pipelining\-outer\-loops
  573. \&\-fsemantic\-interposition \-fshrink\-wrap \-fshrink\-wrap\-separate
  574. \&\-fsignaling\-nans
  575. \&\-fsingle\-precision\-constant \-fsplit\-ivs\-in\-unroller \-fsplit\-loops
  576. \&\-fsplit\-paths
  577. \&\-fsplit\-wide\-types \-fsplit\-wide\-types\-early \-fssa\-backprop \-fssa\-phiopt
  578. \&\-fstdarg\-opt \-fstore\-merging \-fstrict\-aliasing
  579. \&\-fthread\-jumps \-ftracer \-ftree\-bit\-ccp
  580. \&\-ftree\-builtin\-call\-dce \-ftree\-ccp \-ftree\-ch
  581. \&\-ftree\-coalesce\-vars \-ftree\-copy\-prop \-ftree\-dce \-ftree\-dominator\-opts
  582. \&\-ftree\-dse \-ftree\-forwprop \-ftree\-fre \-fcode\-hoisting
  583. \&\-ftree\-loop\-if\-convert \-ftree\-loop\-im
  584. \&\-ftree\-phiprop \-ftree\-loop\-distribution \-ftree\-loop\-distribute\-patterns
  585. \&\-ftree\-loop\-ivcanon \-ftree\-loop\-linear \-ftree\-loop\-optimize
  586. \&\-ftree\-loop\-vectorize
  587. \&\-ftree\-parallelize\-loops=\fR\fIn\fR \fB\-ftree\-pre \-ftree\-partial\-pre \-ftree\-pta
  588. \&\-ftree\-reassoc \-ftree\-scev\-cprop \-ftree\-sink \-ftree\-slsr \-ftree\-sra
  589. \&\-ftree\-switch\-conversion \-ftree\-tail\-merge
  590. \&\-ftree\-ter \-ftree\-vectorize \-ftree\-vrp \-funconstrained\-commons
  591. \&\-funit\-at\-a\-time \-funroll\-all\-loops \-funroll\-loops
  592. \&\-funsafe\-math\-optimizations \-funswitch\-loops
  593. \&\-fipa\-ra \-fvariable\-expansion\-in\-unroller \-fvect\-cost\-model \-fvpt
  594. \&\-fweb \-fwhole\-program \-fwpa \-fuse\-linker\-plugin \-fzero\-call\-used\-regs
  595. \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
  596. \&\fB\-O \-O0 \-O1 \-O2 \-O3 \-Os \-Ofast \-Og\fR
  597. .IP "\fIProgram Instrumentation Options\fR" 4
  598. .IX Item "Program Instrumentation Options"
  599. \&\fB\-p \-pg \-fprofile\-arcs \-\-coverage \-ftest\-coverage
  600. \&\-fprofile\-abs\-path
  601. \&\-fprofile\-dir=\fR\fIpath\fR \fB\-fprofile\-generate \-fprofile\-generate=\fR\fIpath\fR
  602. \&\fB\-fprofile\-info\-section \-fprofile\-info\-section=\fR\fIname\fR
  603. \&\fB\-fprofile\-note=\fR\fIpath\fR \fB\-fprofile\-prefix\-path=\fR\fIpath\fR
  604. \&\fB\-fprofile\-update=\fR\fImethod\fR \fB\-fprofile\-filter\-files=\fR\fIregex\fR
  605. \&\fB\-fprofile\-exclude\-files=\fR\fIregex\fR
  606. \&\fB\-fprofile\-reproducible=\fR[\fBmultithreaded\fR|\fBparallel-runs\fR|\fBserial\fR]
  607. \&\fB\-fsanitize=\fR\fIstyle\fR \fB\-fsanitize\-recover \-fsanitize\-recover=\fR\fIstyle\fR
  608. \&\fB\-fasan\-shadow\-offset=\fR\fInumber\fR \fB\-fsanitize\-sections=\fR\fIs1\fR\fB,\fR\fIs2\fR\fB,...
  609. \&\-fsanitize\-undefined\-trap\-on\-error \-fbounds\-check
  610. \&\-fcf\-protection=\fR[\fBfull\fR|\fBbranch\fR|\fBreturn\fR|\fBnone\fR|\fBcheck\fR]
  611. \&\fB\-fstack\-protector \-fstack\-protector\-all \-fstack\-protector\-strong
  612. \&\-fstack\-protector\-explicit \-fstack\-check
  613. \&\-fstack\-limit\-register=\fR\fIreg\fR \fB\-fstack\-limit\-symbol=\fR\fIsym\fR
  614. \&\fB\-fno\-stack\-limit \-fsplit\-stack
  615. \&\-fvtable\-verify=\fR[\fBstd\fR|\fBpreinit\fR|\fBnone\fR]
  616. \&\fB\-fvtv\-counts \-fvtv\-debug
  617. \&\-finstrument\-functions
  618. \&\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,...
  619. \&\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR
  620. .IP "\fIPreprocessor Options\fR" 4
  621. .IX Item "Preprocessor Options"
  622. \&\fB\-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR
  623. \&\fB\-A\-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR]
  624. \&\fB\-C \-CC \-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]
  625. \&\fB\-dD \-dI \-dM \-dN \-dU
  626. \&\-fdebug\-cpp \-fdirectives\-only \-fdollars\-in\-identifiers
  627. \&\-fexec\-charset=\fR\fIcharset\fR \fB\-fextended\-identifiers
  628. \&\-finput\-charset=\fR\fIcharset\fR \fB\-flarge\-source\-files
  629. \&\-fmacro\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR \fB\-fmax\-include\-depth=\fR\fIdepth\fR
  630. \&\fB\-fno\-canonical\-system\-headers \-fpch\-deps \-fpch\-preprocess
  631. \&\-fpreprocessed \-ftabstop=\fR\fIwidth\fR \fB\-ftrack\-macro\-expansion
  632. \&\-fwide\-exec\-charset=\fR\fIcharset\fR \fB\-fworking\-directory
  633. \&\-H \-imacros\fR \fIfile\fR \fB\-include\fR \fIfile\fR
  634. \&\fB\-M \-MD \-MF \-MG \-MM \-MMD \-MP \-MQ \-MT \-Mno\-modules
  635. \&\-no\-integrated\-cpp \-P \-pthread \-remap
  636. \&\-traditional \-traditional\-cpp \-trigraphs
  637. \&\-U\fR\fImacro\fR \fB\-undef
  638. \&\-Wp,\fR\fIoption\fR \fB\-Xpreprocessor\fR \fIoption\fR
  639. .IP "\fIAssembler Options\fR" 4
  640. .IX Item "Assembler Options"
  641. \&\fB\-Wa,\fR\fIoption\fR \fB\-Xassembler\fR \fIoption\fR
  642. .IP "\fILinker Options\fR" 4
  643. .IX Item "Linker Options"
  644. \&\fIobject-file-name\fR \fB\-fuse\-ld=\fR\fIlinker\fR \fB\-l\fR\fIlibrary\fR
  645. \&\fB\-nostartfiles \-nodefaultlibs \-nolibc \-nostdlib
  646. \&\-e\fR \fIentry\fR \fB\-\-entry=\fR\fIentry\fR
  647. \&\fB\-pie \-pthread \-r \-rdynamic
  648. \&\-s \-static \-static\-pie \-static\-libgcc \-static\-libstdc++
  649. \&\-static\-libasan \-static\-libtsan \-static\-liblsan \-static\-libubsan
  650. \&\-shared \-shared\-libgcc \-symbolic
  651. \&\-T\fR \fIscript\fR \fB\-Wl,\fR\fIoption\fR \fB\-Xlinker\fR \fIoption\fR
  652. \&\fB\-u\fR \fIsymbol\fR \fB\-z\fR \fIkeyword\fR
  653. .IP "\fIDirectory Options\fR" 4
  654. .IX Item "Directory Options"
  655. \&\fB\-B\fR\fIprefix\fR \fB\-I\fR\fIdir\fR \fB\-I\-
  656. \&\-idirafter\fR \fIdir\fR
  657. \&\fB\-imacros\fR \fIfile\fR \fB\-imultilib\fR \fIdir\fR
  658. \&\fB\-iplugindir=\fR\fIdir\fR \fB\-iprefix\fR \fIfile\fR
  659. \&\fB\-iquote\fR \fIdir\fR \fB\-isysroot\fR \fIdir\fR \fB\-isystem\fR \fIdir\fR
  660. \&\fB\-iwithprefix\fR \fIdir\fR \fB\-iwithprefixbefore\fR \fIdir\fR
  661. \&\fB\-L\fR\fIdir\fR \fB\-no\-canonical\-prefixes \-\-no\-sysroot\-suffix
  662. \&\-nostdinc \-nostdinc++ \-\-sysroot=\fR\fIdir\fR
  663. .IP "\fICode Generation Options\fR" 4
  664. .IX Item "Code Generation Options"
  665. \&\fB\-fcall\-saved\-\fR\fIreg\fR \fB\-fcall\-used\-\fR\fIreg\fR
  666. \&\fB\-ffixed\-\fR\fIreg\fR \fB\-fexceptions
  667. \&\-fnon\-call\-exceptions \-fdelete\-dead\-exceptions \-funwind\-tables
  668. \&\-fasynchronous\-unwind\-tables
  669. \&\-fno\-gnu\-unique
  670. \&\-finhibit\-size\-directive \-fcommon \-fno\-ident
  671. \&\-fpcc\-struct\-return \-fpic \-fPIC \-fpie \-fPIE \-fno\-plt
  672. \&\-fno\-jump\-tables \-fno\-bit\-tests
  673. \&\-frecord\-gcc\-switches
  674. \&\-freg\-struct\-return \-fshort\-enums \-fshort\-wchar
  675. \&\-fverbose\-asm \-fpack\-struct[=\fR\fIn\fR\fB]
  676. \&\-fleading\-underscore \-ftls\-model=\fR\fImodel\fR
  677. \&\fB\-fstack\-reuse=\fR\fIreuse_level\fR
  678. \&\fB\-ftrampolines \-ftrapv \-fwrapv
  679. \&\-fvisibility=\fR[\fBdefault\fR|\fBinternal\fR|\fBhidden\fR|\fBprotected\fR]
  680. \&\fB\-fstrict\-volatile\-bitfields \-fsync\-libcalls\fR
  681. .IP "\fIDeveloper Options\fR" 4
  682. .IX Item "Developer Options"
  683. \&\fB\-d\fR\fIletters\fR \fB\-dumpspecs \-dumpmachine \-dumpversion
  684. \&\-dumpfullversion \-fcallgraph\-info\fR[\fB=su,da\fR]
  685. \&\fB\-fchecking \-fchecking=\fR\fIn\fR
  686. \&\fB\-fdbg\-cnt\-list \-fdbg\-cnt=\fR\fIcounter-value-list\fR
  687. \&\fB\-fdisable\-ipa\-\fR\fIpass_name\fR
  688. \&\fB\-fdisable\-rtl\-\fR\fIpass_name\fR
  689. \&\fB\-fdisable\-rtl\-\fR\fIpass-name\fR\fB=\fR\fIrange-list\fR
  690. \&\fB\-fdisable\-tree\-\fR\fIpass_name\fR
  691. \&\fB\-fdisable\-tree\-\fR\fIpass-name\fR\fB=\fR\fIrange-list\fR
  692. \&\fB\-fdump\-debug \-fdump\-earlydebug
  693. \&\-fdump\-noaddr \-fdump\-unnumbered \-fdump\-unnumbered\-links
  694. \&\-fdump\-final\-insns\fR[\fB=\fR\fIfile\fR]
  695. \&\fB\-fdump\-ipa\-all \-fdump\-ipa\-cgraph \-fdump\-ipa\-inline
  696. \&\-fdump\-lang\-all
  697. \&\-fdump\-lang\-\fR\fIswitch\fR
  698. \&\fB\-fdump\-lang\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR
  699. \&\fB\-fdump\-lang\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR
  700. \&\fB\-fdump\-passes
  701. \&\-fdump\-rtl\-\fR\fIpass\fR \fB\-fdump\-rtl\-\fR\fIpass\fR\fB=\fR\fIfilename\fR
  702. \&\fB\-fdump\-statistics
  703. \&\-fdump\-tree\-all
  704. \&\-fdump\-tree\-\fR\fIswitch\fR
  705. \&\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR
  706. \&\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR
  707. \&\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR] \fB\-fcompare\-debug\-second
  708. \&\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR
  709. \&\fB\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR
  710. \&\fB\-fira\-verbose=\fR\fIn\fR
  711. \&\fB\-flto\-report \-flto\-report\-wpa \-fmem\-report\-wpa
  712. \&\-fmem\-report \-fpre\-ipa\-mem\-report \-fpost\-ipa\-mem\-report
  713. \&\-fopt\-info \-fopt\-info\-\fR\fIoptions\fR[\fB=\fR\fIfile\fR]
  714. \&\fB\-fprofile\-report
  715. \&\-frandom\-seed=\fR\fIstring\fR \fB\-fsched\-verbose=\fR\fIn\fR
  716. \&\fB\-fsel\-sched\-verbose \-fsel\-sched\-dump\-cfg \-fsel\-sched\-pipelining\-verbose
  717. \&\-fstats \-fstack\-usage \-ftime\-report \-ftime\-report\-details
  718. \&\-fvar\-tracking\-assignments\-toggle \-gtoggle
  719. \&\-print\-file\-name=\fR\fIlibrary\fR \fB\-print\-libgcc\-file\-name
  720. \&\-print\-multi\-directory \-print\-multi\-lib \-print\-multi\-os\-directory
  721. \&\-print\-prog\-name=\fR\fIprogram\fR \fB\-print\-search\-dirs \-Q
  722. \&\-print\-sysroot \-print\-sysroot\-headers\-suffix
  723. \&\-save\-temps \-save\-temps=cwd \-save\-temps=obj \-time\fR[\fB=\fR\fIfile\fR]
  724. .IP "\fIMachine-Dependent Options\fR" 4
  725. .IX Item "Machine-Dependent Options"
  726. \&\fIAArch64 Options\fR
  727. \&\fB\-mabi=\fR\fIname\fR \fB\-mbig\-endian \-mlittle\-endian
  728. \&\-mgeneral\-regs\-only
  729. \&\-mcmodel=tiny \-mcmodel=small \-mcmodel=large
  730. \&\-mstrict\-align \-mno\-strict\-align
  731. \&\-momit\-leaf\-frame\-pointer
  732. \&\-mtls\-dialect=desc \-mtls\-dialect=traditional
  733. \&\-mtls\-size=\fR\fIsize\fR
  734. \&\fB\-mfix\-cortex\-a53\-835769 \-mfix\-cortex\-a53\-843419
  735. \&\-mlow\-precision\-recip\-sqrt \-mlow\-precision\-sqrt \-mlow\-precision\-div
  736. \&\-mpc\-relative\-literal\-loads
  737. \&\-msign\-return\-address=\fR\fIscope\fR
  738. \&\fB\-mbranch\-protection=\fR\fInone\fR\fB|\fR\fIstandard\fR\fB|\fR\fIpac-ret\fR\fB[+\fR\fIleaf\fR
  739. \&\fB+\fR\fIb\-key\fR\fB]|\fR\fIbti\fR
  740. \&\fB\-mharden\-sls=\fR\fIopts\fR
  741. \&\fB\-march=\fR\fIname\fR \fB\-mcpu=\fR\fIname\fR \fB\-mtune=\fR\fIname\fR
  742. \&\fB\-moverride=\fR\fIstring\fR \fB\-mverbose\-cost\-dump
  743. \&\-mstack\-protector\-guard=\fR\fIguard\fR \fB\-mstack\-protector\-guard\-reg=\fR\fIsysreg\fR
  744. \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR \fB\-mtrack\-speculation
  745. \&\-moutline\-atomics\fR
  746. .Sp
  747. \&\fIAdapteva Epiphany Options\fR
  748. \&\fB\-mhalf\-reg\-file \-mprefer\-short\-insn\-regs
  749. \&\-mbranch\-cost=\fR\fInum\fR \fB\-mcmove \-mnops=\fR\fInum\fR \fB\-msoft\-cmpsf
  750. \&\-msplit\-lohi \-mpost\-inc \-mpost\-modify \-mstack\-offset=\fR\fInum\fR
  751. \&\fB\-mround\-nearest \-mlong\-calls \-mshort\-calls \-msmall16
  752. \&\-mfp\-mode=\fR\fImode\fR \fB\-mvect\-double \-max\-vect\-align=\fR\fInum\fR
  753. \&\fB\-msplit\-vecmove\-early \-m1reg\-\fR\fIreg\fR
  754. .Sp
  755. \&\fI\s-1AMD GCN\s0 Options\fR
  756. \&\fB\-march=\fR\fIgpu\fR \fB\-mtune=\fR\fIgpu\fR \fB\-mstack\-size=\fR\fIbytes\fR
  757. .Sp
  758. \&\fI\s-1ARC\s0 Options\fR
  759. \&\fB\-mbarrel\-shifter \-mjli\-always
  760. \&\-mcpu=\fR\fIcpu\fR \fB\-mA6 \-mARC600 \-mA7 \-mARC700
  761. \&\-mdpfp \-mdpfp\-compact \-mdpfp\-fast \-mno\-dpfp\-lrsr
  762. \&\-mea \-mno\-mpy \-mmul32x16 \-mmul64 \-matomic
  763. \&\-mnorm \-mspfp \-mspfp\-compact \-mspfp\-fast \-msimd \-msoft\-float \-mswap
  764. \&\-mcrc \-mdsp\-packa \-mdvbf \-mlock \-mmac\-d16 \-mmac\-24 \-mrtsc \-mswape
  765. \&\-mtelephony \-mxy \-misize \-mannotate\-align \-marclinux \-marclinux_prof
  766. \&\-mlong\-calls \-mmedium\-calls \-msdata \-mirq\-ctrl\-saved
  767. \&\-mrgf\-banked\-regs \-mlpc\-width=\fR\fIwidth\fR \fB\-G\fR \fInum\fR
  768. \&\fB\-mvolatile\-cache \-mtp\-regno=\fR\fIregno\fR
  769. \&\fB\-malign\-call \-mauto\-modify\-reg \-mbbit\-peephole \-mno\-brcc
  770. \&\-mcase\-vector\-pcrel \-mcompact\-casesi \-mno\-cond\-exec \-mearly\-cbranchsi
  771. \&\-mexpand\-adddi \-mindexed\-loads \-mlra \-mlra\-priority\-none
  772. \&\-mlra\-priority\-compact mlra-priority-noncompact \-mmillicode
  773. \&\-mmixed\-code \-mq\-class \-mRcq \-mRcw \-msize\-level=\fR\fIlevel\fR
  774. \&\fB\-mtune=\fR\fIcpu\fR \fB\-mmultcost=\fR\fInum\fR \fB\-mcode\-density\-frame
  775. \&\-munalign\-prob\-threshold=\fR\fIprobability\fR \fB\-mmpy\-option=\fR\fImulto\fR
  776. \&\fB\-mdiv\-rem \-mcode\-density \-mll64 \-mfpu=\fR\fIfpu\fR \fB\-mrf16 \-mbranch\-index\fR
  777. .Sp
  778. \&\fI\s-1ARM\s0 Options\fR
  779. \&\fB\-mapcs\-frame \-mno\-apcs\-frame
  780. \&\-mabi=\fR\fIname\fR
  781. \&\fB\-mapcs\-stack\-check \-mno\-apcs\-stack\-check
  782. \&\-mapcs\-reentrant \-mno\-apcs\-reentrant
  783. \&\-mgeneral\-regs\-only
  784. \&\-msched\-prolog \-mno\-sched\-prolog
  785. \&\-mlittle\-endian \-mbig\-endian
  786. \&\-mbe8 \-mbe32
  787. \&\-mfloat\-abi=\fR\fIname\fR
  788. \&\fB\-mfp16\-format=\fR\fIname\fR
  789. \&\fB\-mthumb\-interwork \-mno\-thumb\-interwork
  790. \&\-mcpu=\fR\fIname\fR \fB\-march=\fR\fIname\fR \fB\-mfpu=\fR\fIname\fR
  791. \&\fB\-mtune=\fR\fIname\fR \fB\-mprint\-tune\-info
  792. \&\-mstructure\-size\-boundary=\fR\fIn\fR
  793. \&\fB\-mabort\-on\-noreturn
  794. \&\-mlong\-calls \-mno\-long\-calls
  795. \&\-msingle\-pic\-base \-mno\-single\-pic\-base
  796. \&\-mpic\-register=\fR\fIreg\fR
  797. \&\fB\-mnop\-fun\-dllimport
  798. \&\-mpoke\-function\-name
  799. \&\-mthumb \-marm \-mflip\-thumb
  800. \&\-mtpcs\-frame \-mtpcs\-leaf\-frame
  801. \&\-mcaller\-super\-interworking \-mcallee\-super\-interworking
  802. \&\-mtp=\fR\fIname\fR \fB\-mtls\-dialect=\fR\fIdialect\fR
  803. \&\fB\-mword\-relocations
  804. \&\-mfix\-cortex\-m3\-ldrd
  805. \&\-munaligned\-access
  806. \&\-mneon\-for\-64bits
  807. \&\-mslow\-flash\-data
  808. \&\-masm\-syntax\-unified
  809. \&\-mrestrict\-it
  810. \&\-mverbose\-cost\-dump
  811. \&\-mpure\-code
  812. \&\-mcmse
  813. \&\-mfdpic\fR
  814. .Sp
  815. \&\fI\s-1AVR\s0 Options\fR
  816. \&\fB\-mmcu=\fR\fImcu\fR \fB\-mabsdata \-maccumulate\-args
  817. \&\-mbranch\-cost=\fR\fIcost\fR
  818. \&\fB\-mcall\-prologues \-mgas\-isr\-prologues \-mint8
  819. \&\-mdouble=\fR\fIbits\fR \fB\-mlong\-double=\fR\fIbits\fR
  820. \&\fB\-mn_flash=\fR\fIsize\fR \fB\-mno\-interrupts
  821. \&\-mmain\-is\-OS_task \-mrelax \-mrmw \-mstrict\-X \-mtiny\-stack
  822. \&\-mfract\-convert\-truncate
  823. \&\-mshort\-calls \-nodevicelib \-nodevicespecs
  824. \&\-Waddr\-space\-convert \-Wmisspelled\-isr\fR
  825. .Sp
  826. \&\fIBlackfin Options\fR
  827. \&\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR]
  828. \&\fB\-msim \-momit\-leaf\-frame\-pointer \-mno\-omit\-leaf\-frame\-pointer
  829. \&\-mspecld\-anomaly \-mno\-specld\-anomaly \-mcsync\-anomaly \-mno\-csync\-anomaly
  830. \&\-mlow\-64k \-mno\-low64k \-mstack\-check\-l1 \-mid\-shared\-library
  831. \&\-mno\-id\-shared\-library \-mshared\-library\-id=\fR\fIn\fR
  832. \&\fB\-mleaf\-id\-shared\-library \-mno\-leaf\-id\-shared\-library
  833. \&\-msep\-data \-mno\-sep\-data \-mlong\-calls \-mno\-long\-calls
  834. \&\-mfast\-fp \-minline\-plt \-mmulticore \-mcorea \-mcoreb \-msdram
  835. \&\-micplb\fR
  836. .Sp
  837. \&\fIC6X Options\fR
  838. \&\fB\-mbig\-endian \-mlittle\-endian \-march=\fR\fIcpu\fR
  839. \&\fB\-msim \-msdata=\fR\fIsdata-type\fR
  840. .Sp
  841. \&\fI\s-1CRIS\s0 Options\fR
  842. \&\fB\-mcpu=\fR\fIcpu\fR \fB\-march=\fR\fIcpu\fR \fB\-mtune=\fR\fIcpu\fR
  843. \&\fB\-mmax\-stack\-frame=\fR\fIn\fR \fB\-melinux\-stacksize=\fR\fIn\fR
  844. \&\fB\-metrax4 \-metrax100 \-mpdebug \-mcc\-init \-mno\-side\-effects
  845. \&\-mstack\-align \-mdata\-align \-mconst\-align
  846. \&\-m32\-bit \-m16\-bit \-m8\-bit \-mno\-prologue\-epilogue \-mno\-gotplt
  847. \&\-melf \-maout \-melinux \-mlinux \-sim \-sim2
  848. \&\-mmul\-bug\-workaround \-mno\-mul\-bug\-workaround\fR
  849. .Sp
  850. \&\fI\s-1CR16\s0 Options\fR
  851. \&\fB\-mmac
  852. \&\-mcr16cplus \-mcr16c
  853. \&\-msim \-mint32 \-mbit\-ops
  854. \&\-mdata\-model=\fR\fImodel\fR
  855. .Sp
  856. \&\fIC\-SKY Options\fR
  857. \&\fB\-march=\fR\fIarch\fR \fB\-mcpu=\fR\fIcpu\fR
  858. \&\fB\-mbig\-endian \-EB \-mlittle\-endian \-EL
  859. \&\-mhard\-float \-msoft\-float \-mfpu=\fR\fIfpu\fR \fB\-mdouble\-float \-mfdivdu
  860. \&\-mfloat\-abi=\fR\fIname\fR
  861. \&\fB\-melrw \-mistack \-mmp \-mcp \-mcache \-msecurity \-mtrust
  862. \&\-mdsp \-medsp \-mvdsp
  863. \&\-mdiv \-msmart \-mhigh\-registers \-manchor
  864. \&\-mpushpop \-mmultiple\-stld \-mconstpool \-mstack\-size \-mccrt
  865. \&\-mbranch\-cost=\fR\fIn\fR \fB\-mcse\-cc \-msched\-prolog \-msim\fR
  866. .Sp
  867. \&\fIDarwin Options\fR
  868. \&\fB\-all_load \-allowable_client \-arch \-arch_errors_fatal
  869. \&\-arch_only \-bind_at_load \-bundle \-bundle_loader
  870. \&\-client_name \-compatibility_version \-current_version
  871. \&\-dead_strip
  872. \&\-dependency\-file \-dylib_file \-dylinker_install_name
  873. \&\-dynamic \-dynamiclib \-exported_symbols_list
  874. \&\-filelist \-flat_namespace \-force_cpusubtype_ALL
  875. \&\-force_flat_namespace \-headerpad_max_install_names
  876. \&\-iframework
  877. \&\-image_base \-init \-install_name \-keep_private_externs
  878. \&\-multi_module \-multiply_defined \-multiply_defined_unused
  879. \&\-noall_load \-no_dead_strip_inits_and_terms
  880. \&\-nofixprebinding \-nomultidefs \-noprebind \-noseglinkedit
  881. \&\-pagezero_size \-prebind \-prebind_all_twolevel_modules
  882. \&\-private_bundle \-read_only_relocs \-sectalign
  883. \&\-sectobjectsymbols \-whyload \-seg1addr
  884. \&\-sectcreate \-sectobjectsymbols \-sectorder
  885. \&\-segaddr \-segs_read_only_addr \-segs_read_write_addr
  886. \&\-seg_addr_table \-seg_addr_table_filename \-seglinkedit
  887. \&\-segprot \-segs_read_only_addr \-segs_read_write_addr
  888. \&\-single_module \-static \-sub_library \-sub_umbrella
  889. \&\-twolevel_namespace \-umbrella \-undefined
  890. \&\-unexported_symbols_list \-weak_reference_mismatches
  891. \&\-whatsloaded \-F \-gused \-gfull \-mmacosx\-version\-min=\fR\fIversion\fR
  892. \&\fB\-mkernel \-mone\-byte\-bool\fR
  893. .Sp
  894. \&\fI\s-1DEC\s0 Alpha Options\fR
  895. \&\fB\-mno\-fp\-regs \-msoft\-float
  896. \&\-mieee \-mieee\-with\-inexact \-mieee\-conformant
  897. \&\-mfp\-trap\-mode=\fR\fImode\fR \fB\-mfp\-rounding\-mode=\fR\fImode\fR
  898. \&\fB\-mtrap\-precision=\fR\fImode\fR \fB\-mbuild\-constants
  899. \&\-mcpu=\fR\fIcpu-type\fR \fB\-mtune=\fR\fIcpu-type\fR
  900. \&\fB\-mbwx \-mmax \-mfix \-mcix
  901. \&\-mfloat\-vax \-mfloat\-ieee
  902. \&\-mexplicit\-relocs \-msmall\-data \-mlarge\-data
  903. \&\-msmall\-text \-mlarge\-text
  904. \&\-mmemory\-latency=\fR\fItime\fR
  905. .Sp
  906. \&\fIeBPF Options\fR
  907. \&\fB\-mbig\-endian \-mlittle\-endian \-mkernel=\fR\fIversion\fR
  908. \&\fB\-mframe\-limit=\fR\fIbytes\fR \fB\-mxbpf\fR
  909. .Sp
  910. \&\fI\s-1FR30\s0 Options\fR
  911. \&\fB\-msmall\-model \-mno\-lsim\fR
  912. .Sp
  913. \&\fI\s-1FT32\s0 Options\fR
  914. \&\fB\-msim \-mlra \-mnodiv \-mft32b \-mcompress \-mnopm\fR
  915. .Sp
  916. \&\fI\s-1FRV\s0 Options\fR
  917. \&\fB\-mgpr\-32 \-mgpr\-64 \-mfpr\-32 \-mfpr\-64
  918. \&\-mhard\-float \-msoft\-float
  919. \&\-malloc\-cc \-mfixed\-cc \-mdword \-mno\-dword
  920. \&\-mdouble \-mno\-double
  921. \&\-mmedia \-mno\-media \-mmuladd \-mno\-muladd
  922. \&\-mfdpic \-minline\-plt \-mgprel\-ro \-multilib\-library\-pic
  923. \&\-mlinked\-fp \-mlong\-calls \-malign\-labels
  924. \&\-mlibrary\-pic \-macc\-4 \-macc\-8
  925. \&\-mpack \-mno\-pack \-mno\-eflags \-mcond\-move \-mno\-cond\-move
  926. \&\-moptimize\-membar \-mno\-optimize\-membar
  927. \&\-mscc \-mno\-scc \-mcond\-exec \-mno\-cond\-exec
  928. \&\-mvliw\-branch \-mno\-vliw\-branch
  929. \&\-mmulti\-cond\-exec \-mno\-multi\-cond\-exec \-mnested\-cond\-exec
  930. \&\-mno\-nested\-cond\-exec \-mtomcat\-stats
  931. \&\-mTLS \-mtls
  932. \&\-mcpu=\fR\fIcpu\fR
  933. .Sp
  934. \&\fIGNU/Linux Options\fR
  935. \&\fB\-mglibc \-muclibc \-mmusl \-mbionic \-mandroid
  936. \&\-tno\-android\-cc \-tno\-android\-ld\fR
  937. .Sp
  938. \&\fIH8/300 Options\fR
  939. \&\fB\-mrelax \-mh \-ms \-mn \-mexr \-mno\-exr \-mint32 \-malign\-300\fR
  940. .Sp
  941. \&\fI\s-1HPPA\s0 Options\fR
  942. \&\fB\-march=\fR\fIarchitecture-type\fR
  943. \&\fB\-mcaller\-copies \-mdisable\-fpregs \-mdisable\-indexing
  944. \&\-mfast\-indirect\-calls \-mgas \-mgnu\-ld \-mhp\-ld
  945. \&\-mfixed\-range=\fR\fIregister-range\fR
  946. \&\fB\-mjump\-in\-delay \-mlinker\-opt \-mlong\-calls
  947. \&\-mlong\-load\-store \-mno\-disable\-fpregs
  948. \&\-mno\-disable\-indexing \-mno\-fast\-indirect\-calls \-mno\-gas
  949. \&\-mno\-jump\-in\-delay \-mno\-long\-load\-store
  950. \&\-mno\-portable\-runtime \-mno\-soft\-float
  951. \&\-mno\-space\-regs \-msoft\-float \-mpa\-risc\-1\-0
  952. \&\-mpa\-risc\-1\-1 \-mpa\-risc\-2\-0 \-mportable\-runtime
  953. \&\-mschedule=\fR\fIcpu-type\fR \fB\-mspace\-regs \-msio \-mwsio
  954. \&\-munix=\fR\fIunix-std\fR \fB\-nolibdld \-static \-threads\fR
  955. .Sp
  956. \&\fI\s-1IA\-64\s0 Options\fR
  957. \&\fB\-mbig\-endian \-mlittle\-endian \-mgnu\-as \-mgnu\-ld \-mno\-pic
  958. \&\-mvolatile\-asm\-stop \-mregister\-names \-msdata \-mno\-sdata
  959. \&\-mconstant\-gp \-mauto\-pic \-mfused\-madd
  960. \&\-minline\-float\-divide\-min\-latency
  961. \&\-minline\-float\-divide\-max\-throughput
  962. \&\-mno\-inline\-float\-divide
  963. \&\-minline\-int\-divide\-min\-latency
  964. \&\-minline\-int\-divide\-max\-throughput
  965. \&\-mno\-inline\-int\-divide
  966. \&\-minline\-sqrt\-min\-latency \-minline\-sqrt\-max\-throughput
  967. \&\-mno\-inline\-sqrt
  968. \&\-mdwarf2\-asm \-mearly\-stop\-bits
  969. \&\-mfixed\-range=\fR\fIregister-range\fR \fB\-mtls\-size=\fR\fItls-size\fR
  970. \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-milp32 \-mlp64
  971. \&\-msched\-br\-data\-spec \-msched\-ar\-data\-spec \-msched\-control\-spec
  972. \&\-msched\-br\-in\-data\-spec \-msched\-ar\-in\-data\-spec \-msched\-in\-control\-spec
  973. \&\-msched\-spec\-ldc \-msched\-spec\-control\-ldc
  974. \&\-msched\-prefer\-non\-data\-spec\-insns \-msched\-prefer\-non\-control\-spec\-insns
  975. \&\-msched\-stop\-bits\-after\-every\-cycle \-msched\-count\-spec\-in\-critical\-path
  976. \&\-msel\-sched\-dont\-check\-control\-spec \-msched\-fp\-mem\-deps\-zero\-cost
  977. \&\-msched\-max\-memory\-insns\-hard\-limit \-msched\-max\-memory\-insns=\fR\fImax-insns\fR
  978. .Sp
  979. \&\fI\s-1LM32\s0 Options\fR
  980. \&\fB\-mbarrel\-shift\-enabled \-mdivide\-enabled \-mmultiply\-enabled
  981. \&\-msign\-extend\-enabled \-muser\-enabled\fR
  982. .Sp
  983. \&\fIM32R/D Options\fR
  984. \&\fB\-m32r2 \-m32rx \-m32r
  985. \&\-mdebug
  986. \&\-malign\-loops \-mno\-align\-loops
  987. \&\-missue\-rate=\fR\fInumber\fR
  988. \&\fB\-mbranch\-cost=\fR\fInumber\fR
  989. \&\fB\-mmodel=\fR\fIcode-size-model-type\fR
  990. \&\fB\-msdata=\fR\fIsdata-type\fR
  991. \&\fB\-mno\-flush\-func \-mflush\-func=\fR\fIname\fR
  992. \&\fB\-mno\-flush\-trap \-mflush\-trap=\fR\fInumber\fR
  993. \&\fB\-G\fR \fInum\fR
  994. .Sp
  995. \&\fIM32C Options\fR
  996. \&\fB\-mcpu=\fR\fIcpu\fR \fB\-msim \-memregs=\fR\fInumber\fR
  997. .Sp
  998. \&\fIM680x0 Options\fR
  999. \&\fB\-march=\fR\fIarch\fR \fB\-mcpu=\fR\fIcpu\fR \fB\-mtune=\fR\fItune\fR
  1000. \&\fB\-m68000 \-m68020 \-m68020\-40 \-m68020\-60 \-m68030 \-m68040
  1001. \&\-m68060 \-mcpu32 \-m5200 \-m5206e \-m528x \-m5307 \-m5407
  1002. \&\-mcfv4e \-mbitfield \-mno\-bitfield \-mc68000 \-mc68020
  1003. \&\-mnobitfield \-mrtd \-mno\-rtd \-mdiv \-mno\-div \-mshort
  1004. \&\-mno\-short \-mhard\-float \-m68881 \-msoft\-float \-mpcrel
  1005. \&\-malign\-int \-mstrict\-align \-msep\-data \-mno\-sep\-data
  1006. \&\-mshared\-library\-id=n \-mid\-shared\-library \-mno\-id\-shared\-library
  1007. \&\-mxgot \-mno\-xgot \-mlong\-jump\-table\-offsets\fR
  1008. .Sp
  1009. \&\fIMCore Options\fR
  1010. \&\fB\-mhardlit \-mno\-hardlit \-mdiv \-mno\-div \-mrelax\-immediates
  1011. \&\-mno\-relax\-immediates \-mwide\-bitfields \-mno\-wide\-bitfields
  1012. \&\-m4byte\-functions \-mno\-4byte\-functions \-mcallgraph\-data
  1013. \&\-mno\-callgraph\-data \-mslow\-bytes \-mno\-slow\-bytes \-mno\-lsim
  1014. \&\-mlittle\-endian \-mbig\-endian \-m210 \-m340 \-mstack\-increment\fR
  1015. .Sp
  1016. \&\fIMeP Options\fR
  1017. \&\fB\-mabsdiff \-mall\-opts \-maverage \-mbased=\fR\fIn\fR \fB\-mbitops
  1018. \&\-mc=\fR\fIn\fR \fB\-mclip \-mconfig=\fR\fIname\fR \fB\-mcop \-mcop32 \-mcop64 \-mivc2
  1019. \&\-mdc \-mdiv \-meb \-mel \-mio\-volatile \-ml \-mleadz \-mm \-mminmax
  1020. \&\-mmult \-mno\-opts \-mrepeat \-ms \-msatur \-msdram \-msim \-msimnovec \-mtf
  1021. \&\-mtiny=\fR\fIn\fR
  1022. .Sp
  1023. \&\fIMicroBlaze Options\fR
  1024. \&\fB\-msoft\-float \-mhard\-float \-msmall\-divides \-mcpu=\fR\fIcpu\fR
  1025. \&\fB\-mmemcpy \-mxl\-soft\-mul \-mxl\-soft\-div \-mxl\-barrel\-shift
  1026. \&\-mxl\-pattern\-compare \-mxl\-stack\-check \-mxl\-gp\-opt \-mno\-clearbss
  1027. \&\-mxl\-multiply\-high \-mxl\-float\-convert \-mxl\-float\-sqrt
  1028. \&\-mbig\-endian \-mlittle\-endian \-mxl\-reorder \-mxl\-mode\-\fR\fIapp-model\fR
  1029. \&\fB\-mpic\-data\-is\-text\-relative\fR
  1030. .Sp
  1031. \&\fI\s-1MIPS\s0 Options\fR
  1032. \&\fB\-EL \-EB \-march=\fR\fIarch\fR \fB\-mtune=\fR\fIarch\fR
  1033. \&\fB\-mips1 \-mips2 \-mips3 \-mips4 \-mips32 \-mips32r2 \-mips32r3 \-mips32r5
  1034. \&\-mips32r6 \-mips64 \-mips64r2 \-mips64r3 \-mips64r5 \-mips64r6
  1035. \&\-mips16 \-mno\-mips16 \-mflip\-mips16
  1036. \&\-minterlink\-compressed \-mno\-interlink\-compressed
  1037. \&\-minterlink\-mips16 \-mno\-interlink\-mips16
  1038. \&\-mabi=\fR\fIabi\fR \fB\-mabicalls \-mno\-abicalls
  1039. \&\-mshared \-mno\-shared \-mplt \-mno\-plt \-mxgot \-mno\-xgot
  1040. \&\-mgp32 \-mgp64 \-mfp32 \-mfpxx \-mfp64 \-mhard\-float \-msoft\-float
  1041. \&\-mno\-float \-msingle\-float \-mdouble\-float
  1042. \&\-modd\-spreg \-mno\-odd\-spreg
  1043. \&\-mabs=\fR\fImode\fR \fB\-mnan=\fR\fIencoding\fR
  1044. \&\fB\-mdsp \-mno\-dsp \-mdspr2 \-mno\-dspr2
  1045. \&\-mmcu \-mmno\-mcu
  1046. \&\-meva \-mno\-eva
  1047. \&\-mvirt \-mno\-virt
  1048. \&\-mxpa \-mno\-xpa
  1049. \&\-mcrc \-mno\-crc
  1050. \&\-mginv \-mno\-ginv
  1051. \&\-mmicromips \-mno\-micromips
  1052. \&\-mmsa \-mno\-msa
  1053. \&\-mloongson\-mmi \-mno\-loongson\-mmi
  1054. \&\-mloongson\-ext \-mno\-loongson\-ext
  1055. \&\-mloongson\-ext2 \-mno\-loongson\-ext2
  1056. \&\-mfpu=\fR\fIfpu-type\fR
  1057. \&\fB\-msmartmips \-mno\-smartmips
  1058. \&\-mpaired\-single \-mno\-paired\-single \-mdmx \-mno\-mdmx
  1059. \&\-mips3d \-mno\-mips3d \-mmt \-mno\-mt \-mllsc \-mno\-llsc
  1060. \&\-mlong64 \-mlong32 \-msym32 \-mno\-sym32
  1061. \&\-G\fR\fInum\fR \fB\-mlocal\-sdata \-mno\-local\-sdata
  1062. \&\-mextern\-sdata \-mno\-extern\-sdata \-mgpopt \-mno\-gopt
  1063. \&\-membedded\-data \-mno\-embedded\-data
  1064. \&\-muninit\-const\-in\-rodata \-mno\-uninit\-const\-in\-rodata
  1065. \&\-mcode\-readable=\fR\fIsetting\fR
  1066. \&\fB\-msplit\-addresses \-mno\-split\-addresses
  1067. \&\-mexplicit\-relocs \-mno\-explicit\-relocs
  1068. \&\-mcheck\-zero\-division \-mno\-check\-zero\-division
  1069. \&\-mdivide\-traps \-mdivide\-breaks
  1070. \&\-mload\-store\-pairs \-mno\-load\-store\-pairs
  1071. \&\-mmemcpy \-mno\-memcpy \-mlong\-calls \-mno\-long\-calls
  1072. \&\-mmad \-mno\-mad \-mimadd \-mno\-imadd \-mfused\-madd \-mno\-fused\-madd \-nocpp
  1073. \&\-mfix\-24k \-mno\-fix\-24k
  1074. \&\-mfix\-r4000 \-mno\-fix\-r4000 \-mfix\-r4400 \-mno\-fix\-r4400
  1075. \&\-mfix\-r5900 \-mno\-fix\-r5900
  1076. \&\-mfix\-r10000 \-mno\-fix\-r10000 \-mfix\-rm7000 \-mno\-fix\-rm7000
  1077. \&\-mfix\-vr4120 \-mno\-fix\-vr4120
  1078. \&\-mfix\-vr4130 \-mno\-fix\-vr4130 \-mfix\-sb1 \-mno\-fix\-sb1
  1079. \&\-mflush\-func=\fR\fIfunc\fR \fB\-mno\-flush\-func
  1080. \&\-mbranch\-cost=\fR\fInum\fR \fB\-mbranch\-likely \-mno\-branch\-likely
  1081. \&\-mcompact\-branches=\fR\fIpolicy\fR
  1082. \&\fB\-mfp\-exceptions \-mno\-fp\-exceptions
  1083. \&\-mvr4130\-align \-mno\-vr4130\-align \-msynci \-mno\-synci
  1084. \&\-mlxc1\-sxc1 \-mno\-lxc1\-sxc1 \-mmadd4 \-mno\-madd4
  1085. \&\-mrelax\-pic\-calls \-mno\-relax\-pic\-calls \-mmcount\-ra\-address
  1086. \&\-mframe\-header\-opt \-mno\-frame\-header\-opt\fR
  1087. .Sp
  1088. \&\fI\s-1MMIX\s0 Options\fR
  1089. \&\fB\-mlibfuncs \-mno\-libfuncs \-mepsilon \-mno\-epsilon \-mabi=gnu
  1090. \&\-mabi=mmixware \-mzero\-extend \-mknuthdiv \-mtoplevel\-symbols
  1091. \&\-melf \-mbranch\-predict \-mno\-branch\-predict \-mbase\-addresses
  1092. \&\-mno\-base\-addresses \-msingle\-exit \-mno\-single\-exit\fR
  1093. .Sp
  1094. \&\fI\s-1MN10300\s0 Options\fR
  1095. \&\fB\-mmult\-bug \-mno\-mult\-bug
  1096. \&\-mno\-am33 \-mam33 \-mam33\-2 \-mam34
  1097. \&\-mtune=\fR\fIcpu-type\fR
  1098. \&\fB\-mreturn\-pointer\-on\-d0
  1099. \&\-mno\-crt0 \-mrelax \-mliw \-msetlb\fR
  1100. .Sp
  1101. \&\fIMoxie Options\fR
  1102. \&\fB\-meb \-mel \-mmul.x \-mno\-crt0\fR
  1103. .Sp
  1104. \&\fI\s-1MSP430\s0 Options\fR
  1105. \&\fB\-msim \-masm\-hex \-mmcu= \-mcpu= \-mlarge \-msmall \-mrelax
  1106. \&\-mwarn\-mcu
  1107. \&\-mcode\-region= \-mdata\-region=
  1108. \&\-msilicon\-errata= \-msilicon\-errata\-warn=
  1109. \&\-mhwmult= \-minrt \-mtiny\-printf \-mmax\-inline\-shift=\fR
  1110. .Sp
  1111. \&\fI\s-1NDS32\s0 Options\fR
  1112. \&\fB\-mbig\-endian \-mlittle\-endian
  1113. \&\-mreduced\-regs \-mfull\-regs
  1114. \&\-mcmov \-mno\-cmov
  1115. \&\-mext\-perf \-mno\-ext\-perf
  1116. \&\-mext\-perf2 \-mno\-ext\-perf2
  1117. \&\-mext\-string \-mno\-ext\-string
  1118. \&\-mv3push \-mno\-v3push
  1119. \&\-m16bit \-mno\-16bit
  1120. \&\-misr\-vector\-size=\fR\fInum\fR
  1121. \&\fB\-mcache\-block\-size=\fR\fInum\fR
  1122. \&\fB\-march=\fR\fIarch\fR
  1123. \&\fB\-mcmodel=\fR\fIcode-model\fR
  1124. \&\fB\-mctor\-dtor \-mrelax\fR
  1125. .Sp
  1126. \&\fINios \s-1II\s0 Options\fR
  1127. \&\fB\-G\fR \fInum\fR \fB\-mgpopt=\fR\fIoption\fR \fB\-mgpopt \-mno\-gpopt
  1128. \&\-mgprel\-sec=\fR\fIregexp\fR \fB\-mr0rel\-sec=\fR\fIregexp\fR
  1129. \&\fB\-mel \-meb
  1130. \&\-mno\-bypass\-cache \-mbypass\-cache
  1131. \&\-mno\-cache\-volatile \-mcache\-volatile
  1132. \&\-mno\-fast\-sw\-div \-mfast\-sw\-div
  1133. \&\-mhw\-mul \-mno\-hw\-mul \-mhw\-mulx \-mno\-hw\-mulx \-mno\-hw\-div \-mhw\-div
  1134. \&\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR \fB\-mno\-custom\-\fR\fIinsn\fR
  1135. \&\fB\-mcustom\-fpu\-cfg=\fR\fIname\fR
  1136. \&\fB\-mhal \-msmallc \-msys\-crt0=\fR\fIname\fR \fB\-msys\-lib=\fR\fIname\fR
  1137. \&\fB\-march=\fR\fIarch\fR \fB\-mbmx \-mno\-bmx \-mcdx \-mno\-cdx\fR
  1138. .Sp
  1139. \&\fINvidia \s-1PTX\s0 Options\fR
  1140. \&\fB\-m64 \-mmainkernel \-moptimize\fR
  1141. .Sp
  1142. \&\fIOpenRISC Options\fR
  1143. \&\fB\-mboard=\fR\fIname\fR \fB\-mnewlib \-mhard\-mul \-mhard\-div
  1144. \&\-msoft\-mul \-msoft\-div
  1145. \&\-msoft\-float \-mhard\-float \-mdouble\-float \-munordered\-float
  1146. \&\-mcmov \-mror \-mrori \-msext \-msfimm \-mshftimm\fR
  1147. .Sp
  1148. \&\fI\s-1PDP\-11\s0 Options\fR
  1149. \&\fB\-mfpu \-msoft\-float \-mac0 \-mno\-ac0 \-m40 \-m45 \-m10
  1150. \&\-mint32 \-mno\-int16 \-mint16 \-mno\-int32
  1151. \&\-msplit \-munix\-asm \-mdec\-asm \-mgnu\-asm \-mlra\fR
  1152. .Sp
  1153. \&\fIpicoChip Options\fR
  1154. \&\fB\-mae=\fR\fIae_type\fR \fB\-mvliw\-lookahead=\fR\fIN\fR
  1155. \&\fB\-msymbol\-as\-address \-mno\-inefficient\-warnings\fR
  1156. .Sp
  1157. \&\fIPowerPC Options\fR
  1158. See \s-1RS/6000\s0 and PowerPC Options.
  1159. .Sp
  1160. \&\fI\s-1PRU\s0 Options\fR
  1161. \&\fB\-mmcu=\fR\fImcu\fR \fB\-minrt \-mno\-relax \-mloop
  1162. \&\-mabi=\fR\fIvariant\fR\fB \fR
  1163. .Sp
  1164. \&\fIRISC-V Options\fR
  1165. \&\fB\-mbranch\-cost=\fR\fIN\-instruction\fR
  1166. \&\fB\-mplt \-mno\-plt
  1167. \&\-mabi=\fR\fIABI-string\fR
  1168. \&\fB\-mfdiv \-mno\-fdiv
  1169. \&\-mdiv \-mno\-div
  1170. \&\-march=\fR\fIISA-string\fR
  1171. \&\fB\-mtune=\fR\fIprocessor-string\fR
  1172. \&\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR
  1173. \&\fB\-msmall\-data\-limit=\fR\fIN\-bytes\fR
  1174. \&\fB\-msave\-restore \-mno\-save\-restore
  1175. \&\-mshorten\-memrefs \-mno\-shorten\-memrefs
  1176. \&\-mstrict\-align \-mno\-strict\-align
  1177. \&\-mcmodel=medlow \-mcmodel=medany
  1178. \&\-mexplicit\-relocs \-mno\-explicit\-relocs
  1179. \&\-mrelax \-mno\-relax
  1180. \&\-mriscv\-attribute \-mmo\-riscv\-attribute
  1181. \&\-malign\-data=\fR\fItype\fR
  1182. \&\fB\-mbig\-endian \-mlittle\-endian
  1183. +\-mstack\-protector\-guard=\fR\fIguard\fR \fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR
  1184. \&\fB+\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR
  1185. .Sp
  1186. \&\fI\s-1RL78\s0 Options\fR
  1187. \&\fB\-msim \-mmul=none \-mmul=g13 \-mmul=g14 \-mallregs
  1188. \&\-mcpu=g10 \-mcpu=g13 \-mcpu=g14 \-mg10 \-mg13 \-mg14
  1189. \&\-m64bit\-doubles \-m32bit\-doubles \-msave\-mduc\-in\-interrupts\fR
  1190. .Sp
  1191. \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
  1192. \&\fB\-mcpu=\fR\fIcpu-type\fR
  1193. \&\fB\-mtune=\fR\fIcpu-type\fR
  1194. \&\fB\-mcmodel=\fR\fIcode-model\fR
  1195. \&\fB\-mpowerpc64
  1196. \&\-maltivec \-mno\-altivec
  1197. \&\-mpowerpc\-gpopt \-mno\-powerpc\-gpopt
  1198. \&\-mpowerpc\-gfxopt \-mno\-powerpc\-gfxopt
  1199. \&\-mmfcrf \-mno\-mfcrf \-mpopcntb \-mno\-popcntb \-mpopcntd \-mno\-popcntd
  1200. \&\-mfprnd \-mno\-fprnd
  1201. \&\-mcmpb \-mno\-cmpb \-mhard\-dfp \-mno\-hard\-dfp
  1202. \&\-mfull\-toc \-mminimal\-toc \-mno\-fp\-in\-toc \-mno\-sum\-in\-toc
  1203. \&\-m64 \-m32 \-mxl\-compat \-mno\-xl\-compat \-mpe
  1204. \&\-malign\-power \-malign\-natural
  1205. \&\-msoft\-float \-mhard\-float \-mmultiple \-mno\-multiple
  1206. \&\-mupdate \-mno\-update
  1207. \&\-mavoid\-indexed\-addresses \-mno\-avoid\-indexed\-addresses
  1208. \&\-mfused\-madd \-mno\-fused\-madd \-mbit\-align \-mno\-bit\-align
  1209. \&\-mstrict\-align \-mno\-strict\-align \-mrelocatable
  1210. \&\-mno\-relocatable \-mrelocatable\-lib \-mno\-relocatable\-lib
  1211. \&\-mtoc \-mno\-toc \-mlittle \-mlittle\-endian \-mbig \-mbig\-endian
  1212. \&\-mdynamic\-no\-pic \-mswdiv \-msingle\-pic\-base
  1213. \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR
  1214. \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR
  1215. \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR
  1216. \&\fB\-mcall\-aixdesc \-mcall\-eabi \-mcall\-freebsd
  1217. \&\-mcall\-linux \-mcall\-netbsd \-mcall\-openbsd
  1218. \&\-mcall\-sysv \-mcall\-sysv\-eabi \-mcall\-sysv\-noeabi
  1219. \&\-mtraceback=\fR\fItraceback_type\fR
  1220. \&\fB\-maix\-struct\-return \-msvr4\-struct\-return
  1221. \&\-mabi=\fR\fIabi-type\fR \fB\-msecure\-plt \-mbss\-plt
  1222. \&\-mlongcall \-mno\-longcall \-mpltseq \-mno\-pltseq
  1223. \&\-mblock\-move\-inline\-limit=\fR\fInum\fR
  1224. \&\fB\-mblock\-compare\-inline\-limit=\fR\fInum\fR
  1225. \&\fB\-mblock\-compare\-inline\-loop\-limit=\fR\fInum\fR
  1226. \&\fB\-mno\-block\-ops\-unaligned\-vsx
  1227. \&\-mstring\-compare\-inline\-limit=\fR\fInum\fR
  1228. \&\fB\-misel \-mno\-isel
  1229. \&\-mvrsave \-mno\-vrsave
  1230. \&\-mmulhw \-mno\-mulhw
  1231. \&\-mdlmzb \-mno\-dlmzb
  1232. \&\-mprototype \-mno\-prototype
  1233. \&\-msim \-mmvme \-mads \-myellowknife \-memb \-msdata
  1234. \&\-msdata=\fR\fIopt\fR \fB\-mreadonly\-in\-sdata \-mvxworks \-G\fR \fInum\fR
  1235. \&\fB\-mrecip \-mrecip=\fR\fIopt\fR \fB\-mno\-recip \-mrecip\-precision
  1236. \&\-mno\-recip\-precision
  1237. \&\-mveclibabi=\fR\fItype\fR \fB\-mfriz \-mno\-friz
  1238. \&\-mpointers\-to\-nested\-functions \-mno\-pointers\-to\-nested\-functions
  1239. \&\-msave\-toc\-indirect \-mno\-save\-toc\-indirect
  1240. \&\-mpower8\-fusion \-mno\-mpower8\-fusion \-mpower8\-vector \-mno\-power8\-vector
  1241. \&\-mcrypto \-mno\-crypto \-mhtm \-mno\-htm
  1242. \&\-mquad\-memory \-mno\-quad\-memory
  1243. \&\-mquad\-memory\-atomic \-mno\-quad\-memory\-atomic
  1244. \&\-mcompat\-align\-parm \-mno\-compat\-align\-parm
  1245. \&\-mfloat128 \-mno\-float128 \-mfloat128\-hardware \-mno\-float128\-hardware
  1246. \&\-mgnu\-attribute \-mno\-gnu\-attribute
  1247. \&\-mstack\-protector\-guard=\fR\fIguard\fR \fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR
  1248. \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR \fB\-mprefixed \-mno\-prefixed
  1249. \&\-mpcrel \-mno\-pcrel \-mmma \-mno\-mmma\fR
  1250. .Sp
  1251. \&\fI\s-1RX\s0 Options\fR
  1252. \&\fB\-m64bit\-doubles \-m32bit\-doubles \-fpu \-nofpu
  1253. \&\-mcpu=
  1254. \&\-mbig\-endian\-data \-mlittle\-endian\-data
  1255. \&\-msmall\-data
  1256. \&\-msim \-mno\-sim
  1257. \&\-mas100\-syntax \-mno\-as100\-syntax
  1258. \&\-mrelax
  1259. \&\-mmax\-constant\-size=
  1260. \&\-mint\-register=
  1261. \&\-mpid
  1262. \&\-mallow\-string\-insns \-mno\-allow\-string\-insns
  1263. \&\-mjsr
  1264. \&\-mno\-warn\-multiple\-fast\-interrupts
  1265. \&\-msave\-acc\-in\-interrupts\fR
  1266. .Sp
  1267. \&\fIS/390 and zSeries Options\fR
  1268. \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-march=\fR\fIcpu-type\fR
  1269. \&\fB\-mhard\-float \-msoft\-float \-mhard\-dfp \-mno\-hard\-dfp
  1270. \&\-mlong\-double\-64 \-mlong\-double\-128
  1271. \&\-mbackchain \-mno\-backchain \-mpacked\-stack \-mno\-packed\-stack
  1272. \&\-msmall\-exec \-mno\-small\-exec \-mmvcle \-mno\-mvcle
  1273. \&\-m64 \-m31 \-mdebug \-mno\-debug \-mesa \-mzarch
  1274. \&\-mhtm \-mvx \-mzvector
  1275. \&\-mtpf\-trace \-mno\-tpf\-trace \-mtpf\-trace\-skip \-mno\-tpf\-trace\-skip
  1276. \&\-mfused\-madd \-mno\-fused\-madd
  1277. \&\-mwarn\-framesize \-mwarn\-dynamicstack \-mstack\-size \-mstack\-guard
  1278. \&\-mhotpatch=\fR\fIhalfwords\fR\fB,\fR\fIhalfwords\fR
  1279. .Sp
  1280. \&\fIScore Options\fR
  1281. \&\fB\-meb \-mel
  1282. \&\-mnhwloop
  1283. \&\-muls
  1284. \&\-mmac
  1285. \&\-mscore5 \-mscore5u \-mscore7 \-mscore7d\fR
  1286. .Sp
  1287. \&\fI\s-1SH\s0 Options\fR
  1288. \&\fB\-m1 \-m2 \-m2e
  1289. \&\-m2a\-nofpu \-m2a\-single\-only \-m2a\-single \-m2a
  1290. \&\-m3 \-m3e
  1291. \&\-m4\-nofpu \-m4\-single\-only \-m4\-single \-m4
  1292. \&\-m4a\-nofpu \-m4a\-single\-only \-m4a\-single \-m4a \-m4al
  1293. \&\-mb \-ml \-mdalign \-mrelax
  1294. \&\-mbigtable \-mfmovd \-mrenesas \-mno\-renesas \-mnomacsave
  1295. \&\-mieee \-mno\-ieee \-mbitops \-misize \-minline\-ic_invalidate \-mpadstruct
  1296. \&\-mprefergot \-musermode \-multcost=\fR\fInumber\fR \fB\-mdiv=\fR\fIstrategy\fR
  1297. \&\fB\-mdivsi3_libfunc=\fR\fIname\fR \fB\-mfixed\-range=\fR\fIregister-range\fR
  1298. \&\fB\-maccumulate\-outgoing\-args
  1299. \&\-matomic\-model=\fR\fIatomic-model\fR
  1300. \&\fB\-mbranch\-cost=\fR\fInum\fR \fB\-mzdcbranch \-mno\-zdcbranch
  1301. \&\-mcbranch\-force\-delay\-slot
  1302. \&\-mfused\-madd \-mno\-fused\-madd \-mfsca \-mno\-fsca \-mfsrra \-mno\-fsrra
  1303. \&\-mpretend\-cmove \-mtas\fR
  1304. .Sp
  1305. \&\fISolaris 2 Options\fR
  1306. \&\fB\-mclear\-hwcap \-mno\-clear\-hwcap \-mimpure\-text \-mno\-impure\-text
  1307. \&\-pthreads\fR
  1308. .Sp
  1309. \&\fI\s-1SPARC\s0 Options\fR
  1310. \&\fB\-mcpu=\fR\fIcpu-type\fR
  1311. \&\fB\-mtune=\fR\fIcpu-type\fR
  1312. \&\fB\-mcmodel=\fR\fIcode-model\fR
  1313. \&\fB\-mmemory\-model=\fR\fImem-model\fR
  1314. \&\fB\-m32 \-m64 \-mapp\-regs \-mno\-app\-regs
  1315. \&\-mfaster\-structs \-mno\-faster\-structs \-mflat \-mno\-flat
  1316. \&\-mfpu \-mno\-fpu \-mhard\-float \-msoft\-float
  1317. \&\-mhard\-quad\-float \-msoft\-quad\-float
  1318. \&\-mstack\-bias \-mno\-stack\-bias
  1319. \&\-mstd\-struct\-return \-mno\-std\-struct\-return
  1320. \&\-munaligned\-doubles \-mno\-unaligned\-doubles
  1321. \&\-muser\-mode \-mno\-user\-mode
  1322. \&\-mv8plus \-mno\-v8plus \-mvis \-mno\-vis
  1323. \&\-mvis2 \-mno\-vis2 \-mvis3 \-mno\-vis3
  1324. \&\-mvis4 \-mno\-vis4 \-mvis4b \-mno\-vis4b
  1325. \&\-mcbcond \-mno\-cbcond \-mfmaf \-mno\-fmaf \-mfsmuld \-mno\-fsmuld
  1326. \&\-mpopc \-mno\-popc \-msubxc \-mno\-subxc
  1327. \&\-mfix\-at697f \-mfix\-ut699 \-mfix\-ut700 \-mfix\-gr712rc
  1328. \&\-mlra \-mno\-lra\fR
  1329. .Sp
  1330. \&\fISystem V Options\fR
  1331. \&\fB\-Qy \-Qn \-YP,\fR\fIpaths\fR \fB\-Ym,\fR\fIdir\fR
  1332. .Sp
  1333. \&\fITILE-Gx Options\fR
  1334. \&\fB\-mcpu=CPU \-m32 \-m64 \-mbig\-endian \-mlittle\-endian
  1335. \&\-mcmodel=\fR\fIcode-model\fR
  1336. .Sp
  1337. \&\fITILEPro Options\fR
  1338. \&\fB\-mcpu=\fR\fIcpu\fR \fB\-m32\fR
  1339. .Sp
  1340. \&\fIV850 Options\fR
  1341. \&\fB\-mlong\-calls \-mno\-long\-calls \-mep \-mno\-ep
  1342. \&\-mprolog\-function \-mno\-prolog\-function \-mspace
  1343. \&\-mtda=\fR\fIn\fR \fB\-msda=\fR\fIn\fR \fB\-mzda=\fR\fIn\fR
  1344. \&\fB\-mapp\-regs \-mno\-app\-regs
  1345. \&\-mdisable\-callt \-mno\-disable\-callt
  1346. \&\-mv850e2v3 \-mv850e2 \-mv850e1 \-mv850es
  1347. \&\-mv850e \-mv850 \-mv850e3v5
  1348. \&\-mloop
  1349. \&\-mrelax
  1350. \&\-mlong\-jumps
  1351. \&\-msoft\-float
  1352. \&\-mhard\-float
  1353. \&\-mgcc\-abi
  1354. \&\-mrh850\-abi
  1355. \&\-mbig\-switch\fR
  1356. .Sp
  1357. \&\fI\s-1VAX\s0 Options\fR
  1358. \&\fB\-mg \-mgnu \-munix\fR
  1359. .Sp
  1360. \&\fIVisium Options\fR
  1361. \&\fB\-mdebug \-msim \-mfpu \-mno\-fpu \-mhard\-float \-msoft\-float
  1362. \&\-mcpu=\fR\fIcpu-type\fR \fB\-mtune=\fR\fIcpu-type\fR \fB\-msv\-mode \-muser\-mode\fR
  1363. .Sp
  1364. \&\fI\s-1VMS\s0 Options\fR
  1365. \&\fB\-mvms\-return\-codes \-mdebug\-main=\fR\fIprefix\fR \fB\-mmalloc64
  1366. \&\-mpointer\-size=\fR\fIsize\fR
  1367. .Sp
  1368. \&\fIVxWorks Options\fR
  1369. \&\fB\-mrtp \-non\-static \-Bstatic \-Bdynamic
  1370. \&\-Xbind\-lazy \-Xbind\-now\fR
  1371. .Sp
  1372. \&\fIx86 Options\fR
  1373. \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-march=\fR\fIcpu-type\fR
  1374. \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR \fB\-mdump\-tune\-features \-mno\-default
  1375. \&\-mfpmath=\fR\fIunit\fR
  1376. \&\fB\-masm=\fR\fIdialect\fR \fB\-mno\-fancy\-math\-387
  1377. \&\-mno\-fp\-ret\-in\-387 \-m80387 \-mhard\-float \-msoft\-float
  1378. \&\-mno\-wide\-multiply \-mrtd \-malign\-double
  1379. \&\-mpreferred\-stack\-boundary=\fR\fInum\fR
  1380. \&\fB\-mincoming\-stack\-boundary=\fR\fInum\fR
  1381. \&\fB\-mcld \-mcx16 \-msahf \-mmovbe \-mcrc32
  1382. \&\-mrecip \-mrecip=\fR\fIopt\fR
  1383. \&\fB\-mvzeroupper \-mprefer\-avx128 \-mprefer\-vector\-width=\fR\fIopt\fR
  1384. \&\fB\-mmmx \-msse \-msse2 \-msse3 \-mssse3 \-msse4.1 \-msse4.2 \-msse4 \-mavx
  1385. \&\-mavx2 \-mavx512f \-mavx512pf \-mavx512er \-mavx512cd \-mavx512vl
  1386. \&\-mavx512bw \-mavx512dq \-mavx512ifma \-mavx512vbmi \-msha \-maes
  1387. \&\-mpclmul \-mfsgsbase \-mrdrnd \-mf16c \-mfma \-mpconfig \-mwbnoinvd
  1388. \&\-mptwrite \-mprefetchwt1 \-mclflushopt \-mclwb \-mxsavec \-mxsaves
  1389. \&\-msse4a \-m3dnow \-m3dnowa \-mpopcnt \-mabm \-mbmi \-mtbm \-mfma4 \-mxop
  1390. \&\-madx \-mlzcnt \-mbmi2 \-mfxsr \-mxsave \-mxsaveopt \-mrtm \-mhle \-mlwp
  1391. \&\-mmwaitx \-mclzero \-mpku \-mthreads \-mgfni \-mvaes \-mwaitpkg
  1392. \&\-mshstk \-mmanual\-endbr \-mforce\-indirect\-call \-mavx512vbmi2 \-mavx512bf16 \-menqcmd
  1393. \&\-mvpclmulqdq \-mavx512bitalg \-mmovdiri \-mmovdir64b \-mavx512vpopcntdq
  1394. \&\-mavx5124fmaps \-mavx512vnni \-mavx5124vnniw \-mprfchw \-mrdpid
  1395. \&\-mrdseed \-msgx \-mavx512vp2intersect \-mserialize \-mtsxldtrk
  1396. \&\-mamx\-tile \-mamx\-int8 \-mamx\-bf16 \-muintr \-mhreset \-mavxvnni
  1397. \&\-mcldemote \-mms\-bitfields \-mno\-align\-stringops \-minline\-all\-stringops
  1398. \&\-minline\-stringops\-dynamically \-mstringop\-strategy=\fR\fIalg\fR
  1399. \&\fB\-mkl \-mwidekl
  1400. \&\-mmemcpy\-strategy=\fR\fIstrategy\fR \fB\-mmemset\-strategy=\fR\fIstrategy\fR
  1401. \&\fB\-mpush\-args \-maccumulate\-outgoing\-args \-m128bit\-long\-double
  1402. \&\-m96bit\-long\-double \-mlong\-double\-64 \-mlong\-double\-80 \-mlong\-double\-128
  1403. \&\-mregparm=\fR\fInum\fR \fB\-msseregparm
  1404. \&\-mveclibabi=\fR\fItype\fR \fB\-mvect8\-ret\-in\-mem
  1405. \&\-mpc32 \-mpc64 \-mpc80 \-mstackrealign
  1406. \&\-momit\-leaf\-frame\-pointer \-mno\-red\-zone \-mno\-tls\-direct\-seg\-refs
  1407. \&\-mcmodel=\fR\fIcode-model\fR \fB\-mabi=\fR\fIname\fR \fB\-maddress\-mode=\fR\fImode\fR
  1408. \&\fB\-m32 \-m64 \-mx32 \-m16 \-miamcu \-mlarge\-data\-threshold=\fR\fInum\fR
  1409. \&\fB\-msse2avx \-mfentry \-mrecord\-mcount \-mnop\-mcount \-m8bit\-idiv
  1410. \&\-minstrument\-return=\fR\fItype\fR \fB\-mfentry\-name=\fR\fIname\fR \fB\-mfentry\-section=\fR\fIname\fR
  1411. \&\fB\-mavx256\-split\-unaligned\-load \-mavx256\-split\-unaligned\-store
  1412. \&\-malign\-data=\fR\fItype\fR \fB\-mstack\-protector\-guard=\fR\fIguard\fR
  1413. \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR
  1414. \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR
  1415. \&\fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR
  1416. \&\fB\-mgeneral\-regs\-only \-mcall\-ms2sysv\-xlogues
  1417. \&\-mindirect\-branch=\fR\fIchoice\fR \fB\-mfunction\-return=\fR\fIchoice\fR
  1418. \&\fB\-mindirect\-branch\-register \-mneeded\fR
  1419. .Sp
  1420. \&\fIx86 Windows Options\fR
  1421. \&\fB\-mconsole \-mcygwin \-mno\-cygwin \-mdll
  1422. \&\-mnop\-fun\-dllimport \-mthread
  1423. \&\-municode \-mwin32 \-mwindows \-fno\-set\-stack\-executable\fR
  1424. .Sp
  1425. \&\fIXstormy16 Options\fR
  1426. \&\fB\-msim\fR
  1427. .Sp
  1428. \&\fIXtensa Options\fR
  1429. \&\fB\-mconst16 \-mno\-const16
  1430. \&\-mfused\-madd \-mno\-fused\-madd
  1431. \&\-mforce\-no\-pic
  1432. \&\-mserialize\-volatile \-mno\-serialize\-volatile
  1433. \&\-mtext\-section\-literals \-mno\-text\-section\-literals
  1434. \&\-mauto\-litpools \-mno\-auto\-litpools
  1435. \&\-mtarget\-align \-mno\-target\-align
  1436. \&\-mlongcalls \-mno\-longcalls
  1437. \&\-mabi=\fR\fIabi-type\fR
  1438. .Sp
  1439. \&\fIzSeries Options\fR
  1440. See S/390 and zSeries Options.
  1441. .SS "Options Controlling the Kind of Output"
  1442. .IX Subsection "Options Controlling the Kind of Output"
  1443. Compilation can involve up to four stages: preprocessing, compilation
  1444. proper, assembly and linking, always in that order. \s-1GCC\s0 is capable of
  1445. preprocessing and compiling several files either into several
  1446. assembler input files, or into one assembler input file; then each
  1447. assembler input file produces an object file, and linking combines all
  1448. the object files (those newly compiled, and those specified as input)
  1449. into an executable file.
  1450. .PP
  1451. For any given input file, the file name suffix determines what kind of
  1452. compilation is done:
  1453. .IP "\fIfile\fR\fB.c\fR" 4
  1454. .IX Item "file.c"
  1455. C source code that must be preprocessed.
  1456. .IP "\fIfile\fR\fB.i\fR" 4
  1457. .IX Item "file.i"
  1458. C source code that should not be preprocessed.
  1459. .IP "\fIfile\fR\fB.ii\fR" 4
  1460. .IX Item "file.ii"
  1461. \&\*(C+ source code that should not be preprocessed.
  1462. .IP "\fIfile\fR\fB.m\fR" 4
  1463. .IX Item "file.m"
  1464. Objective-C source code. Note that you must link with the \fIlibobjc\fR
  1465. library to make an Objective-C program work.
  1466. .IP "\fIfile\fR\fB.mi\fR" 4
  1467. .IX Item "file.mi"
  1468. Objective-C source code that should not be preprocessed.
  1469. .IP "\fIfile\fR\fB.mm\fR" 4
  1470. .IX Item "file.mm"
  1471. .PD 0
  1472. .IP "\fIfile\fR\fB.M\fR" 4
  1473. .IX Item "file.M"
  1474. .PD
  1475. Objective\-\*(C+ source code. Note that you must link with the \fIlibobjc\fR
  1476. library to make an Objective\-\*(C+ program work. Note that \fB.M\fR refers
  1477. to a literal capital M.
  1478. .IP "\fIfile\fR\fB.mii\fR" 4
  1479. .IX Item "file.mii"
  1480. Objective\-\*(C+ source code that should not be preprocessed.
  1481. .IP "\fIfile\fR\fB.h\fR" 4
  1482. .IX Item "file.h"
  1483. C, \*(C+, Objective-C or Objective\-\*(C+ header file to be turned into a
  1484. precompiled header (default), or C, \*(C+ header file to be turned into an
  1485. Ada spec (via the \fB\-fdump\-ada\-spec\fR switch).
  1486. .IP "\fIfile\fR\fB.cc\fR" 4
  1487. .IX Item "file.cc"
  1488. .PD 0
  1489. .IP "\fIfile\fR\fB.cp\fR" 4
  1490. .IX Item "file.cp"
  1491. .IP "\fIfile\fR\fB.cxx\fR" 4
  1492. .IX Item "file.cxx"
  1493. .IP "\fIfile\fR\fB.cpp\fR" 4
  1494. .IX Item "file.cpp"
  1495. .IP "\fIfile\fR\fB.CPP\fR" 4
  1496. .IX Item "file.CPP"
  1497. .IP "\fIfile\fR\fB.c++\fR" 4
  1498. .IX Item "file.c++"
  1499. .IP "\fIfile\fR\fB.C\fR" 4
  1500. .IX Item "file.C"
  1501. .PD
  1502. \&\*(C+ source code that must be preprocessed. Note that in \fB.cxx\fR,
  1503. the last two letters must both be literally \fBx\fR. Likewise,
  1504. \&\fB.C\fR refers to a literal capital C.
  1505. .IP "\fIfile\fR\fB.mm\fR" 4
  1506. .IX Item "file.mm"
  1507. .PD 0
  1508. .IP "\fIfile\fR\fB.M\fR" 4
  1509. .IX Item "file.M"
  1510. .PD
  1511. Objective\-\*(C+ source code that must be preprocessed.
  1512. .IP "\fIfile\fR\fB.mii\fR" 4
  1513. .IX Item "file.mii"
  1514. Objective\-\*(C+ source code that should not be preprocessed.
  1515. .IP "\fIfile\fR\fB.hh\fR" 4
  1516. .IX Item "file.hh"
  1517. .PD 0
  1518. .IP "\fIfile\fR\fB.H\fR" 4
  1519. .IX Item "file.H"
  1520. .IP "\fIfile\fR\fB.hp\fR" 4
  1521. .IX Item "file.hp"
  1522. .IP "\fIfile\fR\fB.hxx\fR" 4
  1523. .IX Item "file.hxx"
  1524. .IP "\fIfile\fR\fB.hpp\fR" 4
  1525. .IX Item "file.hpp"
  1526. .IP "\fIfile\fR\fB.HPP\fR" 4
  1527. .IX Item "file.HPP"
  1528. .IP "\fIfile\fR\fB.h++\fR" 4
  1529. .IX Item "file.h++"
  1530. .IP "\fIfile\fR\fB.tcc\fR" 4
  1531. .IX Item "file.tcc"
  1532. .PD
  1533. \&\*(C+ header file to be turned into a precompiled header or Ada spec.
  1534. .IP "\fIfile\fR\fB.f\fR" 4
  1535. .IX Item "file.f"
  1536. .PD 0
  1537. .IP "\fIfile\fR\fB.for\fR" 4
  1538. .IX Item "file.for"
  1539. .IP "\fIfile\fR\fB.ftn\fR" 4
  1540. .IX Item "file.ftn"
  1541. .PD
  1542. Fixed form Fortran source code that should not be preprocessed.
  1543. .IP "\fIfile\fR\fB.F\fR" 4
  1544. .IX Item "file.F"
  1545. .PD 0
  1546. .IP "\fIfile\fR\fB.FOR\fR" 4
  1547. .IX Item "file.FOR"
  1548. .IP "\fIfile\fR\fB.fpp\fR" 4
  1549. .IX Item "file.fpp"
  1550. .IP "\fIfile\fR\fB.FPP\fR" 4
  1551. .IX Item "file.FPP"
  1552. .IP "\fIfile\fR\fB.FTN\fR" 4
  1553. .IX Item "file.FTN"
  1554. .PD
  1555. Fixed form Fortran source code that must be preprocessed (with the traditional
  1556. preprocessor).
  1557. .IP "\fIfile\fR\fB.f90\fR" 4
  1558. .IX Item "file.f90"
  1559. .PD 0
  1560. .IP "\fIfile\fR\fB.f95\fR" 4
  1561. .IX Item "file.f95"
  1562. .IP "\fIfile\fR\fB.f03\fR" 4
  1563. .IX Item "file.f03"
  1564. .IP "\fIfile\fR\fB.f08\fR" 4
  1565. .IX Item "file.f08"
  1566. .PD
  1567. Free form Fortran source code that should not be preprocessed.
  1568. .IP "\fIfile\fR\fB.F90\fR" 4
  1569. .IX Item "file.F90"
  1570. .PD 0
  1571. .IP "\fIfile\fR\fB.F95\fR" 4
  1572. .IX Item "file.F95"
  1573. .IP "\fIfile\fR\fB.F03\fR" 4
  1574. .IX Item "file.F03"
  1575. .IP "\fIfile\fR\fB.F08\fR" 4
  1576. .IX Item "file.F08"
  1577. .PD
  1578. Free form Fortran source code that must be preprocessed (with the
  1579. traditional preprocessor).
  1580. .IP "\fIfile\fR\fB.go\fR" 4
  1581. .IX Item "file.go"
  1582. Go source code.
  1583. .IP "\fIfile\fR\fB.brig\fR" 4
  1584. .IX Item "file.brig"
  1585. \&\s-1BRIG\s0 files (binary representation of \s-1HSAIL\s0).
  1586. .IP "\fIfile\fR\fB.d\fR" 4
  1587. .IX Item "file.d"
  1588. D source code.
  1589. .IP "\fIfile\fR\fB.di\fR" 4
  1590. .IX Item "file.di"
  1591. D interface file.
  1592. .IP "\fIfile\fR\fB.dd\fR" 4
  1593. .IX Item "file.dd"
  1594. D documentation code (Ddoc).
  1595. .IP "\fIfile\fR\fB.ads\fR" 4
  1596. .IX Item "file.ads"
  1597. Ada source code file that contains a library unit declaration (a
  1598. declaration of a package, subprogram, or generic, or a generic
  1599. instantiation), or a library unit renaming declaration (a package,
  1600. generic, or subprogram renaming declaration). Such files are also
  1601. called \fIspecs\fR.
  1602. .IP "\fIfile\fR\fB.adb\fR" 4
  1603. .IX Item "file.adb"
  1604. Ada source code file containing a library unit body (a subprogram or
  1605. package body). Such files are also called \fIbodies\fR.
  1606. .IP "\fIfile\fR\fB.s\fR" 4
  1607. .IX Item "file.s"
  1608. Assembler code.
  1609. .IP "\fIfile\fR\fB.S\fR" 4
  1610. .IX Item "file.S"
  1611. .PD 0
  1612. .IP "\fIfile\fR\fB.sx\fR" 4
  1613. .IX Item "file.sx"
  1614. .PD
  1615. Assembler code that must be preprocessed.
  1616. .IP "\fIother\fR" 4
  1617. .IX Item "other"
  1618. An object file to be fed straight into linking.
  1619. Any file name with no recognized suffix is treated this way.
  1620. .PP
  1621. You can specify the input language explicitly with the \fB\-x\fR option:
  1622. .IP "\fB\-x\fR \fIlanguage\fR" 4
  1623. .IX Item "-x language"
  1624. Specify explicitly the \fIlanguage\fR for the following input files
  1625. (rather than letting the compiler choose a default based on the file
  1626. name suffix). This option applies to all following input files until
  1627. the next \fB\-x\fR option. Possible values for \fIlanguage\fR are:
  1628. .Sp
  1629. .Vb 10
  1630. \& c c\-header cpp\-output
  1631. \& c++ c++\-header c++\-system\-header c++\-user\-header c++\-cpp\-output
  1632. \& objective\-c objective\-c\-header objective\-c\-cpp\-output
  1633. \& objective\-c++ objective\-c++\-header objective\-c++\-cpp\-output
  1634. \& assembler assembler\-with\-cpp
  1635. \& ada
  1636. \& d
  1637. \& f77 f77\-cpp\-input f95 f95\-cpp\-input
  1638. \& go
  1639. \& brig
  1640. .Ve
  1641. .IP "\fB\-x none\fR" 4
  1642. .IX Item "-x none"
  1643. Turn off any specification of a language, so that subsequent files are
  1644. handled according to their file name suffixes (as they are if \fB\-x\fR
  1645. has not been used at all).
  1646. .PP
  1647. If you only want some of the stages of compilation, you can use
  1648. \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
  1649. one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
  1650. \&\fBgcc\fR is to stop. Note that some combinations (for example,
  1651. \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
  1652. .IP "\fB\-c\fR" 4
  1653. .IX Item "-c"
  1654. Compile or assemble the source files, but do not link. The linking
  1655. stage simply is not done. The ultimate output is in the form of an
  1656. object file for each source file.
  1657. .Sp
  1658. By default, the object file name for a source file is made by replacing
  1659. the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
  1660. .Sp
  1661. Unrecognized input files, not requiring compilation or assembly, are
  1662. ignored.
  1663. .IP "\fB\-S\fR" 4
  1664. .IX Item "-S"
  1665. Stop after the stage of compilation proper; do not assemble. The output
  1666. is in the form of an assembler code file for each non-assembler input
  1667. file specified.
  1668. .Sp
  1669. By default, the assembler file name for a source file is made by
  1670. replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
  1671. .Sp
  1672. Input files that don't require compilation are ignored.
  1673. .IP "\fB\-E\fR" 4
  1674. .IX Item "-E"
  1675. Stop after the preprocessing stage; do not run the compiler proper. The
  1676. output is in the form of preprocessed source code, which is sent to the
  1677. standard output.
  1678. .Sp
  1679. Input files that don't require preprocessing are ignored.
  1680. .IP "\fB\-o\fR \fIfile\fR" 4
  1681. .IX Item "-o file"
  1682. Place the primary output in file \fIfile\fR. This applies to whatever
  1683. sort of output is being produced, whether it be an executable file, an
  1684. object file, an assembler file or preprocessed C code.
  1685. .Sp
  1686. If \fB\-o\fR is not specified, the default is to put an executable
  1687. file in \fIa.out\fR, the object file for
  1688. \&\fI\fIsource\fI.\fIsuffix\fI\fR in \fI\fIsource\fI.o\fR, its
  1689. assembler file in \fI\fIsource\fI.s\fR, a precompiled header file in
  1690. \&\fI\fIsource\fI.\fIsuffix\fI.gch\fR, and all preprocessed C source on
  1691. standard output.
  1692. .Sp
  1693. Though \fB\-o\fR names only the primary output, it also affects the
  1694. naming of auxiliary and dump outputs. See the examples below. Unless
  1695. overridden, both auxiliary outputs and dump outputs are placed in the
  1696. same directory as the primary output. In auxiliary outputs, the suffix
  1697. of the input file is replaced with that of the auxiliary output file
  1698. type; in dump outputs, the suffix of the dump file is appended to the
  1699. input file suffix. In compilation commands, the base name of both
  1700. auxiliary and dump outputs is that of the primary output; in compile and
  1701. link commands, the primary output name, minus the executable suffix, is
  1702. combined with the input file name. If both share the same base name,
  1703. disregarding the suffix, the result of the combination is that base
  1704. name, otherwise, they are concatenated, separated by a dash.
  1705. .Sp
  1706. .Vb 1
  1707. \& gcc \-c foo.c ...
  1708. .Ve
  1709. .Sp
  1710. will use \fIfoo.o\fR as the primary output, and place aux outputs and
  1711. dumps next to it, e.g., aux file \fIfoo.dwo\fR for
  1712. \&\fB\-gsplit\-dwarf\fR, and dump file \fIfoo.c.???r.final\fR for
  1713. \&\fB\-fdump\-rtl\-final\fR.
  1714. .Sp
  1715. If a non-linker output file is explicitly specified, aux and dump files
  1716. by default take the same base name:
  1717. .Sp
  1718. .Vb 1
  1719. \& gcc \-c foo.c \-o dir/foobar.o ...
  1720. .Ve
  1721. .Sp
  1722. will name aux outputs \fIdir/foobar.*\fR and dump outputs
  1723. \&\fIdir/foobar.c.*\fR.
  1724. .Sp
  1725. A linker output will instead prefix aux and dump outputs:
  1726. .Sp
  1727. .Vb 1
  1728. \& gcc foo.c bar.c \-o dir/foobar ...
  1729. .Ve
  1730. .Sp
  1731. will generally name aux outputs \fIdir/foobar\-foo.*\fR and
  1732. \&\fIdir/foobar\-bar.*\fR, and dump outputs \fIdir/foobar\-foo.c.*\fR and
  1733. \&\fIdir/foobar\-bar.c.*\fR.
  1734. .Sp
  1735. The one exception to the above is when the executable shares the base
  1736. name with the single input:
  1737. .Sp
  1738. .Vb 1
  1739. \& gcc foo.c \-o dir/foo ...
  1740. .Ve
  1741. .Sp
  1742. in which case aux outputs are named \fIdir/foo.*\fR and dump outputs
  1743. named \fIdir/foo.c.*\fR.
  1744. .Sp
  1745. The location and the names of auxiliary and dump outputs can be adjusted
  1746. by the options \fB\-dumpbase\fR, \fB\-dumpbase\-ext\fR,
  1747. \&\fB\-dumpdir\fR, \fB\-save\-temps=cwd\fR, and
  1748. \&\fB\-save\-temps=obj\fR.
  1749. .IP "\fB\-dumpbase\fR \fIdumpbase\fR" 4
  1750. .IX Item "-dumpbase dumpbase"
  1751. This option sets the base name for auxiliary and dump output files. It
  1752. does not affect the name of the primary output file. Intermediate
  1753. outputs, when preserved, are not regarded as primary outputs, but as
  1754. auxiliary outputs:
  1755. .Sp
  1756. .Vb 1
  1757. \& gcc \-save\-temps \-S foo.c
  1758. .Ve
  1759. .Sp
  1760. saves the (no longer) temporary preprocessed file in \fIfoo.i\fR, and
  1761. then compiles to the (implied) output file \fIfoo.s\fR, whereas:
  1762. .Sp
  1763. .Vb 1
  1764. \& gcc \-save\-temps \-dumpbase save\-foo \-c foo.c
  1765. .Ve
  1766. .Sp
  1767. preprocesses to in \fIsave\-foo.i\fR, compiles to \fIsave\-foo.s\fR (now
  1768. an intermediate, thus auxiliary output), and then assembles to the
  1769. (implied) output file \fIfoo.o\fR.
  1770. .Sp
  1771. Absent this option, dump and aux files take their names from the input
  1772. file, or from the (non-linker) output file, if one is explicitly
  1773. specified: dump output files (e.g. those requested by \fB\-fdump\-*\fR
  1774. options) with the input name suffix, and aux output files (those
  1775. requested by other non-dump options, e.g. \f(CW\*(C`\-save\-temps\*(C'\fR,
  1776. \&\f(CW\*(C`\-gsplit\-dwarf\*(C'\fR, \f(CW\*(C`\-fcallgraph\-info\*(C'\fR) without it.
  1777. .Sp
  1778. Similar suffix differentiation of dump and aux outputs can be attained
  1779. for explicitly-given \fB\-dumpbase basename.suf\fR by also specifying
  1780. \&\fB\-dumpbase\-ext .suf\fR.
  1781. .Sp
  1782. If \fIdumpbase\fR is explicitly specified with any directory component,
  1783. any \fIdumppfx\fR specification (e.g. \fB\-dumpdir\fR or
  1784. \&\fB\-save\-temps=*\fR) is ignored, and instead of appending to it,
  1785. \&\fIdumpbase\fR fully overrides it:
  1786. .Sp
  1787. .Vb 2
  1788. \& gcc foo.c \-c \-o dir/foo.o \-dumpbase alt/foo \e
  1789. \& \-dumpdir pfx\- \-save\-temps=cwd ...
  1790. .Ve
  1791. .Sp
  1792. creates auxiliary and dump outputs named \fIalt/foo.*\fR, disregarding
  1793. \&\fIdir/\fR in \fB\-o\fR, the \fI./\fR prefix implied by
  1794. \&\fB\-save\-temps=cwd\fR, and \fIpfx\-\fR in \fB\-dumpdir\fR.
  1795. .Sp
  1796. When \fB\-dumpbase\fR is specified in a command that compiles multiple
  1797. inputs, or that compiles and then links, it may be combined with
  1798. \&\fIdumppfx\fR, as specified under \fB\-dumpdir\fR. Then, each input
  1799. file is compiled using the combined \fIdumppfx\fR, and default values
  1800. for \fIdumpbase\fR and \fIauxdropsuf\fR are computed for each input
  1801. file:
  1802. .Sp
  1803. .Vb 1
  1804. \& gcc foo.c bar.c \-c \-dumpbase main ...
  1805. .Ve
  1806. .Sp
  1807. creates \fIfoo.o\fR and \fIbar.o\fR as primary outputs, and avoids
  1808. overwriting the auxiliary and dump outputs by using the \fIdumpbase\fR
  1809. as a prefix, creating auxiliary and dump outputs named \fImain\-foo.*\fR
  1810. and \fImain\-bar.*\fR.
  1811. .Sp
  1812. An empty string specified as \fIdumpbase\fR avoids the influence of the
  1813. output basename in the naming of auxiliary and dump outputs during
  1814. compilation, computing default values :
  1815. .Sp
  1816. .Vb 1
  1817. \& gcc \-c foo.c \-o dir/foobar.o \-dumpbase " ...
  1818. .Ve
  1819. .Sp
  1820. will name aux outputs \fIdir/foo.*\fR and dump outputs
  1821. \&\fIdir/foo.c.*\fR. Note how their basenames are taken from the input
  1822. name, but the directory still defaults to that of the output.
  1823. .Sp
  1824. The empty-string dumpbase does not prevent the use of the output
  1825. basename for outputs during linking:
  1826. .Sp
  1827. .Vb 1
  1828. \& gcc foo.c bar.c \-o dir/foobar \-dumpbase " \-flto ...
  1829. .Ve
  1830. .Sp
  1831. The compilation of the source files will name auxiliary outputs
  1832. \&\fIdir/foo.*\fR and \fIdir/bar.*\fR, and dump outputs
  1833. \&\fIdir/foo.c.*\fR and \fIdir/bar.c.*\fR. \s-1LTO\s0 recompilation during
  1834. linking will use \fIdir/foobar.\fR as the prefix for dumps and
  1835. auxiliary files.
  1836. .IP "\fB\-dumpbase\-ext\fR \fIauxdropsuf\fR" 4
  1837. .IX Item "-dumpbase-ext auxdropsuf"
  1838. When forming the name of an auxiliary (but not a dump) output file, drop
  1839. trailing \fIauxdropsuf\fR from \fIdumpbase\fR before appending any
  1840. suffixes. If not specified, this option defaults to the suffix of a
  1841. default \fIdumpbase\fR, i.e., the suffix of the input file when
  1842. \&\fB\-dumpbase\fR is not present in the command line, or \fIdumpbase\fR
  1843. is combined with \fIdumppfx\fR.
  1844. .Sp
  1845. .Vb 1
  1846. \& gcc foo.c \-c \-o dir/foo.o \-dumpbase x\-foo.c \-dumpbase\-ext .c ...
  1847. .Ve
  1848. .Sp
  1849. creates \fIdir/foo.o\fR as the main output, and generates auxiliary
  1850. outputs in \fIdir/x\-foo.*\fR, taking the location of the primary
  1851. output, and dropping the \fI.c\fR suffix from the \fIdumpbase\fR. Dump
  1852. outputs retain the suffix: \fIdir/x\-foo.c.*\fR.
  1853. .Sp
  1854. This option is disregarded if it does not match the suffix of a
  1855. specified \fIdumpbase\fR, except as an alternative to the executable
  1856. suffix when appending the linker output base name to \fIdumppfx\fR, as
  1857. specified below:
  1858. .Sp
  1859. .Vb 1
  1860. \& gcc foo.c bar.c \-o main.out \-dumpbase\-ext .out ...
  1861. .Ve
  1862. .Sp
  1863. creates \fImain.out\fR as the primary output, and avoids overwriting
  1864. the auxiliary and dump outputs by using the executable name minus
  1865. \&\fIauxdropsuf\fR as a prefix, creating auxiliary outputs named
  1866. \&\fImain\-foo.*\fR and \fImain\-bar.*\fR and dump outputs named
  1867. \&\fImain\-foo.c.*\fR and \fImain\-bar.c.*\fR.
  1868. .IP "\fB\-dumpdir\fR \fIdumppfx\fR" 4
  1869. .IX Item "-dumpdir dumppfx"
  1870. When forming the name of an auxiliary or dump output file, use
  1871. \&\fIdumppfx\fR as a prefix:
  1872. .Sp
  1873. .Vb 1
  1874. \& gcc \-dumpdir pfx\- \-c foo.c ...
  1875. .Ve
  1876. .Sp
  1877. creates \fIfoo.o\fR as the primary output, and auxiliary outputs named
  1878. \&\fIpfx\-foo.*\fR, combining the given \fIdumppfx\fR with the default
  1879. \&\fIdumpbase\fR derived from the default primary output, derived in turn
  1880. from the input name. Dump outputs also take the input name suffix:
  1881. \&\fIpfx\-foo.c.*\fR.
  1882. .Sp
  1883. If \fIdumppfx\fR is to be used as a directory name, it must end with a
  1884. directory separator:
  1885. .Sp
  1886. .Vb 1
  1887. \& gcc \-dumpdir dir/ \-c foo.c \-o obj/bar.o ...
  1888. .Ve
  1889. .Sp
  1890. creates \fIobj/bar.o\fR as the primary output, and auxiliary outputs
  1891. named \fIdir/bar.*\fR, combining the given \fIdumppfx\fR with the
  1892. default \fIdumpbase\fR derived from the primary output name. Dump
  1893. outputs also take the input name suffix: \fIdir/bar.c.*\fR.
  1894. .Sp
  1895. It defaults to the location of the output file; options
  1896. \&\fB\-save\-temps=cwd\fR and \fB\-save\-temps=obj\fR override this
  1897. default, just like an explicit \fB\-dumpdir\fR option. In case
  1898. multiple such options are given, the last one prevails:
  1899. .Sp
  1900. .Vb 1
  1901. \& gcc \-dumpdir pfx\- \-c foo.c \-save\-temps=obj ...
  1902. .Ve
  1903. .Sp
  1904. outputs \fIfoo.o\fR, with auxiliary outputs named \fIfoo.*\fR because
  1905. \&\fB\-save\-temps=*\fR overrides the \fIdumppfx\fR given by the earlier
  1906. \&\fB\-dumpdir\fR option. It does not matter that \fB=obj\fR is the
  1907. default for \fB\-save\-temps\fR, nor that the output directory is
  1908. implicitly the current directory. Dump outputs are named
  1909. \&\fIfoo.c.*\fR.
  1910. .Sp
  1911. When compiling from multiple input files, if \fB\-dumpbase\fR is
  1912. specified, \fIdumpbase\fR, minus a \fIauxdropsuf\fR suffix, and a dash
  1913. are appended to (or override, if containing any directory components) an
  1914. explicit or defaulted \fIdumppfx\fR, so that each of the multiple
  1915. compilations gets differently-named aux and dump outputs.
  1916. .Sp
  1917. .Vb 1
  1918. \& gcc foo.c bar.c \-c \-dumpdir dir/pfx\- \-dumpbase main ...
  1919. .Ve
  1920. .Sp
  1921. outputs auxiliary dumps to \fIdir/pfx\-main\-foo.*\fR and
  1922. \&\fIdir/pfx\-main\-bar.*\fR, appending \fIdumpbase\fR\- to \fIdumppfx\fR.
  1923. Dump outputs retain the input file suffix: \fIdir/pfx\-main\-foo.c.*\fR
  1924. and \fIdir/pfx\-main\-bar.c.*\fR, respectively. Contrast with the
  1925. single-input compilation:
  1926. .Sp
  1927. .Vb 1
  1928. \& gcc foo.c \-c \-dumpdir dir/pfx\- \-dumpbase main ...
  1929. .Ve
  1930. .Sp
  1931. that, applying \fB\-dumpbase\fR to a single source, does not compute
  1932. and append a separate \fIdumpbase\fR per input file. Its auxiliary and
  1933. dump outputs go in \fIdir/pfx\-main.*\fR.
  1934. .Sp
  1935. When compiling and then linking from multiple input files, a defaulted
  1936. or explicitly specified \fIdumppfx\fR also undergoes the \fIdumpbase\fR\-
  1937. transformation above (e.g. the compilation of \fIfoo.c\fR and
  1938. \&\fIbar.c\fR above, but without \fB\-c\fR). If neither
  1939. \&\fB\-dumpdir\fR nor \fB\-dumpbase\fR are given, the linker output
  1940. base name, minus \fIauxdropsuf\fR, if specified, or the executable
  1941. suffix otherwise, plus a dash is appended to the default \fIdumppfx\fR
  1942. instead. Note, however, that unlike earlier cases of linking:
  1943. .Sp
  1944. .Vb 1
  1945. \& gcc foo.c bar.c \-dumpdir dir/pfx\- \-o main ...
  1946. .Ve
  1947. .Sp
  1948. does not append the output name \fImain\fR to \fIdumppfx\fR, because
  1949. \&\fB\-dumpdir\fR is explicitly specified. The goal is that the
  1950. explicitly-specified \fIdumppfx\fR may contain the specified output name
  1951. as part of the prefix, if desired; only an explicitly-specified
  1952. \&\fB\-dumpbase\fR would be combined with it, in order to avoid simply
  1953. discarding a meaningful option.
  1954. .Sp
  1955. When compiling and then linking from a single input file, the linker
  1956. output base name will only be appended to the default \fIdumppfx\fR as
  1957. above if it does not share the base name with the single input file
  1958. name. This has been covered in single-input linking cases above, but
  1959. not with an explicit \fB\-dumpdir\fR that inhibits the combination,
  1960. even if overridden by \fB\-save\-temps=*\fR:
  1961. .Sp
  1962. .Vb 1
  1963. \& gcc foo.c \-dumpdir alt/pfx\- \-o dir/main.exe \-save\-temps=cwd ...
  1964. .Ve
  1965. .Sp
  1966. Auxiliary outputs are named \fIfoo.*\fR, and dump outputs
  1967. \&\fIfoo.c.*\fR, in the current working directory as ultimately requested
  1968. by \fB\-save\-temps=cwd\fR.
  1969. .Sp
  1970. Summing it all up for an intuitive though slightly imprecise data flow:
  1971. the primary output name is broken into a directory part and a basename
  1972. part; \fIdumppfx\fR is set to the former, unless overridden by
  1973. \&\fB\-dumpdir\fR or \fB\-save\-temps=*\fR, and \fIdumpbase\fR is set
  1974. to the latter, unless overriden by \fB\-dumpbase\fR. If there are
  1975. multiple inputs or linking, this \fIdumpbase\fR may be combined with
  1976. \&\fIdumppfx\fR and taken from each input file. Auxiliary output names
  1977. for each input are formed by combining \fIdumppfx\fR, \fIdumpbase\fR
  1978. minus suffix, and the auxiliary output suffix; dump output names are
  1979. only different in that the suffix from \fIdumpbase\fR is retained.
  1980. .Sp
  1981. When it comes to auxiliary and dump outputs created during \s-1LTO\s0
  1982. recompilation, a combination of \fIdumppfx\fR and \fIdumpbase\fR, as
  1983. given or as derived from the linker output name but not from inputs,
  1984. even in cases in which this combination would not otherwise be used as
  1985. such, is passed down with a trailing period replacing the compiler-added
  1986. dash, if any, as a \fB\-dumpdir\fR option to \fBlto-wrapper\fR;
  1987. being involved in linking, this program does not normally get any
  1988. \&\fB\-dumpbase\fR and \fB\-dumpbase\-ext\fR, and it ignores them.
  1989. .Sp
  1990. When running sub-compilers, \fBlto-wrapper\fR appends \s-1LTO\s0 stage
  1991. names to the received \fIdumppfx\fR, ensures it contains a directory
  1992. component so that it overrides any \fB\-dumpdir\fR, and passes that as
  1993. \&\fB\-dumpbase\fR to sub-compilers.
  1994. .IP "\fB\-v\fR" 4
  1995. .IX Item "-v"
  1996. Print (on standard error output) the commands executed to run the stages
  1997. of compilation. Also print the version number of the compiler driver
  1998. program and of the preprocessor and the compiler proper.
  1999. .IP "\fB\-###\fR" 4
  2000. .IX Item "-###"
  2001. Like \fB\-v\fR except the commands are not executed and arguments
  2002. are quoted unless they contain only alphanumeric characters or \f(CW\*(C`./\-_\*(C'\fR.
  2003. This is useful for shell scripts to capture the driver-generated command lines.
  2004. .IP "\fB\-\-help\fR" 4
  2005. .IX Item "--help"
  2006. Print (on the standard output) a description of the command-line options
  2007. understood by \fBgcc\fR. If the \fB\-v\fR option is also specified
  2008. then \fB\-\-help\fR is also passed on to the various processes
  2009. invoked by \fBgcc\fR, so that they can display the command-line options
  2010. they accept. If the \fB\-Wextra\fR option has also been specified
  2011. (prior to the \fB\-\-help\fR option), then command-line options that
  2012. have no documentation associated with them are also displayed.
  2013. .IP "\fB\-\-target\-help\fR" 4
  2014. .IX Item "--target-help"
  2015. Print (on the standard output) a description of target-specific command-line
  2016. options for each tool. For some targets extra target-specific
  2017. information may also be printed.
  2018. .IP "\fB\-\-help={\fR\fIclass\fR|[\fB^\fR]\fIqualifier\fR\fB}\fR[\fB,...\fR]" 4
  2019. .IX Item "--help={class|[^]qualifier}[,...]"
  2020. Print (on the standard output) a description of the command-line
  2021. options understood by the compiler that fit into all specified classes
  2022. and qualifiers. These are the supported classes:
  2023. .RS 4
  2024. .IP "\fBoptimizers\fR" 4
  2025. .IX Item "optimizers"
  2026. Display all of the optimization options supported by the
  2027. compiler.
  2028. .IP "\fBwarnings\fR" 4
  2029. .IX Item "warnings"
  2030. Display all of the options controlling warning messages
  2031. produced by the compiler.
  2032. .IP "\fBtarget\fR" 4
  2033. .IX Item "target"
  2034. Display target-specific options. Unlike the
  2035. \&\fB\-\-target\-help\fR option however, target-specific options of the
  2036. linker and assembler are not displayed. This is because those
  2037. tools do not currently support the extended \fB\-\-help=\fR syntax.
  2038. .IP "\fBparams\fR" 4
  2039. .IX Item "params"
  2040. Display the values recognized by the \fB\-\-param\fR
  2041. option.
  2042. .IP "\fIlanguage\fR" 4
  2043. .IX Item "language"
  2044. Display the options supported for \fIlanguage\fR, where
  2045. \&\fIlanguage\fR is the name of one of the languages supported in this
  2046. version of \s-1GCC.\s0 If an option is supported by all languages, one needs
  2047. to select \fBcommon\fR class.
  2048. .IP "\fBcommon\fR" 4
  2049. .IX Item "common"
  2050. Display the options that are common to all languages.
  2051. .RE
  2052. .RS 4
  2053. .Sp
  2054. These are the supported qualifiers:
  2055. .IP "\fBundocumented\fR" 4
  2056. .IX Item "undocumented"
  2057. Display only those options that are undocumented.
  2058. .IP "\fBjoined\fR" 4
  2059. .IX Item "joined"
  2060. Display options taking an argument that appears after an equal
  2061. sign in the same continuous piece of text, such as:
  2062. \&\fB\-\-help=target\fR.
  2063. .IP "\fBseparate\fR" 4
  2064. .IX Item "separate"
  2065. Display options taking an argument that appears as a separate word
  2066. following the original option, such as: \fB\-o output-file\fR.
  2067. .RE
  2068. .RS 4
  2069. .Sp
  2070. Thus for example to display all the undocumented target-specific
  2071. switches supported by the compiler, use:
  2072. .Sp
  2073. .Vb 1
  2074. \& \-\-help=target,undocumented
  2075. .Ve
  2076. .Sp
  2077. The sense of a qualifier can be inverted by prefixing it with the
  2078. \&\fB^\fR character, so for example to display all binary warning
  2079. options (i.e., ones that are either on or off and that do not take an
  2080. argument) that have a description, use:
  2081. .Sp
  2082. .Vb 1
  2083. \& \-\-help=warnings,^joined,^undocumented
  2084. .Ve
  2085. .Sp
  2086. The argument to \fB\-\-help=\fR should not consist solely of inverted
  2087. qualifiers.
  2088. .Sp
  2089. Combining several classes is possible, although this usually
  2090. restricts the output so much that there is nothing to display. One
  2091. case where it does work, however, is when one of the classes is
  2092. \&\fItarget\fR. For example, to display all the target-specific
  2093. optimization options, use:
  2094. .Sp
  2095. .Vb 1
  2096. \& \-\-help=target,optimizers
  2097. .Ve
  2098. .Sp
  2099. The \fB\-\-help=\fR option can be repeated on the command line. Each
  2100. successive use displays its requested class of options, skipping
  2101. those that have already been displayed. If \fB\-\-help\fR is also
  2102. specified anywhere on the command line then this takes precedence
  2103. over any \fB\-\-help=\fR option.
  2104. .Sp
  2105. If the \fB\-Q\fR option appears on the command line before the
  2106. \&\fB\-\-help=\fR option, then the descriptive text displayed by
  2107. \&\fB\-\-help=\fR is changed. Instead of describing the displayed
  2108. options, an indication is given as to whether the option is enabled,
  2109. disabled or set to a specific value (assuming that the compiler
  2110. knows this at the point where the \fB\-\-help=\fR option is used).
  2111. .Sp
  2112. Here is a truncated example from the \s-1ARM\s0 port of \fBgcc\fR:
  2113. .Sp
  2114. .Vb 5
  2115. \& % gcc \-Q \-mabi=2 \-\-help=target \-c
  2116. \& The following options are target specific:
  2117. \& \-mabi= 2
  2118. \& \-mabort\-on\-noreturn [disabled]
  2119. \& \-mapcs [disabled]
  2120. .Ve
  2121. .Sp
  2122. The output is sensitive to the effects of previous command-line
  2123. options, so for example it is possible to find out which optimizations
  2124. are enabled at \fB\-O2\fR by using:
  2125. .Sp
  2126. .Vb 1
  2127. \& \-Q \-O2 \-\-help=optimizers
  2128. .Ve
  2129. .Sp
  2130. Alternatively you can discover which binary optimizations are enabled
  2131. by \fB\-O3\fR by using:
  2132. .Sp
  2133. .Vb 3
  2134. \& gcc \-c \-Q \-O3 \-\-help=optimizers > /tmp/O3\-opts
  2135. \& gcc \-c \-Q \-O2 \-\-help=optimizers > /tmp/O2\-opts
  2136. \& diff /tmp/O2\-opts /tmp/O3\-opts | grep enabled
  2137. .Ve
  2138. .RE
  2139. .IP "\fB\-\-version\fR" 4
  2140. .IX Item "--version"
  2141. Display the version number and copyrights of the invoked \s-1GCC.\s0
  2142. .IP "\fB\-pass\-exit\-codes\fR" 4
  2143. .IX Item "-pass-exit-codes"
  2144. Normally the \fBgcc\fR program exits with the code of 1 if any
  2145. phase of the compiler returns a non-success return code. If you specify
  2146. \&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program instead returns with
  2147. the numerically highest error produced by any phase returning an error
  2148. indication. The C, \*(C+, and Fortran front ends return 4 if an internal
  2149. compiler error is encountered.
  2150. .IP "\fB\-pipe\fR" 4
  2151. .IX Item "-pipe"
  2152. Use pipes rather than temporary files for communication between the
  2153. various stages of compilation. This fails to work on some systems where
  2154. the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
  2155. no trouble.
  2156. .IP "\fB\-specs=\fR\fIfile\fR" 4
  2157. .IX Item "-specs=file"
  2158. Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
  2159. file, in order to override the defaults which the \fBgcc\fR driver
  2160. program uses when determining what switches to pass to \fBcc1\fR,
  2161. \&\fBcc1plus\fR, \fBas\fR, \fBld\fR, etc. More than one
  2162. \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
  2163. are processed in order, from left to right.
  2164. .IP "\fB\-wrapper\fR" 4
  2165. .IX Item "-wrapper"
  2166. Invoke all subcommands under a wrapper program. The name of the
  2167. wrapper program and its parameters are passed as a comma separated
  2168. list.
  2169. .Sp
  2170. .Vb 1
  2171. \& gcc \-c t.c \-wrapper gdb,\-\-args
  2172. .Ve
  2173. .Sp
  2174. This invokes all subprograms of \fBgcc\fR under
  2175. \&\fBgdb \-\-args\fR, thus the invocation of \fBcc1\fR is
  2176. \&\fBgdb \-\-args cc1 ...\fR.
  2177. .IP "\fB\-ffile\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
  2178. .IX Item "-ffile-prefix-map=old=new"
  2179. When compiling files residing in directory \fI\fIold\fI\fR, record
  2180. any references to them in the result of the compilation as if the
  2181. files resided in directory \fI\fInew\fI\fR instead. Specifying this
  2182. option is equivalent to specifying all the individual
  2183. \&\fB\-f*\-prefix\-map\fR options. This can be used to make reproducible
  2184. builds that are location independent. See also
  2185. \&\fB\-fmacro\-prefix\-map\fR and \fB\-fdebug\-prefix\-map\fR.
  2186. .IP "\fB\-fplugin=\fR\fIname\fR\fB.so\fR" 4
  2187. .IX Item "-fplugin=name.so"
  2188. Load the plugin code in file \fIname\fR.so, assumed to be a
  2189. shared object to be dlopen'd by the compiler. The base name of
  2190. the shared object file is used to identify the plugin for the
  2191. purposes of argument parsing (See
  2192. \&\fB\-fplugin\-arg\-\fR\fIname\fR\fB\-\fR\fIkey\fR\fB=\fR\fIvalue\fR below).
  2193. Each plugin should define the callback functions specified in the
  2194. Plugins \s-1API.\s0
  2195. .IP "\fB\-fplugin\-arg\-\fR\fIname\fR\fB\-\fR\fIkey\fR\fB=\fR\fIvalue\fR" 4
  2196. .IX Item "-fplugin-arg-name-key=value"
  2197. Define an argument called \fIkey\fR with a value of \fIvalue\fR
  2198. for the plugin called \fIname\fR.
  2199. .IP "\fB\-fdump\-ada\-spec\fR[\fB\-slim\fR]" 4
  2200. .IX Item "-fdump-ada-spec[-slim]"
  2201. For C and \*(C+ source and include files, generate corresponding Ada specs.
  2202. .IP "\fB\-fada\-spec\-parent=\fR\fIunit\fR" 4
  2203. .IX Item "-fada-spec-parent=unit"
  2204. In conjunction with \fB\-fdump\-ada\-spec\fR[\fB\-slim\fR] above, generate
  2205. Ada specs as child units of parent \fIunit\fR.
  2206. .IP "\fB\-fdump\-go\-spec=\fR\fIfile\fR" 4
  2207. .IX Item "-fdump-go-spec=file"
  2208. For input files in any language, generate corresponding Go
  2209. declarations in \fIfile\fR. This generates Go \f(CW\*(C`const\*(C'\fR,
  2210. \&\f(CW\*(C`type\*(C'\fR, \f(CW\*(C`var\*(C'\fR, and \f(CW\*(C`func\*(C'\fR declarations which may be a
  2211. useful way to start writing a Go interface to code written in some
  2212. other language.
  2213. .IP "\fB@\fR\fIfile\fR" 4
  2214. .IX Item "@file"
  2215. Read command-line options from \fIfile\fR. The options read are
  2216. inserted in place of the original @\fIfile\fR option. If \fIfile\fR
  2217. does not exist, or cannot be read, then the option will be treated
  2218. literally, and not removed.
  2219. .Sp
  2220. Options in \fIfile\fR are separated by whitespace. A whitespace
  2221. character may be included in an option by surrounding the entire
  2222. option in either single or double quotes. Any character (including a
  2223. backslash) may be included by prefixing the character to be included
  2224. with a backslash. The \fIfile\fR may itself contain additional
  2225. @\fIfile\fR options; any such options will be processed recursively.
  2226. .SS "Compiling \*(C+ Programs"
  2227. .IX Subsection "Compiling Programs"
  2228. \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
  2229. \&\fB.cc\fR, \fB.cpp\fR, \fB.CPP\fR, \fB.c++\fR, \fB.cp\fR, or
  2230. \&\fB.cxx\fR; \*(C+ header files often use \fB.hh\fR, \fB.hpp\fR,
  2231. \&\fB.H\fR, or (for shared template code) \fB.tcc\fR; and
  2232. preprocessed \*(C+ files use the suffix \fB.ii\fR. \s-1GCC\s0 recognizes
  2233. files with these names and compiles them as \*(C+ programs even if you
  2234. call the compiler the same way as for compiling C programs (usually
  2235. with the name \fBgcc\fR).
  2236. .PP
  2237. However, the use of \fBgcc\fR does not add the \*(C+ library.
  2238. \&\fBg++\fR is a program that calls \s-1GCC\s0 and automatically specifies linking
  2239. against the \*(C+ library. It treats \fB.c\fR,
  2240. \&\fB.h\fR and \fB.i\fR files as \*(C+ source files instead of C source
  2241. files unless \fB\-x\fR is used. This program is also useful when
  2242. precompiling a C header file with a \fB.h\fR extension for use in \*(C+
  2243. compilations. On many systems, \fBg++\fR is also installed with
  2244. the name \fBc++\fR.
  2245. .PP
  2246. When you compile \*(C+ programs, you may specify many of the same
  2247. command-line options that you use for compiling programs in any
  2248. language; or command-line options meaningful for C and related
  2249. languages; or options that are meaningful only for \*(C+ programs.
  2250. .SS "Options Controlling C Dialect"
  2251. .IX Subsection "Options Controlling C Dialect"
  2252. The following options control the dialect of C (or languages derived
  2253. from C, such as \*(C+, Objective-C and Objective\-\*(C+) that the compiler
  2254. accepts:
  2255. .IP "\fB\-ansi\fR" 4
  2256. .IX Item "-ansi"
  2257. In C mode, this is equivalent to \fB\-std=c90\fR. In \*(C+ mode, it is
  2258. equivalent to \fB\-std=c++98\fR.
  2259. .Sp
  2260. This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO
  2261. C90\s0 (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
  2262. such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
  2263. predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
  2264. type of system you are using. It also enables the undesirable and
  2265. rarely used \s-1ISO\s0 trigraph feature. For the C compiler,
  2266. it disables recognition of \*(C+ style \fB//\fR comments as well as
  2267. the \f(CW\*(C`inline\*(C'\fR keyword.
  2268. .Sp
  2269. The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
  2270. \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
  2271. \&\fB\-ansi\fR. You would not want to use them in an \s-1ISO C\s0 program, of
  2272. course, but it is useful to put them in header files that might be included
  2273. in compilations done with \fB\-ansi\fR. Alternate predefined macros
  2274. such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
  2275. without \fB\-ansi\fR.
  2276. .Sp
  2277. The \fB\-ansi\fR option does not cause non-ISO programs to be
  2278. rejected gratuitously. For that, \fB\-Wpedantic\fR is required in
  2279. addition to \fB\-ansi\fR.
  2280. .Sp
  2281. The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
  2282. option is used. Some header files may notice this macro and refrain
  2283. from declaring certain functions or defining certain macros that the
  2284. \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
  2285. programs that might use these names for other things.
  2286. .Sp
  2287. Functions that are normally built in but do not have semantics
  2288. defined by \s-1ISO C\s0 (such as \f(CW\*(C`alloca\*(C'\fR and \f(CW\*(C`ffs\*(C'\fR) are not built-in
  2289. functions when \fB\-ansi\fR is used.
  2290. .IP "\fB\-std=\fR" 4
  2291. .IX Item "-std="
  2292. Determine the language standard. This option
  2293. is currently only supported when compiling C or \*(C+.
  2294. .Sp
  2295. The compiler can accept several base standards, such as \fBc90\fR or
  2296. \&\fBc++98\fR, and \s-1GNU\s0 dialects of those standards, such as
  2297. \&\fBgnu90\fR or \fBgnu++98\fR. When a base standard is specified, the
  2298. compiler accepts all programs following that standard plus those
  2299. using \s-1GNU\s0 extensions that do not contradict it. For example,
  2300. \&\fB\-std=c90\fR turns off certain features of \s-1GCC\s0 that are
  2301. incompatible with \s-1ISO C90,\s0 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR
  2302. keywords, but not other \s-1GNU\s0 extensions that do not have a meaning in
  2303. \&\s-1ISO C90,\s0 such as omitting the middle term of a \f(CW\*(C`?:\*(C'\fR
  2304. expression. On the other hand, when a \s-1GNU\s0 dialect of a standard is
  2305. specified, all features supported by the compiler are enabled, even when
  2306. those features change the meaning of the base standard. As a result, some
  2307. strict-conforming programs may be rejected. The particular standard
  2308. is used by \fB\-Wpedantic\fR to identify which features are \s-1GNU\s0
  2309. extensions given that version of the standard. For example
  2310. \&\fB\-std=gnu90 \-Wpedantic\fR warns about \*(C+ style \fB//\fR
  2311. comments, while \fB\-std=gnu99 \-Wpedantic\fR does not.
  2312. .Sp
  2313. A value for this option must be provided; possible values are
  2314. .RS 4
  2315. .IP "\fBc90\fR" 4
  2316. .IX Item "c90"
  2317. .PD 0
  2318. .IP "\fBc89\fR" 4
  2319. .IX Item "c89"
  2320. .IP "\fBiso9899:1990\fR" 4
  2321. .IX Item "iso9899:1990"
  2322. .PD
  2323. Support all \s-1ISO C90\s0 programs (certain \s-1GNU\s0 extensions that conflict
  2324. with \s-1ISO C90\s0 are disabled). Same as \fB\-ansi\fR for C code.
  2325. .IP "\fBiso9899:199409\fR" 4
  2326. .IX Item "iso9899:199409"
  2327. \&\s-1ISO C90\s0 as modified in amendment 1.
  2328. .IP "\fBc99\fR" 4
  2329. .IX Item "c99"
  2330. .PD 0
  2331. .IP "\fBc9x\fR" 4
  2332. .IX Item "c9x"
  2333. .IP "\fBiso9899:1999\fR" 4
  2334. .IX Item "iso9899:1999"
  2335. .IP "\fBiso9899:199x\fR" 4
  2336. .IX Item "iso9899:199x"
  2337. .PD
  2338. \&\s-1ISO C99.\s0 This standard is substantially completely supported, modulo
  2339. bugs and floating-point issues
  2340. (mainly but not entirely relating to optional C99 features from
  2341. Annexes F and G). See
  2342. <\fBhttp://gcc.gnu.org/c99status.html\fR> for more information. The
  2343. names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
  2344. .IP "\fBc11\fR" 4
  2345. .IX Item "c11"
  2346. .PD 0
  2347. .IP "\fBc1x\fR" 4
  2348. .IX Item "c1x"
  2349. .IP "\fBiso9899:2011\fR" 4
  2350. .IX Item "iso9899:2011"
  2351. .PD
  2352. \&\s-1ISO C11,\s0 the 2011 revision of the \s-1ISO C\s0 standard. This standard is
  2353. substantially completely supported, modulo bugs, floating-point issues
  2354. (mainly but not entirely relating to optional C11 features from
  2355. Annexes F and G) and the optional Annexes K (Bounds-checking
  2356. interfaces) and L (Analyzability). The name \fBc1x\fR is deprecated.
  2357. .IP "\fBc17\fR" 4
  2358. .IX Item "c17"
  2359. .PD 0
  2360. .IP "\fBc18\fR" 4
  2361. .IX Item "c18"
  2362. .IP "\fBiso9899:2017\fR" 4
  2363. .IX Item "iso9899:2017"
  2364. .IP "\fBiso9899:2018\fR" 4
  2365. .IX Item "iso9899:2018"
  2366. .PD
  2367. \&\s-1ISO C17,\s0 the 2017 revision of the \s-1ISO C\s0 standard
  2368. (published in 2018). This standard is
  2369. same as C11 except for corrections of defects (all of which are also
  2370. applied with \fB\-std=c11\fR) and a new value of
  2371. \&\f(CW\*(C`_\|_STDC_VERSION_\|_\*(C'\fR, and so is supported to the same extent as C11.
  2372. .IP "\fBc2x\fR" 4
  2373. .IX Item "c2x"
  2374. The next version of the \s-1ISO C\s0 standard, still under development. The
  2375. support for this version is experimental and incomplete.
  2376. .IP "\fBgnu90\fR" 4
  2377. .IX Item "gnu90"
  2378. .PD 0
  2379. .IP "\fBgnu89\fR" 4
  2380. .IX Item "gnu89"
  2381. .PD
  2382. \&\s-1GNU\s0 dialect of \s-1ISO C90\s0 (including some C99 features).
  2383. .IP "\fBgnu99\fR" 4
  2384. .IX Item "gnu99"
  2385. .PD 0
  2386. .IP "\fBgnu9x\fR" 4
  2387. .IX Item "gnu9x"
  2388. .PD
  2389. \&\s-1GNU\s0 dialect of \s-1ISO C99.\s0 The name \fBgnu9x\fR is deprecated.
  2390. .IP "\fBgnu11\fR" 4
  2391. .IX Item "gnu11"
  2392. .PD 0
  2393. .IP "\fBgnu1x\fR" 4
  2394. .IX Item "gnu1x"
  2395. .PD
  2396. \&\s-1GNU\s0 dialect of \s-1ISO C11.\s0
  2397. The name \fBgnu1x\fR is deprecated.
  2398. .IP "\fBgnu17\fR" 4
  2399. .IX Item "gnu17"
  2400. .PD 0
  2401. .IP "\fBgnu18\fR" 4
  2402. .IX Item "gnu18"
  2403. .PD
  2404. \&\s-1GNU\s0 dialect of \s-1ISO C17.\s0 This is the default for C code.
  2405. .IP "\fBgnu2x\fR" 4
  2406. .IX Item "gnu2x"
  2407. The next version of the \s-1ISO C\s0 standard, still under development, plus
  2408. \&\s-1GNU\s0 extensions. The support for this version is experimental and
  2409. incomplete.
  2410. .IP "\fBc++98\fR" 4
  2411. .IX Item "c++98"
  2412. .PD 0
  2413. .IP "\fBc++03\fR" 4
  2414. .IX Item "c++03"
  2415. .PD
  2416. The 1998 \s-1ISO \*(C+\s0 standard plus the 2003 technical corrigendum and some
  2417. additional defect reports. Same as \fB\-ansi\fR for \*(C+ code.
  2418. .IP "\fBgnu++98\fR" 4
  2419. .IX Item "gnu++98"
  2420. .PD 0
  2421. .IP "\fBgnu++03\fR" 4
  2422. .IX Item "gnu++03"
  2423. .PD
  2424. \&\s-1GNU\s0 dialect of \fB\-std=c++98\fR.
  2425. .IP "\fBc++11\fR" 4
  2426. .IX Item "c++11"
  2427. .PD 0
  2428. .IP "\fBc++0x\fR" 4
  2429. .IX Item "c++0x"
  2430. .PD
  2431. The 2011 \s-1ISO \*(C+\s0 standard plus amendments.
  2432. The name \fBc++0x\fR is deprecated.
  2433. .IP "\fBgnu++11\fR" 4
  2434. .IX Item "gnu++11"
  2435. .PD 0
  2436. .IP "\fBgnu++0x\fR" 4
  2437. .IX Item "gnu++0x"
  2438. .PD
  2439. \&\s-1GNU\s0 dialect of \fB\-std=c++11\fR.
  2440. The name \fBgnu++0x\fR is deprecated.
  2441. .IP "\fBc++14\fR" 4
  2442. .IX Item "c++14"
  2443. .PD 0
  2444. .IP "\fBc++1y\fR" 4
  2445. .IX Item "c++1y"
  2446. .PD
  2447. The 2014 \s-1ISO \*(C+\s0 standard plus amendments.
  2448. The name \fBc++1y\fR is deprecated.
  2449. .IP "\fBgnu++14\fR" 4
  2450. .IX Item "gnu++14"
  2451. .PD 0
  2452. .IP "\fBgnu++1y\fR" 4
  2453. .IX Item "gnu++1y"
  2454. .PD
  2455. \&\s-1GNU\s0 dialect of \fB\-std=c++14\fR.
  2456. The name \fBgnu++1y\fR is deprecated.
  2457. .IP "\fBc++17\fR" 4
  2458. .IX Item "c++17"
  2459. .PD 0
  2460. .IP "\fBc++1z\fR" 4
  2461. .IX Item "c++1z"
  2462. .PD
  2463. The 2017 \s-1ISO \*(C+\s0 standard plus amendments.
  2464. The name \fBc++1z\fR is deprecated.
  2465. .IP "\fBgnu++17\fR" 4
  2466. .IX Item "gnu++17"
  2467. .PD 0
  2468. .IP "\fBgnu++1z\fR" 4
  2469. .IX Item "gnu++1z"
  2470. .PD
  2471. \&\s-1GNU\s0 dialect of \fB\-std=c++17\fR.
  2472. This is the default for \*(C+ code.
  2473. The name \fBgnu++1z\fR is deprecated.
  2474. .IP "\fBc++20\fR" 4
  2475. .IX Item "c++20"
  2476. .PD 0
  2477. .IP "\fBc++2a\fR" 4
  2478. .IX Item "c++2a"
  2479. .PD
  2480. The 2020 \s-1ISO \*(C+\s0 standard plus amendments.
  2481. Support is experimental, and could change in incompatible ways in
  2482. future releases.
  2483. The name \fBc++2a\fR is deprecated.
  2484. .IP "\fBgnu++20\fR" 4
  2485. .IX Item "gnu++20"
  2486. .PD 0
  2487. .IP "\fBgnu++2a\fR" 4
  2488. .IX Item "gnu++2a"
  2489. .PD
  2490. \&\s-1GNU\s0 dialect of \fB\-std=c++20\fR.
  2491. Support is experimental, and could change in incompatible ways in
  2492. future releases.
  2493. The name \fBgnu++2a\fR is deprecated.
  2494. .IP "\fBc++2b\fR" 4
  2495. .IX Item "c++2b"
  2496. .PD 0
  2497. .IP "\fBc++23\fR" 4
  2498. .IX Item "c++23"
  2499. .PD
  2500. The next revision of the \s-1ISO \*(C+\s0 standard, planned for
  2501. 2023. Support is highly experimental, and will almost certainly
  2502. change in incompatible ways in future releases.
  2503. .IP "\fBgnu++2b\fR" 4
  2504. .IX Item "gnu++2b"
  2505. .PD 0
  2506. .IP "\fBgnu++23\fR" 4
  2507. .IX Item "gnu++23"
  2508. .PD
  2509. \&\s-1GNU\s0 dialect of \fB\-std=c++2b\fR. Support is highly experimental,
  2510. and will almost certainly change in incompatible ways in future
  2511. releases.
  2512. .RE
  2513. .RS 4
  2514. .RE
  2515. .IP "\fB\-fgnu89\-inline\fR" 4
  2516. .IX Item "-fgnu89-inline"
  2517. The option \fB\-fgnu89\-inline\fR tells \s-1GCC\s0 to use the traditional
  2518. \&\s-1GNU\s0 semantics for \f(CW\*(C`inline\*(C'\fR functions when in C99 mode.
  2519. .Sp
  2520. Using this option is roughly equivalent to adding the
  2521. \&\f(CW\*(C`gnu_inline\*(C'\fR function attribute to all inline functions.
  2522. .Sp
  2523. The option \fB\-fno\-gnu89\-inline\fR explicitly tells \s-1GCC\s0 to use the
  2524. C99 semantics for \f(CW\*(C`inline\*(C'\fR when in C99 or gnu99 mode (i.e., it
  2525. specifies the default behavior).
  2526. This option is not supported in \fB\-std=c90\fR or
  2527. \&\fB\-std=gnu90\fR mode.
  2528. .Sp
  2529. The preprocessor macros \f(CW\*(C`_\|_GNUC_GNU_INLINE_\|_\*(C'\fR and
  2530. \&\f(CW\*(C`_\|_GNUC_STDC_INLINE_\|_\*(C'\fR may be used to check which semantics are
  2531. in effect for \f(CW\*(C`inline\*(C'\fR functions.
  2532. .IP "\fB\-fpermitted\-flt\-eval\-methods=\fR\fIstyle\fR" 4
  2533. .IX Item "-fpermitted-flt-eval-methods=style"
  2534. \&\s-1ISO/IEC TS 18661\-3\s0 defines new permissible values for
  2535. \&\f(CW\*(C`FLT_EVAL_METHOD\*(C'\fR that indicate that operations and constants with
  2536. a semantic type that is an interchange or extended format should be
  2537. evaluated to the precision and range of that type. These new values are
  2538. a superset of those permitted under C99/C11, which does not specify the
  2539. meaning of other positive values of \f(CW\*(C`FLT_EVAL_METHOD\*(C'\fR. As such, code
  2540. conforming to C11 may not have been written expecting the possibility of
  2541. the new values.
  2542. .Sp
  2543. \&\fB\-fpermitted\-flt\-eval\-methods\fR specifies whether the compiler
  2544. should allow only the values of \f(CW\*(C`FLT_EVAL_METHOD\*(C'\fR specified in C99/C11,
  2545. or the extended set of values specified in \s-1ISO/IEC TS 18661\-3.\s0
  2546. .Sp
  2547. \&\fIstyle\fR is either \f(CW\*(C`c11\*(C'\fR or \f(CW\*(C`ts\-18661\-3\*(C'\fR as appropriate.
  2548. .Sp
  2549. The default when in a standards compliant mode (\fB\-std=c11\fR or similar)
  2550. is \fB\-fpermitted\-flt\-eval\-methods=c11\fR. The default when in a \s-1GNU\s0
  2551. dialect (\fB\-std=gnu11\fR or similar) is
  2552. \&\fB\-fpermitted\-flt\-eval\-methods=ts\-18661\-3\fR.
  2553. .IP "\fB\-aux\-info\fR \fIfilename\fR" 4
  2554. .IX Item "-aux-info filename"
  2555. Output to the given filename prototyped declarations for all functions
  2556. declared and/or defined in a translation unit, including those in header
  2557. files. This option is silently ignored in any language other than C.
  2558. .Sp
  2559. Besides declarations, the file indicates, in comments, the origin of
  2560. each declaration (source file and line), whether the declaration was
  2561. implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
  2562. \&\fBO\fR for old, respectively, in the first character after the line
  2563. number and the colon), and whether it came from a declaration or a
  2564. definition (\fBC\fR or \fBF\fR, respectively, in the following
  2565. character). In the case of function definitions, a K&R\-style list of
  2566. arguments followed by their declarations is also provided, inside
  2567. comments, after the declaration.
  2568. .IP "\fB\-fallow\-parameterless\-variadic\-functions\fR" 4
  2569. .IX Item "-fallow-parameterless-variadic-functions"
  2570. Accept variadic functions without named parameters.
  2571. .Sp
  2572. Although it is possible to define such a function, this is not very
  2573. useful as it is not possible to read the arguments. This is only
  2574. supported for C as this construct is allowed by \*(C+.
  2575. .IP "\fB\-fno\-asm\fR" 4
  2576. .IX Item "-fno-asm"
  2577. Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
  2578. keyword, so that code can use these words as identifiers. You can use
  2579. the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
  2580. instead. \fB\-ansi\fR implies \fB\-fno\-asm\fR.
  2581. .Sp
  2582. In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
  2583. \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords. You may want to
  2584. use the \fB\-fno\-gnu\-keywords\fR flag instead, which has the same
  2585. effect. In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
  2586. switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
  2587. \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO C99.\s0
  2588. .IP "\fB\-fno\-builtin\fR" 4
  2589. .IX Item "-fno-builtin"
  2590. .PD 0
  2591. .IP "\fB\-fno\-builtin\-\fR\fIfunction\fR" 4
  2592. .IX Item "-fno-builtin-function"
  2593. .PD
  2594. Don't recognize built-in functions that do not begin with
  2595. \&\fB_\|_builtin_\fR as prefix.
  2596. .Sp
  2597. \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
  2598. more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
  2599. instructions which adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
  2600. may become inline copy loops. The resulting code is often both smaller
  2601. and faster, but since the function calls no longer appear as such, you
  2602. cannot set a breakpoint on those calls, nor can you change the behavior
  2603. of the functions by linking with a different library. In addition,
  2604. when a function is recognized as a built-in function, \s-1GCC\s0 may use
  2605. information about that function to warn about problems with calls to
  2606. that function, or to generate more efficient code, even if the
  2607. resulting code still contains calls to that function. For example,
  2608. warnings are given with \fB\-Wformat\fR for bad calls to
  2609. \&\f(CW\*(C`printf\*(C'\fR when \f(CW\*(C`printf\*(C'\fR is built in and \f(CW\*(C`strlen\*(C'\fR is
  2610. known not to modify global memory.
  2611. .Sp
  2612. With the \fB\-fno\-builtin\-\fR\fIfunction\fR option
  2613. only the built-in function \fIfunction\fR is
  2614. disabled. \fIfunction\fR must not begin with \fB_\|_builtin_\fR. If a
  2615. function is named that is not built-in in this version of \s-1GCC,\s0 this
  2616. option is ignored. There is no corresponding
  2617. \&\fB\-fbuiltin\-\fR\fIfunction\fR option; if you wish to enable
  2618. built-in functions selectively when using \fB\-fno\-builtin\fR or
  2619. \&\fB\-ffreestanding\fR, you may define macros such as:
  2620. .Sp
  2621. .Vb 2
  2622. \& #define abs(n) _\|_builtin_abs ((n))
  2623. \& #define strcpy(d, s) _\|_builtin_strcpy ((d), (s))
  2624. .Ve
  2625. .IP "\fB\-fgimple\fR" 4
  2626. .IX Item "-fgimple"
  2627. Enable parsing of function definitions marked with \f(CW\*(C`_\|_GIMPLE\*(C'\fR.
  2628. This is an experimental feature that allows unit testing of \s-1GIMPLE\s0
  2629. passes.
  2630. .IP "\fB\-fhosted\fR" 4
  2631. .IX Item "-fhosted"
  2632. Assert that compilation targets a hosted environment. This implies
  2633. \&\fB\-fbuiltin\fR. A hosted environment is one in which the
  2634. entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
  2635. type of \f(CW\*(C`int\*(C'\fR. Examples are nearly everything except a kernel.
  2636. This is equivalent to \fB\-fno\-freestanding\fR.
  2637. .IP "\fB\-ffreestanding\fR" 4
  2638. .IX Item "-ffreestanding"
  2639. Assert that compilation targets a freestanding environment. This
  2640. implies \fB\-fno\-builtin\fR. A freestanding environment
  2641. is one in which the standard library may not exist, and program startup may
  2642. not necessarily be at \f(CW\*(C`main\*(C'\fR. The most obvious example is an \s-1OS\s0 kernel.
  2643. This is equivalent to \fB\-fno\-hosted\fR.
  2644. .IP "\fB\-fopenacc\fR" 4
  2645. .IX Item "-fopenacc"
  2646. Enable handling of OpenACC directives \f(CW\*(C`#pragma acc\*(C'\fR in C/\*(C+ and
  2647. \&\f(CW\*(C`!$acc\*(C'\fR in Fortran. When \fB\-fopenacc\fR is specified, the
  2648. compiler generates accelerated code according to the OpenACC Application
  2649. Programming Interface v2.6 <\fBhttps://www.openacc.org\fR>. This option
  2650. implies \fB\-pthread\fR, and thus is only supported on targets that
  2651. have support for \fB\-pthread\fR.
  2652. .IP "\fB\-fopenacc\-dim=\fR\fIgeom\fR" 4
  2653. .IX Item "-fopenacc-dim=geom"
  2654. Specify default compute dimensions for parallel offload regions that do
  2655. not explicitly specify. The \fIgeom\fR value is a triple of
  2656. \&':'\-separated sizes, in order 'gang', 'worker' and, 'vector'. A size
  2657. can be omitted, to use a target-specific default value.
  2658. .IP "\fB\-fopenmp\fR" 4
  2659. .IX Item "-fopenmp"
  2660. Enable handling of OpenMP directives \f(CW\*(C`#pragma omp\*(C'\fR in C/\*(C+ and
  2661. \&\f(CW\*(C`!$omp\*(C'\fR in Fortran. When \fB\-fopenmp\fR is specified, the
  2662. compiler generates parallel code according to the OpenMP Application
  2663. Program Interface v4.5 <\fBhttps://www.openmp.org\fR>. This option
  2664. implies \fB\-pthread\fR, and thus is only supported on targets that
  2665. have support for \fB\-pthread\fR. \fB\-fopenmp\fR implies
  2666. \&\fB\-fopenmp\-simd\fR.
  2667. .IP "\fB\-fopenmp\-simd\fR" 4
  2668. .IX Item "-fopenmp-simd"
  2669. Enable handling of OpenMP's \s-1SIMD\s0 directives with \f(CW\*(C`#pragma omp\*(C'\fR
  2670. in C/\*(C+ and \f(CW\*(C`!$omp\*(C'\fR in Fortran. Other OpenMP directives
  2671. are ignored.
  2672. .IP "\fB\-fgnu\-tm\fR" 4
  2673. .IX Item "-fgnu-tm"
  2674. When the option \fB\-fgnu\-tm\fR is specified, the compiler
  2675. generates code for the Linux variant of Intel's current Transactional
  2676. Memory \s-1ABI\s0 specification document (Revision 1.1, May 6 2009). This is
  2677. an experimental feature whose interface may change in future versions
  2678. of \s-1GCC,\s0 as the official specification changes. Please note that not
  2679. all architectures are supported for this feature.
  2680. .Sp
  2681. For more information on \s-1GCC\s0's support for transactional memory,
  2682. .Sp
  2683. Note that the transactional memory feature is not supported with
  2684. non-call exceptions (\fB\-fnon\-call\-exceptions\fR).
  2685. .IP "\fB\-fms\-extensions\fR" 4
  2686. .IX Item "-fms-extensions"
  2687. Accept some non-standard constructs used in Microsoft header files.
  2688. .Sp
  2689. In \*(C+ code, this allows member names in structures to be similar
  2690. to previous types declarations.
  2691. .Sp
  2692. .Vb 4
  2693. \& typedef int UOW;
  2694. \& struct ABC {
  2695. \& UOW UOW;
  2696. \& };
  2697. .Ve
  2698. .Sp
  2699. Some cases of unnamed fields in structures and unions are only
  2700. accepted with this option.
  2701. .Sp
  2702. Note that this option is off for all targets except for x86
  2703. targets using ms-abi.
  2704. .IP "\fB\-fplan9\-extensions\fR" 4
  2705. .IX Item "-fplan9-extensions"
  2706. Accept some non-standard constructs used in Plan 9 code.
  2707. .Sp
  2708. This enables \fB\-fms\-extensions\fR, permits passing pointers to
  2709. structures with anonymous fields to functions that expect pointers to
  2710. elements of the type of the field, and permits referring to anonymous
  2711. fields declared using a typedef. This is only
  2712. supported for C, not \*(C+.
  2713. .IP "\fB\-fcond\-mismatch\fR" 4
  2714. .IX Item "-fcond-mismatch"
  2715. Allow conditional expressions with mismatched types in the second and
  2716. third arguments. The value of such an expression is void. This option
  2717. is not supported for \*(C+.
  2718. .IP "\fB\-flax\-vector\-conversions\fR" 4
  2719. .IX Item "-flax-vector-conversions"
  2720. Allow implicit conversions between vectors with differing numbers of
  2721. elements and/or incompatible element types. This option should not be
  2722. used for new code.
  2723. .IP "\fB\-funsigned\-char\fR" 4
  2724. .IX Item "-funsigned-char"
  2725. Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
  2726. .Sp
  2727. Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
  2728. be. It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
  2729. \&\f(CW\*(C`signed char\*(C'\fR by default.
  2730. .Sp
  2731. Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
  2732. \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
  2733. But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
  2734. expect it to be signed, or expect it to be unsigned, depending on the
  2735. machines they were written for. This option, and its inverse, let you
  2736. make such a program work with the opposite default.
  2737. .Sp
  2738. The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
  2739. \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
  2740. is always just like one of those two.
  2741. .IP "\fB\-fsigned\-char\fR" 4
  2742. .IX Item "-fsigned-char"
  2743. Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
  2744. .Sp
  2745. Note that this is equivalent to \fB\-fno\-unsigned\-char\fR, which is
  2746. the negative form of \fB\-funsigned\-char\fR. Likewise, the option
  2747. \&\fB\-fno\-signed\-char\fR is equivalent to \fB\-funsigned\-char\fR.
  2748. .IP "\fB\-fsigned\-bitfields\fR" 4
  2749. .IX Item "-fsigned-bitfields"
  2750. .PD 0
  2751. .IP "\fB\-funsigned\-bitfields\fR" 4
  2752. .IX Item "-funsigned-bitfields"
  2753. .IP "\fB\-fno\-signed\-bitfields\fR" 4
  2754. .IX Item "-fno-signed-bitfields"
  2755. .IP "\fB\-fno\-unsigned\-bitfields\fR" 4
  2756. .IX Item "-fno-unsigned-bitfields"
  2757. .PD
  2758. These options control whether a bit-field is signed or unsigned, when the
  2759. declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR. By
  2760. default, such a bit-field is signed, because this is consistent: the
  2761. basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
  2762. .IP "\fB\-fsso\-struct=\fR\fIendianness\fR" 4
  2763. .IX Item "-fsso-struct=endianness"
  2764. Set the default scalar storage order of structures and unions to the
  2765. specified endianness. The accepted values are \fBbig-endian\fR,
  2766. \&\fBlittle-endian\fR and \fBnative\fR for the native endianness of
  2767. the target (the default). This option is not supported for \*(C+.
  2768. .Sp
  2769. \&\fBWarning:\fR the \fB\-fsso\-struct\fR switch causes \s-1GCC\s0 to generate
  2770. code that is not binary compatible with code generated without it if the
  2771. specified endianness is not the native endianness of the target.
  2772. .SS "Options Controlling \*(C+ Dialect"
  2773. .IX Subsection "Options Controlling Dialect"
  2774. This section describes the command-line options that are only meaningful
  2775. for \*(C+ programs. You can also use most of the \s-1GNU\s0 compiler options
  2776. regardless of what language your program is in. For example, you
  2777. might compile a file \fIfirstClass.C\fR like this:
  2778. .PP
  2779. .Vb 1
  2780. \& g++ \-g \-fstrict\-enums \-O \-c firstClass.C
  2781. .Ve
  2782. .PP
  2783. In this example, only \fB\-fstrict\-enums\fR is an option meant
  2784. only for \*(C+ programs; you can use the other options with any
  2785. language supported by \s-1GCC.\s0
  2786. .PP
  2787. Some options for compiling C programs, such as \fB\-std\fR, are also
  2788. relevant for \*(C+ programs.
  2789. .PP
  2790. Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
  2791. .IP "\fB\-fabi\-version=\fR\fIn\fR" 4
  2792. .IX Item "-fabi-version=n"
  2793. Use version \fIn\fR of the \*(C+ \s-1ABI.\s0 The default is version 0.
  2794. .Sp
  2795. Version 0 refers to the version conforming most closely to
  2796. the \*(C+ \s-1ABI\s0 specification. Therefore, the \s-1ABI\s0 obtained using version 0
  2797. will change in different versions of G++ as \s-1ABI\s0 bugs are fixed.
  2798. .Sp
  2799. Version 1 is the version of the \*(C+ \s-1ABI\s0 that first appeared in G++ 3.2.
  2800. .Sp
  2801. Version 2 is the version of the \*(C+ \s-1ABI\s0 that first appeared in G++
  2802. 3.4, and was the default through G++ 4.9.
  2803. .Sp
  2804. Version 3 corrects an error in mangling a constant address as a
  2805. template argument.
  2806. .Sp
  2807. Version 4, which first appeared in G++ 4.5, implements a standard
  2808. mangling for vector types.
  2809. .Sp
  2810. Version 5, which first appeared in G++ 4.6, corrects the mangling of
  2811. attribute const/volatile on function pointer types, decltype of a
  2812. plain decl, and use of a function parameter in the declaration of
  2813. another parameter.
  2814. .Sp
  2815. Version 6, which first appeared in G++ 4.7, corrects the promotion
  2816. behavior of \*(C+11 scoped enums and the mangling of template argument
  2817. packs, const/static_cast, prefix ++ and \-\-, and a class scope function
  2818. used as a template argument.
  2819. .Sp
  2820. Version 7, which first appeared in G++ 4.8, that treats nullptr_t as a
  2821. builtin type and corrects the mangling of lambdas in default argument
  2822. scope.
  2823. .Sp
  2824. Version 8, which first appeared in G++ 4.9, corrects the substitution
  2825. behavior of function types with function-cv-qualifiers.
  2826. .Sp
  2827. Version 9, which first appeared in G++ 5.2, corrects the alignment of
  2828. \&\f(CW\*(C`nullptr_t\*(C'\fR.
  2829. .Sp
  2830. Version 10, which first appeared in G++ 6.1, adds mangling of
  2831. attributes that affect type identity, such as ia32 calling convention
  2832. attributes (e.g. \fBstdcall\fR).
  2833. .Sp
  2834. Version 11, which first appeared in G++ 7, corrects the mangling of
  2835. sizeof... expressions and operator names. For multiple entities with
  2836. the same name within a function, that are declared in different scopes,
  2837. the mangling now changes starting with the twelfth occurrence. It also
  2838. implies \fB\-fnew\-inheriting\-ctors\fR.
  2839. .Sp
  2840. Version 12, which first appeared in G++ 8, corrects the calling
  2841. conventions for empty classes on the x86_64 target and for classes
  2842. with only deleted copy/move constructors. It accidentally changes the
  2843. calling convention for classes with a deleted copy constructor and a
  2844. trivial move constructor.
  2845. .Sp
  2846. Version 13, which first appeared in G++ 8.2, fixes the accidental
  2847. change in version 12.
  2848. .Sp
  2849. Version 14, which first appeared in G++ 10, corrects the mangling of
  2850. the nullptr expression.
  2851. .Sp
  2852. Version 15, which first appeared in G++ 11, changes the mangling of
  2853. \&\f(CW\*(C`_\|_alignof_\|_\*(C'\fR to be distinct from that of \f(CW\*(C`alignof\*(C'\fR, and
  2854. dependent operator names.
  2855. .Sp
  2856. See also \fB\-Wabi\fR.
  2857. .IP "\fB\-fabi\-compat\-version=\fR\fIn\fR" 4
  2858. .IX Item "-fabi-compat-version=n"
  2859. On targets that support strong aliases, G++
  2860. works around mangling changes by creating an alias with the correct
  2861. mangled name when defining a symbol with an incorrect mangled name.
  2862. This switch specifies which \s-1ABI\s0 version to use for the alias.
  2863. .Sp
  2864. With \fB\-fabi\-version=0\fR (the default), this defaults to 11 (\s-1GCC 7\s0
  2865. compatibility). If another \s-1ABI\s0 version is explicitly selected, this
  2866. defaults to 0. For compatibility with \s-1GCC\s0 versions 3.2 through 4.9,
  2867. use \fB\-fabi\-compat\-version=2\fR.
  2868. .Sp
  2869. If this option is not provided but \fB\-Wabi=\fR\fIn\fR is, that
  2870. version is used for compatibility aliases. If this option is provided
  2871. along with \fB\-Wabi\fR (without the version), the version from this
  2872. option is used for the warning.
  2873. .IP "\fB\-fno\-access\-control\fR" 4
  2874. .IX Item "-fno-access-control"
  2875. Turn off all access checking. This switch is mainly useful for working
  2876. around bugs in the access control code.
  2877. .IP "\fB\-faligned\-new\fR" 4
  2878. .IX Item "-faligned-new"
  2879. Enable support for \*(C+17 \f(CW\*(C`new\*(C'\fR of types that require more
  2880. alignment than \f(CW\*(C`void* ::operator new(std::size_t)\*(C'\fR provides. A
  2881. numeric argument such as \f(CW\*(C`\-faligned\-new=32\*(C'\fR can be used to
  2882. specify how much alignment (in bytes) is provided by that function,
  2883. but few users will need to override the default of
  2884. \&\f(CW\*(C`alignof(std::max_align_t)\*(C'\fR.
  2885. .Sp
  2886. This flag is enabled by default for \fB\-std=c++17\fR.
  2887. .IP "\fB\-fchar8_t\fR" 4
  2888. .IX Item "-fchar8_t"
  2889. .PD 0
  2890. .IP "\fB\-fno\-char8_t\fR" 4
  2891. .IX Item "-fno-char8_t"
  2892. .PD
  2893. Enable support for \f(CW\*(C`char8_t\*(C'\fR as adopted for \*(C+20. This includes
  2894. the addition of a new \f(CW\*(C`char8_t\*(C'\fR fundamental type, changes to the
  2895. types of \s-1UTF\-8\s0 string and character literals, new signatures for
  2896. user-defined literals, associated standard library updates, and new
  2897. \&\f(CW\*(C`_\|_cpp_char8_t\*(C'\fR and \f(CW\*(C`_\|_cpp_lib_char8_t\*(C'\fR feature test macros.
  2898. .Sp
  2899. This option enables functions to be overloaded for ordinary and \s-1UTF\-8\s0
  2900. strings:
  2901. .Sp
  2902. .Vb 4
  2903. \& int f(const char *); // #1
  2904. \& int f(const char8_t *); // #2
  2905. \& int v1 = f("text"); // Calls #1
  2906. \& int v2 = f(u8"text"); // Calls #2
  2907. .Ve
  2908. .Sp
  2909. and introduces new signatures for user-defined literals:
  2910. .Sp
  2911. .Vb 6
  2912. \& int operator""_udl1(char8_t);
  2913. \& int v3 = u8\*(Aqx\*(Aq_udl1;
  2914. \& int operator""_udl2(const char8_t*, std::size_t);
  2915. \& int v4 = u8"text"_udl2;
  2916. \& template<typename T, T...> int operator""_udl3();
  2917. \& int v5 = u8"text"_udl3;
  2918. .Ve
  2919. .Sp
  2920. The change to the types of \s-1UTF\-8\s0 string and character literals introduces
  2921. incompatibilities with \s-1ISO \*(C+11\s0 and later standards. For example, the
  2922. following code is well-formed under \s-1ISO \*(C+11,\s0 but is ill-formed when
  2923. \&\fB\-fchar8_t\fR is specified.
  2924. .Sp
  2925. .Vb 10
  2926. \& char ca[] = u8"xx"; // error: char\-array initialized from wide
  2927. \& // string
  2928. \& const char *cp = u8"xx";// error: invalid conversion from
  2929. \& // \`const char8_t*\*(Aq to \`const char*\*(Aq
  2930. \& int f(const char*);
  2931. \& auto v = f(u8"xx"); // error: invalid conversion from
  2932. \& // \`const char8_t*\*(Aq to \`const char*\*(Aq
  2933. \& std::string s{u8"xx"}; // error: no matching function for call to
  2934. \& // \`std::basic_string<char>::basic_string()\*(Aq
  2935. \& using namespace std::literals;
  2936. \& s = u8"xx"s; // error: conversion from
  2937. \& // \`basic_string<char8_t>\*(Aq to non\-scalar
  2938. \& // type \`basic_string<char>\*(Aq requested
  2939. .Ve
  2940. .IP "\fB\-fcheck\-new\fR" 4
  2941. .IX Item "-fcheck-new"
  2942. Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
  2943. before attempting to modify the storage allocated. This check is
  2944. normally unnecessary because the \*(C+ standard specifies that
  2945. \&\f(CW\*(C`operator new\*(C'\fR only returns \f(CW0\fR if it is declared
  2946. \&\f(CW\*(C`throw()\*(C'\fR, in which case the compiler always checks the
  2947. return value even without this option. In all other cases, when
  2948. \&\f(CW\*(C`operator new\*(C'\fR has a non-empty exception specification, memory
  2949. exhaustion is signalled by throwing \f(CW\*(C`std::bad_alloc\*(C'\fR. See also
  2950. \&\fBnew (nothrow)\fR.
  2951. .IP "\fB\-fconcepts\fR" 4
  2952. .IX Item "-fconcepts"
  2953. .PD 0
  2954. .IP "\fB\-fconcepts\-ts\fR" 4
  2955. .IX Item "-fconcepts-ts"
  2956. .PD
  2957. Below \fB\-std=c++20\fR, \fB\-fconcepts\fR enables support for the
  2958. \&\*(C+ Extensions for Concepts Technical Specification, \s-1ISO 19217\s0 (2015).
  2959. .Sp
  2960. With \fB\-std=c++20\fR and above, Concepts are part of the language
  2961. standard, so \fB\-fconcepts\fR defaults to on. But the standard
  2962. specification of Concepts differs significantly from the \s-1TS,\s0 so some
  2963. constructs that were allowed in the \s-1TS\s0 but didn't make it into the
  2964. standard can still be enabled by \fB\-fconcepts\-ts\fR.
  2965. .IP "\fB\-fconstexpr\-depth=\fR\fIn\fR" 4
  2966. .IX Item "-fconstexpr-depth=n"
  2967. Set the maximum nested evaluation depth for \*(C+11 constexpr functions
  2968. to \fIn\fR. A limit is needed to detect endless recursion during
  2969. constant expression evaluation. The minimum specified by the standard
  2970. is 512.
  2971. .IP "\fB\-fconstexpr\-cache\-depth=\fR\fIn\fR" 4
  2972. .IX Item "-fconstexpr-cache-depth=n"
  2973. Set the maximum level of nested evaluation depth for \*(C+11 constexpr
  2974. functions that will be cached to \fIn\fR. This is a heuristic that
  2975. trades off compilation speed (when the cache avoids repeated
  2976. calculations) against memory consumption (when the cache grows very
  2977. large from highly recursive evaluations). The default is 8. Very few
  2978. users are likely to want to adjust it, but if your code does heavy
  2979. constexpr calculations you might want to experiment to find which
  2980. value works best for you.
  2981. .IP "\fB\-fconstexpr\-loop\-limit=\fR\fIn\fR" 4
  2982. .IX Item "-fconstexpr-loop-limit=n"
  2983. Set the maximum number of iterations for a loop in \*(C+14 constexpr functions
  2984. to \fIn\fR. A limit is needed to detect infinite loops during
  2985. constant expression evaluation. The default is 262144 (1<<18).
  2986. .IP "\fB\-fconstexpr\-ops\-limit=\fR\fIn\fR" 4
  2987. .IX Item "-fconstexpr-ops-limit=n"
  2988. Set the maximum number of operations during a single constexpr evaluation.
  2989. Even when number of iterations of a single loop is limited with the above limit,
  2990. if there are several nested loops and each of them has many iterations but still
  2991. smaller than the above limit, or if in a body of some loop or even outside
  2992. of a loop too many expressions need to be evaluated, the resulting constexpr
  2993. evaluation might take too long.
  2994. The default is 33554432 (1<<25).
  2995. .IP "\fB\-fcoroutines\fR" 4
  2996. .IX Item "-fcoroutines"
  2997. Enable support for the \*(C+ coroutines extension (experimental).
  2998. .IP "\fB\-fno\-elide\-constructors\fR" 4
  2999. .IX Item "-fno-elide-constructors"
  3000. The \*(C+ standard allows an implementation to omit creating a temporary
  3001. that is only used to initialize another object of the same type.
  3002. Specifying this option disables that optimization, and forces G++ to
  3003. call the copy constructor in all cases. This option also causes G++
  3004. to call trivial member functions which otherwise would be expanded inline.
  3005. .Sp
  3006. In \*(C+17, the compiler is required to omit these temporaries, but this
  3007. option still affects trivial member functions.
  3008. .IP "\fB\-fno\-enforce\-eh\-specs\fR" 4
  3009. .IX Item "-fno-enforce-eh-specs"
  3010. Don't generate code to check for violation of exception specifications
  3011. at run time. This option violates the \*(C+ standard, but may be useful
  3012. for reducing code size in production builds, much like defining
  3013. \&\f(CW\*(C`NDEBUG\*(C'\fR. This does not give user code permission to throw
  3014. exceptions in violation of the exception specifications; the compiler
  3015. still optimizes based on the specifications, so throwing an
  3016. unexpected exception results in undefined behavior at run time.
  3017. .IP "\fB\-fextern\-tls\-init\fR" 4
  3018. .IX Item "-fextern-tls-init"
  3019. .PD 0
  3020. .IP "\fB\-fno\-extern\-tls\-init\fR" 4
  3021. .IX Item "-fno-extern-tls-init"
  3022. .PD
  3023. The \*(C+11 and OpenMP standards allow \f(CW\*(C`thread_local\*(C'\fR and
  3024. \&\f(CW\*(C`threadprivate\*(C'\fR variables to have dynamic (runtime)
  3025. initialization. To support this, any use of such a variable goes
  3026. through a wrapper function that performs any necessary initialization.
  3027. When the use and definition of the variable are in the same
  3028. translation unit, this overhead can be optimized away, but when the
  3029. use is in a different translation unit there is significant overhead
  3030. even if the variable doesn't actually need dynamic initialization. If
  3031. the programmer can be sure that no use of the variable in a
  3032. non-defining \s-1TU\s0 needs to trigger dynamic initialization (either
  3033. because the variable is statically initialized, or a use of the
  3034. variable in the defining \s-1TU\s0 will be executed before any uses in
  3035. another \s-1TU\s0), they can avoid this overhead with the
  3036. \&\fB\-fno\-extern\-tls\-init\fR option.
  3037. .Sp
  3038. On targets that support symbol aliases, the default is
  3039. \&\fB\-fextern\-tls\-init\fR. On targets that do not support symbol
  3040. aliases, the default is \fB\-fno\-extern\-tls\-init\fR.
  3041. .IP "\fB\-fno\-gnu\-keywords\fR" 4
  3042. .IX Item "-fno-gnu-keywords"
  3043. Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
  3044. word as an identifier. You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
  3045. This option is implied by the strict \s-1ISO \*(C+\s0 dialects: \fB\-ansi\fR,
  3046. \&\fB\-std=c++98\fR, \fB\-std=c++11\fR, etc.
  3047. .IP "\fB\-fno\-implicit\-templates\fR" 4
  3048. .IX Item "-fno-implicit-templates"
  3049. Never emit code for non-inline templates that are instantiated
  3050. implicitly (i.e. by use); only emit code for explicit instantiations.
  3051. If you use this option, you must take care to structure your code to
  3052. include all the necessary explicit instantiations to avoid getting
  3053. undefined symbols at link time.
  3054. .IP "\fB\-fno\-implicit\-inline\-templates\fR" 4
  3055. .IX Item "-fno-implicit-inline-templates"
  3056. Don't emit code for implicit instantiations of inline templates, either.
  3057. The default is to handle inlines differently so that compiles with and
  3058. without optimization need the same set of explicit instantiations.
  3059. .IP "\fB\-fno\-implement\-inlines\fR" 4
  3060. .IX Item "-fno-implement-inlines"
  3061. To save space, do not emit out-of-line copies of inline functions
  3062. controlled by \f(CW\*(C`#pragma implementation\*(C'\fR. This causes linker
  3063. errors if these functions are not inlined everywhere they are called.
  3064. .IP "\fB\-fmodules\-ts\fR" 4
  3065. .IX Item "-fmodules-ts"
  3066. .PD 0
  3067. .IP "\fB\-fno\-modules\-ts\fR" 4
  3068. .IX Item "-fno-modules-ts"
  3069. .PD
  3070. Enable support for \*(C+20 modules The
  3071. \&\fB\-fno\-modules\-ts\fR is usually not needed, as that is the
  3072. default. Even though this is a \*(C+20 feature, it is not currently
  3073. implicitly enabled by selecting that standard version.
  3074. .IP "\fB\-fmodule\-header\fR" 4
  3075. .IX Item "-fmodule-header"
  3076. .PD 0
  3077. .IP "\fB\-fmodule\-header=user\fR" 4
  3078. .IX Item "-fmodule-header=user"
  3079. .IP "\fB\-fmodule\-header=system\fR" 4
  3080. .IX Item "-fmodule-header=system"
  3081. .PD
  3082. Compile a header file to create an importable header unit.
  3083. .IP "\fB\-fmodule\-implicit\-inline\fR" 4
  3084. .IX Item "-fmodule-implicit-inline"
  3085. Member functions defined in their class definitions are not implicitly
  3086. inline for modular code. This is different to traditional \*(C+
  3087. behavior, for good reasons. However, it may result in a difficulty
  3088. during code porting. This option makes such function definitions
  3089. implicitly inline. It does however generate an \s-1ABI\s0 incompatibility,
  3090. so you must use it everywhere or nowhere. (Such definitions outside
  3091. of a named module remain implicitly inline, regardless.)
  3092. .IP "\fB\-fno\-module\-lazy\fR" 4
  3093. .IX Item "-fno-module-lazy"
  3094. Disable lazy module importing and module mapper creation.
  3095. .IP "\fB\-fmodule\-mapper=\fR[\fIhostname\fR]\fB:\fR\fIport\fR[\fB?\fR\fIident\fR]" 4
  3096. .IX Item "-fmodule-mapper=[hostname]:port[?ident]"
  3097. .PD 0
  3098. .IP "\fB\-fmodule\-mapper=|\fR\fIprogram\fR[\fB?\fR\fIident\fR]\fB \fR\fIargs...\fR" 4
  3099. .IX Item "-fmodule-mapper=|program[?ident] args..."
  3100. .IP "\fB\-fmodule\-mapper==\fR\fIsocket\fR[\fB?\fR\fIident\fR]" 4
  3101. .IX Item "-fmodule-mapper==socket[?ident]"
  3102. .IP "\fB\-fmodule\-mapper=<>\fR[\fIinout\fR][\fB?\fR\fIident\fR]" 4
  3103. .IX Item "-fmodule-mapper=<>[inout][?ident]"
  3104. .IP "\fB\-fmodule\-mapper=<\fR\fIin\fR\fB>\fR\fIout\fR[\fB?\fR\fIident\fR]" 4
  3105. .IX Item "-fmodule-mapper=<in>out[?ident]"
  3106. .IP "\fB\-fmodule\-mapper=\fR\fIfile\fR[\fB?\fR\fIident\fR]" 4
  3107. .IX Item "-fmodule-mapper=file[?ident]"
  3108. .PD
  3109. An oracle to query for module name to filename mappings. If
  3110. unspecified the \fB\s-1CXX_MODULE_MAPPER\s0\fR environment variable is used,
  3111. and if that is unset, an in-process default is provided.
  3112. .IP "\fB\-fmodule\-only\fR" 4
  3113. .IX Item "-fmodule-only"
  3114. Only emit the Compiled Module Interface, inhibiting any object file.
  3115. .IP "\fB\-fms\-extensions\fR" 4
  3116. .IX Item "-fms-extensions"
  3117. Disable Wpedantic warnings about constructs used in \s-1MFC,\s0 such as implicit
  3118. int and getting a pointer to member function via non-standard syntax.
  3119. .IP "\fB\-fnew\-inheriting\-ctors\fR" 4
  3120. .IX Item "-fnew-inheriting-ctors"
  3121. Enable the P0136 adjustment to the semantics of \*(C+11 constructor
  3122. inheritance. This is part of \*(C+17 but also considered to be a Defect
  3123. Report against \*(C+11 and \*(C+14. This flag is enabled by default
  3124. unless \fB\-fabi\-version=10\fR or lower is specified.
  3125. .IP "\fB\-fnew\-ttp\-matching\fR" 4
  3126. .IX Item "-fnew-ttp-matching"
  3127. Enable the P0522 resolution to Core issue 150, template template
  3128. parameters and default arguments: this allows a template with default
  3129. template arguments as an argument for a template template parameter
  3130. with fewer template parameters. This flag is enabled by default for
  3131. \&\fB\-std=c++17\fR.
  3132. .IP "\fB\-fno\-nonansi\-builtins\fR" 4
  3133. .IX Item "-fno-nonansi-builtins"
  3134. Disable built-in declarations of functions that are not mandated by
  3135. \&\s-1ANSI/ISO C.\s0 These include \f(CW\*(C`ffs\*(C'\fR, \f(CW\*(C`alloca\*(C'\fR, \f(CW\*(C`_exit\*(C'\fR,
  3136. \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
  3137. .IP "\fB\-fnothrow\-opt\fR" 4
  3138. .IX Item "-fnothrow-opt"
  3139. Treat a \f(CW\*(C`throw()\*(C'\fR exception specification as if it were a
  3140. \&\f(CW\*(C`noexcept\*(C'\fR specification to reduce or eliminate the text size
  3141. overhead relative to a function with no exception specification. If
  3142. the function has local variables of types with non-trivial
  3143. destructors, the exception specification actually makes the
  3144. function smaller because the \s-1EH\s0 cleanups for those variables can be
  3145. optimized away. The semantic effect is that an exception thrown out of
  3146. a function with such an exception specification results in a call
  3147. to \f(CW\*(C`terminate\*(C'\fR rather than \f(CW\*(C`unexpected\*(C'\fR.
  3148. .IP "\fB\-fno\-operator\-names\fR" 4
  3149. .IX Item "-fno-operator-names"
  3150. Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
  3151. \&\f(CW\*(C`bitor\*(C'\fR, \f(CW\*(C`compl\*(C'\fR, \f(CW\*(C`not\*(C'\fR, \f(CW\*(C`or\*(C'\fR and \f(CW\*(C`xor\*(C'\fR as
  3152. synonyms as keywords.
  3153. .IP "\fB\-fno\-optional\-diags\fR" 4
  3154. .IX Item "-fno-optional-diags"
  3155. Disable diagnostics that the standard says a compiler does not need to
  3156. issue. Currently, the only such diagnostic issued by G++ is the one for
  3157. a name having multiple meanings within a class.
  3158. .IP "\fB\-fpermissive\fR" 4
  3159. .IX Item "-fpermissive"
  3160. Downgrade some diagnostics about nonconformant code from errors to
  3161. warnings. Thus, using \fB\-fpermissive\fR allows some
  3162. nonconforming code to compile.
  3163. .IP "\fB\-fno\-pretty\-templates\fR" 4
  3164. .IX Item "-fno-pretty-templates"
  3165. When an error message refers to a specialization of a function
  3166. template, the compiler normally prints the signature of the
  3167. template followed by the template arguments and any typedefs or
  3168. typenames in the signature (e.g. \f(CW\*(C`void f(T) [with T = int]\*(C'\fR
  3169. rather than \f(CW\*(C`void f(int)\*(C'\fR) so that it's clear which template is
  3170. involved. When an error message refers to a specialization of a class
  3171. template, the compiler omits any template arguments that match
  3172. the default template arguments for that template. If either of these
  3173. behaviors make it harder to understand the error message rather than
  3174. easier, you can use \fB\-fno\-pretty\-templates\fR to disable them.
  3175. .IP "\fB\-fno\-rtti\fR" 4
  3176. .IX Item "-fno-rtti"
  3177. Disable generation of information about every class with virtual
  3178. functions for use by the \*(C+ run-time type identification features
  3179. (\f(CW\*(C`dynamic_cast\*(C'\fR and \f(CW\*(C`typeid\*(C'\fR). If you don't use those parts
  3180. of the language, you can save some space by using this flag. Note that
  3181. exception handling uses the same information, but G++ generates it as
  3182. needed. The \f(CW\*(C`dynamic_cast\*(C'\fR operator can still be used for casts that
  3183. do not require run-time type information, i.e. casts to \f(CW\*(C`void *\*(C'\fR or to
  3184. unambiguous base classes.
  3185. .Sp
  3186. Mixing code compiled with \fB\-frtti\fR with that compiled with
  3187. \&\fB\-fno\-rtti\fR may not work. For example, programs may
  3188. fail to link if a class compiled with \fB\-fno\-rtti\fR is used as a base
  3189. for a class compiled with \fB\-frtti\fR.
  3190. .IP "\fB\-fsized\-deallocation\fR" 4
  3191. .IX Item "-fsized-deallocation"
  3192. Enable the built-in global declarations
  3193. .Sp
  3194. .Vb 2
  3195. \& void operator delete (void *, std::size_t) noexcept;
  3196. \& void operator delete[] (void *, std::size_t) noexcept;
  3197. .Ve
  3198. .Sp
  3199. as introduced in \*(C+14. This is useful for user-defined replacement
  3200. deallocation functions that, for example, use the size of the object
  3201. to make deallocation faster. Enabled by default under
  3202. \&\fB\-std=c++14\fR and above. The flag \fB\-Wsized\-deallocation\fR
  3203. warns about places that might want to add a definition.
  3204. .IP "\fB\-fstrict\-enums\fR" 4
  3205. .IX Item "-fstrict-enums"
  3206. Allow the compiler to optimize using the assumption that a value of
  3207. enumerated type can only be one of the values of the enumeration (as
  3208. defined in the \*(C+ standard; basically, a value that can be
  3209. represented in the minimum number of bits needed to represent all the
  3210. enumerators). This assumption may not be valid if the program uses a
  3211. cast to convert an arbitrary integer value to the enumerated type.
  3212. .IP "\fB\-fstrong\-eval\-order\fR" 4
  3213. .IX Item "-fstrong-eval-order"
  3214. Evaluate member access, array subscripting, and shift expressions in
  3215. left-to-right order, and evaluate assignment in right-to-left order,
  3216. as adopted for \*(C+17. Enabled by default with \fB\-std=c++17\fR.
  3217. \&\fB\-fstrong\-eval\-order=some\fR enables just the ordering of member
  3218. access and shift expressions, and is the default without
  3219. \&\fB\-std=c++17\fR.
  3220. .IP "\fB\-ftemplate\-backtrace\-limit=\fR\fIn\fR" 4
  3221. .IX Item "-ftemplate-backtrace-limit=n"
  3222. Set the maximum number of template instantiation notes for a single
  3223. warning or error to \fIn\fR. The default value is 10.
  3224. .IP "\fB\-ftemplate\-depth=\fR\fIn\fR" 4
  3225. .IX Item "-ftemplate-depth=n"
  3226. Set the maximum instantiation depth for template classes to \fIn\fR.
  3227. A limit on the template instantiation depth is needed to detect
  3228. endless recursions during template class instantiation. \s-1ANSI/ISO \*(C+\s0
  3229. conforming programs must not rely on a maximum depth greater than 17
  3230. (changed to 1024 in \*(C+11). The default value is 900, as the compiler
  3231. can run out of stack space before hitting 1024 in some situations.
  3232. .IP "\fB\-fno\-threadsafe\-statics\fR" 4
  3233. .IX Item "-fno-threadsafe-statics"
  3234. Do not emit the extra code to use the routines specified in the \*(C+
  3235. \&\s-1ABI\s0 for thread-safe initialization of local statics. You can use this
  3236. option to reduce code size slightly in code that doesn't need to be
  3237. thread-safe.
  3238. .IP "\fB\-fuse\-cxa\-atexit\fR" 4
  3239. .IX Item "-fuse-cxa-atexit"
  3240. Register destructors for objects with static storage duration with the
  3241. \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
  3242. This option is required for fully standards-compliant handling of static
  3243. destructors, but only works if your C library supports
  3244. \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
  3245. .IP "\fB\-fno\-use\-cxa\-get\-exception\-ptr\fR" 4
  3246. .IX Item "-fno-use-cxa-get-exception-ptr"
  3247. Don't use the \f(CW\*(C`_\|_cxa_get_exception_ptr\*(C'\fR runtime routine. This
  3248. causes \f(CW\*(C`std::uncaught_exception\*(C'\fR to be incorrect, but is necessary
  3249. if the runtime routine is not available.
  3250. .IP "\fB\-fvisibility\-inlines\-hidden\fR" 4
  3251. .IX Item "-fvisibility-inlines-hidden"
  3252. This switch declares that the user does not attempt to compare
  3253. pointers to inline functions or methods where the addresses of the two functions
  3254. are taken in different shared objects.
  3255. .Sp
  3256. The effect of this is that \s-1GCC\s0 may, effectively, mark inline methods with
  3257. \&\f(CW\*(C`_\|_attribute_\|_ ((visibility ("hidden")))\*(C'\fR so that they do not
  3258. appear in the export table of a \s-1DSO\s0 and do not require a \s-1PLT\s0 indirection
  3259. when used within the \s-1DSO.\s0 Enabling this option can have a dramatic effect
  3260. on load and link times of a \s-1DSO\s0 as it massively reduces the size of the
  3261. dynamic export table when the library makes heavy use of templates.
  3262. .Sp
  3263. The behavior of this switch is not quite the same as marking the
  3264. methods as hidden directly, because it does not affect static variables
  3265. local to the function or cause the compiler to deduce that
  3266. the function is defined in only one shared object.
  3267. .Sp
  3268. You may mark a method as having a visibility explicitly to negate the
  3269. effect of the switch for that method. For example, if you do want to
  3270. compare pointers to a particular inline method, you might mark it as
  3271. having default visibility. Marking the enclosing class with explicit
  3272. visibility has no effect.
  3273. .Sp
  3274. Explicitly instantiated inline methods are unaffected by this option
  3275. as their linkage might otherwise cross a shared library boundary.
  3276. .IP "\fB\-fvisibility\-ms\-compat\fR" 4
  3277. .IX Item "-fvisibility-ms-compat"
  3278. This flag attempts to use visibility settings to make \s-1GCC\s0's \*(C+
  3279. linkage model compatible with that of Microsoft Visual Studio.
  3280. .Sp
  3281. The flag makes these changes to \s-1GCC\s0's linkage model:
  3282. .RS 4
  3283. .IP "1." 4
  3284. .IX Item "1."
  3285. It sets the default visibility to \f(CW\*(C`hidden\*(C'\fR, like
  3286. \&\fB\-fvisibility=hidden\fR.
  3287. .IP "2." 4
  3288. .IX Item "2."
  3289. Types, but not their members, are not hidden by default.
  3290. .IP "3." 4
  3291. .IX Item "3."
  3292. The One Definition Rule is relaxed for types without explicit
  3293. visibility specifications that are defined in more than one
  3294. shared object: those declarations are permitted if they are
  3295. permitted when this option is not used.
  3296. .RE
  3297. .RS 4
  3298. .Sp
  3299. In new code it is better to use \fB\-fvisibility=hidden\fR and
  3300. export those classes that are intended to be externally visible.
  3301. Unfortunately it is possible for code to rely, perhaps accidentally,
  3302. on the Visual Studio behavior.
  3303. .Sp
  3304. Among the consequences of these changes are that static data members
  3305. of the same type with the same name but defined in different shared
  3306. objects are different, so changing one does not change the other;
  3307. and that pointers to function members defined in different shared
  3308. objects may not compare equal. When this flag is given, it is a
  3309. violation of the \s-1ODR\s0 to define types with the same name differently.
  3310. .RE
  3311. .IP "\fB\-fno\-weak\fR" 4
  3312. .IX Item "-fno-weak"
  3313. Do not use weak symbol support, even if it is provided by the linker.
  3314. By default, G++ uses weak symbols if they are available. This
  3315. option exists only for testing, and should not be used by end-users;
  3316. it results in inferior code and has no benefits. This option may
  3317. be removed in a future release of G++.
  3318. .IP "\fB\-fext\-numeric\-literals\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3319. .IX Item "-fext-numeric-literals ( and Objective- only)"
  3320. Accept imaginary, fixed-point, or machine-defined
  3321. literal number suffixes as \s-1GNU\s0 extensions.
  3322. When this option is turned off these suffixes are treated
  3323. as \*(C+11 user-defined literal numeric suffixes.
  3324. This is on by default for all pre\-\*(C+11 dialects and all \s-1GNU\s0 dialects:
  3325. \&\fB\-std=c++98\fR, \fB\-std=gnu++98\fR, \fB\-std=gnu++11\fR,
  3326. \&\fB\-std=gnu++14\fR.
  3327. This option is off by default
  3328. for \s-1ISO \*(C+11\s0 onwards (\fB\-std=c++11\fR, ...).
  3329. .IP "\fB\-nostdinc++\fR" 4
  3330. .IX Item "-nostdinc++"
  3331. Do not search for header files in the standard directories specific to
  3332. \&\*(C+, but do still search the other standard directories. (This option
  3333. is used when building the \*(C+ library.)
  3334. .IP "\fB\-flang\-info\-include\-translate\fR" 4
  3335. .IX Item "-flang-info-include-translate"
  3336. .PD 0
  3337. .IP "\fB\-flang\-info\-include\-translate\-not\fR" 4
  3338. .IX Item "-flang-info-include-translate-not"
  3339. .IP "\fB\-flang\-info\-include\-translate=\fR\fIheader\fR" 4
  3340. .IX Item "-flang-info-include-translate=header"
  3341. .PD
  3342. Inform of include translation events. The first will note accepted
  3343. include translations, the second will note declined include
  3344. translations. The \fIheader\fR form will inform of include
  3345. translations relating to that specific header. If \fIheader\fR is of
  3346. the form \f(CW"user"\fR or \f(CW\*(C`<system>\*(C'\fR it will be resolved to a
  3347. specific user or system header using the include path.
  3348. .IP "\fB\-flang\-info\-module\-cmi\fR" 4
  3349. .IX Item "-flang-info-module-cmi"
  3350. .PD 0
  3351. .IP "\fB\-flang\-info\-module\-cmi=\fR\fImodule\fR" 4
  3352. .IX Item "-flang-info-module-cmi=module"
  3353. .PD
  3354. Inform of Compiled Module Interface pathnames. The first will note
  3355. all read \s-1CMI\s0 pathnames. The \fImodule\fR form will not reading a
  3356. specific module's \s-1CMI.\s0 \fImodule\fR may be a named module or a
  3357. header-unit (the latter indicated by either being a pathname containing
  3358. directory separators or enclosed in \f(CW\*(C`<>\*(C'\fR or \f(CW""\fR).
  3359. .IP "\fB\-stdlib=\fR\fIlibstdc++,libc++\fR" 4
  3360. .IX Item "-stdlib=libstdc++,libc++"
  3361. When G++ is configured to support this option, it allows specification of
  3362. alternate \*(C+ runtime libraries. Two options are available: \fIlibstdc++\fR
  3363. (the default, native \*(C+ runtime for G++) and \fIlibc++\fR which is the
  3364. \&\*(C+ runtime installed on some operating systems (e.g. Darwin versions from
  3365. Darwin11 onwards). The option switches G++ to use the headers from the
  3366. specified library and to emit \f(CW\*(C`\-lstdc++\*(C'\fR or \f(CW\*(C`\-lc++\*(C'\fR respectively,
  3367. when a \*(C+ runtime is required for linking.
  3368. .PP
  3369. In addition, these warning options have meanings only for \*(C+ programs:
  3370. .IP "\fB\-Wabi\-tag\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3371. .IX Item "-Wabi-tag ( and Objective- only)"
  3372. Warn when a type with an \s-1ABI\s0 tag is used in a context that does not
  3373. have that \s-1ABI\s0 tag. See \fB\*(C+ Attributes\fR for more information
  3374. about \s-1ABI\s0 tags.
  3375. .IP "\fB\-Wcomma\-subscript\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3376. .IX Item "-Wcomma-subscript ( and Objective- only)"
  3377. Warn about uses of a comma expression within a subscripting expression.
  3378. This usage was deprecated in \*(C+20. However, a comma expression wrapped
  3379. in \f(CW\*(C`( )\*(C'\fR is not deprecated. Example:
  3380. .Sp
  3381. .Vb 4
  3382. \& void f(int *a, int b, int c) {
  3383. \& a[b,c]; // deprecated
  3384. \& a[(b,c)]; // OK
  3385. \& }
  3386. .Ve
  3387. .Sp
  3388. Enabled by default with \fB\-std=c++20\fR.
  3389. .IP "\fB\-Wctad\-maybe\-unsupported\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3390. .IX Item "-Wctad-maybe-unsupported ( and Objective- only)"
  3391. Warn when performing class template argument deduction (\s-1CTAD\s0) on a type with
  3392. no explicitly written deduction guides. This warning will point out cases
  3393. where \s-1CTAD\s0 succeeded only because the compiler synthesized the implicit
  3394. deduction guides, which might not be what the programmer intended. Certain
  3395. style guides allow \s-1CTAD\s0 only on types that specifically \*(L"opt-in\*(R"; i.e., on
  3396. types that are designed to support \s-1CTAD.\s0 This warning can be suppressed with
  3397. the following pattern:
  3398. .Sp
  3399. .Vb 5
  3400. \& struct allow_ctad_t; // any name works
  3401. \& template <typename T> struct S {
  3402. \& S(T) { }
  3403. \& };
  3404. \& S(allow_ctad_t) \-> S<void>; // guide with incomplete parameter type will never be considered
  3405. .Ve
  3406. .IP "\fB\-Wctor\-dtor\-privacy\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3407. .IX Item "-Wctor-dtor-privacy ( and Objective- only)"
  3408. Warn when a class seems unusable because all the constructors or
  3409. destructors in that class are private, and it has neither friends nor
  3410. public static member functions. Also warn if there are no non-private
  3411. methods, and there's at least one private member function that isn't
  3412. a constructor or destructor.
  3413. .IP "\fB\-Wdelete\-non\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3414. .IX Item "-Wdelete-non-virtual-dtor ( and Objective- only)"
  3415. Warn when \f(CW\*(C`delete\*(C'\fR is used to destroy an instance of a class that
  3416. has virtual functions and non-virtual destructor. It is unsafe to delete
  3417. an instance of a derived class through a pointer to a base class if the
  3418. base class does not have a virtual destructor. This warning is enabled
  3419. by \fB\-Wall\fR.
  3420. .IP "\fB\-Wdeprecated\-copy\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3421. .IX Item "-Wdeprecated-copy ( and Objective- only)"
  3422. Warn that the implicit declaration of a copy constructor or copy
  3423. assignment operator is deprecated if the class has a user-provided
  3424. copy constructor or copy assignment operator, in \*(C+11 and up. This
  3425. warning is enabled by \fB\-Wextra\fR. With
  3426. \&\fB\-Wdeprecated\-copy\-dtor\fR, also deprecate if the class has a
  3427. user-provided destructor.
  3428. .IP "\fB\-Wno\-deprecated\-enum\-enum\-conversion\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3429. .IX Item "-Wno-deprecated-enum-enum-conversion ( and Objective- only)"
  3430. Disable the warning about the case when the usual arithmetic conversions
  3431. are applied on operands where one is of enumeration type and the other is
  3432. of a different enumeration type. This conversion was deprecated in \*(C+20.
  3433. For example:
  3434. .Sp
  3435. .Vb 3
  3436. \& enum E1 { e };
  3437. \& enum E2 { f };
  3438. \& int k = f \- e;
  3439. .Ve
  3440. .Sp
  3441. \&\fB\-Wdeprecated\-enum\-enum\-conversion\fR is enabled by default with
  3442. \&\fB\-std=c++20\fR. In pre\-\*(C+20 dialects, this warning can be enabled
  3443. by \fB\-Wenum\-conversion\fR.
  3444. .IP "\fB\-Wno\-deprecated\-enum\-float\-conversion\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3445. .IX Item "-Wno-deprecated-enum-float-conversion ( and Objective- only)"
  3446. Disable the warning about the case when the usual arithmetic conversions
  3447. are applied on operands where one is of enumeration type and the other is
  3448. of a floating-point type. This conversion was deprecated in \*(C+20. For
  3449. example:
  3450. .Sp
  3451. .Vb 3
  3452. \& enum E1 { e };
  3453. \& enum E2 { f };
  3454. \& bool b = e <= 3.7;
  3455. .Ve
  3456. .Sp
  3457. \&\fB\-Wdeprecated\-enum\-float\-conversion\fR is enabled by default with
  3458. \&\fB\-std=c++20\fR. In pre\-\*(C+20 dialects, this warning can be enabled
  3459. by \fB\-Wenum\-conversion\fR.
  3460. .IP "\fB\-Wno\-init\-list\-lifetime\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3461. .IX Item "-Wno-init-list-lifetime ( and Objective- only)"
  3462. Do not warn about uses of \f(CW\*(C`std::initializer_list\*(C'\fR that are likely
  3463. to result in dangling pointers. Since the underlying array for an
  3464. \&\f(CW\*(C`initializer_list\*(C'\fR is handled like a normal \*(C+ temporary object,
  3465. it is easy to inadvertently keep a pointer to the array past the end
  3466. of the array's lifetime. For example:
  3467. .RS 4
  3468. .IP "*" 4
  3469. If a function returns a temporary \f(CW\*(C`initializer_list\*(C'\fR, or a local
  3470. \&\f(CW\*(C`initializer_list\*(C'\fR variable, the array's lifetime ends at the end
  3471. of the return statement, so the value returned has a dangling pointer.
  3472. .IP "*" 4
  3473. If a new-expression creates an \f(CW\*(C`initializer_list\*(C'\fR, the array only
  3474. lives until the end of the enclosing full-expression, so the
  3475. \&\f(CW\*(C`initializer_list\*(C'\fR in the heap has a dangling pointer.
  3476. .IP "*" 4
  3477. When an \f(CW\*(C`initializer_list\*(C'\fR variable is assigned from a
  3478. brace-enclosed initializer list, the temporary array created for the
  3479. right side of the assignment only lives until the end of the
  3480. full-expression, so at the next statement the \f(CW\*(C`initializer_list\*(C'\fR
  3481. variable has a dangling pointer.
  3482. .Sp
  3483. .Vb 6
  3484. \& // li\*(Aqs initial underlying array lives as long as li
  3485. \& std::initializer_list<int> li = { 1,2,3 };
  3486. \& // assignment changes li to point to a temporary array
  3487. \& li = { 4, 5 };
  3488. \& // now the temporary is gone and li has a dangling pointer
  3489. \& int i = li.begin()[0] // undefined behavior
  3490. .Ve
  3491. .IP "*" 4
  3492. When a list constructor stores the \f(CW\*(C`begin\*(C'\fR pointer from the
  3493. \&\f(CW\*(C`initializer_list\*(C'\fR argument, this doesn't extend the lifetime of
  3494. the array, so if a class variable is constructed from a temporary
  3495. \&\f(CW\*(C`initializer_list\*(C'\fR, the pointer is left dangling by the end of
  3496. the variable declaration statement.
  3497. .RE
  3498. .RS 4
  3499. .RE
  3500. .IP "\fB\-Winvalid\-imported\-macros\fR" 4
  3501. .IX Item "-Winvalid-imported-macros"
  3502. Verify all imported macro definitions are valid at the end of
  3503. compilation. This is not enabled by default, as it requires
  3504. additional processing to determine. It may be useful when preparing
  3505. sets of header-units to ensure consistent macros.
  3506. .IP "\fB\-Wno\-literal\-suffix\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3507. .IX Item "-Wno-literal-suffix ( and Objective- only)"
  3508. Do not warn when a string or character literal is followed by a
  3509. ud-suffix which does not begin with an underscore. As a conforming
  3510. extension, \s-1GCC\s0 treats such suffixes as separate preprocessing tokens
  3511. in order to maintain backwards compatibility with code that uses
  3512. formatting macros from \f(CW\*(C`<inttypes.h>\*(C'\fR. For example:
  3513. .Sp
  3514. .Vb 3
  3515. \& #define _\|_STDC_FORMAT_MACROS
  3516. \& #include <inttypes.h>
  3517. \& #include <stdio.h>
  3518. \&
  3519. \& int main() {
  3520. \& int64_t i64 = 123;
  3521. \& printf("My int64: %" PRId64"\en", i64);
  3522. \& }
  3523. .Ve
  3524. .Sp
  3525. In this case, \f(CW\*(C`PRId64\*(C'\fR is treated as a separate preprocessing token.
  3526. .Sp
  3527. This option also controls warnings when a user-defined literal
  3528. operator is declared with a literal suffix identifier that doesn't
  3529. begin with an underscore. Literal suffix identifiers that don't begin
  3530. with an underscore are reserved for future standardization.
  3531. .Sp
  3532. These warnings are enabled by default.
  3533. .IP "\fB\-Wno\-narrowing\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3534. .IX Item "-Wno-narrowing ( and Objective- only)"
  3535. For \*(C+11 and later standards, narrowing conversions are diagnosed by default,
  3536. as required by the standard. A narrowing conversion from a constant produces
  3537. an error, and a narrowing conversion from a non-constant produces a warning,
  3538. but \fB\-Wno\-narrowing\fR suppresses the diagnostic.
  3539. Note that this does not affect the meaning of well-formed code;
  3540. narrowing conversions are still considered ill-formed in \s-1SFINAE\s0 contexts.
  3541. .Sp
  3542. With \fB\-Wnarrowing\fR in \*(C+98, warn when a narrowing
  3543. conversion prohibited by \*(C+11 occurs within
  3544. \&\fB{ }\fR, e.g.
  3545. .Sp
  3546. .Vb 1
  3547. \& int i = { 2.2 }; // error: narrowing from double to int
  3548. .Ve
  3549. .Sp
  3550. This flag is included in \fB\-Wall\fR and \fB\-Wc++11\-compat\fR.
  3551. .IP "\fB\-Wnoexcept\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3552. .IX Item "-Wnoexcept ( and Objective- only)"
  3553. Warn when a noexcept-expression evaluates to false because of a call
  3554. to a function that does not have a non-throwing exception
  3555. specification (i.e. \f(CW\*(C`throw()\*(C'\fR or \f(CW\*(C`noexcept\*(C'\fR) but is known by
  3556. the compiler to never throw an exception.
  3557. .IP "\fB\-Wnoexcept\-type\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3558. .IX Item "-Wnoexcept-type ( and Objective- only)"
  3559. Warn if the \*(C+17 feature making \f(CW\*(C`noexcept\*(C'\fR part of a function
  3560. type changes the mangled name of a symbol relative to \*(C+14. Enabled
  3561. by \fB\-Wabi\fR and \fB\-Wc++17\-compat\fR.
  3562. .Sp
  3563. As an example:
  3564. .Sp
  3565. .Vb 3
  3566. \& template <class T> void f(T t) { t(); };
  3567. \& void g() noexcept;
  3568. \& void h() { f(g); }
  3569. .Ve
  3570. .Sp
  3571. In \*(C+14, \f(CW\*(C`f\*(C'\fR calls \f(CW\*(C`f<void(*)()>\*(C'\fR, but in
  3572. \&\*(C+17 it calls \f(CW\*(C`f<void(*)()noexcept>\*(C'\fR.
  3573. .IP "\fB\-Wclass\-memaccess\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3574. .IX Item "-Wclass-memaccess ( and Objective- only)"
  3575. Warn when the destination of a call to a raw memory function such as
  3576. \&\f(CW\*(C`memset\*(C'\fR or \f(CW\*(C`memcpy\*(C'\fR is an object of class type, and when writing
  3577. into such an object might bypass the class non-trivial or deleted constructor
  3578. or copy assignment, violate const-correctness or encapsulation, or corrupt
  3579. virtual table pointers. Modifying the representation of such objects may
  3580. violate invariants maintained by member functions of the class. For example,
  3581. the call to \f(CW\*(C`memset\*(C'\fR below is undefined because it modifies a non-trivial
  3582. class object and is, therefore, diagnosed. The safe way to either initialize
  3583. or clear the storage of objects of such types is by using the appropriate
  3584. constructor or assignment operator, if one is available.
  3585. .Sp
  3586. .Vb 2
  3587. \& std::string str = "abc";
  3588. \& memset (&str, 0, sizeof str);
  3589. .Ve
  3590. .Sp
  3591. The \fB\-Wclass\-memaccess\fR option is enabled by \fB\-Wall\fR.
  3592. Explicitly casting the pointer to the class object to \f(CW\*(C`void *\*(C'\fR or
  3593. to a type that can be safely accessed by the raw memory function suppresses
  3594. the warning.
  3595. .IP "\fB\-Wnon\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3596. .IX Item "-Wnon-virtual-dtor ( and Objective- only)"
  3597. Warn when a class has virtual functions and an accessible non-virtual
  3598. destructor itself or in an accessible polymorphic base class, in which
  3599. case it is possible but unsafe to delete an instance of a derived
  3600. class through a pointer to the class itself or base class. This
  3601. warning is automatically enabled if \fB\-Weffc++\fR is specified.
  3602. .IP "\fB\-Wregister\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3603. .IX Item "-Wregister ( and Objective- only)"
  3604. Warn on uses of the \f(CW\*(C`register\*(C'\fR storage class specifier, except
  3605. when it is part of the \s-1GNU\s0 \fBExplicit Register Variables\fR extension.
  3606. The use of the \f(CW\*(C`register\*(C'\fR keyword as storage class specifier has
  3607. been deprecated in \*(C+11 and removed in \*(C+17.
  3608. Enabled by default with \fB\-std=c++17\fR.
  3609. .IP "\fB\-Wreorder\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3610. .IX Item "-Wreorder ( and Objective- only)"
  3611. Warn when the order of member initializers given in the code does not
  3612. match the order in which they must be executed. For instance:
  3613. .Sp
  3614. .Vb 5
  3615. \& struct A {
  3616. \& int i;
  3617. \& int j;
  3618. \& A(): j (0), i (1) { }
  3619. \& };
  3620. .Ve
  3621. .Sp
  3622. The compiler rearranges the member initializers for \f(CW\*(C`i\*(C'\fR
  3623. and \f(CW\*(C`j\*(C'\fR to match the declaration order of the members, emitting
  3624. a warning to that effect. This warning is enabled by \fB\-Wall\fR.
  3625. .IP "\fB\-Wno\-pessimizing\-move\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3626. .IX Item "-Wno-pessimizing-move ( and Objective- only)"
  3627. This warning warns when a call to \f(CW\*(C`std::move\*(C'\fR prevents copy
  3628. elision. A typical scenario when copy elision can occur is when returning in
  3629. a function with a class return type, when the expression being returned is the
  3630. name of a non-volatile automatic object, and is not a function parameter, and
  3631. has the same type as the function return type.
  3632. .Sp
  3633. .Vb 9
  3634. \& struct T {
  3635. \& ...
  3636. \& };
  3637. \& T fn()
  3638. \& {
  3639. \& T t;
  3640. \& ...
  3641. \& return std::move (t);
  3642. \& }
  3643. .Ve
  3644. .Sp
  3645. But in this example, the \f(CW\*(C`std::move\*(C'\fR call prevents copy elision.
  3646. .Sp
  3647. This warning is enabled by \fB\-Wall\fR.
  3648. .IP "\fB\-Wno\-redundant\-move\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3649. .IX Item "-Wno-redundant-move ( and Objective- only)"
  3650. This warning warns about redundant calls to \f(CW\*(C`std::move\*(C'\fR; that is, when
  3651. a move operation would have been performed even without the \f(CW\*(C`std::move\*(C'\fR
  3652. call. This happens because the compiler is forced to treat the object as if
  3653. it were an rvalue in certain situations such as returning a local variable,
  3654. where copy elision isn't applicable. Consider:
  3655. .Sp
  3656. .Vb 8
  3657. \& struct T {
  3658. \& ...
  3659. \& };
  3660. \& T fn(T t)
  3661. \& {
  3662. \& ...
  3663. \& return std::move (t);
  3664. \& }
  3665. .Ve
  3666. .Sp
  3667. Here, the \f(CW\*(C`std::move\*(C'\fR call is redundant. Because G++ implements Core
  3668. Issue 1579, another example is:
  3669. .Sp
  3670. .Vb 12
  3671. \& struct T { // convertible to U
  3672. \& ...
  3673. \& };
  3674. \& struct U {
  3675. \& ...
  3676. \& };
  3677. \& U fn()
  3678. \& {
  3679. \& T t;
  3680. \& ...
  3681. \& return std::move (t);
  3682. \& }
  3683. .Ve
  3684. .Sp
  3685. In this example, copy elision isn't applicable because the type of the
  3686. expression being returned and the function return type differ, yet G++
  3687. treats the return value as if it were designated by an rvalue.
  3688. .Sp
  3689. This warning is enabled by \fB\-Wextra\fR.
  3690. .IP "\fB\-Wrange\-loop\-construct\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3691. .IX Item "-Wrange-loop-construct ( and Objective- only)"
  3692. This warning warns when a \*(C+ range-based for-loop is creating an unnecessary
  3693. copy. This can happen when the range declaration is not a reference, but
  3694. probably should be. For example:
  3695. .Sp
  3696. .Vb 5
  3697. \& struct S { char arr[128]; };
  3698. \& void fn () {
  3699. \& S arr[5];
  3700. \& for (const auto x : arr) { ... }
  3701. \& }
  3702. .Ve
  3703. .Sp
  3704. It does not warn when the type being copied is a trivially-copyable type whose
  3705. size is less than 64 bytes.
  3706. .Sp
  3707. This warning also warns when a loop variable in a range-based for-loop is
  3708. initialized with a value of a different type resulting in a copy. For example:
  3709. .Sp
  3710. .Vb 4
  3711. \& void fn() {
  3712. \& int arr[10];
  3713. \& for (const double &x : arr) { ... }
  3714. \& }
  3715. .Ve
  3716. .Sp
  3717. In the example above, in every iteration of the loop a temporary value of
  3718. type \f(CW\*(C`double\*(C'\fR is created and destroyed, to which the reference
  3719. \&\f(CW\*(C`const double &\*(C'\fR is bound.
  3720. .Sp
  3721. This warning is enabled by \fB\-Wall\fR.
  3722. .IP "\fB\-Wredundant\-tags\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3723. .IX Item "-Wredundant-tags ( and Objective- only)"
  3724. Warn about redundant class-key and enum-key in references to class types
  3725. and enumerated types in contexts where the key can be eliminated without
  3726. causing an ambiguity. For example:
  3727. .Sp
  3728. .Vb 2
  3729. \& struct foo;
  3730. \& struct foo *p; // warn that keyword struct can be eliminated
  3731. .Ve
  3732. .Sp
  3733. On the other hand, in this example there is no warning:
  3734. .Sp
  3735. .Vb 3
  3736. \& struct foo;
  3737. \& void foo (); // "hides" struct foo
  3738. \& void bar (struct foo&); // no warning, keyword struct is necessary
  3739. .Ve
  3740. .IP "\fB\-Wno\-subobject\-linkage\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3741. .IX Item "-Wno-subobject-linkage ( and Objective- only)"
  3742. Do not warn
  3743. if a class type has a base or a field whose type uses the anonymous
  3744. namespace or depends on a type with no linkage. If a type A depends on
  3745. a type B with no or internal linkage, defining it in multiple
  3746. translation units would be an \s-1ODR\s0 violation because the meaning of B
  3747. is different in each translation unit. If A only appears in a single
  3748. translation unit, the best way to silence the warning is to give it
  3749. internal linkage by putting it in an anonymous namespace as well. The
  3750. compiler doesn't give this warning for types defined in the main .C
  3751. file, as those are unlikely to have multiple definitions.
  3752. \&\fB\-Wsubobject\-linkage\fR is enabled by default.
  3753. .IP "\fB\-Weffc++\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3754. .IX Item "-Weffc++ ( and Objective- only)"
  3755. Warn about violations of the following style guidelines from Scott Meyers'
  3756. \&\fIEffective \*(C+\fR series of books:
  3757. .RS 4
  3758. .IP "*" 4
  3759. Define a copy constructor and an assignment operator for classes
  3760. with dynamically-allocated memory.
  3761. .IP "*" 4
  3762. Prefer initialization to assignment in constructors.
  3763. .IP "*" 4
  3764. Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW*this\fR.
  3765. .IP "*" 4
  3766. Don't try to return a reference when you must return an object.
  3767. .IP "*" 4
  3768. Distinguish between prefix and postfix forms of increment and
  3769. decrement operators.
  3770. .IP "*" 4
  3771. Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
  3772. .RE
  3773. .RS 4
  3774. .Sp
  3775. This option also enables \fB\-Wnon\-virtual\-dtor\fR, which is also
  3776. one of the effective \*(C+ recommendations. However, the check is
  3777. extended to warn about the lack of virtual destructor in accessible
  3778. non-polymorphic bases classes too.
  3779. .Sp
  3780. When selecting this option, be aware that the standard library
  3781. headers do not obey all of these guidelines; use \fBgrep \-v\fR
  3782. to filter out those warnings.
  3783. .RE
  3784. .IP "\fB\-Wno\-exceptions\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3785. .IX Item "-Wno-exceptions ( and Objective- only)"
  3786. Disable the warning about the case when an exception handler is shadowed by
  3787. another handler, which can point out a wrong ordering of exception handlers.
  3788. .IP "\fB\-Wstrict\-null\-sentinel\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3789. .IX Item "-Wstrict-null-sentinel ( and Objective- only)"
  3790. Warn about the use of an uncasted \f(CW\*(C`NULL\*(C'\fR as sentinel. When
  3791. compiling only with \s-1GCC\s0 this is a valid sentinel, as \f(CW\*(C`NULL\*(C'\fR is defined
  3792. to \f(CW\*(C`_\|_null\*(C'\fR. Although it is a null pointer constant rather than a
  3793. null pointer, it is guaranteed to be of the same size as a pointer.
  3794. But this use is not portable across different compilers.
  3795. .IP "\fB\-Wno\-non\-template\-friend\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3796. .IX Item "-Wno-non-template-friend ( and Objective- only)"
  3797. Disable warnings when non-template friend functions are declared
  3798. within a template. In very old versions of \s-1GCC\s0 that predate implementation
  3799. of the \s-1ISO\s0 standard, declarations such as
  3800. \&\fBfriend int foo(int)\fR, where the name of the friend is an unqualified-id,
  3801. could be interpreted as a particular specialization of a template
  3802. function; the warning exists to diagnose compatibility problems,
  3803. and is enabled by default.
  3804. .IP "\fB\-Wold\-style\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3805. .IX Item "-Wold-style-cast ( and Objective- only)"
  3806. Warn if an old-style (C\-style) cast to a non-void type is used within
  3807. a \*(C+ program. The new-style casts (\f(CW\*(C`dynamic_cast\*(C'\fR,
  3808. \&\f(CW\*(C`static_cast\*(C'\fR, \f(CW\*(C`reinterpret_cast\*(C'\fR, and \f(CW\*(C`const_cast\*(C'\fR) are
  3809. less vulnerable to unintended effects and much easier to search for.
  3810. .IP "\fB\-Woverloaded\-virtual\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3811. .IX Item "-Woverloaded-virtual ( and Objective- only)"
  3812. Warn when a function declaration hides virtual functions from a
  3813. base class. For example, in:
  3814. .Sp
  3815. .Vb 3
  3816. \& struct A {
  3817. \& virtual void f();
  3818. \& };
  3819. \&
  3820. \& struct B: public A {
  3821. \& void f(int);
  3822. \& };
  3823. .Ve
  3824. .Sp
  3825. the \f(CW\*(C`A\*(C'\fR class version of \f(CW\*(C`f\*(C'\fR is hidden in \f(CW\*(C`B\*(C'\fR, and code
  3826. like:
  3827. .Sp
  3828. .Vb 2
  3829. \& B* b;
  3830. \& b\->f();
  3831. .Ve
  3832. .Sp
  3833. fails to compile.
  3834. .IP "\fB\-Wno\-pmf\-conversions\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3835. .IX Item "-Wno-pmf-conversions ( and Objective- only)"
  3836. Disable the diagnostic for converting a bound pointer to member function
  3837. to a plain pointer.
  3838. .IP "\fB\-Wsign\-promo\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3839. .IX Item "-Wsign-promo ( and Objective- only)"
  3840. Warn when overload resolution chooses a promotion from unsigned or
  3841. enumerated type to a signed type, over a conversion to an unsigned type of
  3842. the same size. Previous versions of G++ tried to preserve
  3843. unsignedness, but the standard mandates the current behavior.
  3844. .IP "\fB\-Wtemplates\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3845. .IX Item "-Wtemplates ( and Objective- only)"
  3846. Warn when a primary template declaration is encountered. Some coding
  3847. rules disallow templates, and this may be used to enforce that rule.
  3848. The warning is inactive inside a system header file, such as the \s-1STL,\s0 so
  3849. one can still use the \s-1STL.\s0 One may also instantiate or specialize
  3850. templates.
  3851. .IP "\fB\-Wno\-mismatched\-new\-delete\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3852. .IX Item "-Wno-mismatched-new-delete ( and Objective- only)"
  3853. Warn for mismatches between calls to \f(CW\*(C`operator new\*(C'\fR or \f(CW\*(C`operator
  3854. delete\*(C'\fR and the corresponding call to the allocation or deallocation function.
  3855. This includes invocations of \*(C+ \f(CW\*(C`operator delete\*(C'\fR with pointers
  3856. returned from either mismatched forms of \f(CW\*(C`operator new\*(C'\fR, or from other
  3857. functions that allocate objects for which the \f(CW\*(C`operator delete\*(C'\fR isn't
  3858. a suitable deallocator, as well as calls to other deallocation functions
  3859. with pointers returned from \f(CW\*(C`operator new\*(C'\fR for which the deallocation
  3860. function isn't suitable.
  3861. .Sp
  3862. For example, the \f(CW\*(C`delete\*(C'\fR expression in the function below is diagnosed
  3863. because it doesn't match the array form of the \f(CW\*(C`new\*(C'\fR expression
  3864. the pointer argument was returned from. Similarly, the call to \f(CW\*(C`free\*(C'\fR
  3865. is also diagnosed.
  3866. .Sp
  3867. .Vb 4
  3868. \& void f ()
  3869. \& {
  3870. \& int *a = new int[n];
  3871. \& delete a; // warning: mismatch in array forms of expressions
  3872. \&
  3873. \& char *p = new char[n];
  3874. \& free (p); // warning: mismatch between new and free
  3875. \& }
  3876. .Ve
  3877. .Sp
  3878. The related option \fB\-Wmismatched\-dealloc\fR diagnoses mismatches
  3879. involving allocation and deallocation functions other than \f(CW\*(C`operator
  3880. new\*(C'\fR and \f(CW\*(C`operator delete\*(C'\fR.
  3881. .Sp
  3882. \&\fB\-Wmismatched\-new\-delete\fR is enabled by default.
  3883. .IP "\fB\-Wmismatched\-tags\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3884. .IX Item "-Wmismatched-tags ( and Objective- only)"
  3885. Warn for declarations of structs, classes, and class templates and their
  3886. specializations with a class-key that does not match either the definition
  3887. or the first declaration if no definition is provided.
  3888. .Sp
  3889. For example, the declaration of \f(CW\*(C`struct Object\*(C'\fR in the argument list
  3890. of \f(CW\*(C`draw\*(C'\fR triggers the warning. To avoid it, either remove the redundant
  3891. class-key \f(CW\*(C`struct\*(C'\fR or replace it with \f(CW\*(C`class\*(C'\fR to match its definition.
  3892. .Sp
  3893. .Vb 5
  3894. \& class Object {
  3895. \& public:
  3896. \& virtual ~Object () = 0;
  3897. \& };
  3898. \& void draw (struct Object*);
  3899. .Ve
  3900. .Sp
  3901. It is not wrong to declare a class with the class-key \f(CW\*(C`struct\*(C'\fR as
  3902. the example above shows. The \fB\-Wmismatched\-tags\fR option is intended
  3903. to help achieve a consistent style of class declarations. In code that is
  3904. intended to be portable to Windows-based compilers the warning helps prevent
  3905. unresolved references due to the difference in the mangling of symbols
  3906. declared with different class-keys. The option can be used either on its
  3907. own or in conjunction with \fB\-Wredundant\-tags\fR.
  3908. .IP "\fB\-Wmultiple\-inheritance\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3909. .IX Item "-Wmultiple-inheritance ( and Objective- only)"
  3910. Warn when a class is defined with multiple direct base classes. Some
  3911. coding rules disallow multiple inheritance, and this may be used to
  3912. enforce that rule. The warning is inactive inside a system header file,
  3913. such as the \s-1STL,\s0 so one can still use the \s-1STL.\s0 One may also define
  3914. classes that indirectly use multiple inheritance.
  3915. .IP "\fB\-Wvirtual\-inheritance\fR" 4
  3916. .IX Item "-Wvirtual-inheritance"
  3917. Warn when a class is defined with a virtual direct base class. Some
  3918. coding rules disallow multiple inheritance, and this may be used to
  3919. enforce that rule. The warning is inactive inside a system header file,
  3920. such as the \s-1STL,\s0 so one can still use the \s-1STL.\s0 One may also define
  3921. classes that indirectly use virtual inheritance.
  3922. .IP "\fB\-Wno\-virtual\-move\-assign\fR" 4
  3923. .IX Item "-Wno-virtual-move-assign"
  3924. Suppress warnings about inheriting from a virtual base with a
  3925. non-trivial \*(C+11 move assignment operator. This is dangerous because
  3926. if the virtual base is reachable along more than one path, it is
  3927. moved multiple times, which can mean both objects end up in the
  3928. moved-from state. If the move assignment operator is written to avoid
  3929. moving from a moved-from object, this warning can be disabled.
  3930. .IP "\fB\-Wnamespaces\fR" 4
  3931. .IX Item "-Wnamespaces"
  3932. Warn when a namespace definition is opened. Some coding rules disallow
  3933. namespaces, and this may be used to enforce that rule. The warning is
  3934. inactive inside a system header file, such as the \s-1STL,\s0 so one can still
  3935. use the \s-1STL.\s0 One may also use using directives and qualified names.
  3936. .IP "\fB\-Wno\-terminate\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3937. .IX Item "-Wno-terminate ( and Objective- only)"
  3938. Disable the warning about a throw-expression that will immediately
  3939. result in a call to \f(CW\*(C`terminate\*(C'\fR.
  3940. .IP "\fB\-Wno\-vexing\-parse\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3941. .IX Item "-Wno-vexing-parse ( and Objective- only)"
  3942. Warn about the most vexing parse syntactic ambiguity. This warns about
  3943. the cases when a declaration looks like a variable definition, but the
  3944. \&\*(C+ language requires it to be interpreted as a function declaration.
  3945. For instance:
  3946. .Sp
  3947. .Vb 4
  3948. \& void f(double a) {
  3949. \& int i(); // extern int i (void);
  3950. \& int n(int(a)); // extern int n (int);
  3951. \& }
  3952. .Ve
  3953. .Sp
  3954. Another example:
  3955. .Sp
  3956. .Vb 6
  3957. \& struct S { S(int); };
  3958. \& void f(double a) {
  3959. \& S x(int(a)); // extern struct S x (int);
  3960. \& S y(int()); // extern struct S y (int (*) (void));
  3961. \& S z(); // extern struct S z (void);
  3962. \& }
  3963. .Ve
  3964. .Sp
  3965. The warning will suggest options how to deal with such an ambiguity; e.g.,
  3966. it can suggest removing the parentheses or using braces instead.
  3967. .Sp
  3968. This warning is enabled by default.
  3969. .IP "\fB\-Wno\-class\-conversion\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3970. .IX Item "-Wno-class-conversion ( and Objective- only)"
  3971. Do not warn when a conversion function converts an
  3972. object to the same type, to a base class of that type, or to void; such
  3973. a conversion function will never be called.
  3974. .IP "\fB\-Wvolatile\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3975. .IX Item "-Wvolatile ( and Objective- only)"
  3976. Warn about deprecated uses of the \f(CW\*(C`volatile\*(C'\fR qualifier. This includes
  3977. postfix and prefix \f(CW\*(C`++\*(C'\fR and \f(CW\*(C`\-\-\*(C'\fR expressions of
  3978. \&\f(CW\*(C`volatile\*(C'\fR\-qualified types, using simple assignments where the left
  3979. operand is a \f(CW\*(C`volatile\*(C'\fR\-qualified non-class type for their value,
  3980. compound assignments where the left operand is a \f(CW\*(C`volatile\*(C'\fR\-qualified
  3981. non-class type, \f(CW\*(C`volatile\*(C'\fR\-qualified function return type,
  3982. \&\f(CW\*(C`volatile\*(C'\fR\-qualified parameter type, and structured bindings of a
  3983. \&\f(CW\*(C`volatile\*(C'\fR\-qualified type. This usage was deprecated in \*(C+20.
  3984. .Sp
  3985. Enabled by default with \fB\-std=c++20\fR.
  3986. .IP "\fB\-Wzero\-as\-null\-pointer\-constant\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3987. .IX Item "-Wzero-as-null-pointer-constant ( and Objective- only)"
  3988. Warn when a literal \fB0\fR is used as null pointer constant. This can
  3989. be useful to facilitate the conversion to \f(CW\*(C`nullptr\*(C'\fR in \*(C+11.
  3990. .IP "\fB\-Waligned\-new\fR" 4
  3991. .IX Item "-Waligned-new"
  3992. Warn about a new-expression of a type that requires greater alignment
  3993. than the \f(CW\*(C`alignof(std::max_align_t)\*(C'\fR but uses an allocation
  3994. function without an explicit alignment parameter. This option is
  3995. enabled by \fB\-Wall\fR.
  3996. .Sp
  3997. Normally this only warns about global allocation functions, but
  3998. \&\fB\-Waligned\-new=all\fR also warns about class member allocation
  3999. functions.
  4000. .IP "\fB\-Wno\-placement\-new\fR" 4
  4001. .IX Item "-Wno-placement-new"
  4002. .PD 0
  4003. .IP "\fB\-Wplacement\-new=\fR\fIn\fR" 4
  4004. .IX Item "-Wplacement-new=n"
  4005. .PD
  4006. Warn about placement new expressions with undefined behavior, such as
  4007. constructing an object in a buffer that is smaller than the type of
  4008. the object. For example, the placement new expression below is diagnosed
  4009. because it attempts to construct an array of 64 integers in a buffer only
  4010. 64 bytes large.
  4011. .Sp
  4012. .Vb 2
  4013. \& char buf [64];
  4014. \& new (buf) int[64];
  4015. .Ve
  4016. .Sp
  4017. This warning is enabled by default.
  4018. .RS 4
  4019. .IP "\fB\-Wplacement\-new=1\fR" 4
  4020. .IX Item "-Wplacement-new=1"
  4021. This is the default warning level of \fB\-Wplacement\-new\fR. At this
  4022. level the warning is not issued for some strictly undefined constructs that
  4023. \&\s-1GCC\s0 allows as extensions for compatibility with legacy code. For example,
  4024. the following \f(CW\*(C`new\*(C'\fR expression is not diagnosed at this level even
  4025. though it has undefined behavior according to the \*(C+ standard because
  4026. it writes past the end of the one-element array.
  4027. .Sp
  4028. .Vb 3
  4029. \& struct S { int n, a[1]; };
  4030. \& S *s = (S *)malloc (sizeof *s + 31 * sizeof s\->a[0]);
  4031. \& new (s\->a)int [32]();
  4032. .Ve
  4033. .IP "\fB\-Wplacement\-new=2\fR" 4
  4034. .IX Item "-Wplacement-new=2"
  4035. At this level, in addition to diagnosing all the same constructs as at level
  4036. 1, a diagnostic is also issued for placement new expressions that construct
  4037. an object in the last member of structure whose type is an array of a single
  4038. element and whose size is less than the size of the object being constructed.
  4039. While the previous example would be diagnosed, the following construct makes
  4040. use of the flexible member array extension to avoid the warning at level 2.
  4041. .Sp
  4042. .Vb 3
  4043. \& struct S { int n, a[]; };
  4044. \& S *s = (S *)malloc (sizeof *s + 32 * sizeof s\->a[0]);
  4045. \& new (s\->a)int [32]();
  4046. .Ve
  4047. .RE
  4048. .RS 4
  4049. .RE
  4050. .IP "\fB\-Wcatch\-value\fR" 4
  4051. .IX Item "-Wcatch-value"
  4052. .PD 0
  4053. .IP "\fB\-Wcatch\-value=\fR\fIn\fR\fB \fR(\*(C+ and Objective\-\*(C+ only)" 4
  4054. .IX Item "-Wcatch-value=n ( and Objective- only)"
  4055. .PD
  4056. Warn about catch handlers that do not catch via reference.
  4057. With \fB\-Wcatch\-value=1\fR (or \fB\-Wcatch\-value\fR for short)
  4058. warn about polymorphic class types that are caught by value.
  4059. With \fB\-Wcatch\-value=2\fR warn about all class types that are caught
  4060. by value. With \fB\-Wcatch\-value=3\fR warn about all types that are
  4061. not caught by reference. \fB\-Wcatch\-value\fR is enabled by \fB\-Wall\fR.
  4062. .IP "\fB\-Wconditionally\-supported\fR (\*(C+ and Objective\-\*(C+ only)" 4
  4063. .IX Item "-Wconditionally-supported ( and Objective- only)"
  4064. Warn for conditionally-supported (\*(C+11 [intro.defs]) constructs.
  4065. .IP "\fB\-Wno\-delete\-incomplete\fR (\*(C+ and Objective\-\*(C+ only)" 4
  4066. .IX Item "-Wno-delete-incomplete ( and Objective- only)"
  4067. Do not warn when deleting a pointer to incomplete type, which may cause
  4068. undefined behavior at runtime. This warning is enabled by default.
  4069. .IP "\fB\-Wextra\-semi\fR (\*(C+, Objective\-\*(C+ only)" 4
  4070. .IX Item "-Wextra-semi (, Objective- only)"
  4071. Warn about redundant semicolons after in-class function definitions.
  4072. .IP "\fB\-Wno\-inaccessible\-base\fR (\*(C+, Objective\-\*(C+ only)" 4
  4073. .IX Item "-Wno-inaccessible-base (, Objective- only)"
  4074. This option controls warnings
  4075. when a base class is inaccessible in a class derived from it due to
  4076. ambiguity. The warning is enabled by default.
  4077. Note that the warning for ambiguous virtual
  4078. bases is enabled by the \fB\-Wextra\fR option.
  4079. .Sp
  4080. .Vb 1
  4081. \& struct A { int a; };
  4082. \&
  4083. \& struct B : A { };
  4084. \&
  4085. \& struct C : B, A { };
  4086. .Ve
  4087. .IP "\fB\-Wno\-inherited\-variadic\-ctor\fR" 4
  4088. .IX Item "-Wno-inherited-variadic-ctor"
  4089. Suppress warnings about use of \*(C+11 inheriting constructors when the
  4090. base class inherited from has a C variadic constructor; the warning is
  4091. on by default because the ellipsis is not inherited.
  4092. .IP "\fB\-Wno\-invalid\-offsetof\fR (\*(C+ and Objective\-\*(C+ only)" 4
  4093. .IX Item "-Wno-invalid-offsetof ( and Objective- only)"
  4094. Suppress warnings from applying the \f(CW\*(C`offsetof\*(C'\fR macro to a non-POD
  4095. type. According to the 2014 \s-1ISO \*(C+\s0 standard, applying \f(CW\*(C`offsetof\*(C'\fR
  4096. to a non-standard-layout type is undefined. In existing \*(C+ implementations,
  4097. however, \f(CW\*(C`offsetof\*(C'\fR typically gives meaningful results.
  4098. This flag is for users who are aware that they are
  4099. writing nonportable code and who have deliberately chosen to ignore the
  4100. warning about it.
  4101. .Sp
  4102. The restrictions on \f(CW\*(C`offsetof\*(C'\fR may be relaxed in a future version
  4103. of the \*(C+ standard.
  4104. .IP "\fB\-Wsized\-deallocation\fR (\*(C+ and Objective\-\*(C+ only)" 4
  4105. .IX Item "-Wsized-deallocation ( and Objective- only)"
  4106. Warn about a definition of an unsized deallocation function
  4107. .Sp
  4108. .Vb 2
  4109. \& void operator delete (void *) noexcept;
  4110. \& void operator delete[] (void *) noexcept;
  4111. .Ve
  4112. .Sp
  4113. without a definition of the corresponding sized deallocation function
  4114. .Sp
  4115. .Vb 2
  4116. \& void operator delete (void *, std::size_t) noexcept;
  4117. \& void operator delete[] (void *, std::size_t) noexcept;
  4118. .Ve
  4119. .Sp
  4120. or vice versa. Enabled by \fB\-Wextra\fR along with
  4121. \&\fB\-fsized\-deallocation\fR.
  4122. .IP "\fB\-Wsuggest\-final\-types\fR" 4
  4123. .IX Item "-Wsuggest-final-types"
  4124. Warn about types with virtual methods where code quality would be improved
  4125. if the type were declared with the \*(C+11 \f(CW\*(C`final\*(C'\fR specifier,
  4126. or, if possible,
  4127. declared in an anonymous namespace. This allows \s-1GCC\s0 to more aggressively
  4128. devirtualize the polymorphic calls. This warning is more effective with
  4129. link-time optimization,
  4130. where the information about the class hierarchy graph is
  4131. more complete.
  4132. .IP "\fB\-Wsuggest\-final\-methods\fR" 4
  4133. .IX Item "-Wsuggest-final-methods"
  4134. Warn about virtual methods where code quality would be improved if the method
  4135. were declared with the \*(C+11 \f(CW\*(C`final\*(C'\fR specifier,
  4136. or, if possible, its type were
  4137. declared in an anonymous namespace or with the \f(CW\*(C`final\*(C'\fR specifier.
  4138. This warning is
  4139. more effective with link-time optimization, where the information about the
  4140. class hierarchy graph is more complete. It is recommended to first consider
  4141. suggestions of \fB\-Wsuggest\-final\-types\fR and then rebuild with new
  4142. annotations.
  4143. .IP "\fB\-Wsuggest\-override\fR" 4
  4144. .IX Item "-Wsuggest-override"
  4145. Warn about overriding virtual functions that are not marked with the
  4146. \&\f(CW\*(C`override\*(C'\fR keyword.
  4147. .IP "\fB\-Wuseless\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
  4148. .IX Item "-Wuseless-cast ( and Objective- only)"
  4149. Warn when an expression is casted to its own type.
  4150. .IP "\fB\-Wno\-conversion\-null\fR (\*(C+ and Objective\-\*(C+ only)" 4
  4151. .IX Item "-Wno-conversion-null ( and Objective- only)"
  4152. Do not warn for conversions between \f(CW\*(C`NULL\*(C'\fR and non-pointer
  4153. types. \fB\-Wconversion\-null\fR is enabled by default.
  4154. .SS "Options Controlling Objective-C and Objective\-\*(C+ Dialects"
  4155. .IX Subsection "Options Controlling Objective-C and Objective- Dialects"
  4156. (\s-1NOTE:\s0 This manual does not describe the Objective-C and Objective\-\*(C+
  4157. languages themselves.
  4158. .PP
  4159. This section describes the command-line options that are only meaningful
  4160. for Objective-C and Objective\-\*(C+ programs. You can also use most of
  4161. the language-independent \s-1GNU\s0 compiler options.
  4162. For example, you might compile a file \fIsome_class.m\fR like this:
  4163. .PP
  4164. .Vb 1
  4165. \& gcc \-g \-fgnu\-runtime \-O \-c some_class.m
  4166. .Ve
  4167. .PP
  4168. In this example, \fB\-fgnu\-runtime\fR is an option meant only for
  4169. Objective-C and Objective\-\*(C+ programs; you can use the other options with
  4170. any language supported by \s-1GCC.\s0
  4171. .PP
  4172. Note that since Objective-C is an extension of the C language, Objective-C
  4173. compilations may also use options specific to the C front-end (e.g.,
  4174. \&\fB\-Wtraditional\fR). Similarly, Objective\-\*(C+ compilations may use
  4175. \&\*(C+\-specific options (e.g., \fB\-Wabi\fR).
  4176. .PP
  4177. Here is a list of options that are \fIonly\fR for compiling Objective-C
  4178. and Objective\-\*(C+ programs:
  4179. .IP "\fB\-fconstant\-string\-class=\fR\fIclass-name\fR" 4
  4180. .IX Item "-fconstant-string-class=class-name"
  4181. Use \fIclass-name\fR as the name of the class to instantiate for each
  4182. literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR. The default
  4183. class name is \f(CW\*(C`NXConstantString\*(C'\fR if the \s-1GNU\s0 runtime is being used, and
  4184. \&\f(CW\*(C`NSConstantString\*(C'\fR if the NeXT runtime is being used (see below). The
  4185. \&\fB\-fconstant\-cfstrings\fR option, if also present, overrides the
  4186. \&\fB\-fconstant\-string\-class\fR setting and cause \f(CW\*(C`@"..."\*(C'\fR literals
  4187. to be laid out as constant CoreFoundation strings.
  4188. .IP "\fB\-fgnu\-runtime\fR" 4
  4189. .IX Item "-fgnu-runtime"
  4190. Generate object code compatible with the standard \s-1GNU\s0 Objective-C
  4191. runtime. This is the default for most types of systems.
  4192. .IP "\fB\-fnext\-runtime\fR" 4
  4193. .IX Item "-fnext-runtime"
  4194. Generate output compatible with the NeXT runtime. This is the default
  4195. for NeXT-based systems, including Darwin and Mac \s-1OS X.\s0 The macro
  4196. \&\f(CW\*(C`_\|_NEXT_RUNTIME_\|_\*(C'\fR is predefined if (and only if) this option is
  4197. used.
  4198. .IP "\fB\-fno\-nil\-receivers\fR" 4
  4199. .IX Item "-fno-nil-receivers"
  4200. Assume that all Objective-C message dispatches (\f(CW\*(C`[receiver
  4201. message:arg]\*(C'\fR) in this translation unit ensure that the receiver is
  4202. not \f(CW\*(C`nil\*(C'\fR. This allows for more efficient entry points in the
  4203. runtime to be used. This option is only available in conjunction with
  4204. the NeXT runtime and \s-1ABI\s0 version 0 or 1.
  4205. .IP "\fB\-fobjc\-abi\-version=\fR\fIn\fR" 4
  4206. .IX Item "-fobjc-abi-version=n"
  4207. Use version \fIn\fR of the Objective-C \s-1ABI\s0 for the selected runtime.
  4208. This option is currently supported only for the NeXT runtime. In that
  4209. case, Version 0 is the traditional (32\-bit) \s-1ABI\s0 without support for
  4210. properties and other Objective-C 2.0 additions. Version 1 is the
  4211. traditional (32\-bit) \s-1ABI\s0 with support for properties and other
  4212. Objective-C 2.0 additions. Version 2 is the modern (64\-bit) \s-1ABI.\s0 If
  4213. nothing is specified, the default is Version 0 on 32\-bit target
  4214. machines, and Version 2 on 64\-bit target machines.
  4215. .IP "\fB\-fobjc\-call\-cxx\-cdtors\fR" 4
  4216. .IX Item "-fobjc-call-cxx-cdtors"
  4217. For each Objective-C class, check if any of its instance variables is a
  4218. \&\*(C+ object with a non-trivial default constructor. If so, synthesize a
  4219. special \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR instance method which runs
  4220. non-trivial default constructors on any such instance variables, in order,
  4221. and then return \f(CW\*(C`self\*(C'\fR. Similarly, check if any instance variable
  4222. is a \*(C+ object with a non-trivial destructor, and if so, synthesize a
  4223. special \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR method which runs
  4224. all such default destructors, in reverse order.
  4225. .Sp
  4226. The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR
  4227. methods thusly generated only operate on instance variables
  4228. declared in the current Objective-C class, and not those inherited
  4229. from superclasses. It is the responsibility of the Objective-C
  4230. runtime to invoke all such methods in an object's inheritance
  4231. hierarchy. The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR methods are invoked
  4232. by the runtime immediately after a new object instance is allocated;
  4233. the \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods are invoked immediately
  4234. before the runtime deallocates an object instance.
  4235. .Sp
  4236. As of this writing, only the NeXT runtime on Mac \s-1OS X 10.4\s0 and later has
  4237. support for invoking the \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and
  4238. \&\f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods.
  4239. .IP "\fB\-fobjc\-direct\-dispatch\fR" 4
  4240. .IX Item "-fobjc-direct-dispatch"
  4241. Allow fast jumps to the message dispatcher. On Darwin this is
  4242. accomplished via the comm page.
  4243. .IP "\fB\-fobjc\-exceptions\fR" 4
  4244. .IX Item "-fobjc-exceptions"
  4245. Enable syntactic support for structured exception handling in
  4246. Objective-C, similar to what is offered by \*(C+. This option
  4247. is required to use the Objective-C keywords \f(CW@try\fR,
  4248. \&\f(CW@throw\fR, \f(CW@catch\fR, \f(CW@finally\fR and
  4249. \&\f(CW@synchronized\fR. This option is available with both the \s-1GNU\s0
  4250. runtime and the NeXT runtime (but not available in conjunction with
  4251. the NeXT runtime on Mac \s-1OS X 10.2\s0 and earlier).
  4252. .IP "\fB\-fobjc\-gc\fR" 4
  4253. .IX Item "-fobjc-gc"
  4254. Enable garbage collection (\s-1GC\s0) in Objective-C and Objective\-\*(C+
  4255. programs. This option is only available with the NeXT runtime; the
  4256. \&\s-1GNU\s0 runtime has a different garbage collection implementation that
  4257. does not require special compiler flags.
  4258. .IP "\fB\-fobjc\-nilcheck\fR" 4
  4259. .IX Item "-fobjc-nilcheck"
  4260. For the NeXT runtime with version 2 of the \s-1ABI,\s0 check for a nil
  4261. receiver in method invocations before doing the actual method call.
  4262. This is the default and can be disabled using
  4263. \&\fB\-fno\-objc\-nilcheck\fR. Class methods and super calls are never
  4264. checked for nil in this way no matter what this flag is set to.
  4265. Currently this flag does nothing when the \s-1GNU\s0 runtime, or an older
  4266. version of the NeXT runtime \s-1ABI,\s0 is used.
  4267. .IP "\fB\-fobjc\-std=objc1\fR" 4
  4268. .IX Item "-fobjc-std=objc1"
  4269. Conform to the language syntax of Objective-C 1.0, the language
  4270. recognized by \s-1GCC 4.0.\s0 This only affects the Objective-C additions to
  4271. the C/\*(C+ language; it does not affect conformance to C/\*(C+ standards,
  4272. which is controlled by the separate C/\*(C+ dialect option flags. When
  4273. this option is used with the Objective-C or Objective\-\*(C+ compiler,
  4274. any Objective-C syntax that is not recognized by \s-1GCC 4.0\s0 is rejected.
  4275. This is useful if you need to make sure that your Objective-C code can
  4276. be compiled with older versions of \s-1GCC.\s0
  4277. .IP "\fB\-freplace\-objc\-classes\fR" 4
  4278. .IX Item "-freplace-objc-classes"
  4279. Emit a special marker instructing \fB\fBld\fB\|(1)\fR not to statically link in
  4280. the resulting object file, and allow \fB\fBdyld\fB\|(1)\fR to load it in at
  4281. run time instead. This is used in conjunction with the Fix-and-Continue
  4282. debugging mode, where the object file in question may be recompiled and
  4283. dynamically reloaded in the course of program execution, without the need
  4284. to restart the program itself. Currently, Fix-and-Continue functionality
  4285. is only available in conjunction with the NeXT runtime on Mac \s-1OS X 10.3\s0
  4286. and later.
  4287. .IP "\fB\-fzero\-link\fR" 4
  4288. .IX Item "-fzero-link"
  4289. When compiling for the NeXT runtime, the compiler ordinarily replaces calls
  4290. to \f(CW\*(C`objc_getClass("...")\*(C'\fR (when the name of the class is known at
  4291. compile time) with static class references that get initialized at load time,
  4292. which improves run-time performance. Specifying the \fB\-fzero\-link\fR flag
  4293. suppresses this behavior and causes calls to \f(CW\*(C`objc_getClass("...")\*(C'\fR
  4294. to be retained. This is useful in Zero-Link debugging mode, since it allows
  4295. for individual class implementations to be modified during program execution.
  4296. The \s-1GNU\s0 runtime currently always retains calls to \f(CW\*(C`objc_get_class("...")\*(C'\fR
  4297. regardless of command-line options.
  4298. .IP "\fB\-fno\-local\-ivars\fR" 4
  4299. .IX Item "-fno-local-ivars"
  4300. By default instance variables in Objective-C can be accessed as if
  4301. they were local variables from within the methods of the class they're
  4302. declared in. This can lead to shadowing between instance variables
  4303. and other variables declared either locally inside a class method or
  4304. globally with the same name. Specifying the \fB\-fno\-local\-ivars\fR
  4305. flag disables this behavior thus avoiding variable shadowing issues.
  4306. .IP "\fB\-fivar\-visibility=\fR[\fBpublic\fR|\fBprotected\fR|\fBprivate\fR|\fBpackage\fR]" 4
  4307. .IX Item "-fivar-visibility=[public|protected|private|package]"
  4308. Set the default instance variable visibility to the specified option
  4309. so that instance variables declared outside the scope of any access
  4310. modifier directives default to the specified visibility.
  4311. .IP "\fB\-gen\-decls\fR" 4
  4312. .IX Item "-gen-decls"
  4313. Dump interface declarations for all classes seen in the source file to a
  4314. file named \fI\fIsourcename\fI.decl\fR.
  4315. .IP "\fB\-Wassign\-intercept\fR (Objective-C and Objective\-\*(C+ only)" 4
  4316. .IX Item "-Wassign-intercept (Objective-C and Objective- only)"
  4317. Warn whenever an Objective-C assignment is being intercepted by the
  4318. garbage collector.
  4319. .IP "\fB\-Wno\-property\-assign\-default\fR (Objective-C and Objective\-\*(C+ only)" 4
  4320. .IX Item "-Wno-property-assign-default (Objective-C and Objective- only)"
  4321. Do not warn if a property for an Objective-C object has no assign
  4322. semantics specified.
  4323. .IP "\fB\-Wno\-protocol\fR (Objective-C and Objective\-\*(C+ only)" 4
  4324. .IX Item "-Wno-protocol (Objective-C and Objective- only)"
  4325. If a class is declared to implement a protocol, a warning is issued for
  4326. every method in the protocol that is not implemented by the class. The
  4327. default behavior is to issue a warning for every method not explicitly
  4328. implemented in the class, even if a method implementation is inherited
  4329. from the superclass. If you use the \fB\-Wno\-protocol\fR option, then
  4330. methods inherited from the superclass are considered to be implemented,
  4331. and no warning is issued for them.
  4332. .IP "\fB\-Wobjc\-root\-class\fR (Objective-C and Objective\-\*(C+ only)" 4
  4333. .IX Item "-Wobjc-root-class (Objective-C and Objective- only)"
  4334. Warn if a class interface lacks a superclass. Most classes will inherit
  4335. from \f(CW\*(C`NSObject\*(C'\fR (or \f(CW\*(C`Object\*(C'\fR) for example. When declaring
  4336. classes intended to be root classes, the warning can be suppressed by
  4337. marking their interfaces with \f(CW\*(C`_\|_attribute_\|_((objc_root_class))\*(C'\fR.
  4338. .IP "\fB\-Wselector\fR (Objective-C and Objective\-\*(C+ only)" 4
  4339. .IX Item "-Wselector (Objective-C and Objective- only)"
  4340. Warn if multiple methods of different types for the same selector are
  4341. found during compilation. The check is performed on the list of methods
  4342. in the final stage of compilation. Additionally, a check is performed
  4343. for each selector appearing in a \f(CW\*(C`@selector(...)\*(C'\fR
  4344. expression, and a corresponding method for that selector has been found
  4345. during compilation. Because these checks scan the method table only at
  4346. the end of compilation, these warnings are not produced if the final
  4347. stage of compilation is not reached, for example because an error is
  4348. found during compilation, or because the \fB\-fsyntax\-only\fR option is
  4349. being used.
  4350. .IP "\fB\-Wstrict\-selector\-match\fR (Objective-C and Objective\-\*(C+ only)" 4
  4351. .IX Item "-Wstrict-selector-match (Objective-C and Objective- only)"
  4352. Warn if multiple methods with differing argument and/or return types are
  4353. found for a given selector when attempting to send a message using this
  4354. selector to a receiver of type \f(CW\*(C`id\*(C'\fR or \f(CW\*(C`Class\*(C'\fR. When this flag
  4355. is off (which is the default behavior), the compiler omits such warnings
  4356. if any differences found are confined to types that share the same size
  4357. and alignment.
  4358. .IP "\fB\-Wundeclared\-selector\fR (Objective-C and Objective\-\*(C+ only)" 4
  4359. .IX Item "-Wundeclared-selector (Objective-C and Objective- only)"
  4360. Warn if a \f(CW\*(C`@selector(...)\*(C'\fR expression referring to an
  4361. undeclared selector is found. A selector is considered undeclared if no
  4362. method with that name has been declared before the
  4363. \&\f(CW\*(C`@selector(...)\*(C'\fR expression, either explicitly in an
  4364. \&\f(CW@interface\fR or \f(CW@protocol\fR declaration, or implicitly in
  4365. an \f(CW@implementation\fR section. This option always performs its
  4366. checks as soon as a \f(CW\*(C`@selector(...)\*(C'\fR expression is found,
  4367. while \fB\-Wselector\fR only performs its checks in the final stage of
  4368. compilation. This also enforces the coding style convention
  4369. that methods and selectors must be declared before being used.
  4370. .IP "\fB\-print\-objc\-runtime\-info\fR" 4
  4371. .IX Item "-print-objc-runtime-info"
  4372. Generate C header describing the largest structure that is passed by
  4373. value, if any.
  4374. .SS "Options to Control Diagnostic Messages Formatting"
  4375. .IX Subsection "Options to Control Diagnostic Messages Formatting"
  4376. Traditionally, diagnostic messages have been formatted irrespective of
  4377. the output device's aspect (e.g. its width, ...). You can use the
  4378. options described below
  4379. to control the formatting algorithm for diagnostic messages,
  4380. e.g. how many characters per line, how often source location
  4381. information should be reported. Note that some language front ends may not
  4382. honor these options.
  4383. .IP "\fB\-fmessage\-length=\fR\fIn\fR" 4
  4384. .IX Item "-fmessage-length=n"
  4385. Try to format error messages so that they fit on lines of about
  4386. \&\fIn\fR characters. If \fIn\fR is zero, then no line-wrapping is
  4387. done; each error message appears on a single line. This is the
  4388. default for all front ends.
  4389. .Sp
  4390. Note \- this option also affects the display of the \fB#error\fR and
  4391. \&\fB#warning\fR pre-processor directives, and the \fBdeprecated\fR
  4392. function/type/variable attribute. It does not however affect the
  4393. \&\fBpragma \s-1GCC\s0 warning\fR and \fBpragma \s-1GCC\s0 error\fR pragmas.
  4394. .IP "\fB\-fdiagnostics\-plain\-output\fR" 4
  4395. .IX Item "-fdiagnostics-plain-output"
  4396. This option requests that diagnostic output look as plain as possible, which
  4397. may be useful when running \fBdejagnu\fR or other utilities that need to
  4398. parse diagnostics output and prefer that it remain more stable over time.
  4399. \&\fB\-fdiagnostics\-plain\-output\fR is currently equivalent to the following
  4400. options:
  4401. \&\fB\-fno\-diagnostics\-show\-caret
  4402. \&\-fno\-diagnostics\-show\-line\-numbers
  4403. \&\-fdiagnostics\-color=never
  4404. \&\-fdiagnostics\-urls=never
  4405. \&\-fdiagnostics\-path\-format=separate\-events\fR
  4406. In the future, if \s-1GCC\s0 changes the default appearance of its diagnostics, the
  4407. corresponding option to disable the new behavior will be added to this list.
  4408. .IP "\fB\-fdiagnostics\-show\-location=once\fR" 4
  4409. .IX Item "-fdiagnostics-show-location=once"
  4410. Only meaningful in line-wrapping mode. Instructs the diagnostic messages
  4411. reporter to emit source location information \fIonce\fR; that is, in
  4412. case the message is too long to fit on a single physical line and has to
  4413. be wrapped, the source location won't be emitted (as prefix) again,
  4414. over and over, in subsequent continuation lines. This is the default
  4415. behavior.
  4416. .IP "\fB\-fdiagnostics\-show\-location=every\-line\fR" 4
  4417. .IX Item "-fdiagnostics-show-location=every-line"
  4418. Only meaningful in line-wrapping mode. Instructs the diagnostic
  4419. messages reporter to emit the same source location information (as
  4420. prefix) for physical lines that result from the process of breaking
  4421. a message which is too long to fit on a single line.
  4422. .IP "\fB\-fdiagnostics\-color[=\fR\fI\s-1WHEN\s0\fR\fB]\fR" 4
  4423. .IX Item "-fdiagnostics-color[=WHEN]"
  4424. .PD 0
  4425. .IP "\fB\-fno\-diagnostics\-color\fR" 4
  4426. .IX Item "-fno-diagnostics-color"
  4427. .PD
  4428. Use color in diagnostics. \fI\s-1WHEN\s0\fR is \fBnever\fR, \fBalways\fR,
  4429. or \fBauto\fR. The default depends on how the compiler has been configured,
  4430. it can be any of the above \fI\s-1WHEN\s0\fR options or also \fBnever\fR
  4431. if \fB\s-1GCC_COLORS\s0\fR environment variable isn't present in the environment,
  4432. and \fBauto\fR otherwise.
  4433. \&\fBauto\fR makes \s-1GCC\s0 use color only when the standard error is a terminal,
  4434. and when not executing in an emacs shell.
  4435. The forms \fB\-fdiagnostics\-color\fR and \fB\-fno\-diagnostics\-color\fR are
  4436. aliases for \fB\-fdiagnostics\-color=always\fR and
  4437. \&\fB\-fdiagnostics\-color=never\fR, respectively.
  4438. .Sp
  4439. The colors are defined by the environment variable \fB\s-1GCC_COLORS\s0\fR.
  4440. Its value is a colon-separated list of capabilities and Select Graphic
  4441. Rendition (\s-1SGR\s0) substrings. \s-1SGR\s0 commands are interpreted by the
  4442. terminal or terminal emulator. (See the section in the documentation
  4443. of your text terminal for permitted values and their meanings as
  4444. character attributes.) These substring values are integers in decimal
  4445. representation and can be concatenated with semicolons.
  4446. Common values to concatenate include
  4447. \&\fB1\fR for bold,
  4448. \&\fB4\fR for underline,
  4449. \&\fB5\fR for blink,
  4450. \&\fB7\fR for inverse,
  4451. \&\fB39\fR for default foreground color,
  4452. \&\fB30\fR to \fB37\fR for foreground colors,
  4453. \&\fB90\fR to \fB97\fR for 16\-color mode foreground colors,
  4454. \&\fB38;5;0\fR to \fB38;5;255\fR
  4455. for 88\-color and 256\-color modes foreground colors,
  4456. \&\fB49\fR for default background color,
  4457. \&\fB40\fR to \fB47\fR for background colors,
  4458. \&\fB100\fR to \fB107\fR for 16\-color mode background colors,
  4459. and \fB48;5;0\fR to \fB48;5;255\fR
  4460. for 88\-color and 256\-color modes background colors.
  4461. .Sp
  4462. The default \fB\s-1GCC_COLORS\s0\fR is
  4463. .Sp
  4464. .Vb 4
  4465. \& error=01;31:warning=01;35:note=01;36:range1=32:range2=34:locus=01:\e
  4466. \& quote=01:path=01;36:fixit\-insert=32:fixit\-delete=31:\e
  4467. \& diff\-filename=01:diff\-hunk=32:diff\-delete=31:diff\-insert=32:\e
  4468. \& type\-diff=01;32
  4469. .Ve
  4470. .Sp
  4471. where \fB01;31\fR is bold red, \fB01;35\fR is bold magenta,
  4472. \&\fB01;36\fR is bold cyan, \fB32\fR is green, \fB34\fR is blue,
  4473. \&\fB01\fR is bold, and \fB31\fR is red.
  4474. Setting \fB\s-1GCC_COLORS\s0\fR to the empty string disables colors.
  4475. Supported capabilities are as follows.
  4476. .RS 4
  4477. .ie n .IP """error=""" 4
  4478. .el .IP "\f(CWerror=\fR" 4
  4479. .IX Item "error="
  4480. \&\s-1SGR\s0 substring for error: markers.
  4481. .ie n .IP """warning=""" 4
  4482. .el .IP "\f(CWwarning=\fR" 4
  4483. .IX Item "warning="
  4484. \&\s-1SGR\s0 substring for warning: markers.
  4485. .ie n .IP """note=""" 4
  4486. .el .IP "\f(CWnote=\fR" 4
  4487. .IX Item "note="
  4488. \&\s-1SGR\s0 substring for note: markers.
  4489. .ie n .IP """path=""" 4
  4490. .el .IP "\f(CWpath=\fR" 4
  4491. .IX Item "path="
  4492. \&\s-1SGR\s0 substring for colorizing paths of control-flow events as printed
  4493. via \fB\-fdiagnostics\-path\-format=\fR, such as the identifiers of
  4494. individual events and lines indicating interprocedural calls and returns.
  4495. .ie n .IP """range1=""" 4
  4496. .el .IP "\f(CWrange1=\fR" 4
  4497. .IX Item "range1="
  4498. \&\s-1SGR\s0 substring for first additional range.
  4499. .ie n .IP """range2=""" 4
  4500. .el .IP "\f(CWrange2=\fR" 4
  4501. .IX Item "range2="
  4502. \&\s-1SGR\s0 substring for second additional range.
  4503. .ie n .IP """locus=""" 4
  4504. .el .IP "\f(CWlocus=\fR" 4
  4505. .IX Item "locus="
  4506. \&\s-1SGR\s0 substring for location information, \fBfile:line\fR or
  4507. \&\fBfile:line:column\fR etc.
  4508. .ie n .IP """quote=""" 4
  4509. .el .IP "\f(CWquote=\fR" 4
  4510. .IX Item "quote="
  4511. \&\s-1SGR\s0 substring for information printed within quotes.
  4512. .ie n .IP """fixit\-insert=""" 4
  4513. .el .IP "\f(CWfixit\-insert=\fR" 4
  4514. .IX Item "fixit-insert="
  4515. \&\s-1SGR\s0 substring for fix-it hints suggesting text to
  4516. be inserted or replaced.
  4517. .ie n .IP """fixit\-delete=""" 4
  4518. .el .IP "\f(CWfixit\-delete=\fR" 4
  4519. .IX Item "fixit-delete="
  4520. \&\s-1SGR\s0 substring for fix-it hints suggesting text to
  4521. be deleted.
  4522. .ie n .IP """diff\-filename=""" 4
  4523. .el .IP "\f(CWdiff\-filename=\fR" 4
  4524. .IX Item "diff-filename="
  4525. \&\s-1SGR\s0 substring for filename headers within generated patches.
  4526. .ie n .IP """diff\-hunk=""" 4
  4527. .el .IP "\f(CWdiff\-hunk=\fR" 4
  4528. .IX Item "diff-hunk="
  4529. \&\s-1SGR\s0 substring for the starts of hunks within generated patches.
  4530. .ie n .IP """diff\-delete=""" 4
  4531. .el .IP "\f(CWdiff\-delete=\fR" 4
  4532. .IX Item "diff-delete="
  4533. \&\s-1SGR\s0 substring for deleted lines within generated patches.
  4534. .ie n .IP """diff\-insert=""" 4
  4535. .el .IP "\f(CWdiff\-insert=\fR" 4
  4536. .IX Item "diff-insert="
  4537. \&\s-1SGR\s0 substring for inserted lines within generated patches.
  4538. .ie n .IP """type\-diff=""" 4
  4539. .el .IP "\f(CWtype\-diff=\fR" 4
  4540. .IX Item "type-diff="
  4541. \&\s-1SGR\s0 substring for highlighting mismatching types within template
  4542. arguments in the \*(C+ frontend.
  4543. .RE
  4544. .RS 4
  4545. .RE
  4546. .IP "\fB\-fdiagnostics\-urls[=\fR\fI\s-1WHEN\s0\fR\fB]\fR" 4
  4547. .IX Item "-fdiagnostics-urls[=WHEN]"
  4548. Use escape sequences to embed URLs in diagnostics. For example, when
  4549. \&\fB\-fdiagnostics\-show\-option\fR emits text showing the command-line
  4550. option controlling a diagnostic, embed a \s-1URL\s0 for documentation of that
  4551. option.
  4552. .Sp
  4553. \&\fI\s-1WHEN\s0\fR is \fBnever\fR, \fBalways\fR, or \fBauto\fR.
  4554. \&\fBauto\fR makes \s-1GCC\s0 use \s-1URL\s0 escape sequences only when the standard error
  4555. is a terminal, and when not executing in an emacs shell or any graphical
  4556. terminal which is known to be incompatible with this feature, see below.
  4557. .Sp
  4558. The default depends on how the compiler has been configured.
  4559. It can be any of the above \fI\s-1WHEN\s0\fR options.
  4560. .Sp
  4561. \&\s-1GCC\s0 can also be configured (via the
  4562. \&\fB\-\-with\-diagnostics\-urls=auto\-if\-env\fR configure-time option)
  4563. so that the default is affected by environment variables.
  4564. Under such a configuration, \s-1GCC\s0 defaults to using \fBauto\fR
  4565. if either \fB\s-1GCC_URLS\s0\fR or \fB\s-1TERM_URLS\s0\fR environment variables are
  4566. present and non-empty in the environment of the compiler, or \fBnever\fR
  4567. if neither are.
  4568. .Sp
  4569. However, even with \fB\-fdiagnostics\-urls=always\fR the behavior is
  4570. dependent on those environment variables:
  4571. If \fB\s-1GCC_URLS\s0\fR is set to empty or \fBno\fR, do not embed URLs in
  4572. diagnostics. If set to \fBst\fR, URLs use \s-1ST\s0 escape sequences.
  4573. If set to \fBbel\fR, the default, URLs use \s-1BEL\s0 escape sequences.
  4574. Any other non-empty value enables the feature.
  4575. If \fB\s-1GCC_URLS\s0\fR is not set, use \fB\s-1TERM_URLS\s0\fR as a fallback.
  4576. Note: \s-1ST\s0 is an \s-1ANSI\s0 escape sequence, string terminator \fB\s-1ESC\s0 \e\fR,
  4577. \&\s-1BEL\s0 is an \s-1ASCII\s0 character, CTRL-G that usually sounds like a beep.
  4578. .Sp
  4579. At this time \s-1GCC\s0 tries to detect also a few terminals that are known to
  4580. not implement the \s-1URL\s0 feature, and have bugs or at least had bugs in
  4581. some versions that are still in use, where the \s-1URL\s0 escapes are likely
  4582. to misbehave, i.e. print garbage on the screen.
  4583. That list is currently xfce4\-terminal, certain known to be buggy
  4584. gnome-terminal versions, the linux console, and mingw.
  4585. This check can be skipped with the \fB\-fdiagnostics\-urls=always\fR.
  4586. .IP "\fB\-fno\-diagnostics\-show\-option\fR" 4
  4587. .IX Item "-fno-diagnostics-show-option"
  4588. By default, each diagnostic emitted includes text indicating the
  4589. command-line option that directly controls the diagnostic (if such an
  4590. option is known to the diagnostic machinery). Specifying the
  4591. \&\fB\-fno\-diagnostics\-show\-option\fR flag suppresses that behavior.
  4592. .IP "\fB\-fno\-diagnostics\-show\-caret\fR" 4
  4593. .IX Item "-fno-diagnostics-show-caret"
  4594. By default, each diagnostic emitted includes the original source line
  4595. and a caret \fB^\fR indicating the column. This option suppresses this
  4596. information. The source line is truncated to \fIn\fR characters, if
  4597. the \fB\-fmessage\-length=n\fR option is given. When the output is done
  4598. to the terminal, the width is limited to the width given by the
  4599. \&\fB\s-1COLUMNS\s0\fR environment variable or, if not set, to the terminal width.
  4600. .IP "\fB\-fno\-diagnostics\-show\-labels\fR" 4
  4601. .IX Item "-fno-diagnostics-show-labels"
  4602. By default, when printing source code (via \fB\-fdiagnostics\-show\-caret\fR),
  4603. diagnostics can label ranges of source code with pertinent information, such
  4604. as the types of expressions:
  4605. .Sp
  4606. .Vb 4
  4607. \& printf ("foo %s bar", long_i + long_j);
  4608. \& ~^ ~~~~~~~~~~~~~~~
  4609. \& | |
  4610. \& char * long int
  4611. .Ve
  4612. .Sp
  4613. This option suppresses the printing of these labels (in the example above,
  4614. the vertical bars and the \*(L"char *\*(R" and \*(L"long int\*(R" text).
  4615. .IP "\fB\-fno\-diagnostics\-show\-cwe\fR" 4
  4616. .IX Item "-fno-diagnostics-show-cwe"
  4617. Diagnostic messages can optionally have an associated
  4618. \&\f(CW@url\fR{https://cwe.mitre.org/index.html, \s-1CWE\s0} identifier.
  4619. \&\s-1GCC\s0 itself only provides such metadata for some of the \fB\-fanalyzer\fR
  4620. diagnostics. \s-1GCC\s0 plugins may also provide diagnostics with such metadata.
  4621. By default, if this information is present, it will be printed with
  4622. the diagnostic. This option suppresses the printing of this metadata.
  4623. .IP "\fB\-fno\-diagnostics\-show\-line\-numbers\fR" 4
  4624. .IX Item "-fno-diagnostics-show-line-numbers"
  4625. By default, when printing source code (via \fB\-fdiagnostics\-show\-caret\fR),
  4626. a left margin is printed, showing line numbers. This option suppresses this
  4627. left margin.
  4628. .IP "\fB\-fdiagnostics\-minimum\-margin\-width=\fR\fIwidth\fR" 4
  4629. .IX Item "-fdiagnostics-minimum-margin-width=width"
  4630. This option controls the minimum width of the left margin printed by
  4631. \&\fB\-fdiagnostics\-show\-line\-numbers\fR. It defaults to 6.
  4632. .IP "\fB\-fdiagnostics\-parseable\-fixits\fR" 4
  4633. .IX Item "-fdiagnostics-parseable-fixits"
  4634. Emit fix-it hints in a machine-parseable format, suitable for consumption
  4635. by IDEs. For each fix-it, a line will be printed after the relevant
  4636. diagnostic, starting with the string \*(L"fix-it:\*(R". For example:
  4637. .Sp
  4638. .Vb 1
  4639. \& fix\-it:"test.c":{45:3\-45:21}:"gtk_widget_show_all"
  4640. .Ve
  4641. .Sp
  4642. The location is expressed as a half-open range, expressed as a count of
  4643. bytes, starting at byte 1 for the initial column. In the above example,
  4644. bytes 3 through 20 of line 45 of \*(L"test.c\*(R" are to be replaced with the
  4645. given string:
  4646. .Sp
  4647. .Vb 5
  4648. \& 00000000011111111112222222222
  4649. \& 12345678901234567890123456789
  4650. \& gtk_widget_showall (dlg);
  4651. \& ^^^^^^^^^^^^^^^^^^
  4652. \& gtk_widget_show_all
  4653. .Ve
  4654. .Sp
  4655. The filename and replacement string escape backslash as \*(L"\e\e\*(R", tab as \*(L"\et\*(R",
  4656. newline as \*(L"\en\*(R", double quotes as \*(L"\e\*(R"\*(L", non-printable characters as octal
  4657. (e.g. vertical tab as \*(R"\e013").
  4658. .Sp
  4659. An empty replacement string indicates that the given range is to be removed.
  4660. An empty range (e.g. \*(L"45:3\-45:3\*(R") indicates that the string is to
  4661. be inserted at the given position.
  4662. .IP "\fB\-fdiagnostics\-generate\-patch\fR" 4
  4663. .IX Item "-fdiagnostics-generate-patch"
  4664. Print fix-it hints to stderr in unified diff format, after any diagnostics
  4665. are printed. For example:
  4666. .Sp
  4667. .Vb 3
  4668. \& \-\-\- test.c
  4669. \& +++ test.c
  4670. \& @ \-42,5 +42,5 @
  4671. \&
  4672. \& void show_cb(GtkDialog *dlg)
  4673. \& {
  4674. \& \- gtk_widget_showall(dlg);
  4675. \& + gtk_widget_show_all(dlg);
  4676. \& }
  4677. .Ve
  4678. .Sp
  4679. The diff may or may not be colorized, following the same rules
  4680. as for diagnostics (see \fB\-fdiagnostics\-color\fR).
  4681. .IP "\fB\-fdiagnostics\-show\-template\-tree\fR" 4
  4682. .IX Item "-fdiagnostics-show-template-tree"
  4683. In the \*(C+ frontend, when printing diagnostics showing mismatching
  4684. template types, such as:
  4685. .Sp
  4686. .Vb 2
  4687. \& could not convert \*(Aqstd::map<int, std::vector<double> >()\*(Aq
  4688. \& from \*(Aqmap<[...],vector<double>>\*(Aq to \*(Aqmap<[...],vector<float>>
  4689. .Ve
  4690. .Sp
  4691. the \fB\-fdiagnostics\-show\-template\-tree\fR flag enables printing a
  4692. tree-like structure showing the common and differing parts of the types,
  4693. such as:
  4694. .Sp
  4695. .Vb 4
  4696. \& map<
  4697. \& [...],
  4698. \& vector<
  4699. \& [double != float]>>
  4700. .Ve
  4701. .Sp
  4702. The parts that differ are highlighted with color (\*(L"double\*(R" and
  4703. \&\*(L"float\*(R" in this case).
  4704. .IP "\fB\-fno\-elide\-type\fR" 4
  4705. .IX Item "-fno-elide-type"
  4706. By default when the \*(C+ frontend prints diagnostics showing mismatching
  4707. template types, common parts of the types are printed as \*(L"[...]\*(R" to
  4708. simplify the error message. For example:
  4709. .Sp
  4710. .Vb 2
  4711. \& could not convert \*(Aqstd::map<int, std::vector<double> >()\*(Aq
  4712. \& from \*(Aqmap<[...],vector<double>>\*(Aq to \*(Aqmap<[...],vector<float>>
  4713. .Ve
  4714. .Sp
  4715. Specifying the \fB\-fno\-elide\-type\fR flag suppresses that behavior.
  4716. This flag also affects the output of the
  4717. \&\fB\-fdiagnostics\-show\-template\-tree\fR flag.
  4718. .IP "\fB\-fdiagnostics\-path\-format=\fR\fI\s-1KIND\s0\fR" 4
  4719. .IX Item "-fdiagnostics-path-format=KIND"
  4720. Specify how to print paths of control-flow events for diagnostics that
  4721. have such a path associated with them.
  4722. .Sp
  4723. \&\fI\s-1KIND\s0\fR is \fBnone\fR, \fBseparate-events\fR, or \fBinline-events\fR,
  4724. the default.
  4725. .Sp
  4726. \&\fBnone\fR means to not print diagnostic paths.
  4727. .Sp
  4728. \&\fBseparate-events\fR means to print a separate \*(L"note\*(R" diagnostic for
  4729. each event within the diagnostic. For example:
  4730. .Sp
  4731. .Vb 4
  4732. \& test.c:29:5: error: passing NULL as argument 1 to \*(AqPyList_Append\*(Aq which requires a non\-NULL parameter
  4733. \& test.c:25:10: note: (1) when \*(AqPyList_New\*(Aq fails, returning NULL
  4734. \& test.c:27:3: note: (2) when \*(Aqi < count\*(Aq
  4735. \& test.c:29:5: note: (3) when calling \*(AqPyList_Append\*(Aq, passing NULL from (1) as argument 1
  4736. .Ve
  4737. .Sp
  4738. \&\fBinline-events\fR means to print the events \*(L"inline\*(R" within the source
  4739. code. This view attempts to consolidate the events into runs of
  4740. sufficiently-close events, printing them as labelled ranges within the source.
  4741. .Sp
  4742. For example, the same events as above might be printed as:
  4743. .Sp
  4744. .Vb 10
  4745. \& \*(Aqtest\*(Aq: events 1\-3
  4746. \& |
  4747. \& | 25 | list = PyList_New(0);
  4748. \& | | ^~~~~~~~~~~~~
  4749. \& | | |
  4750. \& | | (1) when \*(AqPyList_New\*(Aq fails, returning NULL
  4751. \& | 26 |
  4752. \& | 27 | for (i = 0; i < count; i++) {
  4753. \& | | ~~~
  4754. \& | | |
  4755. \& | | (2) when \*(Aqi < count\*(Aq
  4756. \& | 28 | item = PyLong_FromLong(random());
  4757. \& | 29 | PyList_Append(list, item);
  4758. \& | | ~~~~~~~~~~~~~~~~~~~~~~~~~
  4759. \& | | |
  4760. \& | | (3) when calling \*(AqPyList_Append\*(Aq, passing NULL from (1) as argument 1
  4761. \& |
  4762. .Ve
  4763. .Sp
  4764. Interprocedural control flow is shown by grouping the events by stack frame,
  4765. and using indentation to show how stack frames are nested, pushed, and popped.
  4766. .Sp
  4767. For example:
  4768. .Sp
  4769. .Vb 10
  4770. \& \*(Aqtest\*(Aq: events 1\-2
  4771. \& |
  4772. \& | 133 | {
  4773. \& | | ^
  4774. \& | | |
  4775. \& | | (1) entering \*(Aqtest\*(Aq
  4776. \& | 134 | boxed_int *obj = make_boxed_int (i);
  4777. \& | | ~~~~~~~~~~~~~~~~~~
  4778. \& | | |
  4779. \& | | (2) calling \*(Aqmake_boxed_int\*(Aq
  4780. \& |
  4781. \& +\-\-> \*(Aqmake_boxed_int\*(Aq: events 3\-4
  4782. \& |
  4783. \& | 120 | {
  4784. \& | | ^
  4785. \& | | |
  4786. \& | | (3) entering \*(Aqmake_boxed_int\*(Aq
  4787. \& | 121 | boxed_int *result = (boxed_int *)wrapped_malloc (sizeof (boxed_int));
  4788. \& | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4789. \& | | |
  4790. \& | | (4) calling \*(Aqwrapped_malloc\*(Aq
  4791. \& |
  4792. \& +\-\-> \*(Aqwrapped_malloc\*(Aq: events 5\-6
  4793. \& |
  4794. \& | 7 | {
  4795. \& | | ^
  4796. \& | | |
  4797. \& | | (5) entering \*(Aqwrapped_malloc\*(Aq
  4798. \& | 8 | return malloc (size);
  4799. \& | | ~~~~~~~~~~~~~
  4800. \& | | |
  4801. \& | | (6) calling \*(Aqmalloc\*(Aq
  4802. \& |
  4803. \& <\-\-\-\-\-\-\-\-\-\-\-\-\-+
  4804. \& |
  4805. \& \*(Aqtest\*(Aq: event 7
  4806. \& |
  4807. \& | 138 | free_boxed_int (obj);
  4808. \& | | ^~~~~~~~~~~~~~~~~~~~
  4809. \& | | |
  4810. \& | | (7) calling \*(Aqfree_boxed_int\*(Aq
  4811. \& |
  4812. \& (etc)
  4813. .Ve
  4814. .IP "\fB\-fdiagnostics\-show\-path\-depths\fR" 4
  4815. .IX Item "-fdiagnostics-show-path-depths"
  4816. This option provides additional information when printing control-flow paths
  4817. associated with a diagnostic.
  4818. .Sp
  4819. If this is option is provided then the stack depth will be printed for
  4820. each run of events within \fB\-fdiagnostics\-path\-format=separate\-events\fR.
  4821. .Sp
  4822. This is intended for use by \s-1GCC\s0 developers and plugin developers when
  4823. debugging diagnostics that report interprocedural control flow.
  4824. .IP "\fB\-fno\-show\-column\fR" 4
  4825. .IX Item "-fno-show-column"
  4826. Do not print column numbers in diagnostics. This may be necessary if
  4827. diagnostics are being scanned by a program that does not understand the
  4828. column numbers, such as \fBdejagnu\fR.
  4829. .IP "\fB\-fdiagnostics\-column\-unit=\fR\fI\s-1UNIT\s0\fR" 4
  4830. .IX Item "-fdiagnostics-column-unit=UNIT"
  4831. Select the units for the column number. This affects traditional diagnostics
  4832. (in the absence of \fB\-fno\-show\-column\fR), as well as \s-1JSON\s0 format
  4833. diagnostics if requested.
  4834. .Sp
  4835. The default \fI\s-1UNIT\s0\fR, \fBdisplay\fR, considers the number of display
  4836. columns occupied by each character. This may be larger than the number
  4837. of bytes required to encode the character, in the case of tab
  4838. characters, or it may be smaller, in the case of multibyte characters.
  4839. For example, the character \*(L"\s-1GREEK SMALL LETTER PI\s0 (U+03C0)\*(R" occupies one
  4840. display column, and its \s-1UTF\-8\s0 encoding requires two bytes; the character
  4841. \&\*(L"\s-1SLIGHTLY SMILING FACE\s0 (U+1F642)\*(R" occupies two display columns, and
  4842. its \s-1UTF\-8\s0 encoding requires four bytes.
  4843. .Sp
  4844. Setting \fI\s-1UNIT\s0\fR to \fBbyte\fR changes the column number to the raw byte
  4845. count in all cases, as was traditionally output by \s-1GCC\s0 prior to version 11.1.0.
  4846. .IP "\fB\-fdiagnostics\-column\-origin=\fR\fI\s-1ORIGIN\s0\fR" 4
  4847. .IX Item "-fdiagnostics-column-origin=ORIGIN"
  4848. Select the origin for column numbers, i.e. the column number assigned to the
  4849. first column. The default value of 1 corresponds to traditional \s-1GCC\s0
  4850. behavior and to the \s-1GNU\s0 style guide. Some utilities may perform better with an
  4851. origin of 0; any non-negative value may be specified.
  4852. .IP "\fB\-fdiagnostics\-format=\fR\fI\s-1FORMAT\s0\fR" 4
  4853. .IX Item "-fdiagnostics-format=FORMAT"
  4854. Select a different format for printing diagnostics.
  4855. \&\fI\s-1FORMAT\s0\fR is \fBtext\fR or \fBjson\fR.
  4856. The default is \fBtext\fR.
  4857. .Sp
  4858. The \fBjson\fR format consists of a top-level \s-1JSON\s0 array containing \s-1JSON\s0
  4859. objects representing the diagnostics.
  4860. .Sp
  4861. The \s-1JSON\s0 is emitted as one line, without formatting; the examples below
  4862. have been formatted for clarity.
  4863. .Sp
  4864. Diagnostics can have child diagnostics. For example, this error and note:
  4865. .Sp
  4866. .Vb 8
  4867. \& misleading\-indentation.c:15:3: warning: this \*(Aqif\*(Aq clause does not
  4868. \& guard... [\-Wmisleading\-indentation]
  4869. \& 15 | if (flag)
  4870. \& | ^~
  4871. \& misleading\-indentation.c:17:5: note: ...this statement, but the latter
  4872. \& is misleadingly indented as if it were guarded by the \*(Aqif\*(Aq
  4873. \& 17 | y = 2;
  4874. \& | ^
  4875. .Ve
  4876. .Sp
  4877. might be printed in \s-1JSON\s0 form (after formatting) like this:
  4878. .Sp
  4879. .Vb 10
  4880. \& [
  4881. \& {
  4882. \& "kind": "warning",
  4883. \& "locations": [
  4884. \& {
  4885. \& "caret": {
  4886. \& "display\-column": 3,
  4887. \& "byte\-column": 3,
  4888. \& "column": 3,
  4889. \& "file": "misleading\-indentation.c",
  4890. \& "line": 15
  4891. \& },
  4892. \& "finish": {
  4893. \& "display\-column": 4,
  4894. \& "byte\-column": 4,
  4895. \& "column": 4,
  4896. \& "file": "misleading\-indentation.c",
  4897. \& "line": 15
  4898. \& }
  4899. \& }
  4900. \& ],
  4901. \& "message": "this \eu2018if\eu2019 clause does not guard...",
  4902. \& "option": "\-Wmisleading\-indentation",
  4903. \& "option_url": "https://gcc.gnu.org/onlinedocs/gcc/Warning\-Options.html#index\-Wmisleading\-indentation",
  4904. \& "children": [
  4905. \& {
  4906. \& "kind": "note",
  4907. \& "locations": [
  4908. \& {
  4909. \& "caret": {
  4910. \& "display\-column": 5,
  4911. \& "byte\-column": 5,
  4912. \& "column": 5,
  4913. \& "file": "misleading\-indentation.c",
  4914. \& "line": 17
  4915. \& }
  4916. \& }
  4917. \& ],
  4918. \& "message": "...this statement, but the latter is ..."
  4919. \& }
  4920. \& ]
  4921. \& "column\-origin": 1,
  4922. \& },
  4923. \& ...
  4924. \& ]
  4925. .Ve
  4926. .Sp
  4927. where the \f(CW\*(C`note\*(C'\fR is a child of the \f(CW\*(C`warning\*(C'\fR.
  4928. .Sp
  4929. A diagnostic has a \f(CW\*(C`kind\*(C'\fR. If this is \f(CW\*(C`warning\*(C'\fR, then there is
  4930. an \f(CW\*(C`option\*(C'\fR key describing the command-line option controlling the
  4931. warning.
  4932. .Sp
  4933. A diagnostic can contain zero or more locations. Each location has an
  4934. optional \f(CW\*(C`label\*(C'\fR string and up to three positions within it: a
  4935. \&\f(CW\*(C`caret\*(C'\fR position and optional \f(CW\*(C`start\*(C'\fR and \f(CW\*(C`finish\*(C'\fR positions.
  4936. A position is described by a \f(CW\*(C`file\*(C'\fR name, a \f(CW\*(C`line\*(C'\fR number, and
  4937. three numbers indicating a column position:
  4938. .RS 4
  4939. .IP "*" 4
  4940. \&\f(CW\*(C`display\-column\*(C'\fR counts display columns, accounting for tabs and
  4941. multibyte characters.
  4942. .IP "*" 4
  4943. \&\f(CW\*(C`byte\-column\*(C'\fR counts raw bytes.
  4944. .IP "*" 4
  4945. \&\f(CW\*(C`column\*(C'\fR is equal to one of
  4946. the previous two, as dictated by the \fB\-fdiagnostics\-column\-unit\fR
  4947. option.
  4948. .RE
  4949. .RS 4
  4950. .Sp
  4951. All three columns are relative to the origin specified by
  4952. \&\fB\-fdiagnostics\-column\-origin\fR, which is typically equal to 1 but may
  4953. be set, for instance, to 0 for compatibility with other utilities that
  4954. number columns from 0. The column origin is recorded in the \s-1JSON\s0 output in
  4955. the \f(CW\*(C`column\-origin\*(C'\fR tag. In the remaining examples below, the extra
  4956. column number outputs have been omitted for brevity.
  4957. .Sp
  4958. For example, this error:
  4959. .Sp
  4960. .Vb 7
  4961. \& bad\-binary\-ops.c:64:23: error: invalid operands to binary + (have \*(AqS\*(Aq {aka
  4962. \& \*(Aqstruct s\*(Aq} and \*(AqT\*(Aq {aka \*(Aqstruct t\*(Aq})
  4963. \& 64 | return callee_4a () + callee_4b ();
  4964. \& | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
  4965. \& | | |
  4966. \& | | T {aka struct t}
  4967. \& | S {aka struct s}
  4968. .Ve
  4969. .Sp
  4970. has three locations. Its primary location is at the \*(L"+\*(R" token at column
  4971. 23. It has two secondary locations, describing the left and right-hand sides
  4972. of the expression, which have labels. It might be printed in \s-1JSON\s0 form as:
  4973. .Sp
  4974. .Vb 10
  4975. \& {
  4976. \& "children": [],
  4977. \& "kind": "error",
  4978. \& "locations": [
  4979. \& {
  4980. \& "caret": {
  4981. \& "column": 23, "file": "bad\-binary\-ops.c", "line": 64
  4982. \& }
  4983. \& },
  4984. \& {
  4985. \& "caret": {
  4986. \& "column": 10, "file": "bad\-binary\-ops.c", "line": 64
  4987. \& },
  4988. \& "finish": {
  4989. \& "column": 21, "file": "bad\-binary\-ops.c", "line": 64
  4990. \& },
  4991. \& "label": "S {aka struct s}"
  4992. \& },
  4993. \& {
  4994. \& "caret": {
  4995. \& "column": 25, "file": "bad\-binary\-ops.c", "line": 64
  4996. \& },
  4997. \& "finish": {
  4998. \& "column": 36, "file": "bad\-binary\-ops.c", "line": 64
  4999. \& },
  5000. \& "label": "T {aka struct t}"
  5001. \& }
  5002. \& ],
  5003. \& "message": "invalid operands to binary + ..."
  5004. \& }
  5005. .Ve
  5006. .Sp
  5007. If a diagnostic contains fix-it hints, it has a \f(CW\*(C`fixits\*(C'\fR array,
  5008. consisting of half-open intervals, similar to the output of
  5009. \&\fB\-fdiagnostics\-parseable\-fixits\fR. For example, this diagnostic
  5010. with a replacement fix-it hint:
  5011. .Sp
  5012. .Vb 5
  5013. \& demo.c:8:15: error: \*(Aqstruct s\*(Aq has no member named \*(Aqcolour\*(Aq; did you
  5014. \& mean \*(Aqcolor\*(Aq?
  5015. \& 8 | return ptr\->colour;
  5016. \& | ^~~~~~
  5017. \& | color
  5018. .Ve
  5019. .Sp
  5020. might be printed in \s-1JSON\s0 form as:
  5021. .Sp
  5022. .Vb 10
  5023. \& {
  5024. \& "children": [],
  5025. \& "fixits": [
  5026. \& {
  5027. \& "next": {
  5028. \& "column": 21,
  5029. \& "file": "demo.c",
  5030. \& "line": 8
  5031. \& },
  5032. \& "start": {
  5033. \& "column": 15,
  5034. \& "file": "demo.c",
  5035. \& "line": 8
  5036. \& },
  5037. \& "string": "color"
  5038. \& }
  5039. \& ],
  5040. \& "kind": "error",
  5041. \& "locations": [
  5042. \& {
  5043. \& "caret": {
  5044. \& "column": 15,
  5045. \& "file": "demo.c",
  5046. \& "line": 8
  5047. \& },
  5048. \& "finish": {
  5049. \& "column": 20,
  5050. \& "file": "demo.c",
  5051. \& "line": 8
  5052. \& }
  5053. \& }
  5054. \& ],
  5055. \& "message": "\eu2018struct s\eu2019 has no member named ..."
  5056. \& }
  5057. .Ve
  5058. .Sp
  5059. where the fix-it hint suggests replacing the text from \f(CW\*(C`start\*(C'\fR up
  5060. to but not including \f(CW\*(C`next\*(C'\fR with \f(CW\*(C`string\*(C'\fR's value. Deletions
  5061. are expressed via an empty value for \f(CW\*(C`string\*(C'\fR, insertions by
  5062. having \f(CW\*(C`start\*(C'\fR equal \f(CW\*(C`next\*(C'\fR.
  5063. .Sp
  5064. If the diagnostic has a path of control-flow events associated with it,
  5065. it has a \f(CW\*(C`path\*(C'\fR array of objects representing the events. Each
  5066. event object has a \f(CW\*(C`description\*(C'\fR string, a \f(CW\*(C`location\*(C'\fR object,
  5067. along with a \f(CW\*(C`function\*(C'\fR string and a \f(CW\*(C`depth\*(C'\fR number for
  5068. representing interprocedural paths. The \f(CW\*(C`function\*(C'\fR represents the
  5069. current function at that event, and the \f(CW\*(C`depth\*(C'\fR represents the
  5070. stack depth relative to some baseline: the higher, the more frames are
  5071. within the stack.
  5072. .Sp
  5073. For example, the intraprocedural example shown for
  5074. \&\fB\-fdiagnostics\-path\-format=\fR might have this \s-1JSON\s0 for its path:
  5075. .Sp
  5076. .Vb 10
  5077. \& "path": [
  5078. \& {
  5079. \& "depth": 0,
  5080. \& "description": "when \*(AqPyList_New\*(Aq fails, returning NULL",
  5081. \& "function": "test",
  5082. \& "location": {
  5083. \& "column": 10,
  5084. \& "file": "test.c",
  5085. \& "line": 25
  5086. \& }
  5087. \& },
  5088. \& {
  5089. \& "depth": 0,
  5090. \& "description": "when \*(Aqi < count\*(Aq",
  5091. \& "function": "test",
  5092. \& "location": {
  5093. \& "column": 3,
  5094. \& "file": "test.c",
  5095. \& "line": 27
  5096. \& }
  5097. \& },
  5098. \& {
  5099. \& "depth": 0,
  5100. \& "description": "when calling \*(AqPyList_Append\*(Aq, passing NULL from (1) as argument 1",
  5101. \& "function": "test",
  5102. \& "location": {
  5103. \& "column": 5,
  5104. \& "file": "test.c",
  5105. \& "line": 29
  5106. \& }
  5107. \& }
  5108. \& ]
  5109. .Ve
  5110. .RE
  5111. .SS "Options to Request or Suppress Warnings"
  5112. .IX Subsection "Options to Request or Suppress Warnings"
  5113. Warnings are diagnostic messages that report constructions that
  5114. are not inherently erroneous but that are risky or suggest there
  5115. may have been an error.
  5116. .PP
  5117. The following language-independent options do not enable specific
  5118. warnings but control the kinds of diagnostics produced by \s-1GCC.\s0
  5119. .IP "\fB\-fsyntax\-only\fR" 4
  5120. .IX Item "-fsyntax-only"
  5121. Check the code for syntax errors, but don't do anything beyond that.
  5122. .IP "\fB\-fmax\-errors=\fR\fIn\fR" 4
  5123. .IX Item "-fmax-errors=n"
  5124. Limits the maximum number of error messages to \fIn\fR, at which point
  5125. \&\s-1GCC\s0 bails out rather than attempting to continue processing the source
  5126. code. If \fIn\fR is 0 (the default), there is no limit on the number
  5127. of error messages produced. If \fB\-Wfatal\-errors\fR is also
  5128. specified, then \fB\-Wfatal\-errors\fR takes precedence over this
  5129. option.
  5130. .IP "\fB\-w\fR" 4
  5131. .IX Item "-w"
  5132. Inhibit all warning messages.
  5133. .IP "\fB\-Werror\fR" 4
  5134. .IX Item "-Werror"
  5135. Make all warnings into errors.
  5136. .IP "\fB\-Werror=\fR" 4
  5137. .IX Item "-Werror="
  5138. Make the specified warning into an error. The specifier for a warning
  5139. is appended; for example \fB\-Werror=switch\fR turns the warnings
  5140. controlled by \fB\-Wswitch\fR into errors. This switch takes a
  5141. negative form, to be used to negate \fB\-Werror\fR for specific
  5142. warnings; for example \fB\-Wno\-error=switch\fR makes
  5143. \&\fB\-Wswitch\fR warnings not be errors, even when \fB\-Werror\fR
  5144. is in effect.
  5145. .Sp
  5146. The warning message for each controllable warning includes the
  5147. option that controls the warning. That option can then be used with
  5148. \&\fB\-Werror=\fR and \fB\-Wno\-error=\fR as described above.
  5149. (Printing of the option in the warning message can be disabled using the
  5150. \&\fB\-fno\-diagnostics\-show\-option\fR flag.)
  5151. .Sp
  5152. Note that specifying \fB\-Werror=\fR\fIfoo\fR automatically implies
  5153. \&\fB\-W\fR\fIfoo\fR. However, \fB\-Wno\-error=\fR\fIfoo\fR does not
  5154. imply anything.
  5155. .IP "\fB\-Wfatal\-errors\fR" 4
  5156. .IX Item "-Wfatal-errors"
  5157. This option causes the compiler to abort compilation on the first error
  5158. occurred rather than trying to keep going and printing further error
  5159. messages.
  5160. .PP
  5161. You can request many specific warnings with options beginning with
  5162. \&\fB\-W\fR, for example \fB\-Wimplicit\fR to request warnings on
  5163. implicit declarations. Each of these specific warning options also
  5164. has a negative form beginning \fB\-Wno\-\fR to turn off warnings; for
  5165. example, \fB\-Wno\-implicit\fR. This manual lists only one of the
  5166. two forms, whichever is not the default. For further
  5167. language-specific options also refer to \fB\*(C+ Dialect Options\fR and
  5168. \&\fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
  5169. Additional warnings can be produced by enabling the static analyzer;
  5170. .PP
  5171. Some options, such as \fB\-Wall\fR and \fB\-Wextra\fR, turn on other
  5172. options, such as \fB\-Wunused\fR, which may turn on further options,
  5173. such as \fB\-Wunused\-value\fR. The combined effect of positive and
  5174. negative forms is that more specific options have priority over less
  5175. specific ones, independently of their position in the command-line. For
  5176. options of the same specificity, the last one takes effect. Options
  5177. enabled or disabled via pragmas take effect
  5178. as if they appeared at the end of the command-line.
  5179. .PP
  5180. When an unrecognized warning option is requested (e.g.,
  5181. \&\fB\-Wunknown\-warning\fR), \s-1GCC\s0 emits a diagnostic stating
  5182. that the option is not recognized. However, if the \fB\-Wno\-\fR form
  5183. is used, the behavior is slightly different: no diagnostic is
  5184. produced for \fB\-Wno\-unknown\-warning\fR unless other diagnostics
  5185. are being produced. This allows the use of new \fB\-Wno\-\fR options
  5186. with old compilers, but if something goes wrong, the compiler
  5187. warns that an unrecognized option is present.
  5188. .PP
  5189. The effectiveness of some warnings depends on optimizations also being
  5190. enabled. For example \fB\-Wsuggest\-final\-types\fR is more effective
  5191. with link-time optimization and \fB\-Wmaybe\-uninitialized\fR does not
  5192. warn at all unless optimization is enabled.
  5193. .IP "\fB\-Wpedantic\fR" 4
  5194. .IX Item "-Wpedantic"
  5195. .PD 0
  5196. .IP "\fB\-pedantic\fR" 4
  5197. .IX Item "-pedantic"
  5198. .PD
  5199. Issue all the warnings demanded by strict \s-1ISO C\s0 and \s-1ISO \*(C+\s0;
  5200. reject all programs that use forbidden extensions, and some other
  5201. programs that do not follow \s-1ISO C\s0 and \s-1ISO \*(C+.\s0 For \s-1ISO C,\s0 follows the
  5202. version of the \s-1ISO C\s0 standard specified by any \fB\-std\fR option used.
  5203. .Sp
  5204. Valid \s-1ISO C\s0 and \s-1ISO \*(C+\s0 programs should compile properly with or without
  5205. this option (though a rare few require \fB\-ansi\fR or a
  5206. \&\fB\-std\fR option specifying the required version of \s-1ISO C\s0). However,
  5207. without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
  5208. features are supported as well. With this option, they are rejected.
  5209. .Sp
  5210. \&\fB\-Wpedantic\fR does not cause warning messages for use of the
  5211. alternate keywords whose names begin and end with \fB_\|_\fR. This alternate
  5212. format can also be used to disable warnings for non-ISO \fB_\|_intN\fR types,
  5213. i.e. \fB_\|_intN_\|_\fR.
  5214. Pedantic warnings are also disabled in the expression that follows
  5215. \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR. However, only system header files should use
  5216. these escape routes; application programs should avoid them.
  5217. .Sp
  5218. Some users try to use \fB\-Wpedantic\fR to check programs for strict \s-1ISO
  5219. C\s0 conformance. They soon find that it does not do quite what they want:
  5220. it finds some non-ISO practices, but not all\-\-\-only those for which
  5221. \&\s-1ISO C\s0 \fIrequires\fR a diagnostic, and some others for which
  5222. diagnostics have been added.
  5223. .Sp
  5224. A feature to report any failure to conform to \s-1ISO C\s0 might be useful in
  5225. some instances, but would require considerable additional work and would
  5226. be quite different from \fB\-Wpedantic\fR. We don't have plans to
  5227. support such a feature in the near future.
  5228. .Sp
  5229. Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
  5230. extended dialect of C, such as \fBgnu90\fR or \fBgnu99\fR, there is a
  5231. corresponding \fIbase standard\fR, the version of \s-1ISO C\s0 on which the \s-1GNU\s0
  5232. extended dialect is based. Warnings from \fB\-Wpedantic\fR are given
  5233. where they are required by the base standard. (It does not make sense
  5234. for such warnings to be given only for features not in the specified \s-1GNU
  5235. C\s0 dialect, since by definition the \s-1GNU\s0 dialects of C include all
  5236. features the compiler supports with the given option, and there would be
  5237. nothing to warn about.)
  5238. .IP "\fB\-pedantic\-errors\fR" 4
  5239. .IX Item "-pedantic-errors"
  5240. Give an error whenever the \fIbase standard\fR (see \fB\-Wpedantic\fR)
  5241. requires a diagnostic, in some cases where there is undefined behavior
  5242. at compile-time and in some other cases that do not prevent compilation
  5243. of programs that are valid according to the standard. This is not
  5244. equivalent to \fB\-Werror=pedantic\fR, since there are errors enabled
  5245. by this option and not enabled by the latter and vice versa.
  5246. .IP "\fB\-Wall\fR" 4
  5247. .IX Item "-Wall"
  5248. This enables all the warnings about constructions that some users
  5249. consider questionable, and that are easy to avoid (or modify to
  5250. prevent the warning), even in conjunction with macros. This also
  5251. enables some language-specific warnings described in \fB\*(C+ Dialect
  5252. Options\fR and \fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
  5253. .Sp
  5254. \&\fB\-Wall\fR turns on the following warning flags:
  5255. .Sp
  5256. \&\fB\-Waddress
  5257. \&\-Warray\-bounds=1\fR (only with\fB \fR\fB\-O2\fR)
  5258. \&\fB\-Warray\-parameter=2\fR (C and Objective-C only)
  5259. \&\fB\-Wbool\-compare
  5260. \&\-Wbool\-operation
  5261. \&\-Wc++11\-compat \-Wc++14\-compat
  5262. \&\-Wcatch\-value\fR (\*(C+ and Objective\-\*(C+ only)
  5263. \&\fB\-Wchar\-subscripts
  5264. \&\-Wcomment
  5265. \&\-Wduplicate\-decl\-specifier\fR (C and Objective-C only)
  5266. \&\fB\-Wenum\-compare\fR (in C/ObjC; this is on by default in \*(C+)
  5267. \&\fB\-Wformat
  5268. \&\-Wformat\-overflow
  5269. \&\-Wformat\-truncation
  5270. \&\-Wint\-in\-bool\-context
  5271. \&\-Wimplicit\fR (C and Objective-C only)
  5272. \&\fB\-Wimplicit\-int\fR (C and Objective-C only)
  5273. \&\fB\-Wimplicit\-function\-declaration\fR (C and Objective-C only)
  5274. \&\fB\-Winit\-self\fR (only for \*(C+)
  5275. \&\fB\-Wlogical\-not\-parentheses
  5276. \&\-Wmain\fR (only for C/ObjC and unless\fB \fR\fB\-ffreestanding\fR)
  5277. \&\fB\-Wmaybe\-uninitialized
  5278. \&\-Wmemset\-elt\-size
  5279. \&\-Wmemset\-transposed\-args
  5280. \&\-Wmisleading\-indentation\fR (only for C/\*(C+)
  5281. \&\fB\-Wmissing\-attributes
  5282. \&\-Wmissing\-braces\fR (only for C/ObjC)
  5283. \&\fB\-Wmultistatement\-macros
  5284. \&\-Wnarrowing\fR (only for \*(C+)
  5285. \&\fB\-Wnonnull
  5286. \&\-Wnonnull\-compare
  5287. \&\-Wopenmp\-simd
  5288. \&\-Wparentheses
  5289. \&\-Wpessimizing\-move\fR (only for \*(C+)
  5290. \&\fB\-Wpointer\-sign
  5291. \&\-Wrange\-loop\-construct\fR (only for \*(C+)
  5292. \&\fB\-Wreorder
  5293. \&\-Wrestrict
  5294. \&\-Wreturn\-type
  5295. \&\-Wsequence\-point
  5296. \&\-Wsign\-compare\fR (only in \*(C+)
  5297. \&\fB\-Wsizeof\-array\-div
  5298. \&\-Wsizeof\-pointer\-div
  5299. \&\-Wsizeof\-pointer\-memaccess
  5300. \&\-Wstrict\-aliasing
  5301. \&\-Wstrict\-overflow=1
  5302. \&\-Wswitch
  5303. \&\-Wtautological\-compare
  5304. \&\-Wtrigraphs
  5305. \&\-Wuninitialized
  5306. \&\-Wunknown\-pragmas
  5307. \&\-Wunused\-function
  5308. \&\-Wunused\-label
  5309. \&\-Wunused\-value
  5310. \&\-Wunused\-variable
  5311. \&\-Wvla\-parameter\fR (C and Objective-C only)
  5312. \&\fB\-Wvolatile\-register\-var
  5313. \&\-Wzero\-length\-bounds\fR
  5314. .Sp
  5315. Note that some warning flags are not implied by \fB\-Wall\fR. Some of
  5316. them warn about constructions that users generally do not consider
  5317. questionable, but which occasionally you might wish to check for;
  5318. others warn about constructions that are necessary or hard to avoid in
  5319. some cases, and there is no simple way to modify the code to suppress
  5320. the warning. Some of them are enabled by \fB\-Wextra\fR but many of
  5321. them must be enabled individually.
  5322. .IP "\fB\-Wextra\fR" 4
  5323. .IX Item "-Wextra"
  5324. This enables some extra warning flags that are not enabled by
  5325. \&\fB\-Wall\fR. (This option used to be called \fB\-W\fR. The older
  5326. name is still supported, but the newer name is more descriptive.)
  5327. .Sp
  5328. \&\fB\-Wclobbered
  5329. \&\-Wcast\-function\-type
  5330. \&\-Wdeprecated\-copy\fR (\*(C+ only)
  5331. \&\fB\-Wempty\-body
  5332. \&\-Wenum\-conversion\fR (C only)
  5333. \&\fB\-Wignored\-qualifiers
  5334. \&\-Wimplicit\-fallthrough=3
  5335. \&\-Wmissing\-field\-initializers
  5336. \&\-Wmissing\-parameter\-type\fR (C only)
  5337. \&\fB\-Wold\-style\-declaration\fR (C only)
  5338. \&\fB\-Woverride\-init
  5339. \&\-Wsign\-compare\fR (C only)
  5340. \&\fB\-Wstring\-compare
  5341. \&\-Wredundant\-move\fR (only for \*(C+)
  5342. \&\fB\-Wtype\-limits
  5343. \&\-Wuninitialized
  5344. \&\-Wshift\-negative\-value\fR (in \*(C+03 and in C99 and newer)
  5345. \&\fB\-Wunused\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR)
  5346. \&\fB\-Wunused\-but\-set\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR)
  5347. .Sp
  5348. The option \fB\-Wextra\fR also prints warning messages for the
  5349. following cases:
  5350. .RS 4
  5351. .IP "*" 4
  5352. A pointer is compared against integer zero with \f(CW\*(C`<\*(C'\fR, \f(CW\*(C`<=\*(C'\fR,
  5353. \&\f(CW\*(C`>\*(C'\fR, or \f(CW\*(C`>=\*(C'\fR.
  5354. .IP "*" 4
  5355. (\*(C+ only) An enumerator and a non-enumerator both appear in a
  5356. conditional expression.
  5357. .IP "*" 4
  5358. (\*(C+ only) Ambiguous virtual bases.
  5359. .IP "*" 4
  5360. (\*(C+ only) Subscripting an array that has been declared \f(CW\*(C`register\*(C'\fR.
  5361. .IP "*" 4
  5362. (\*(C+ only) Taking the address of a variable that has been declared
  5363. \&\f(CW\*(C`register\*(C'\fR.
  5364. .IP "*" 4
  5365. (\*(C+ only) A base class is not initialized in the copy constructor
  5366. of a derived class.
  5367. .RE
  5368. .RS 4
  5369. .RE
  5370. .IP "\fB\-Wabi\fR (C, Objective-C, \*(C+ and Objective\-\*(C+ only)" 4
  5371. .IX Item "-Wabi (C, Objective-C, and Objective- only)"
  5372. Warn about code affected by \s-1ABI\s0 changes. This includes code that may
  5373. not be compatible with the vendor-neutral \*(C+ \s-1ABI\s0 as well as the psABI
  5374. for the particular target.
  5375. .Sp
  5376. Since G++ now defaults to updating the \s-1ABI\s0 with each major release,
  5377. normally \fB\-Wabi\fR warns only about \*(C+ \s-1ABI\s0 compatibility
  5378. problems if there is a check added later in a release series for an
  5379. \&\s-1ABI\s0 issue discovered since the initial release. \fB\-Wabi\fR warns
  5380. about more things if an older \s-1ABI\s0 version is selected (with
  5381. \&\fB\-fabi\-version=\fR\fIn\fR).
  5382. .Sp
  5383. \&\fB\-Wabi\fR can also be used with an explicit version number to
  5384. warn about \*(C+ \s-1ABI\s0 compatibility with a particular \fB\-fabi\-version\fR
  5385. level, e.g. \fB\-Wabi=2\fR to warn about changes relative to
  5386. \&\fB\-fabi\-version=2\fR.
  5387. .Sp
  5388. If an explicit version number is provided and
  5389. \&\fB\-fabi\-compat\-version\fR is not specified, the version number
  5390. from this option is used for compatibility aliases. If no explicit
  5391. version number is provided with this option, but
  5392. \&\fB\-fabi\-compat\-version\fR is specified, that version number is
  5393. used for \*(C+ \s-1ABI\s0 warnings.
  5394. .Sp
  5395. Although an effort has been made to warn about
  5396. all such cases, there are probably some cases that are not warned about,
  5397. even though G++ is generating incompatible code. There may also be
  5398. cases where warnings are emitted even though the code that is generated
  5399. is compatible.
  5400. .Sp
  5401. You should rewrite your code to avoid these warnings if you are
  5402. concerned about the fact that code generated by G++ may not be binary
  5403. compatible with code generated by other compilers.
  5404. .Sp
  5405. Known incompatibilities in \fB\-fabi\-version=2\fR (which was the
  5406. default from \s-1GCC 3.4\s0 to 4.9) include:
  5407. .RS 4
  5408. .IP "*" 4
  5409. A template with a non-type template parameter of reference type was
  5410. mangled incorrectly:
  5411. .Sp
  5412. .Vb 3
  5413. \& extern int N;
  5414. \& template <int &> struct S {};
  5415. \& void n (S<N>) {2}
  5416. .Ve
  5417. .Sp
  5418. This was fixed in \fB\-fabi\-version=3\fR.
  5419. .IP "*" 4
  5420. \&\s-1SIMD\s0 vector types declared using \f(CW\*(C`_\|_attribute ((vector_size))\*(C'\fR were
  5421. mangled in a non-standard way that does not allow for overloading of
  5422. functions taking vectors of different sizes.
  5423. .Sp
  5424. The mangling was changed in \fB\-fabi\-version=4\fR.
  5425. .IP "*" 4
  5426. \&\f(CW\*(C`_\|_attribute ((const))\*(C'\fR and \f(CW\*(C`noreturn\*(C'\fR were mangled as type
  5427. qualifiers, and \f(CW\*(C`decltype\*(C'\fR of a plain declaration was folded away.
  5428. .Sp
  5429. These mangling issues were fixed in \fB\-fabi\-version=5\fR.
  5430. .IP "*" 4
  5431. Scoped enumerators passed as arguments to a variadic function are
  5432. promoted like unscoped enumerators, causing \f(CW\*(C`va_arg\*(C'\fR to complain.
  5433. On most targets this does not actually affect the parameter passing
  5434. \&\s-1ABI,\s0 as there is no way to pass an argument smaller than \f(CW\*(C`int\*(C'\fR.
  5435. .Sp
  5436. Also, the \s-1ABI\s0 changed the mangling of template argument packs,
  5437. \&\f(CW\*(C`const_cast\*(C'\fR, \f(CW\*(C`static_cast\*(C'\fR, prefix increment/decrement, and
  5438. a class scope function used as a template argument.
  5439. .Sp
  5440. These issues were corrected in \fB\-fabi\-version=6\fR.
  5441. .IP "*" 4
  5442. Lambdas in default argument scope were mangled incorrectly, and the
  5443. \&\s-1ABI\s0 changed the mangling of \f(CW\*(C`nullptr_t\*(C'\fR.
  5444. .Sp
  5445. These issues were corrected in \fB\-fabi\-version=7\fR.
  5446. .IP "*" 4
  5447. When mangling a function type with function-cv-qualifiers, the
  5448. un-qualified function type was incorrectly treated as a substitution
  5449. candidate.
  5450. .Sp
  5451. This was fixed in \fB\-fabi\-version=8\fR, the default for \s-1GCC 5.1.\s0
  5452. .IP "*" 4
  5453. \&\f(CW\*(C`decltype(nullptr)\*(C'\fR incorrectly had an alignment of 1, leading to
  5454. unaligned accesses. Note that this did not affect the \s-1ABI\s0 of a
  5455. function with a \f(CW\*(C`nullptr_t\*(C'\fR parameter, as parameters have a
  5456. minimum alignment.
  5457. .Sp
  5458. This was fixed in \fB\-fabi\-version=9\fR, the default for \s-1GCC 5.2.\s0
  5459. .IP "*" 4
  5460. Target-specific attributes that affect the identity of a type, such as
  5461. ia32 calling conventions on a function type (stdcall, regparm, etc.),
  5462. did not affect the mangled name, leading to name collisions when
  5463. function pointers were used as template arguments.
  5464. .Sp
  5465. This was fixed in \fB\-fabi\-version=10\fR, the default for \s-1GCC 6.1.\s0
  5466. .RE
  5467. .RS 4
  5468. .Sp
  5469. This option also enables warnings about psABI-related changes.
  5470. The known psABI changes at this point include:
  5471. .IP "*" 4
  5472. For SysV/x86\-64, unions with \f(CW\*(C`long double\*(C'\fR members are
  5473. passed in memory as specified in psABI. Prior to \s-1GCC 4.4,\s0 this was not
  5474. the case. For example:
  5475. .Sp
  5476. .Vb 4
  5477. \& union U {
  5478. \& long double ld;
  5479. \& int i;
  5480. \& };
  5481. .Ve
  5482. .Sp
  5483. \&\f(CW\*(C`union U\*(C'\fR is now always passed in memory.
  5484. .RE
  5485. .RS 4
  5486. .RE
  5487. .IP "\fB\-Wchar\-subscripts\fR" 4
  5488. .IX Item "-Wchar-subscripts"
  5489. Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR. This is a common cause
  5490. of error, as programmers often forget that this type is signed on some
  5491. machines.
  5492. This warning is enabled by \fB\-Wall\fR.
  5493. .IP "\fB\-Wno\-coverage\-mismatch\fR" 4
  5494. .IX Item "-Wno-coverage-mismatch"
  5495. Warn if feedback profiles do not match when using the
  5496. \&\fB\-fprofile\-use\fR option.
  5497. If a source file is changed between compiling with \fB\-fprofile\-generate\fR
  5498. and with \fB\-fprofile\-use\fR, the files with the profile feedback can fail
  5499. to match the source file and \s-1GCC\s0 cannot use the profile feedback
  5500. information. By default, this warning is enabled and is treated as an
  5501. error. \fB\-Wno\-coverage\-mismatch\fR can be used to disable the
  5502. warning or \fB\-Wno\-error=coverage\-mismatch\fR can be used to
  5503. disable the error. Disabling the error for this warning can result in
  5504. poorly optimized code and is useful only in the
  5505. case of very minor changes such as bug fixes to an existing code-base.
  5506. Completely disabling the warning is not recommended.
  5507. .IP "\fB\-Wno\-cpp\fR" 4
  5508. .IX Item "-Wno-cpp"
  5509. (C, Objective-C, \*(C+, Objective\-\*(C+ and Fortran only)
  5510. Suppress warning messages emitted by \f(CW\*(C`#warning\*(C'\fR directives.
  5511. .IP "\fB\-Wdouble\-promotion\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
  5512. .IX Item "-Wdouble-promotion (C, , Objective-C and Objective- only)"
  5513. Give a warning when a value of type \f(CW\*(C`float\*(C'\fR is implicitly
  5514. promoted to \f(CW\*(C`double\*(C'\fR. CPUs with a 32\-bit \*(L"single-precision\*(R"
  5515. floating-point unit implement \f(CW\*(C`float\*(C'\fR in hardware, but emulate
  5516. \&\f(CW\*(C`double\*(C'\fR in software. On such a machine, doing computations
  5517. using \f(CW\*(C`double\*(C'\fR values is much more expensive because of the
  5518. overhead required for software emulation.
  5519. .Sp
  5520. It is easy to accidentally do computations with \f(CW\*(C`double\*(C'\fR because
  5521. floating-point literals are implicitly of type \f(CW\*(C`double\*(C'\fR. For
  5522. example, in:
  5523. .Sp
  5524. .Vb 4
  5525. \& float area(float radius)
  5526. \& {
  5527. \& return 3.14159 * radius * radius;
  5528. \& }
  5529. .Ve
  5530. .Sp
  5531. the compiler performs the entire computation with \f(CW\*(C`double\*(C'\fR
  5532. because the floating-point literal is a \f(CW\*(C`double\*(C'\fR.
  5533. .IP "\fB\-Wduplicate\-decl\-specifier\fR (C and Objective-C only)" 4
  5534. .IX Item "-Wduplicate-decl-specifier (C and Objective-C only)"
  5535. Warn if a declaration has duplicate \f(CW\*(C`const\*(C'\fR, \f(CW\*(C`volatile\*(C'\fR,
  5536. \&\f(CW\*(C`restrict\*(C'\fR or \f(CW\*(C`_Atomic\*(C'\fR specifier. This warning is enabled by
  5537. \&\fB\-Wall\fR.
  5538. .IP "\fB\-Wformat\fR" 4
  5539. .IX Item "-Wformat"
  5540. .PD 0
  5541. .IP "\fB\-Wformat=\fR\fIn\fR" 4
  5542. .IX Item "-Wformat=n"
  5543. .PD
  5544. Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
  5545. the arguments supplied have types appropriate to the format string
  5546. specified, and that the conversions specified in the format string make
  5547. sense. This includes standard functions, and others specified by format
  5548. attributes, in the \f(CW\*(C`printf\*(C'\fR,
  5549. \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
  5550. not in the C standard) families (or other target-specific families).
  5551. Which functions are checked without format attributes having been
  5552. specified depends on the standard version selected, and such checks of
  5553. functions without the attribute specified are disabled by
  5554. \&\fB\-ffreestanding\fR or \fB\-fno\-builtin\fR.
  5555. .Sp
  5556. The formats are checked against the format features supported by \s-1GNU\s0
  5557. libc version 2.2. These include all \s-1ISO C90\s0 and C99 features, as well
  5558. as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
  5559. extensions. Other library implementations may not support all these
  5560. features; \s-1GCC\s0 does not support warning about features that go beyond a
  5561. particular library's limitations. However, if \fB\-Wpedantic\fR is used
  5562. with \fB\-Wformat\fR, warnings are given about format features not
  5563. in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
  5564. since those are not in any version of the C standard).
  5565. .RS 4
  5566. .IP "\fB\-Wformat=1\fR" 4
  5567. .IX Item "-Wformat=1"
  5568. .PD 0
  5569. .IP "\fB\-Wformat\fR" 4
  5570. .IX Item "-Wformat"
  5571. .PD
  5572. Option \fB\-Wformat\fR is equivalent to \fB\-Wformat=1\fR, and
  5573. \&\fB\-Wno\-format\fR is equivalent to \fB\-Wformat=0\fR. Since
  5574. \&\fB\-Wformat\fR also checks for null format arguments for several
  5575. functions, \fB\-Wformat\fR also implies \fB\-Wnonnull\fR. Some
  5576. aspects of this level of format checking can be disabled by the
  5577. options: \fB\-Wno\-format\-contains\-nul\fR,
  5578. \&\fB\-Wno\-format\-extra\-args\fR, and \fB\-Wno\-format\-zero\-length\fR.
  5579. \&\fB\-Wformat\fR is enabled by \fB\-Wall\fR.
  5580. .IP "\fB\-Wformat=2\fR" 4
  5581. .IX Item "-Wformat=2"
  5582. Enable \fB\-Wformat\fR plus additional format checks. Currently
  5583. equivalent to \fB\-Wformat \-Wformat\-nonliteral \-Wformat\-security
  5584. \&\-Wformat\-y2k\fR.
  5585. .RE
  5586. .RS 4
  5587. .RE
  5588. .IP "\fB\-Wno\-format\-contains\-nul\fR" 4
  5589. .IX Item "-Wno-format-contains-nul"
  5590. If \fB\-Wformat\fR is specified, do not warn about format strings that
  5591. contain \s-1NUL\s0 bytes.
  5592. .IP "\fB\-Wno\-format\-extra\-args\fR" 4
  5593. .IX Item "-Wno-format-extra-args"
  5594. If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
  5595. \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function. The C standard specifies
  5596. that such arguments are ignored.
  5597. .Sp
  5598. Where the unused arguments lie between used arguments that are
  5599. specified with \fB$\fR operand number specifications, normally
  5600. warnings are still given, since the implementation could not know what
  5601. type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments. However,
  5602. in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option suppresses the
  5603. warning if the unused arguments are all pointers, since the Single
  5604. Unix Specification says that such unused arguments are allowed.
  5605. .IP "\fB\-Wformat\-overflow\fR" 4
  5606. .IX Item "-Wformat-overflow"
  5607. .PD 0
  5608. .IP "\fB\-Wformat\-overflow=\fR\fIlevel\fR" 4
  5609. .IX Item "-Wformat-overflow=level"
  5610. .PD
  5611. Warn about calls to formatted input/output functions such as \f(CW\*(C`sprintf\*(C'\fR
  5612. and \f(CW\*(C`vsprintf\*(C'\fR that might overflow the destination buffer. When the
  5613. exact number of bytes written by a format directive cannot be determined
  5614. at compile-time it is estimated based on heuristics that depend on the
  5615. \&\fIlevel\fR argument and on optimization. While enabling optimization
  5616. will in most cases improve the accuracy of the warning, it may also
  5617. result in false positives.
  5618. .RS 4
  5619. .IP "\fB\-Wformat\-overflow\fR" 4
  5620. .IX Item "-Wformat-overflow"
  5621. .PD 0
  5622. .IP "\fB\-Wformat\-overflow=1\fR" 4
  5623. .IX Item "-Wformat-overflow=1"
  5624. .PD
  5625. Level \fI1\fR of \fB\-Wformat\-overflow\fR enabled by \fB\-Wformat\fR
  5626. employs a conservative approach that warns only about calls that most
  5627. likely overflow the buffer. At this level, numeric arguments to format
  5628. directives with unknown values are assumed to have the value of one, and
  5629. strings of unknown length to be empty. Numeric arguments that are known
  5630. to be bounded to a subrange of their type, or string arguments whose output
  5631. is bounded either by their directive's precision or by a finite set of
  5632. string literals, are assumed to take on the value within the range that
  5633. results in the most bytes on output. For example, the call to \f(CW\*(C`sprintf\*(C'\fR
  5634. below is diagnosed because even with both \fIa\fR and \fIb\fR equal to zero,
  5635. the terminating \s-1NUL\s0 character (\f(CW\*(Aq\e0\*(Aq\fR) appended by the function
  5636. to the destination buffer will be written past its end. Increasing
  5637. the size of the buffer by a single byte is sufficient to avoid the
  5638. warning, though it may not be sufficient to avoid the overflow.
  5639. .Sp
  5640. .Vb 5
  5641. \& void f (int a, int b)
  5642. \& {
  5643. \& char buf [13];
  5644. \& sprintf (buf, "a = %i, b = %i\en", a, b);
  5645. \& }
  5646. .Ve
  5647. .IP "\fB\-Wformat\-overflow=2\fR" 4
  5648. .IX Item "-Wformat-overflow=2"
  5649. Level \fI2\fR warns also about calls that might overflow the destination
  5650. buffer given an argument of sufficient length or magnitude. At level
  5651. \&\fI2\fR, unknown numeric arguments are assumed to have the minimum
  5652. representable value for signed types with a precision greater than 1, and
  5653. the maximum representable value otherwise. Unknown string arguments whose
  5654. length cannot be assumed to be bounded either by the directive's precision,
  5655. or by a finite set of string literals they may evaluate to, or the character
  5656. array they may point to, are assumed to be 1 character long.
  5657. .Sp
  5658. At level \fI2\fR, the call in the example above is again diagnosed, but
  5659. this time because with \fIa\fR equal to a 32\-bit \f(CW\*(C`INT_MIN\*(C'\fR the first
  5660. \&\f(CW%i\fR directive will write some of its digits beyond the end of
  5661. the destination buffer. To make the call safe regardless of the values
  5662. of the two variables, the size of the destination buffer must be increased
  5663. to at least 34 bytes. \s-1GCC\s0 includes the minimum size of the buffer in
  5664. an informational note following the warning.
  5665. .Sp
  5666. An alternative to increasing the size of the destination buffer is to
  5667. constrain the range of formatted values. The maximum length of string
  5668. arguments can be bounded by specifying the precision in the format
  5669. directive. When numeric arguments of format directives can be assumed
  5670. to be bounded by less than the precision of their type, choosing
  5671. an appropriate length modifier to the format specifier will reduce
  5672. the required buffer size. For example, if \fIa\fR and \fIb\fR in the
  5673. example above can be assumed to be within the precision of
  5674. the \f(CW\*(C`short int\*(C'\fR type then using either the \f(CW%hi\fR format
  5675. directive or casting the argument to \f(CW\*(C`short\*(C'\fR reduces the maximum
  5676. required size of the buffer to 24 bytes.
  5677. .Sp
  5678. .Vb 5
  5679. \& void f (int a, int b)
  5680. \& {
  5681. \& char buf [23];
  5682. \& sprintf (buf, "a = %hi, b = %i\en", a, (short)b);
  5683. \& }
  5684. .Ve
  5685. .RE
  5686. .RS 4
  5687. .RE
  5688. .IP "\fB\-Wno\-format\-zero\-length\fR" 4
  5689. .IX Item "-Wno-format-zero-length"
  5690. If \fB\-Wformat\fR is specified, do not warn about zero-length formats.
  5691. The C standard specifies that zero-length formats are allowed.
  5692. .IP "\fB\-Wformat\-nonliteral\fR" 4
  5693. .IX Item "-Wformat-nonliteral"
  5694. If \fB\-Wformat\fR is specified, also warn if the format string is not a
  5695. string literal and so cannot be checked, unless the format function
  5696. takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
  5697. .IP "\fB\-Wformat\-security\fR" 4
  5698. .IX Item "-Wformat-security"
  5699. If \fB\-Wformat\fR is specified, also warn about uses of format
  5700. functions that represent possible security problems. At present, this
  5701. warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
  5702. format string is not a string literal and there are no format arguments,
  5703. as in \f(CW\*(C`printf (foo);\*(C'\fR. This may be a security hole if the format
  5704. string came from untrusted input and contains \fB\f(CB%n\fB\fR. (This is
  5705. currently a subset of what \fB\-Wformat\-nonliteral\fR warns about, but
  5706. in future warnings may be added to \fB\-Wformat\-security\fR that are not
  5707. included in \fB\-Wformat\-nonliteral\fR.)
  5708. .IP "\fB\-Wformat\-signedness\fR" 4
  5709. .IX Item "-Wformat-signedness"
  5710. If \fB\-Wformat\fR is specified, also warn if the format string
  5711. requires an unsigned argument and the argument is signed and vice versa.
  5712. .IP "\fB\-Wformat\-truncation\fR" 4
  5713. .IX Item "-Wformat-truncation"
  5714. .PD 0
  5715. .IP "\fB\-Wformat\-truncation=\fR\fIlevel\fR" 4
  5716. .IX Item "-Wformat-truncation=level"
  5717. .PD
  5718. Warn about calls to formatted input/output functions such as \f(CW\*(C`snprintf\*(C'\fR
  5719. and \f(CW\*(C`vsnprintf\*(C'\fR that might result in output truncation. When the exact
  5720. number of bytes written by a format directive cannot be determined at
  5721. compile-time it is estimated based on heuristics that depend on
  5722. the \fIlevel\fR argument and on optimization. While enabling optimization
  5723. will in most cases improve the accuracy of the warning, it may also result
  5724. in false positives. Except as noted otherwise, the option uses the same
  5725. logic \fB\-Wformat\-overflow\fR.
  5726. .RS 4
  5727. .IP "\fB\-Wformat\-truncation\fR" 4
  5728. .IX Item "-Wformat-truncation"
  5729. .PD 0
  5730. .IP "\fB\-Wformat\-truncation=1\fR" 4
  5731. .IX Item "-Wformat-truncation=1"
  5732. .PD
  5733. Level \fI1\fR of \fB\-Wformat\-truncation\fR enabled by \fB\-Wformat\fR
  5734. employs a conservative approach that warns only about calls to bounded
  5735. functions whose return value is unused and that will most likely result
  5736. in output truncation.
  5737. .IP "\fB\-Wformat\-truncation=2\fR" 4
  5738. .IX Item "-Wformat-truncation=2"
  5739. Level \fI2\fR warns also about calls to bounded functions whose return
  5740. value is used and that might result in truncation given an argument of
  5741. sufficient length or magnitude.
  5742. .RE
  5743. .RS 4
  5744. .RE
  5745. .IP "\fB\-Wformat\-y2k\fR" 4
  5746. .IX Item "-Wformat-y2k"
  5747. If \fB\-Wformat\fR is specified, also warn about \f(CW\*(C`strftime\*(C'\fR
  5748. formats that may yield only a two-digit year.
  5749. .IP "\fB\-Wnonnull\fR" 4
  5750. .IX Item "-Wnonnull"
  5751. Warn about passing a null pointer for arguments marked as
  5752. requiring a non-null value by the \f(CW\*(C`nonnull\*(C'\fR function attribute.
  5753. .Sp
  5754. \&\fB\-Wnonnull\fR is included in \fB\-Wall\fR and \fB\-Wformat\fR. It
  5755. can be disabled with the \fB\-Wno\-nonnull\fR option.
  5756. .IP "\fB\-Wnonnull\-compare\fR" 4
  5757. .IX Item "-Wnonnull-compare"
  5758. Warn when comparing an argument marked with the \f(CW\*(C`nonnull\*(C'\fR
  5759. function attribute against null inside the function.
  5760. .Sp
  5761. \&\fB\-Wnonnull\-compare\fR is included in \fB\-Wall\fR. It
  5762. can be disabled with the \fB\-Wno\-nonnull\-compare\fR option.
  5763. .IP "\fB\-Wnull\-dereference\fR" 4
  5764. .IX Item "-Wnull-dereference"
  5765. Warn if the compiler detects paths that trigger erroneous or
  5766. undefined behavior due to dereferencing a null pointer. This option
  5767. is only active when \fB\-fdelete\-null\-pointer\-checks\fR is active,
  5768. which is enabled by optimizations in most targets. The precision of
  5769. the warnings depends on the optimization options used.
  5770. .IP "\fB\-Winit\-self\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
  5771. .IX Item "-Winit-self (C, , Objective-C and Objective- only)"
  5772. Warn about uninitialized variables that are initialized with themselves.
  5773. Note this option can only be used with the \fB\-Wuninitialized\fR option.
  5774. .Sp
  5775. For example, \s-1GCC\s0 warns about \f(CW\*(C`i\*(C'\fR being uninitialized in the
  5776. following snippet only when \fB\-Winit\-self\fR has been specified:
  5777. .Sp
  5778. .Vb 5
  5779. \& int f()
  5780. \& {
  5781. \& int i = i;
  5782. \& return i;
  5783. \& }
  5784. .Ve
  5785. .Sp
  5786. This warning is enabled by \fB\-Wall\fR in \*(C+.
  5787. .IP "\fB\-Wno\-implicit\-int\fR (C and Objective-C only)" 4
  5788. .IX Item "-Wno-implicit-int (C and Objective-C only)"
  5789. This option controls warnings when a declaration does not specify a type.
  5790. This warning is enabled by default in C99 and later dialects of C,
  5791. and also by \fB\-Wall\fR.
  5792. .IP "\fB\-Wno\-implicit\-function\-declaration\fR (C and Objective-C only)" 4
  5793. .IX Item "-Wno-implicit-function-declaration (C and Objective-C only)"
  5794. This option controls warnings when a function is used before being declared.
  5795. This warning is enabled by default in C99 and later dialects of C,
  5796. and also by \fB\-Wall\fR.
  5797. The warning is made into an error by \fB\-pedantic\-errors\fR.
  5798. .IP "\fB\-Wimplicit\fR (C and Objective-C only)" 4
  5799. .IX Item "-Wimplicit (C and Objective-C only)"
  5800. Same as \fB\-Wimplicit\-int\fR and \fB\-Wimplicit\-function\-declaration\fR.
  5801. This warning is enabled by \fB\-Wall\fR.
  5802. .IP "\fB\-Wimplicit\-fallthrough\fR" 4
  5803. .IX Item "-Wimplicit-fallthrough"
  5804. \&\fB\-Wimplicit\-fallthrough\fR is the same as \fB\-Wimplicit\-fallthrough=3\fR
  5805. and \fB\-Wno\-implicit\-fallthrough\fR is the same as
  5806. \&\fB\-Wimplicit\-fallthrough=0\fR.
  5807. .IP "\fB\-Wimplicit\-fallthrough=\fR\fIn\fR" 4
  5808. .IX Item "-Wimplicit-fallthrough=n"
  5809. Warn when a switch case falls through. For example:
  5810. .Sp
  5811. .Vb 11
  5812. \& switch (cond)
  5813. \& {
  5814. \& case 1:
  5815. \& a = 1;
  5816. \& break;
  5817. \& case 2:
  5818. \& a = 2;
  5819. \& case 3:
  5820. \& a = 3;
  5821. \& break;
  5822. \& }
  5823. .Ve
  5824. .Sp
  5825. This warning does not warn when the last statement of a case cannot
  5826. fall through, e.g. when there is a return statement or a call to function
  5827. declared with the noreturn attribute. \fB\-Wimplicit\-fallthrough=\fR
  5828. also takes into account control flow statements, such as ifs, and only
  5829. warns when appropriate. E.g.
  5830. .Sp
  5831. .Vb 10
  5832. \& switch (cond)
  5833. \& {
  5834. \& case 1:
  5835. \& if (i > 3) {
  5836. \& bar (5);
  5837. \& break;
  5838. \& } else if (i < 1) {
  5839. \& bar (0);
  5840. \& } else
  5841. \& return;
  5842. \& default:
  5843. \& ...
  5844. \& }
  5845. .Ve
  5846. .Sp
  5847. Since there are occasions where a switch case fall through is desirable,
  5848. \&\s-1GCC\s0 provides an attribute, \f(CW\*(C`_\|_attribute_\|_ ((fallthrough))\*(C'\fR, that is
  5849. to be used along with a null statement to suppress this warning that
  5850. would normally occur:
  5851. .Sp
  5852. .Vb 8
  5853. \& switch (cond)
  5854. \& {
  5855. \& case 1:
  5856. \& bar (0);
  5857. \& _\|_attribute_\|_ ((fallthrough));
  5858. \& default:
  5859. \& ...
  5860. \& }
  5861. .Ve
  5862. .Sp
  5863. \&\*(C+17 provides a standard way to suppress the \fB\-Wimplicit\-fallthrough\fR
  5864. warning using \f(CW\*(C`[[fallthrough]];\*(C'\fR instead of the \s-1GNU\s0 attribute. In \*(C+11
  5865. or \*(C+14 users can use \f(CW\*(C`[[gnu::fallthrough]];\*(C'\fR, which is a \s-1GNU\s0 extension.
  5866. Instead of these attributes, it is also possible to add a fallthrough comment
  5867. to silence the warning. The whole body of the C or \*(C+ style comment should
  5868. match the given regular expressions listed below. The option argument \fIn\fR
  5869. specifies what kind of comments are accepted:
  5870. .RS 4
  5871. .IP "*<\fB\-Wimplicit\-fallthrough=0\fR disables the warning altogether.>" 4
  5872. .IX Item "*<-Wimplicit-fallthrough=0 disables the warning altogether.>"
  5873. .PD 0
  5874. .ie n .IP "*<\fB\-Wimplicit\-fallthrough=1\fR matches "".*"" regular>" 4
  5875. .el .IP "*<\fB\-Wimplicit\-fallthrough=1\fR matches \f(CW.*\fR regular>" 4
  5876. .IX Item "*<-Wimplicit-fallthrough=1 matches .* regular>"
  5877. .PD
  5878. expression, any comment is used as fallthrough comment.
  5879. .IP "*<\fB\-Wimplicit\-fallthrough=2\fR case insensitively matches>" 4
  5880. .IX Item "*<-Wimplicit-fallthrough=2 case insensitively matches>"
  5881. \&\f(CW\*(C`.*falls?[ \et\-]*thr(ough|u).*\*(C'\fR regular expression.
  5882. .IP "*<\fB\-Wimplicit\-fallthrough=3\fR case sensitively matches one of the>" 4
  5883. .IX Item "*<-Wimplicit-fallthrough=3 case sensitively matches one of the>"
  5884. following regular expressions:
  5885. .RS 4
  5886. .ie n .IP "*<""\-fallthrough"">" 4
  5887. .el .IP "*<\f(CW\-fallthrough\fR>" 4
  5888. .IX Item "*<-fallthrough>"
  5889. .PD 0
  5890. .ie n .IP "*<""@fallthrough@"">" 4
  5891. .el .IP "*<\f(CW@fallthrough@\fR>" 4
  5892. .IX Item "*<@fallthrough@>"
  5893. .ie n .IP "*<""lint \-fallthrough[ \et]*"">" 4
  5894. .el .IP "*<\f(CWlint \-fallthrough[ \et]*\fR>" 4
  5895. .IX Item "*<lint -fallthrough[ t]*>"
  5896. .ie n .IP "*<""[ \et.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |\-)?THR(OUGH|U)[ \et.!]*(\-[^\en\er]*)?"">" 4
  5897. .el .IP "*<\f(CW[ \et.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |\-)?THR(OUGH|U)[ \et.!]*(\-[^\en\er]*)?\fR>" 4
  5898. .IX Item "*<[ t.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |-)?THR(OUGH|U)[ t.!]*(-[^nr]*)?>"
  5899. .ie n .IP "*<""[ \et.!]*(Else,? |Intentional(ly)? )?Fall((s | |\-)[Tt]|t)hr(ough|u)[ \et.!]*(\-[^\en\er]*)?"">" 4
  5900. .el .IP "*<\f(CW[ \et.!]*(Else,? |Intentional(ly)? )?Fall((s | |\-)[Tt]|t)hr(ough|u)[ \et.!]*(\-[^\en\er]*)?\fR>" 4
  5901. .IX Item "*<[ t.!]*(Else,? |Intentional(ly)? )?Fall((s | |-)[Tt]|t)hr(ough|u)[ t.!]*(-[^nr]*)?>"
  5902. .ie n .IP "*<""[ \et.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |\-)?thr(ough|u)[ \et.!]*(\-[^\en\er]*)?"">" 4
  5903. .el .IP "*<\f(CW[ \et.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |\-)?thr(ough|u)[ \et.!]*(\-[^\en\er]*)?\fR>" 4
  5904. .IX Item "*<[ t.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |-)?thr(ough|u)[ t.!]*(-[^nr]*)?>"
  5905. .RE
  5906. .RS 4
  5907. .RE
  5908. .IP "*<\fB\-Wimplicit\-fallthrough=4\fR case sensitively matches one of the>" 4
  5909. .IX Item "*<-Wimplicit-fallthrough=4 case sensitively matches one of the>"
  5910. .PD
  5911. following regular expressions:
  5912. .RS 4
  5913. .ie n .IP "*<""\-fallthrough"">" 4
  5914. .el .IP "*<\f(CW\-fallthrough\fR>" 4
  5915. .IX Item "*<-fallthrough>"
  5916. .PD 0
  5917. .ie n .IP "*<""@fallthrough@"">" 4
  5918. .el .IP "*<\f(CW@fallthrough@\fR>" 4
  5919. .IX Item "*<@fallthrough@>"
  5920. .ie n .IP "*<""lint \-fallthrough[ \et]*"">" 4
  5921. .el .IP "*<\f(CWlint \-fallthrough[ \et]*\fR>" 4
  5922. .IX Item "*<lint -fallthrough[ t]*>"
  5923. .ie n .IP "*<""[ \et]*FALLTHR(OUGH|U)[ \et]*"">" 4
  5924. .el .IP "*<\f(CW[ \et]*FALLTHR(OUGH|U)[ \et]*\fR>" 4
  5925. .IX Item "*<[ t]*FALLTHR(OUGH|U)[ t]*>"
  5926. .RE
  5927. .RS 4
  5928. .RE
  5929. .IP "*<\fB\-Wimplicit\-fallthrough=5\fR doesn't recognize any comments as>" 4
  5930. .IX Item "*<-Wimplicit-fallthrough=5 doesn't recognize any comments as>"
  5931. .PD
  5932. fallthrough comments, only attributes disable the warning.
  5933. .RE
  5934. .RS 4
  5935. .Sp
  5936. The comment needs to be followed after optional whitespace and other comments
  5937. by \f(CW\*(C`case\*(C'\fR or \f(CW\*(C`default\*(C'\fR keywords or by a user label that precedes some
  5938. \&\f(CW\*(C`case\*(C'\fR or \f(CW\*(C`default\*(C'\fR label.
  5939. .Sp
  5940. .Vb 8
  5941. \& switch (cond)
  5942. \& {
  5943. \& case 1:
  5944. \& bar (0);
  5945. \& /* FALLTHRU */
  5946. \& default:
  5947. \& ...
  5948. \& }
  5949. .Ve
  5950. .Sp
  5951. The \fB\-Wimplicit\-fallthrough=3\fR warning is enabled by \fB\-Wextra\fR.
  5952. .RE
  5953. .IP "\fB\-Wno\-if\-not\-aligned\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
  5954. .IX Item "-Wno-if-not-aligned (C, , Objective-C and Objective- only)"
  5955. Control if warnings triggered by the \f(CW\*(C`warn_if_not_aligned\*(C'\fR attribute
  5956. should be issued. These warnings are enabled by default.
  5957. .IP "\fB\-Wignored\-qualifiers\fR (C and \*(C+ only)" 4
  5958. .IX Item "-Wignored-qualifiers (C and only)"
  5959. Warn if the return type of a function has a type qualifier
  5960. such as \f(CW\*(C`const\*(C'\fR. For \s-1ISO C\s0 such a type qualifier has no effect,
  5961. since the value returned by a function is not an lvalue.
  5962. For \*(C+, the warning is only emitted for scalar types or \f(CW\*(C`void\*(C'\fR.
  5963. \&\s-1ISO C\s0 prohibits qualified \f(CW\*(C`void\*(C'\fR return types on function
  5964. definitions, so such return types always receive a warning
  5965. even without this option.
  5966. .Sp
  5967. This warning is also enabled by \fB\-Wextra\fR.
  5968. .IP "\fB\-Wno\-ignored\-attributes\fR (C and \*(C+ only)" 4
  5969. .IX Item "-Wno-ignored-attributes (C and only)"
  5970. This option controls warnings when an attribute is ignored.
  5971. This is different from the
  5972. \&\fB\-Wattributes\fR option in that it warns whenever the compiler decides
  5973. to drop an attribute, not that the attribute is either unknown, used in a
  5974. wrong place, etc. This warning is enabled by default.
  5975. .IP "\fB\-Wmain\fR" 4
  5976. .IX Item "-Wmain"
  5977. Warn if the type of \f(CW\*(C`main\*(C'\fR is suspicious. \f(CW\*(C`main\*(C'\fR should be
  5978. a function with external linkage, returning int, taking either zero
  5979. arguments, two, or three arguments of appropriate types. This warning
  5980. is enabled by default in \*(C+ and is enabled by either \fB\-Wall\fR
  5981. or \fB\-Wpedantic\fR.
  5982. .IP "\fB\-Wmisleading\-indentation\fR (C and \*(C+ only)" 4
  5983. .IX Item "-Wmisleading-indentation (C and only)"
  5984. Warn when the indentation of the code does not reflect the block structure.
  5985. Specifically, a warning is issued for \f(CW\*(C`if\*(C'\fR, \f(CW\*(C`else\*(C'\fR, \f(CW\*(C`while\*(C'\fR, and
  5986. \&\f(CW\*(C`for\*(C'\fR clauses with a guarded statement that does not use braces,
  5987. followed by an unguarded statement with the same indentation.
  5988. .Sp
  5989. In the following example, the call to \*(L"bar\*(R" is misleadingly indented as
  5990. if it were guarded by the \*(L"if\*(R" conditional.
  5991. .Sp
  5992. .Vb 3
  5993. \& if (some_condition ())
  5994. \& foo ();
  5995. \& bar (); /* Gotcha: this is not guarded by the "if". */
  5996. .Ve
  5997. .Sp
  5998. In the case of mixed tabs and spaces, the warning uses the
  5999. \&\fB\-ftabstop=\fR option to determine if the statements line up
  6000. (defaulting to 8).
  6001. .Sp
  6002. The warning is not issued for code involving multiline preprocessor logic
  6003. such as the following example.
  6004. .Sp
  6005. .Vb 6
  6006. \& if (flagA)
  6007. \& foo (0);
  6008. \& #if SOME_CONDITION_THAT_DOES_NOT_HOLD
  6009. \& if (flagB)
  6010. \& #endif
  6011. \& foo (1);
  6012. .Ve
  6013. .Sp
  6014. The warning is not issued after a \f(CW\*(C`#line\*(C'\fR directive, since this
  6015. typically indicates autogenerated code, and no assumptions can be made
  6016. about the layout of the file that the directive references.
  6017. .Sp
  6018. This warning is enabled by \fB\-Wall\fR in C and \*(C+.
  6019. .IP "\fB\-Wmissing\-attributes\fR" 4
  6020. .IX Item "-Wmissing-attributes"
  6021. Warn when a declaration of a function is missing one or more attributes
  6022. that a related function is declared with and whose absence may adversely
  6023. affect the correctness or efficiency of generated code. For example,
  6024. the warning is issued for declarations of aliases that use attributes
  6025. to specify less restrictive requirements than those of their targets.
  6026. This typically represents a potential optimization opportunity.
  6027. By contrast, the \fB\-Wattribute\-alias=2\fR option controls warnings
  6028. issued when the alias is more restrictive than the target, which could
  6029. lead to incorrect code generation.
  6030. Attributes considered include \f(CW\*(C`alloc_align\*(C'\fR, \f(CW\*(C`alloc_size\*(C'\fR,
  6031. \&\f(CW\*(C`cold\*(C'\fR, \f(CW\*(C`const\*(C'\fR, \f(CW\*(C`hot\*(C'\fR, \f(CW\*(C`leaf\*(C'\fR, \f(CW\*(C`malloc\*(C'\fR,
  6032. \&\f(CW\*(C`nonnull\*(C'\fR, \f(CW\*(C`noreturn\*(C'\fR, \f(CW\*(C`nothrow\*(C'\fR, \f(CW\*(C`pure\*(C'\fR,
  6033. \&\f(CW\*(C`returns_nonnull\*(C'\fR, and \f(CW\*(C`returns_twice\*(C'\fR.
  6034. .Sp
  6035. In \*(C+, the warning is issued when an explicit specialization of a primary
  6036. template declared with attribute \f(CW\*(C`alloc_align\*(C'\fR, \f(CW\*(C`alloc_size\*(C'\fR,
  6037. \&\f(CW\*(C`assume_aligned\*(C'\fR, \f(CW\*(C`format\*(C'\fR, \f(CW\*(C`format_arg\*(C'\fR, \f(CW\*(C`malloc\*(C'\fR,
  6038. or \f(CW\*(C`nonnull\*(C'\fR is declared without it. Attributes \f(CW\*(C`deprecated\*(C'\fR,
  6039. \&\f(CW\*(C`error\*(C'\fR, and \f(CW\*(C`warning\*(C'\fR suppress the warning..
  6040. .Sp
  6041. You can use the \f(CW\*(C`copy\*(C'\fR attribute to apply the same
  6042. set of attributes to a declaration as that on another declaration without
  6043. explicitly enumerating the attributes. This attribute can be applied
  6044. to declarations of functions,
  6045. variables, or types.
  6046. .Sp
  6047. \&\fB\-Wmissing\-attributes\fR is enabled by \fB\-Wall\fR.
  6048. .Sp
  6049. For example, since the declaration of the primary function template
  6050. below makes use of both attribute \f(CW\*(C`malloc\*(C'\fR and \f(CW\*(C`alloc_size\*(C'\fR
  6051. the declaration of the explicit specialization of the template is
  6052. diagnosed because it is missing one of the attributes.
  6053. .Sp
  6054. .Vb 3
  6055. \& template <class T>
  6056. \& T* _\|_attribute_\|_ ((malloc, alloc_size (1)))
  6057. \& allocate (size_t);
  6058. \&
  6059. \& template <>
  6060. \& void* _\|_attribute_\|_ ((malloc)) // missing alloc_size
  6061. \& allocate<void> (size_t);
  6062. .Ve
  6063. .IP "\fB\-Wmissing\-braces\fR" 4
  6064. .IX Item "-Wmissing-braces"
  6065. Warn if an aggregate or union initializer is not fully bracketed. In
  6066. the following example, the initializer for \f(CW\*(C`a\*(C'\fR is not fully
  6067. bracketed, but that for \f(CW\*(C`b\*(C'\fR is fully bracketed.
  6068. .Sp
  6069. .Vb 2
  6070. \& int a[2][2] = { 0, 1, 2, 3 };
  6071. \& int b[2][2] = { { 0, 1 }, { 2, 3 } };
  6072. .Ve
  6073. .Sp
  6074. This warning is enabled by \fB\-Wall\fR.
  6075. .IP "\fB\-Wmissing\-include\-dirs\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
  6076. .IX Item "-Wmissing-include-dirs (C, , Objective-C and Objective- only)"
  6077. Warn if a user-supplied include directory does not exist.
  6078. .IP "\fB\-Wno\-missing\-profile\fR" 4
  6079. .IX Item "-Wno-missing-profile"
  6080. This option controls warnings if feedback profiles are missing when using the
  6081. \&\fB\-fprofile\-use\fR option.
  6082. This option diagnoses those cases where a new function or a new file is added
  6083. between compiling with \fB\-fprofile\-generate\fR and with
  6084. \&\fB\-fprofile\-use\fR, without regenerating the profiles.
  6085. In these cases, the profile feedback data files do not contain any
  6086. profile feedback information for
  6087. the newly added function or file respectively. Also, in the case when profile
  6088. count data (.gcda) files are removed, \s-1GCC\s0 cannot use any profile feedback
  6089. information. In all these cases, warnings are issued to inform you that a
  6090. profile generation step is due.
  6091. Ignoring the warning can result in poorly optimized code.
  6092. \&\fB\-Wno\-missing\-profile\fR can be used to
  6093. disable the warning, but this is not recommended and should be done only
  6094. when non-existent profile data is justified.
  6095. .IP "\fB\-Wno\-mismatched\-dealloc\fR" 4
  6096. .IX Item "-Wno-mismatched-dealloc"
  6097. Warn for calls to deallocation functions with pointer arguments returned
  6098. from from allocations functions for which the former isn't a suitable
  6099. deallocator. A pair of functions can be associated as matching allocators
  6100. and deallocators by use of attribute \f(CW\*(C`malloc\*(C'\fR. Unless disabled by
  6101. the \fB\-fno\-builtin\fR option the standard functions \f(CW\*(C`calloc\*(C'\fR,
  6102. \&\f(CW\*(C`malloc\*(C'\fR, \f(CW\*(C`realloc\*(C'\fR, and \f(CW\*(C`free\*(C'\fR, as well as the corresponding
  6103. forms of \*(C+ \f(CW\*(C`operator new\*(C'\fR and \f(CW\*(C`operator delete\*(C'\fR are implicitly
  6104. associated as matching allocators and deallocators. In the following
  6105. example \f(CW\*(C`mydealloc\*(C'\fR is the deallocator for pointers returned from
  6106. \&\f(CW\*(C`myalloc\*(C'\fR.
  6107. .Sp
  6108. .Vb 1
  6109. \& void mydealloc (void*);
  6110. \&
  6111. \& _\|_attribute_\|_ ((malloc (mydealloc, 1))) void*
  6112. \& myalloc (size_t);
  6113. \&
  6114. \& void f (void)
  6115. \& {
  6116. \& void *p = myalloc (32);
  6117. \& // ...use p...
  6118. \& free (p); // warning: not a matching deallocator for myalloc
  6119. \& mydealloc (p); // ok
  6120. \& }
  6121. .Ve
  6122. .Sp
  6123. In \*(C+, the related option \fB\-Wmismatched\-new\-delete\fR diagnoses
  6124. mismatches involving either \f(CW\*(C`operator new\*(C'\fR or \f(CW\*(C`operator delete\*(C'\fR.
  6125. .Sp
  6126. Option \fB\-Wmismatched\-dealloc\fR is enabled by default.
  6127. .IP "\fB\-Wmultistatement\-macros\fR" 4
  6128. .IX Item "-Wmultistatement-macros"
  6129. Warn about unsafe multiple statement macros that appear to be guarded
  6130. by a clause such as \f(CW\*(C`if\*(C'\fR, \f(CW\*(C`else\*(C'\fR, \f(CW\*(C`for\*(C'\fR, \f(CW\*(C`switch\*(C'\fR, or
  6131. \&\f(CW\*(C`while\*(C'\fR, in which only the first statement is actually guarded after
  6132. the macro is expanded.
  6133. .Sp
  6134. For example:
  6135. .Sp
  6136. .Vb 3
  6137. \& #define DOIT x++; y++
  6138. \& if (c)
  6139. \& DOIT;
  6140. .Ve
  6141. .Sp
  6142. will increment \f(CW\*(C`y\*(C'\fR unconditionally, not just when \f(CW\*(C`c\*(C'\fR holds.
  6143. The can usually be fixed by wrapping the macro in a do-while loop:
  6144. .Sp
  6145. .Vb 3
  6146. \& #define DOIT do { x++; y++; } while (0)
  6147. \& if (c)
  6148. \& DOIT;
  6149. .Ve
  6150. .Sp
  6151. This warning is enabled by \fB\-Wall\fR in C and \*(C+.
  6152. .IP "\fB\-Wparentheses\fR" 4
  6153. .IX Item "-Wparentheses"
  6154. Warn if parentheses are omitted in certain contexts, such
  6155. as when there is an assignment in a context where a truth value
  6156. is expected, or when operators are nested whose precedence people
  6157. often get confused about.
  6158. .Sp
  6159. Also warn if a comparison like \f(CW\*(C`x<=y<=z\*(C'\fR appears; this is
  6160. equivalent to \f(CW\*(C`(x<=y ? 1 : 0) <= z\*(C'\fR, which is a different
  6161. interpretation from that of ordinary mathematical notation.
  6162. .Sp
  6163. Also warn for dangerous uses of the \s-1GNU\s0 extension to
  6164. \&\f(CW\*(C`?:\*(C'\fR with omitted middle operand. When the condition
  6165. in the \f(CW\*(C`?\*(C'\fR: operator is a boolean expression, the omitted value is
  6166. always 1. Often programmers expect it to be a value computed
  6167. inside the conditional expression instead.
  6168. .Sp
  6169. For \*(C+ this also warns for some cases of unnecessary parentheses in
  6170. declarations, which can indicate an attempt at a function call instead
  6171. of a declaration:
  6172. .Sp
  6173. .Vb 5
  6174. \& {
  6175. \& // Declares a local variable called mymutex.
  6176. \& std::unique_lock<std::mutex> (mymutex);
  6177. \& // User meant std::unique_lock<std::mutex> lock (mymutex);
  6178. \& }
  6179. .Ve
  6180. .Sp
  6181. This warning is enabled by \fB\-Wall\fR.
  6182. .IP "\fB\-Wsequence\-point\fR" 4
  6183. .IX Item "-Wsequence-point"
  6184. Warn about code that may have undefined semantics because of violations
  6185. of sequence point rules in the C and \*(C+ standards.
  6186. .Sp
  6187. The C and \*(C+ standards define the order in which expressions in a C/\*(C+
  6188. program are evaluated in terms of \fIsequence points\fR, which represent
  6189. a partial ordering between the execution of parts of the program: those
  6190. executed before the sequence point, and those executed after it. These
  6191. occur after the evaluation of a full expression (one which is not part
  6192. of a larger expression), after the evaluation of the first operand of a
  6193. \&\f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, \f(CW\*(C`? :\*(C'\fR or \f(CW\*(C`,\*(C'\fR (comma) operator, before a
  6194. function is called (but after the evaluation of its arguments and the
  6195. expression denoting the called function), and in certain other places.
  6196. Other than as expressed by the sequence point rules, the order of
  6197. evaluation of subexpressions of an expression is not specified. All
  6198. these rules describe only a partial order rather than a total order,
  6199. since, for example, if two functions are called within one expression
  6200. with no sequence point between them, the order in which the functions
  6201. are called is not specified. However, the standards committee have
  6202. ruled that function calls do not overlap.
  6203. .Sp
  6204. It is not specified when between sequence points modifications to the
  6205. values of objects take effect. Programs whose behavior depends on this
  6206. have undefined behavior; the C and \*(C+ standards specify that \*(L"Between
  6207. the previous and next sequence point an object shall have its stored
  6208. value modified at most once by the evaluation of an expression.
  6209. Furthermore, the prior value shall be read only to determine the value
  6210. to be stored.\*(R". If a program breaks these rules, the results on any
  6211. particular implementation are entirely unpredictable.
  6212. .Sp
  6213. Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
  6214. = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR. Some more complicated cases are not
  6215. diagnosed by this option, and it may give an occasional false positive
  6216. result, but in general it has been found fairly effective at detecting
  6217. this sort of problem in programs.
  6218. .Sp
  6219. The \*(C+17 standard will define the order of evaluation of operands in
  6220. more cases: in particular it requires that the right-hand side of an
  6221. assignment be evaluated before the left-hand side, so the above
  6222. examples are no longer undefined. But this option will still warn
  6223. about them, to help people avoid writing code that is undefined in C
  6224. and earlier revisions of \*(C+.
  6225. .Sp
  6226. The standard is worded confusingly, therefore there is some debate
  6227. over the precise meaning of the sequence point rules in subtle cases.
  6228. Links to discussions of the problem, including proposed formal
  6229. definitions, may be found on the \s-1GCC\s0 readings page, at
  6230. <\fBhttp://gcc.gnu.org/readings.html\fR>.
  6231. .Sp
  6232. This warning is enabled by \fB\-Wall\fR for C and \*(C+.
  6233. .IP "\fB\-Wno\-return\-local\-addr\fR" 4
  6234. .IX Item "-Wno-return-local-addr"
  6235. Do not warn about returning a pointer (or in \*(C+, a reference) to a
  6236. variable that goes out of scope after the function returns.
  6237. .IP "\fB\-Wreturn\-type\fR" 4
  6238. .IX Item "-Wreturn-type"
  6239. Warn whenever a function is defined with a return type that defaults
  6240. to \f(CW\*(C`int\*(C'\fR. Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
  6241. return value in a function whose return type is not \f(CW\*(C`void\*(C'\fR
  6242. (falling off the end of the function body is considered returning
  6243. without a value).
  6244. .Sp
  6245. For C only, warn about a \f(CW\*(C`return\*(C'\fR statement with an expression in a
  6246. function whose return type is \f(CW\*(C`void\*(C'\fR, unless the expression type is
  6247. also \f(CW\*(C`void\*(C'\fR. As a \s-1GNU\s0 extension, the latter case is accepted
  6248. without a warning unless \fB\-Wpedantic\fR is used. Attempting
  6249. to use the return value of a non\-\f(CW\*(C`void\*(C'\fR function other than \f(CW\*(C`main\*(C'\fR
  6250. that flows off the end by reaching the closing curly brace that terminates
  6251. the function is undefined.
  6252. .Sp
  6253. Unlike in C, in \*(C+, flowing off the end of a non\-\f(CW\*(C`void\*(C'\fR function other
  6254. than \f(CW\*(C`main\*(C'\fR results in undefined behavior even when the value of
  6255. the function is not used.
  6256. .Sp
  6257. This warning is enabled by default in \*(C+ and by \fB\-Wall\fR otherwise.
  6258. .IP "\fB\-Wno\-shift\-count\-negative\fR" 4
  6259. .IX Item "-Wno-shift-count-negative"
  6260. Controls warnings if a shift count is negative.
  6261. This warning is enabled by default.
  6262. .IP "\fB\-Wno\-shift\-count\-overflow\fR" 4
  6263. .IX Item "-Wno-shift-count-overflow"
  6264. Controls warnings if a shift count is greater than or equal to the bit width
  6265. of the type. This warning is enabled by default.
  6266. .IP "\fB\-Wshift\-negative\-value\fR" 4
  6267. .IX Item "-Wshift-negative-value"
  6268. Warn if left shifting a negative value. This warning is enabled by
  6269. \&\fB\-Wextra\fR in C99 and \*(C+11 modes (and newer).
  6270. .IP "\fB\-Wno\-shift\-overflow\fR" 4
  6271. .IX Item "-Wno-shift-overflow"
  6272. .PD 0
  6273. .IP "\fB\-Wshift\-overflow=\fR\fIn\fR" 4
  6274. .IX Item "-Wshift-overflow=n"
  6275. .PD
  6276. These options control warnings about left shift overflows.
  6277. .RS 4
  6278. .IP "\fB\-Wshift\-overflow=1\fR" 4
  6279. .IX Item "-Wshift-overflow=1"
  6280. This is the warning level of \fB\-Wshift\-overflow\fR and is enabled
  6281. by default in C99 and \*(C+11 modes (and newer). This warning level does
  6282. not warn about left-shifting 1 into the sign bit. (However, in C, such
  6283. an overflow is still rejected in contexts where an integer constant expression
  6284. is required.) No warning is emitted in \*(C+20 mode (and newer), as signed left
  6285. shifts always wrap.
  6286. .IP "\fB\-Wshift\-overflow=2\fR" 4
  6287. .IX Item "-Wshift-overflow=2"
  6288. This warning level also warns about left-shifting 1 into the sign bit,
  6289. unless \*(C+14 mode (or newer) is active.
  6290. .RE
  6291. .RS 4
  6292. .RE
  6293. .IP "\fB\-Wswitch\fR" 4
  6294. .IX Item "-Wswitch"
  6295. Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
  6296. and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
  6297. enumeration. (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
  6298. warning.) \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
  6299. provoke warnings when this option is used (even if there is a
  6300. \&\f(CW\*(C`default\*(C'\fR label).
  6301. This warning is enabled by \fB\-Wall\fR.
  6302. .IP "\fB\-Wswitch\-default\fR" 4
  6303. .IX Item "-Wswitch-default"
  6304. Warn whenever a \f(CW\*(C`switch\*(C'\fR statement does not have a \f(CW\*(C`default\*(C'\fR
  6305. case.
  6306. .IP "\fB\-Wswitch\-enum\fR" 4
  6307. .IX Item "-Wswitch-enum"
  6308. Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
  6309. and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
  6310. enumeration. \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
  6311. provoke warnings when this option is used. The only difference
  6312. between \fB\-Wswitch\fR and this option is that this option gives a
  6313. warning about an omitted enumeration code even if there is a
  6314. \&\f(CW\*(C`default\*(C'\fR label.
  6315. .IP "\fB\-Wno\-switch\-bool\fR" 4
  6316. .IX Item "-Wno-switch-bool"
  6317. Do not warn when a \f(CW\*(C`switch\*(C'\fR statement has an index of boolean type
  6318. and the case values are outside the range of a boolean type.
  6319. It is possible to suppress this warning by casting the controlling
  6320. expression to a type other than \f(CW\*(C`bool\*(C'\fR. For example:
  6321. .Sp
  6322. .Vb 4
  6323. \& switch ((int) (a == 4))
  6324. \& {
  6325. \& ...
  6326. \& }
  6327. .Ve
  6328. .Sp
  6329. This warning is enabled by default for C and \*(C+ programs.
  6330. .IP "\fB\-Wno\-switch\-outside\-range\fR" 4
  6331. .IX Item "-Wno-switch-outside-range"
  6332. This option controls warnings when a \f(CW\*(C`switch\*(C'\fR case has a value
  6333. that is outside of its
  6334. respective type range. This warning is enabled by default for
  6335. C and \*(C+ programs.
  6336. .IP "\fB\-Wno\-switch\-unreachable\fR" 4
  6337. .IX Item "-Wno-switch-unreachable"
  6338. Do not warn when a \f(CW\*(C`switch\*(C'\fR statement contains statements between the
  6339. controlling expression and the first case label, which will never be
  6340. executed. For example:
  6341. .Sp
  6342. .Vb 7
  6343. \& switch (cond)
  6344. \& {
  6345. \& i = 15;
  6346. \& ...
  6347. \& case 5:
  6348. \& ...
  6349. \& }
  6350. .Ve
  6351. .Sp
  6352. \&\fB\-Wswitch\-unreachable\fR does not warn if the statement between the
  6353. controlling expression and the first case label is just a declaration:
  6354. .Sp
  6355. .Vb 8
  6356. \& switch (cond)
  6357. \& {
  6358. \& int i;
  6359. \& ...
  6360. \& case 5:
  6361. \& i = 5;
  6362. \& ...
  6363. \& }
  6364. .Ve
  6365. .Sp
  6366. This warning is enabled by default for C and \*(C+ programs.
  6367. .IP "\fB\-Wsync\-nand\fR (C and \*(C+ only)" 4
  6368. .IX Item "-Wsync-nand (C and only)"
  6369. Warn when \f(CW\*(C`_\|_sync_fetch_and_nand\*(C'\fR and \f(CW\*(C`_\|_sync_nand_and_fetch\*(C'\fR
  6370. built-in functions are used. These functions changed semantics in \s-1GCC 4.4.\s0
  6371. .IP "\fB\-Wunused\-but\-set\-parameter\fR" 4
  6372. .IX Item "-Wunused-but-set-parameter"
  6373. Warn whenever a function parameter is assigned to, but otherwise unused
  6374. (aside from its declaration).
  6375. .Sp
  6376. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  6377. .Sp
  6378. This warning is also enabled by \fB\-Wunused\fR together with
  6379. \&\fB\-Wextra\fR.
  6380. .IP "\fB\-Wunused\-but\-set\-variable\fR" 4
  6381. .IX Item "-Wunused-but-set-variable"
  6382. Warn whenever a local variable is assigned to, but otherwise unused
  6383. (aside from its declaration).
  6384. This warning is enabled by \fB\-Wall\fR.
  6385. .Sp
  6386. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  6387. .Sp
  6388. This warning is also enabled by \fB\-Wunused\fR, which is enabled
  6389. by \fB\-Wall\fR.
  6390. .IP "\fB\-Wunused\-function\fR" 4
  6391. .IX Item "-Wunused-function"
  6392. Warn whenever a static function is declared but not defined or a
  6393. non-inline static function is unused.
  6394. This warning is enabled by \fB\-Wall\fR.
  6395. .IP "\fB\-Wunused\-label\fR" 4
  6396. .IX Item "-Wunused-label"
  6397. Warn whenever a label is declared but not used.
  6398. This warning is enabled by \fB\-Wall\fR.
  6399. .Sp
  6400. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  6401. .IP "\fB\-Wunused\-local\-typedefs\fR (C, Objective-C, \*(C+ and Objective\-\*(C+ only)" 4
  6402. .IX Item "-Wunused-local-typedefs (C, Objective-C, and Objective- only)"
  6403. Warn when a typedef locally defined in a function is not used.
  6404. This warning is enabled by \fB\-Wall\fR.
  6405. .IP "\fB\-Wunused\-parameter\fR" 4
  6406. .IX Item "-Wunused-parameter"
  6407. Warn whenever a function parameter is unused aside from its declaration.
  6408. .Sp
  6409. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  6410. .IP "\fB\-Wno\-unused\-result\fR" 4
  6411. .IX Item "-Wno-unused-result"
  6412. Do not warn if a caller of a function marked with attribute
  6413. \&\f(CW\*(C`warn_unused_result\*(C'\fR does not use
  6414. its return value. The default is \fB\-Wunused\-result\fR.
  6415. .IP "\fB\-Wunused\-variable\fR" 4
  6416. .IX Item "-Wunused-variable"
  6417. Warn whenever a local or static variable is unused aside from its
  6418. declaration. This option implies \fB\-Wunused\-const\-variable=1\fR for C,
  6419. but not for \*(C+. This warning is enabled by \fB\-Wall\fR.
  6420. .Sp
  6421. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  6422. .IP "\fB\-Wunused\-const\-variable\fR" 4
  6423. .IX Item "-Wunused-const-variable"
  6424. .PD 0
  6425. .IP "\fB\-Wunused\-const\-variable=\fR\fIn\fR" 4
  6426. .IX Item "-Wunused-const-variable=n"
  6427. .PD
  6428. Warn whenever a constant static variable is unused aside from its declaration.
  6429. \&\fB\-Wunused\-const\-variable=1\fR is enabled by \fB\-Wunused\-variable\fR
  6430. for C, but not for \*(C+. In C this declares variable storage, but in \*(C+ this
  6431. is not an error since const variables take the place of \f(CW\*(C`#define\*(C'\fRs.
  6432. .Sp
  6433. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  6434. .RS 4
  6435. .IP "\fB\-Wunused\-const\-variable=1\fR" 4
  6436. .IX Item "-Wunused-const-variable=1"
  6437. This is the warning level that is enabled by \fB\-Wunused\-variable\fR for
  6438. C. It warns only about unused static const variables defined in the main
  6439. compilation unit, but not about static const variables declared in any
  6440. header included.
  6441. .IP "\fB\-Wunused\-const\-variable=2\fR" 4
  6442. .IX Item "-Wunused-const-variable=2"
  6443. This warning level also warns for unused constant static variables in
  6444. headers (excluding system headers). This is the warning level of
  6445. \&\fB\-Wunused\-const\-variable\fR and must be explicitly requested since
  6446. in \*(C+ this isn't an error and in C it might be harder to clean up all
  6447. headers included.
  6448. .RE
  6449. .RS 4
  6450. .RE
  6451. .IP "\fB\-Wunused\-value\fR" 4
  6452. .IX Item "-Wunused-value"
  6453. Warn whenever a statement computes a result that is explicitly not
  6454. used. To suppress this warning cast the unused expression to
  6455. \&\f(CW\*(C`void\*(C'\fR. This includes an expression-statement or the left-hand
  6456. side of a comma expression that contains no side effects. For example,
  6457. an expression such as \f(CW\*(C`x[i,j]\*(C'\fR causes a warning, while
  6458. \&\f(CW\*(C`x[(void)i,j]\*(C'\fR does not.
  6459. .Sp
  6460. This warning is enabled by \fB\-Wall\fR.
  6461. .IP "\fB\-Wunused\fR" 4
  6462. .IX Item "-Wunused"
  6463. All the above \fB\-Wunused\fR options combined.
  6464. .Sp
  6465. In order to get a warning about an unused function parameter, you must
  6466. either specify \fB\-Wextra \-Wunused\fR (note that \fB\-Wall\fR implies
  6467. \&\fB\-Wunused\fR), or separately specify \fB\-Wunused\-parameter\fR.
  6468. .IP "\fB\-Wuninitialized\fR" 4
  6469. .IX Item "-Wuninitialized"
  6470. Warn if an object with automatic or allocated storage duration is used
  6471. without having been initialized. In \*(C+, also warn if a non-static
  6472. reference or non-static \f(CW\*(C`const\*(C'\fR member appears in a class without
  6473. constructors.
  6474. .Sp
  6475. In addition, passing a pointer (or in \*(C+, a reference) to an uninitialized
  6476. object to a \f(CW\*(C`const\*(C'\fR\-qualified argument of a built-in function known to
  6477. read the object is also diagnosed by this warning.
  6478. (\fB\-Wmaybe\-uninitialized\fR is issued for ordinary functions.)
  6479. .Sp
  6480. If you want to warn about code that uses the uninitialized value of the
  6481. variable in its own initializer, use the \fB\-Winit\-self\fR option.
  6482. .Sp
  6483. These warnings occur for individual uninitialized elements of
  6484. structure, union or array variables as well as for variables that are
  6485. uninitialized as a whole. They do not occur for variables or elements
  6486. declared \f(CW\*(C`volatile\*(C'\fR. Because these warnings depend on
  6487. optimization, the exact variables or elements for which there are
  6488. warnings depend on the precise optimization options and version of \s-1GCC\s0
  6489. used.
  6490. .Sp
  6491. Note that there may be no warning about a variable that is used only
  6492. to compute a value that itself is never used, because such
  6493. computations may be deleted by data flow analysis before the warnings
  6494. are printed.
  6495. .IP "\fB\-Wno\-invalid\-memory\-model\fR" 4
  6496. .IX Item "-Wno-invalid-memory-model"
  6497. This option controls warnings
  6498. for invocations of \fB_\|_atomic Builtins\fR, \fB_\|_sync Builtins\fR,
  6499. and the C11 atomic generic functions with a memory consistency argument
  6500. that is either invalid for the operation or outside the range of values
  6501. of the \f(CW\*(C`memory_order\*(C'\fR enumeration. For example, since the
  6502. \&\f(CW\*(C`_\|_atomic_store\*(C'\fR and \f(CW\*(C`_\|_atomic_store_n\*(C'\fR built-ins are only
  6503. defined for the relaxed, release, and sequentially consistent memory
  6504. orders the following code is diagnosed:
  6505. .Sp
  6506. .Vb 4
  6507. \& void store (int *i)
  6508. \& {
  6509. \& _\|_atomic_store_n (i, 0, memory_order_consume);
  6510. \& }
  6511. .Ve
  6512. .Sp
  6513. \&\fB\-Winvalid\-memory\-model\fR is enabled by default.
  6514. .IP "\fB\-Wmaybe\-uninitialized\fR" 4
  6515. .IX Item "-Wmaybe-uninitialized"
  6516. For an object with automatic or allocated storage duration, if there exists
  6517. a path from the function entry to a use of the object that is initialized,
  6518. but there exist some other paths for which the object is not initialized,
  6519. the compiler emits a warning if it cannot prove the uninitialized paths
  6520. are not executed at run time.
  6521. .Sp
  6522. In addition, passing a pointer (or in \*(C+, a reference) to an uninitialized
  6523. object to a \f(CW\*(C`const\*(C'\fR\-qualified function argument is also diagnosed by
  6524. this warning. (\fB\-Wuninitialized\fR is issued for built-in functions
  6525. known to read the object.) Annotating the function with attribute
  6526. \&\f(CW\*(C`access (none)\*(C'\fR indicates that the argument isn't used to access
  6527. the object and avoids the warning.
  6528. .Sp
  6529. These warnings are only possible in optimizing compilation, because otherwise
  6530. \&\s-1GCC\s0 does not keep track of the state of variables.
  6531. .Sp
  6532. These warnings are made optional because \s-1GCC\s0 may not be able to determine when
  6533. the code is correct in spite of appearing to have an error. Here is one
  6534. example of how this can happen:
  6535. .Sp
  6536. .Vb 12
  6537. \& {
  6538. \& int x;
  6539. \& switch (y)
  6540. \& {
  6541. \& case 1: x = 1;
  6542. \& break;
  6543. \& case 2: x = 4;
  6544. \& break;
  6545. \& case 3: x = 5;
  6546. \& }
  6547. \& foo (x);
  6548. \& }
  6549. .Ve
  6550. .Sp
  6551. If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
  6552. always initialized, but \s-1GCC\s0 doesn't know this. To suppress the
  6553. warning, you need to provide a default case with \fBassert\fR\|(0) or
  6554. similar code.
  6555. .Sp
  6556. This option also warns when a non-volatile automatic variable might be
  6557. changed by a call to \f(CW\*(C`longjmp\*(C'\fR.
  6558. The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR. It cannot know
  6559. where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
  6560. call it at any point in the code. As a result, you may get a warning
  6561. even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
  6562. in fact be called at the place that would cause a problem.
  6563. .Sp
  6564. Some spurious warnings can be avoided if you declare all the functions
  6565. you use that never return as \f(CW\*(C`noreturn\*(C'\fR.
  6566. .Sp
  6567. This warning is enabled by \fB\-Wall\fR or \fB\-Wextra\fR.
  6568. .IP "\fB\-Wunknown\-pragmas\fR" 4
  6569. .IX Item "-Wunknown-pragmas"
  6570. Warn when a \f(CW\*(C`#pragma\*(C'\fR directive is encountered that is not understood by
  6571. \&\s-1GCC.\s0 If this command-line option is used, warnings are even issued
  6572. for unknown pragmas in system header files. This is not the case if
  6573. the warnings are only enabled by the \fB\-Wall\fR command-line option.
  6574. .IP "\fB\-Wno\-pragmas\fR" 4
  6575. .IX Item "-Wno-pragmas"
  6576. Do not warn about misuses of pragmas, such as incorrect parameters,
  6577. invalid syntax, or conflicts between pragmas. See also
  6578. \&\fB\-Wunknown\-pragmas\fR.
  6579. .IP "\fB\-Wno\-prio\-ctor\-dtor\fR" 4
  6580. .IX Item "-Wno-prio-ctor-dtor"
  6581. Do not warn if a priority from 0 to 100 is used for constructor or destructor.
  6582. The use of constructor and destructor attributes allow you to assign a
  6583. priority to the constructor/destructor to control its order of execution
  6584. before \f(CW\*(C`main\*(C'\fR is called or after it returns. The priority values must be
  6585. greater than 100 as the compiler reserves priority values between 0\-\-100 for
  6586. the implementation.
  6587. .IP "\fB\-Wstrict\-aliasing\fR" 4
  6588. .IX Item "-Wstrict-aliasing"
  6589. This option is only active when \fB\-fstrict\-aliasing\fR is active.
  6590. It warns about code that might break the strict aliasing rules that the
  6591. compiler is using for optimization. The warning does not catch all
  6592. cases, but does attempt to catch the more common pitfalls. It is
  6593. included in \fB\-Wall\fR.
  6594. It is equivalent to \fB\-Wstrict\-aliasing=3\fR
  6595. .IP "\fB\-Wstrict\-aliasing=n\fR" 4
  6596. .IX Item "-Wstrict-aliasing=n"
  6597. This option is only active when \fB\-fstrict\-aliasing\fR is active.
  6598. It warns about code that might break the strict aliasing rules that the
  6599. compiler is using for optimization.
  6600. Higher levels correspond to higher accuracy (fewer false positives).
  6601. Higher levels also correspond to more effort, similar to the way \fB\-O\fR
  6602. works.
  6603. \&\fB\-Wstrict\-aliasing\fR is equivalent to \fB\-Wstrict\-aliasing=3\fR.
  6604. .Sp
  6605. Level 1: Most aggressive, quick, least accurate.
  6606. Possibly useful when higher levels
  6607. do not warn but \fB\-fstrict\-aliasing\fR still breaks the code, as it has very few
  6608. false negatives. However, it has many false positives.
  6609. Warns for all pointer conversions between possibly incompatible types,
  6610. even if never dereferenced. Runs in the front end only.
  6611. .Sp
  6612. Level 2: Aggressive, quick, not too precise.
  6613. May still have many false positives (not as many as level 1 though),
  6614. and few false negatives (but possibly more than level 1).
  6615. Unlike level 1, it only warns when an address is taken. Warns about
  6616. incomplete types. Runs in the front end only.
  6617. .Sp
  6618. Level 3 (default for \fB\-Wstrict\-aliasing\fR):
  6619. Should have very few false positives and few false
  6620. negatives. Slightly slower than levels 1 or 2 when optimization is enabled.
  6621. Takes care of the common pun+dereference pattern in the front end:
  6622. \&\f(CW\*(C`*(int*)&some_float\*(C'\fR.
  6623. If optimization is enabled, it also runs in the back end, where it deals
  6624. with multiple statement cases using flow-sensitive points-to information.
  6625. Only warns when the converted pointer is dereferenced.
  6626. Does not warn about incomplete types.
  6627. .IP "\fB\-Wstrict\-overflow\fR" 4
  6628. .IX Item "-Wstrict-overflow"
  6629. .PD 0
  6630. .IP "\fB\-Wstrict\-overflow=\fR\fIn\fR" 4
  6631. .IX Item "-Wstrict-overflow=n"
  6632. .PD
  6633. This option is only active when signed overflow is undefined.
  6634. It warns about cases where the compiler optimizes based on the
  6635. assumption that signed overflow does not occur. Note that it does not
  6636. warn about all cases where the code might overflow: it only warns
  6637. about cases where the compiler implements some optimization. Thus
  6638. this warning depends on the optimization level.
  6639. .Sp
  6640. An optimization that assumes that signed overflow does not occur is
  6641. perfectly safe if the values of the variables involved are such that
  6642. overflow never does, in fact, occur. Therefore this warning can
  6643. easily give a false positive: a warning about code that is not
  6644. actually a problem. To help focus on important issues, several
  6645. warning levels are defined. No warnings are issued for the use of
  6646. undefined signed overflow when estimating how many iterations a loop
  6647. requires, in particular when determining whether a loop will be
  6648. executed at all.
  6649. .RS 4
  6650. .IP "\fB\-Wstrict\-overflow=1\fR" 4
  6651. .IX Item "-Wstrict-overflow=1"
  6652. Warn about cases that are both questionable and easy to avoid. For
  6653. example the compiler simplifies
  6654. \&\f(CW\*(C`x + 1 > x\*(C'\fR to \f(CW1\fR. This level of
  6655. \&\fB\-Wstrict\-overflow\fR is enabled by \fB\-Wall\fR; higher levels
  6656. are not, and must be explicitly requested.
  6657. .IP "\fB\-Wstrict\-overflow=2\fR" 4
  6658. .IX Item "-Wstrict-overflow=2"
  6659. Also warn about other cases where a comparison is simplified to a
  6660. constant. For example: \f(CW\*(C`abs (x) >= 0\*(C'\fR. This can only be
  6661. simplified when signed integer overflow is undefined, because
  6662. \&\f(CW\*(C`abs (INT_MIN)\*(C'\fR overflows to \f(CW\*(C`INT_MIN\*(C'\fR, which is less than
  6663. zero. \fB\-Wstrict\-overflow\fR (with no level) is the same as
  6664. \&\fB\-Wstrict\-overflow=2\fR.
  6665. .IP "\fB\-Wstrict\-overflow=3\fR" 4
  6666. .IX Item "-Wstrict-overflow=3"
  6667. Also warn about other cases where a comparison is simplified. For
  6668. example: \f(CW\*(C`x + 1 > 1\*(C'\fR is simplified to \f(CW\*(C`x > 0\*(C'\fR.
  6669. .IP "\fB\-Wstrict\-overflow=4\fR" 4
  6670. .IX Item "-Wstrict-overflow=4"
  6671. Also warn about other simplifications not covered by the above cases.
  6672. For example: \f(CW\*(C`(x * 10) / 5\*(C'\fR is simplified to \f(CW\*(C`x * 2\*(C'\fR.
  6673. .IP "\fB\-Wstrict\-overflow=5\fR" 4
  6674. .IX Item "-Wstrict-overflow=5"
  6675. Also warn about cases where the compiler reduces the magnitude of a
  6676. constant involved in a comparison. For example: \f(CW\*(C`x + 2 > y\*(C'\fR is
  6677. simplified to \f(CW\*(C`x + 1 >= y\*(C'\fR. This is reported only at the
  6678. highest warning level because this simplification applies to many
  6679. comparisons, so this warning level gives a very large number of
  6680. false positives.
  6681. .RE
  6682. .RS 4
  6683. .RE
  6684. .IP "\fB\-Wstring\-compare\fR" 4
  6685. .IX Item "-Wstring-compare"
  6686. Warn for calls to \f(CW\*(C`strcmp\*(C'\fR and \f(CW\*(C`strncmp\*(C'\fR whose result is
  6687. determined to be either zero or non-zero in tests for such equality
  6688. owing to the length of one argument being greater than the size of
  6689. the array the other argument is stored in (or the bound in the case
  6690. of \f(CW\*(C`strncmp\*(C'\fR). Such calls could be mistakes. For example,
  6691. the call to \f(CW\*(C`strcmp\*(C'\fR below is diagnosed because its result is
  6692. necessarily non-zero irrespective of the contents of the array \f(CW\*(C`a\*(C'\fR.
  6693. .Sp
  6694. .Vb 8
  6695. \& extern char a[4];
  6696. \& void f (char *d)
  6697. \& {
  6698. \& strcpy (d, "string");
  6699. \& ...
  6700. \& if (0 == strcmp (a, d)) // cannot be true
  6701. \& puts ("a and d are the same");
  6702. \& }
  6703. .Ve
  6704. .Sp
  6705. \&\fB\-Wstring\-compare\fR is enabled by \fB\-Wextra\fR.
  6706. .IP "\fB\-Wno\-stringop\-overflow\fR" 4
  6707. .IX Item "-Wno-stringop-overflow"
  6708. .PD 0
  6709. .IP "\fB\-Wstringop\-overflow\fR" 4
  6710. .IX Item "-Wstringop-overflow"
  6711. .IP "\fB\-Wstringop\-overflow=\fR\fItype\fR" 4
  6712. .IX Item "-Wstringop-overflow=type"
  6713. .PD
  6714. Warn for calls to string manipulation functions such as \f(CW\*(C`memcpy\*(C'\fR and
  6715. \&\f(CW\*(C`strcpy\*(C'\fR that are determined to overflow the destination buffer. The
  6716. optional argument is one greater than the type of Object Size Checking to
  6717. perform to determine the size of the destination.
  6718. The argument is meaningful only for functions that operate on character arrays
  6719. but not for raw memory functions like \f(CW\*(C`memcpy\*(C'\fR which always make use
  6720. of Object Size type\-0. The option also warns for calls that specify a size
  6721. in excess of the largest possible object or at most \f(CW\*(C`SIZE_MAX / 2\*(C'\fR bytes.
  6722. The option produces the best results with optimization enabled but can detect
  6723. a small subset of simple buffer overflows even without optimization in
  6724. calls to the \s-1GCC\s0 built-in functions like \f(CW\*(C`_\|_builtin_memcpy\*(C'\fR that
  6725. correspond to the standard functions. In any case, the option warns about
  6726. just a subset of buffer overflows detected by the corresponding overflow
  6727. checking built-ins. For example, the option issues a warning for
  6728. the \f(CW\*(C`strcpy\*(C'\fR call below because it copies at least 5 characters
  6729. (the string \f(CW"blue"\fR including the terminating \s-1NUL\s0) into the buffer
  6730. of size 4.
  6731. .Sp
  6732. .Vb 11
  6733. \& enum Color { blue, purple, yellow };
  6734. \& const char* f (enum Color clr)
  6735. \& {
  6736. \& static char buf [4];
  6737. \& const char *str;
  6738. \& switch (clr)
  6739. \& {
  6740. \& case blue: str = "blue"; break;
  6741. \& case purple: str = "purple"; break;
  6742. \& case yellow: str = "yellow"; break;
  6743. \& }
  6744. \&
  6745. \& return strcpy (buf, str); // warning here
  6746. \& }
  6747. .Ve
  6748. .Sp
  6749. Option \fB\-Wstringop\-overflow=2\fR is enabled by default.
  6750. .RS 4
  6751. .IP "\fB\-Wstringop\-overflow\fR" 4
  6752. .IX Item "-Wstringop-overflow"
  6753. .PD 0
  6754. .IP "\fB\-Wstringop\-overflow=1\fR" 4
  6755. .IX Item "-Wstringop-overflow=1"
  6756. .PD
  6757. The \fB\-Wstringop\-overflow=1\fR option uses type-zero Object Size Checking
  6758. to determine the sizes of destination objects. At this setting the option
  6759. does not warn for writes past the end of subobjects of larger objects accessed
  6760. by pointers unless the size of the largest surrounding object is known. When
  6761. the destination may be one of several objects it is assumed to be the largest
  6762. one of them. On Linux systems, when optimization is enabled at this setting
  6763. the option warns for the same code as when the \f(CW\*(C`_FORTIFY_SOURCE\*(C'\fR macro
  6764. is defined to a non-zero value.
  6765. .IP "\fB\-Wstringop\-overflow=2\fR" 4
  6766. .IX Item "-Wstringop-overflow=2"
  6767. The \fB\-Wstringop\-overflow=2\fR option uses type-one Object Size Checking
  6768. to determine the sizes of destination objects. At this setting the option
  6769. warns about overflows when writing to members of the largest complete
  6770. objects whose exact size is known. However, it does not warn for excessive
  6771. writes to the same members of unknown objects referenced by pointers since
  6772. they may point to arrays containing unknown numbers of elements. This is
  6773. the default setting of the option.
  6774. .IP "\fB\-Wstringop\-overflow=3\fR" 4
  6775. .IX Item "-Wstringop-overflow=3"
  6776. The \fB\-Wstringop\-overflow=3\fR option uses type-two Object Size Checking
  6777. to determine the sizes of destination objects. At this setting the option
  6778. warns about overflowing the smallest object or data member. This is the
  6779. most restrictive setting of the option that may result in warnings for safe
  6780. code.
  6781. .IP "\fB\-Wstringop\-overflow=4\fR" 4
  6782. .IX Item "-Wstringop-overflow=4"
  6783. The \fB\-Wstringop\-overflow=4\fR option uses type-three Object Size Checking
  6784. to determine the sizes of destination objects. At this setting the option
  6785. warns about overflowing any data members, and when the destination is
  6786. one of several objects it uses the size of the largest of them to decide
  6787. whether to issue a warning. Similarly to \fB\-Wstringop\-overflow=3\fR this
  6788. setting of the option may result in warnings for benign code.
  6789. .RE
  6790. .RS 4
  6791. .RE
  6792. .IP "\fB\-Wno\-stringop\-overread\fR" 4
  6793. .IX Item "-Wno-stringop-overread"
  6794. Warn for calls to string manipulation functions such as \f(CW\*(C`memchr\*(C'\fR, or
  6795. \&\f(CW\*(C`strcpy\*(C'\fR that are determined to read past the end of the source
  6796. sequence.
  6797. .Sp
  6798. Option \fB\-Wstringop\-overread\fR is enabled by default.
  6799. .IP "\fB\-Wno\-stringop\-truncation\fR" 4
  6800. .IX Item "-Wno-stringop-truncation"
  6801. Do not warn for calls to bounded string manipulation functions
  6802. such as \f(CW\*(C`strncat\*(C'\fR,
  6803. \&\f(CW\*(C`strncpy\*(C'\fR, and \f(CW\*(C`stpncpy\*(C'\fR that may either truncate the copied string
  6804. or leave the destination unchanged.
  6805. .Sp
  6806. In the following example, the call to \f(CW\*(C`strncat\*(C'\fR specifies a bound that
  6807. is less than the length of the source string. As a result, the copy of
  6808. the source will be truncated and so the call is diagnosed. To avoid the
  6809. warning use \f(CW\*(C`bufsize \- strlen (buf) \- 1)\*(C'\fR as the bound.
  6810. .Sp
  6811. .Vb 4
  6812. \& void append (char *buf, size_t bufsize)
  6813. \& {
  6814. \& strncat (buf, ".txt", 3);
  6815. \& }
  6816. .Ve
  6817. .Sp
  6818. As another example, the following call to \f(CW\*(C`strncpy\*(C'\fR results in copying
  6819. to \f(CW\*(C`d\*(C'\fR just the characters preceding the terminating \s-1NUL,\s0 without
  6820. appending the \s-1NUL\s0 to the end. Assuming the result of \f(CW\*(C`strncpy\*(C'\fR is
  6821. necessarily a NUL-terminated string is a common mistake, and so the call
  6822. is diagnosed. To avoid the warning when the result is not expected to be
  6823. NUL-terminated, call \f(CW\*(C`memcpy\*(C'\fR instead.
  6824. .Sp
  6825. .Vb 4
  6826. \& void copy (char *d, const char *s)
  6827. \& {
  6828. \& strncpy (d, s, strlen (s));
  6829. \& }
  6830. .Ve
  6831. .Sp
  6832. In the following example, the call to \f(CW\*(C`strncpy\*(C'\fR specifies the size
  6833. of the destination buffer as the bound. If the length of the source
  6834. string is equal to or greater than this size the result of the copy will
  6835. not be NUL-terminated. Therefore, the call is also diagnosed. To avoid
  6836. the warning, specify \f(CW\*(C`sizeof buf \- 1\*(C'\fR as the bound and set the last
  6837. element of the buffer to \f(CW\*(C`NUL\*(C'\fR.
  6838. .Sp
  6839. .Vb 6
  6840. \& void copy (const char *s)
  6841. \& {
  6842. \& char buf[80];
  6843. \& strncpy (buf, s, sizeof buf);
  6844. \& ...
  6845. \& }
  6846. .Ve
  6847. .Sp
  6848. In situations where a character array is intended to store a sequence
  6849. of bytes with no terminating \f(CW\*(C`NUL\*(C'\fR such an array may be annotated
  6850. with attribute \f(CW\*(C`nonstring\*(C'\fR to avoid this warning. Such arrays,
  6851. however, are not suitable arguments to functions that expect
  6852. \&\f(CW\*(C`NUL\*(C'\fR\-terminated strings. To help detect accidental misuses of
  6853. such arrays \s-1GCC\s0 issues warnings unless it can prove that the use is
  6854. safe.
  6855. .IP "\fB\-Wsuggest\-attribute=\fR[\fBpure\fR|\fBconst\fR|\fBnoreturn\fR|\fBformat\fR|\fBcold\fR|\fBmalloc\fR]" 4
  6856. .IX Item "-Wsuggest-attribute=[pure|const|noreturn|format|cold|malloc]"
  6857. Warn for cases where adding an attribute may be beneficial. The
  6858. attributes currently supported are listed below.
  6859. .RS 4
  6860. .IP "\fB\-Wsuggest\-attribute=pure\fR" 4
  6861. .IX Item "-Wsuggest-attribute=pure"
  6862. .PD 0
  6863. .IP "\fB\-Wsuggest\-attribute=const\fR" 4
  6864. .IX Item "-Wsuggest-attribute=const"
  6865. .IP "\fB\-Wsuggest\-attribute=noreturn\fR" 4
  6866. .IX Item "-Wsuggest-attribute=noreturn"
  6867. .IP "\fB\-Wmissing\-noreturn\fR" 4
  6868. .IX Item "-Wmissing-noreturn"
  6869. .IP "\fB\-Wsuggest\-attribute=malloc\fR" 4
  6870. .IX Item "-Wsuggest-attribute=malloc"
  6871. .PD
  6872. Warn about functions that might be candidates for attributes
  6873. \&\f(CW\*(C`pure\*(C'\fR, \f(CW\*(C`const\*(C'\fR or \f(CW\*(C`noreturn\*(C'\fR or \f(CW\*(C`malloc\*(C'\fR. The compiler
  6874. only warns for functions visible in other compilation units or (in the case of
  6875. \&\f(CW\*(C`pure\*(C'\fR and \f(CW\*(C`const\*(C'\fR) if it cannot prove that the function returns
  6876. normally. A function returns normally if it doesn't contain an infinite loop or
  6877. return abnormally by throwing, calling \f(CW\*(C`abort\*(C'\fR or trapping. This analysis
  6878. requires option \fB\-fipa\-pure\-const\fR, which is enabled by default at
  6879. \&\fB\-O\fR and higher. Higher optimization levels improve the accuracy
  6880. of the analysis.
  6881. .IP "\fB\-Wsuggest\-attribute=format\fR" 4
  6882. .IX Item "-Wsuggest-attribute=format"
  6883. .PD 0
  6884. .IP "\fB\-Wmissing\-format\-attribute\fR" 4
  6885. .IX Item "-Wmissing-format-attribute"
  6886. .PD
  6887. Warn about function pointers that might be candidates for \f(CW\*(C`format\*(C'\fR
  6888. attributes. Note these are only possible candidates, not absolute ones.
  6889. \&\s-1GCC\s0 guesses that function pointers with \f(CW\*(C`format\*(C'\fR attributes that
  6890. are used in assignment, initialization, parameter passing or return
  6891. statements should have a corresponding \f(CW\*(C`format\*(C'\fR attribute in the
  6892. resulting type. I.e. the left-hand side of the assignment or
  6893. initialization, the type of the parameter variable, or the return type
  6894. of the containing function respectively should also have a \f(CW\*(C`format\*(C'\fR
  6895. attribute to avoid the warning.
  6896. .Sp
  6897. \&\s-1GCC\s0 also warns about function definitions that might be
  6898. candidates for \f(CW\*(C`format\*(C'\fR attributes. Again, these are only
  6899. possible candidates. \s-1GCC\s0 guesses that \f(CW\*(C`format\*(C'\fR attributes
  6900. might be appropriate for any function that calls a function like
  6901. \&\f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
  6902. case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
  6903. appropriate may not be detected.
  6904. .IP "\fB\-Wsuggest\-attribute=cold\fR" 4
  6905. .IX Item "-Wsuggest-attribute=cold"
  6906. Warn about functions that might be candidates for \f(CW\*(C`cold\*(C'\fR attribute. This
  6907. is based on static detection and generally only warns about functions which
  6908. always leads to a call to another \f(CW\*(C`cold\*(C'\fR function such as wrappers of
  6909. \&\*(C+ \f(CW\*(C`throw\*(C'\fR or fatal error reporting functions leading to \f(CW\*(C`abort\*(C'\fR.
  6910. .RE
  6911. .RS 4
  6912. .RE
  6913. .IP "\fB\-Walloc\-zero\fR" 4
  6914. .IX Item "-Walloc-zero"
  6915. Warn about calls to allocation functions decorated with attribute
  6916. \&\f(CW\*(C`alloc_size\*(C'\fR that specify zero bytes, including those to the built-in
  6917. forms of the functions \f(CW\*(C`aligned_alloc\*(C'\fR, \f(CW\*(C`alloca\*(C'\fR, \f(CW\*(C`calloc\*(C'\fR,
  6918. \&\f(CW\*(C`malloc\*(C'\fR, and \f(CW\*(C`realloc\*(C'\fR. Because the behavior of these functions
  6919. when called with a zero size differs among implementations (and in the case
  6920. of \f(CW\*(C`realloc\*(C'\fR has been deprecated) relying on it may result in subtle
  6921. portability bugs and should be avoided.
  6922. .IP "\fB\-Walloc\-size\-larger\-than=\fR\fIbyte-size\fR" 4
  6923. .IX Item "-Walloc-size-larger-than=byte-size"
  6924. Warn about calls to functions decorated with attribute \f(CW\*(C`alloc_size\*(C'\fR
  6925. that attempt to allocate objects larger than the specified number of bytes,
  6926. or where the result of the size computation in an integer type with infinite
  6927. precision would exceed the value of \fB\s-1PTRDIFF_MAX\s0\fR on the target.
  6928. \&\fB\-Walloc\-size\-larger\-than=\fR\fB\s-1PTRDIFF_MAX\s0\fR is enabled by default.
  6929. Warnings controlled by the option can be disabled either by specifying
  6930. \&\fIbyte-size\fR of \fB\s-1SIZE_MAX\s0\fR or more or by
  6931. \&\fB\-Wno\-alloc\-size\-larger\-than\fR.
  6932. .IP "\fB\-Wno\-alloc\-size\-larger\-than\fR" 4
  6933. .IX Item "-Wno-alloc-size-larger-than"
  6934. Disable \fB\-Walloc\-size\-larger\-than=\fR warnings. The option is
  6935. equivalent to \fB\-Walloc\-size\-larger\-than=\fR\fB\s-1SIZE_MAX\s0\fR or
  6936. larger.
  6937. .IP "\fB\-Walloca\fR" 4
  6938. .IX Item "-Walloca"
  6939. This option warns on all uses of \f(CW\*(C`alloca\*(C'\fR in the source.
  6940. .IP "\fB\-Walloca\-larger\-than=\fR\fIbyte-size\fR" 4
  6941. .IX Item "-Walloca-larger-than=byte-size"
  6942. This option warns on calls to \f(CW\*(C`alloca\*(C'\fR with an integer argument whose
  6943. value is either zero, or that is not bounded by a controlling predicate
  6944. that limits its value to at most \fIbyte-size\fR. It also warns for calls
  6945. to \f(CW\*(C`alloca\*(C'\fR where the bound value is unknown. Arguments of non-integer
  6946. types are considered unbounded even if they appear to be constrained to
  6947. the expected range.
  6948. .Sp
  6949. For example, a bounded case of \f(CW\*(C`alloca\*(C'\fR could be:
  6950. .Sp
  6951. .Vb 9
  6952. \& void func (size_t n)
  6953. \& {
  6954. \& void *p;
  6955. \& if (n <= 1000)
  6956. \& p = alloca (n);
  6957. \& else
  6958. \& p = malloc (n);
  6959. \& f (p);
  6960. \& }
  6961. .Ve
  6962. .Sp
  6963. In the above example, passing \f(CW\*(C`\-Walloca\-larger\-than=1000\*(C'\fR would not
  6964. issue a warning because the call to \f(CW\*(C`alloca\*(C'\fR is known to be at most
  6965. 1000 bytes. However, if \f(CW\*(C`\-Walloca\-larger\-than=500\*(C'\fR were passed,
  6966. the compiler would emit a warning.
  6967. .Sp
  6968. Unbounded uses, on the other hand, are uses of \f(CW\*(C`alloca\*(C'\fR with no
  6969. controlling predicate constraining its integer argument. For example:
  6970. .Sp
  6971. .Vb 5
  6972. \& void func ()
  6973. \& {
  6974. \& void *p = alloca (n);
  6975. \& f (p);
  6976. \& }
  6977. .Ve
  6978. .Sp
  6979. If \f(CW\*(C`\-Walloca\-larger\-than=500\*(C'\fR were passed, the above would trigger
  6980. a warning, but this time because of the lack of bounds checking.
  6981. .Sp
  6982. Note, that even seemingly correct code involving signed integers could
  6983. cause a warning:
  6984. .Sp
  6985. .Vb 8
  6986. \& void func (signed int n)
  6987. \& {
  6988. \& if (n < 500)
  6989. \& {
  6990. \& p = alloca (n);
  6991. \& f (p);
  6992. \& }
  6993. \& }
  6994. .Ve
  6995. .Sp
  6996. In the above example, \fIn\fR could be negative, causing a larger than
  6997. expected argument to be implicitly cast into the \f(CW\*(C`alloca\*(C'\fR call.
  6998. .Sp
  6999. This option also warns when \f(CW\*(C`alloca\*(C'\fR is used in a loop.
  7000. .Sp
  7001. \&\fB\-Walloca\-larger\-than=\fR\fB\s-1PTRDIFF_MAX\s0\fR is enabled by default
  7002. but is usually only effective when \fB\-ftree\-vrp\fR is active (default
  7003. for \fB\-O2\fR and above).
  7004. .Sp
  7005. See also \fB\-Wvla\-larger\-than=\fR\fBbyte-size\fR.
  7006. .IP "\fB\-Wno\-alloca\-larger\-than\fR" 4
  7007. .IX Item "-Wno-alloca-larger-than"
  7008. Disable \fB\-Walloca\-larger\-than=\fR warnings. The option is
  7009. equivalent to \fB\-Walloca\-larger\-than=\fR\fB\s-1SIZE_MAX\s0\fR or larger.
  7010. .IP "\fB\-Warith\-conversion\fR" 4
  7011. .IX Item "-Warith-conversion"
  7012. Do warn about implicit conversions from arithmetic operations even
  7013. when conversion of the operands to the same type cannot change their
  7014. values. This affects warnings from \fB\-Wconversion\fR,
  7015. \&\fB\-Wfloat\-conversion\fR, and \fB\-Wsign\-conversion\fR.
  7016. .Sp
  7017. .Vb 5
  7018. \& void f (char c, int i)
  7019. \& {
  7020. \& c = c + i; // warns with B<\-Wconversion>
  7021. \& c = c + 1; // only warns with B<\-Warith\-conversion>
  7022. \& }
  7023. .Ve
  7024. .IP "\fB\-Warray\-bounds\fR" 4
  7025. .IX Item "-Warray-bounds"
  7026. .PD 0
  7027. .IP "\fB\-Warray\-bounds=\fR\fIn\fR" 4
  7028. .IX Item "-Warray-bounds=n"
  7029. .PD
  7030. This option is only active when \fB\-ftree\-vrp\fR is active
  7031. (default for \fB\-O2\fR and above). It warns about subscripts to arrays
  7032. that are always out of bounds. This warning is enabled by \fB\-Wall\fR.
  7033. .RS 4
  7034. .IP "\fB\-Warray\-bounds=1\fR" 4
  7035. .IX Item "-Warray-bounds=1"
  7036. This is the warning level of \fB\-Warray\-bounds\fR and is enabled
  7037. by \fB\-Wall\fR; higher levels are not, and must be explicitly requested.
  7038. .IP "\fB\-Warray\-bounds=2\fR" 4
  7039. .IX Item "-Warray-bounds=2"
  7040. This warning level also warns about out of bounds access for
  7041. arrays at the end of a struct and for arrays accessed through
  7042. pointers. This warning level may give a larger number of
  7043. false positives and is deactivated by default.
  7044. .RE
  7045. .RS 4
  7046. .RE
  7047. .IP "\fB\-Warray\-parameter\fR" 4
  7048. .IX Item "-Warray-parameter"
  7049. .PD 0
  7050. .IP "\fB\-Warray\-parameter=\fR\fIn\fR" 4
  7051. .IX Item "-Warray-parameter=n"
  7052. .PD
  7053. Warn about redeclarations of functions involving arguments of array or
  7054. pointer types of inconsistent kinds or forms, and enable the detection
  7055. of out-of-bounds accesses to such parameters by warnings such as
  7056. \&\fB\-Warray\-bounds\fR.
  7057. .Sp
  7058. If the first function declaration uses the array form the bound specified
  7059. in the array is assumed to be the minimum number of elements expected to
  7060. be provided in calls to the function and the maximum number of elements
  7061. accessed by it. Failing to provide arguments of sufficient size or accessing
  7062. more than the maximum number of elements may be diagnosed by warnings such
  7063. as \fB\-Warray\-bounds\fR. At level 1 the warning diagnoses inconsistencies
  7064. involving array parameters declared using the \f(CW\*(C`T[static N]\*(C'\fR form.
  7065. .Sp
  7066. For example, the warning triggers for the following redeclarations because
  7067. the first one allows an array of any size to be passed to \f(CW\*(C`f\*(C'\fR while
  7068. the second one with the keyword \f(CW\*(C`static\*(C'\fR specifies that the array
  7069. argument must have at least four elements.
  7070. .Sp
  7071. .Vb 2
  7072. \& void f (int[static 4]);
  7073. \& void f (int[]); // warning (inconsistent array form)
  7074. \&
  7075. \& void g (void)
  7076. \& {
  7077. \& int *p = (int *)malloc (4);
  7078. \& f (p); // warning (array too small)
  7079. \& ...
  7080. \& }
  7081. .Ve
  7082. .Sp
  7083. At level 2 the warning also triggers for redeclarations involving any other
  7084. inconsistency in array or pointer argument forms denoting array sizes.
  7085. Pointers and arrays of unspecified bound are considered equivalent and do
  7086. not trigger a warning.
  7087. .Sp
  7088. .Vb 3
  7089. \& void g (int*);
  7090. \& void g (int[]); // no warning
  7091. \& void g (int[8]); // warning (inconsistent array bound)
  7092. .Ve
  7093. .Sp
  7094. \&\fB\-Warray\-parameter=2\fR is included in \fB\-Wall\fR. The
  7095. \&\fB\-Wvla\-parameter\fR option triggers warnings for similar inconsistencies
  7096. involving Variable Length Array arguments.
  7097. .IP "\fB\-Wattribute\-alias=\fR\fIn\fR" 4
  7098. .IX Item "-Wattribute-alias=n"
  7099. .PD 0
  7100. .IP "\fB\-Wno\-attribute\-alias\fR" 4
  7101. .IX Item "-Wno-attribute-alias"
  7102. .PD
  7103. Warn about declarations using the \f(CW\*(C`alias\*(C'\fR and similar attributes whose
  7104. target is incompatible with the type of the alias.
  7105. .RS 4
  7106. .IP "\fB\-Wattribute\-alias=1\fR" 4
  7107. .IX Item "-Wattribute-alias=1"
  7108. The default warning level of the \fB\-Wattribute\-alias\fR option diagnoses
  7109. incompatibilities between the type of the alias declaration and that of its
  7110. target. Such incompatibilities are typically indicative of bugs.
  7111. .IP "\fB\-Wattribute\-alias=2\fR" 4
  7112. .IX Item "-Wattribute-alias=2"
  7113. At this level \fB\-Wattribute\-alias\fR also diagnoses cases where
  7114. the attributes of the alias declaration are more restrictive than the
  7115. attributes applied to its target. These mismatches can potentially
  7116. result in incorrect code generation. In other cases they may be
  7117. benign and could be resolved simply by adding the missing attribute to
  7118. the target. For comparison, see the \fB\-Wmissing\-attributes\fR
  7119. option, which controls diagnostics when the alias declaration is less
  7120. restrictive than the target, rather than more restrictive.
  7121. .Sp
  7122. Attributes considered include \f(CW\*(C`alloc_align\*(C'\fR, \f(CW\*(C`alloc_size\*(C'\fR,
  7123. \&\f(CW\*(C`cold\*(C'\fR, \f(CW\*(C`const\*(C'\fR, \f(CW\*(C`hot\*(C'\fR, \f(CW\*(C`leaf\*(C'\fR, \f(CW\*(C`malloc\*(C'\fR,
  7124. \&\f(CW\*(C`nonnull\*(C'\fR, \f(CW\*(C`noreturn\*(C'\fR, \f(CW\*(C`nothrow\*(C'\fR, \f(CW\*(C`pure\*(C'\fR,
  7125. \&\f(CW\*(C`returns_nonnull\*(C'\fR, and \f(CW\*(C`returns_twice\*(C'\fR.
  7126. .RE
  7127. .RS 4
  7128. .Sp
  7129. \&\fB\-Wattribute\-alias\fR is equivalent to \fB\-Wattribute\-alias=1\fR.
  7130. This is the default. You can disable these warnings with either
  7131. \&\fB\-Wno\-attribute\-alias\fR or \fB\-Wattribute\-alias=0\fR.
  7132. .RE
  7133. .IP "\fB\-Wbool\-compare\fR" 4
  7134. .IX Item "-Wbool-compare"
  7135. Warn about boolean expression compared with an integer value different from
  7136. \&\f(CW\*(C`true\*(C'\fR/\f(CW\*(C`false\*(C'\fR. For instance, the following comparison is
  7137. always false:
  7138. .Sp
  7139. .Vb 3
  7140. \& int n = 5;
  7141. \& ...
  7142. \& if ((n > 1) == 2) { ... }
  7143. .Ve
  7144. .Sp
  7145. This warning is enabled by \fB\-Wall\fR.
  7146. .IP "\fB\-Wbool\-operation\fR" 4
  7147. .IX Item "-Wbool-operation"
  7148. Warn about suspicious operations on expressions of a boolean type. For
  7149. instance, bitwise negation of a boolean is very likely a bug in the program.
  7150. For C, this warning also warns about incrementing or decrementing a boolean,
  7151. which rarely makes sense. (In \*(C+, decrementing a boolean is always invalid.
  7152. Incrementing a boolean is invalid in \*(C+17, and deprecated otherwise.)
  7153. .Sp
  7154. This warning is enabled by \fB\-Wall\fR.
  7155. .IP "\fB\-Wduplicated\-branches\fR" 4
  7156. .IX Item "-Wduplicated-branches"
  7157. Warn when an if-else has identical branches. This warning detects cases like
  7158. .Sp
  7159. .Vb 4
  7160. \& if (p != NULL)
  7161. \& return 0;
  7162. \& else
  7163. \& return 0;
  7164. .Ve
  7165. .Sp
  7166. It doesn't warn when both branches contain just a null statement. This warning
  7167. also warn for conditional operators:
  7168. .Sp
  7169. .Vb 1
  7170. \& int i = x ? *p : *p;
  7171. .Ve
  7172. .IP "\fB\-Wduplicated\-cond\fR" 4
  7173. .IX Item "-Wduplicated-cond"
  7174. Warn about duplicated conditions in an if-else-if chain. For instance,
  7175. warn for the following code:
  7176. .Sp
  7177. .Vb 2
  7178. \& if (p\->q != NULL) { ... }
  7179. \& else if (p\->q != NULL) { ... }
  7180. .Ve
  7181. .IP "\fB\-Wframe\-address\fR" 4
  7182. .IX Item "-Wframe-address"
  7183. Warn when the \fB_\|_builtin_frame_address\fR or \fB_\|_builtin_return_address\fR
  7184. is called with an argument greater than 0. Such calls may return indeterminate
  7185. values or crash the program. The warning is included in \fB\-Wall\fR.
  7186. .IP "\fB\-Wno\-discarded\-qualifiers\fR (C and Objective-C only)" 4
  7187. .IX Item "-Wno-discarded-qualifiers (C and Objective-C only)"
  7188. Do not warn if type qualifiers on pointers are being discarded.
  7189. Typically, the compiler warns if a \f(CW\*(C`const char *\*(C'\fR variable is
  7190. passed to a function that takes a \f(CW\*(C`char *\*(C'\fR parameter. This option
  7191. can be used to suppress such a warning.
  7192. .IP "\fB\-Wno\-discarded\-array\-qualifiers\fR (C and Objective-C only)" 4
  7193. .IX Item "-Wno-discarded-array-qualifiers (C and Objective-C only)"
  7194. Do not warn if type qualifiers on arrays which are pointer targets
  7195. are being discarded. Typically, the compiler warns if a
  7196. \&\f(CW\*(C`const int (*)[]\*(C'\fR variable is passed to a function that
  7197. takes a \f(CW\*(C`int (*)[]\*(C'\fR parameter. This option can be used to
  7198. suppress such a warning.
  7199. .IP "\fB\-Wno\-incompatible\-pointer\-types\fR (C and Objective-C only)" 4
  7200. .IX Item "-Wno-incompatible-pointer-types (C and Objective-C only)"
  7201. Do not warn when there is a conversion between pointers that have incompatible
  7202. types. This warning is for cases not covered by \fB\-Wno\-pointer\-sign\fR,
  7203. which warns for pointer argument passing or assignment with different
  7204. signedness.
  7205. .IP "\fB\-Wno\-int\-conversion\fR (C and Objective-C only)" 4
  7206. .IX Item "-Wno-int-conversion (C and Objective-C only)"
  7207. Do not warn about incompatible integer to pointer and pointer to integer
  7208. conversions. This warning is about implicit conversions; for explicit
  7209. conversions the warnings \fB\-Wno\-int\-to\-pointer\-cast\fR and
  7210. \&\fB\-Wno\-pointer\-to\-int\-cast\fR may be used.
  7211. .IP "\fB\-Wzero\-length\-bounds\fR" 4
  7212. .IX Item "-Wzero-length-bounds"
  7213. Warn about accesses to elements of zero-length array members that might
  7214. overlap other members of the same object. Declaring interior zero-length
  7215. arrays is discouraged because accesses to them are undefined. See
  7216. .Sp
  7217. For example, the first two stores in function \f(CW\*(C`bad\*(C'\fR are diagnosed
  7218. because the array elements overlap the subsequent members \f(CW\*(C`b\*(C'\fR and
  7219. \&\f(CW\*(C`c\*(C'\fR. The third store is diagnosed by \fB\-Warray\-bounds\fR
  7220. because it is beyond the bounds of the enclosing object.
  7221. .Sp
  7222. .Vb 2
  7223. \& struct X { int a[0]; int b, c; };
  7224. \& struct X x;
  7225. \&
  7226. \& void bad (void)
  7227. \& {
  7228. \& x.a[0] = 0; // \-Wzero\-length\-bounds
  7229. \& x.a[1] = 1; // \-Wzero\-length\-bounds
  7230. \& x.a[2] = 2; // \-Warray\-bounds
  7231. \& }
  7232. .Ve
  7233. .Sp
  7234. Option \fB\-Wzero\-length\-bounds\fR is enabled by \fB\-Warray\-bounds\fR.
  7235. .IP "\fB\-Wno\-div\-by\-zero\fR" 4
  7236. .IX Item "-Wno-div-by-zero"
  7237. Do not warn about compile-time integer division by zero. Floating-point
  7238. division by zero is not warned about, as it can be a legitimate way of
  7239. obtaining infinities and NaNs.
  7240. .IP "\fB\-Wsystem\-headers\fR" 4
  7241. .IX Item "-Wsystem-headers"
  7242. Print warning messages for constructs found in system header files.
  7243. Warnings from system headers are normally suppressed, on the assumption
  7244. that they usually do not indicate real problems and would only make the
  7245. compiler output harder to read. Using this command-line option tells
  7246. \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
  7247. code. However, note that using \fB\-Wall\fR in conjunction with this
  7248. option does \fInot\fR warn about unknown pragmas in system
  7249. headers\-\-\-for that, \fB\-Wunknown\-pragmas\fR must also be used.
  7250. .IP "\fB\-Wtautological\-compare\fR" 4
  7251. .IX Item "-Wtautological-compare"
  7252. Warn if a self-comparison always evaluates to true or false. This
  7253. warning detects various mistakes such as:
  7254. .Sp
  7255. .Vb 3
  7256. \& int i = 1;
  7257. \& ...
  7258. \& if (i > i) { ... }
  7259. .Ve
  7260. .Sp
  7261. This warning also warns about bitwise comparisons that always evaluate
  7262. to true or false, for instance:
  7263. .Sp
  7264. .Vb 1
  7265. \& if ((a & 16) == 10) { ... }
  7266. .Ve
  7267. .Sp
  7268. will always be false.
  7269. .Sp
  7270. This warning is enabled by \fB\-Wall\fR.
  7271. .IP "\fB\-Wtrampolines\fR" 4
  7272. .IX Item "-Wtrampolines"
  7273. Warn about trampolines generated for pointers to nested functions.
  7274. A trampoline is a small piece of data or code that is created at run
  7275. time on the stack when the address of a nested function is taken, and is
  7276. used to call the nested function indirectly. For some targets, it is
  7277. made up of data only and thus requires no special treatment. But, for
  7278. most targets, it is made up of code and thus requires the stack to be
  7279. made executable in order for the program to work properly.
  7280. .IP "\fB\-Wfloat\-equal\fR" 4
  7281. .IX Item "-Wfloat-equal"
  7282. Warn if floating-point values are used in equality comparisons.
  7283. .Sp
  7284. The idea behind this is that sometimes it is convenient (for the
  7285. programmer) to consider floating-point values as approximations to
  7286. infinitely precise real numbers. If you are doing this, then you need
  7287. to compute (by analyzing the code, or in some other way) the maximum or
  7288. likely maximum error that the computation introduces, and allow for it
  7289. when performing comparisons (and when producing output, but that's a
  7290. different problem). In particular, instead of testing for equality, you
  7291. should check to see whether the two values have ranges that overlap; and
  7292. this is done with the relational operators, so equality comparisons are
  7293. probably mistaken.
  7294. .IP "\fB\-Wtraditional\fR (C and Objective-C only)" 4
  7295. .IX Item "-Wtraditional (C and Objective-C only)"
  7296. Warn about certain constructs that behave differently in traditional and
  7297. \&\s-1ISO C.\s0 Also warn about \s-1ISO C\s0 constructs that have no traditional C
  7298. equivalent, and/or problematic constructs that should be avoided.
  7299. .RS 4
  7300. .IP "*" 4
  7301. Macro parameters that appear within string literals in the macro body.
  7302. In traditional C macro replacement takes place within string literals,
  7303. but in \s-1ISO C\s0 it does not.
  7304. .IP "*" 4
  7305. In traditional C, some preprocessor directives did not exist.
  7306. Traditional preprocessors only considered a line to be a directive
  7307. if the \fB#\fR appeared in column 1 on the line. Therefore
  7308. \&\fB\-Wtraditional\fR warns about directives that traditional C
  7309. understands but ignores because the \fB#\fR does not appear as the
  7310. first character on the line. It also suggests you hide directives like
  7311. \&\f(CW\*(C`#pragma\*(C'\fR not understood by traditional C by indenting them. Some
  7312. traditional implementations do not recognize \f(CW\*(C`#elif\*(C'\fR, so this option
  7313. suggests avoiding it altogether.
  7314. .IP "*" 4
  7315. A function-like macro that appears without arguments.
  7316. .IP "*" 4
  7317. The unary plus operator.
  7318. .IP "*" 4
  7319. The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating-point
  7320. constant suffixes. (Traditional C does support the \fBL\fR suffix on integer
  7321. constants.) Note, these suffixes appear in macros defined in the system
  7322. headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
  7323. Use of these macros in user code might normally lead to spurious
  7324. warnings, however \s-1GCC\s0's integrated preprocessor has enough context to
  7325. avoid warning in these cases.
  7326. .IP "*" 4
  7327. A function declared external in one block and then used after the end of
  7328. the block.
  7329. .IP "*" 4
  7330. A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
  7331. .IP "*" 4
  7332. A non\-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
  7333. This construct is not accepted by some traditional C compilers.
  7334. .IP "*" 4
  7335. The \s-1ISO\s0 type of an integer constant has a different width or
  7336. signedness from its traditional type. This warning is only issued if
  7337. the base of the constant is ten. I.e. hexadecimal or octal values, which
  7338. typically represent bit patterns, are not warned about.
  7339. .IP "*" 4
  7340. Usage of \s-1ISO\s0 string concatenation is detected.
  7341. .IP "*" 4
  7342. Initialization of automatic aggregates.
  7343. .IP "*" 4
  7344. Identifier conflicts with labels. Traditional C lacks a separate
  7345. namespace for labels.
  7346. .IP "*" 4
  7347. Initialization of unions. If the initializer is zero, the warning is
  7348. omitted. This is done under the assumption that the zero initializer in
  7349. user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
  7350. initializer warnings and relies on default initialization to zero in the
  7351. traditional C case.
  7352. .IP "*" 4
  7353. Conversions by prototypes between fixed/floating\-point values and vice
  7354. versa. The absence of these prototypes when compiling with traditional
  7355. C causes serious problems. This is a subset of the possible
  7356. conversion warnings; for the full set use \fB\-Wtraditional\-conversion\fR.
  7357. .IP "*" 4
  7358. Use of \s-1ISO C\s0 style function definitions. This warning intentionally is
  7359. \&\fInot\fR issued for prototype declarations or variadic functions
  7360. because these \s-1ISO C\s0 features appear in your code when using
  7361. libiberty's traditional C compatibility macros, \f(CW\*(C`PARAMS\*(C'\fR and
  7362. \&\f(CW\*(C`VPARAMS\*(C'\fR. This warning is also bypassed for nested functions
  7363. because that feature is already a \s-1GCC\s0 extension and thus not relevant to
  7364. traditional C compatibility.
  7365. .RE
  7366. .RS 4
  7367. .RE
  7368. .IP "\fB\-Wtraditional\-conversion\fR (C and Objective-C only)" 4
  7369. .IX Item "-Wtraditional-conversion (C and Objective-C only)"
  7370. Warn if a prototype causes a type conversion that is different from what
  7371. would happen to the same argument in the absence of a prototype. This
  7372. includes conversions of fixed point to floating and vice versa, and
  7373. conversions changing the width or signedness of a fixed-point argument
  7374. except when the same as the default promotion.
  7375. .IP "\fB\-Wdeclaration\-after\-statement\fR (C and Objective-C only)" 4
  7376. .IX Item "-Wdeclaration-after-statement (C and Objective-C only)"
  7377. Warn when a declaration is found after a statement in a block. This
  7378. construct, known from \*(C+, was introduced with \s-1ISO C99\s0 and is by default
  7379. allowed in \s-1GCC.\s0 It is not supported by \s-1ISO C90.\s0
  7380. .IP "\fB\-Wshadow\fR" 4
  7381. .IX Item "-Wshadow"
  7382. Warn whenever a local variable or type declaration shadows another
  7383. variable, parameter, type, class member (in \*(C+), or instance variable
  7384. (in Objective-C) or whenever a built-in function is shadowed. Note
  7385. that in \*(C+, the compiler warns if a local variable shadows an
  7386. explicit typedef, but not if it shadows a struct/class/enum.
  7387. If this warning is enabled, it includes also all instances of
  7388. local shadowing. This means that \fB\-Wno\-shadow=local\fR
  7389. and \fB\-Wno\-shadow=compatible\-local\fR are ignored when
  7390. \&\fB\-Wshadow\fR is used.
  7391. Same as \fB\-Wshadow=global\fR.
  7392. .IP "\fB\-Wno\-shadow\-ivar\fR (Objective-C only)" 4
  7393. .IX Item "-Wno-shadow-ivar (Objective-C only)"
  7394. Do not warn whenever a local variable shadows an instance variable in an
  7395. Objective-C method.
  7396. .IP "\fB\-Wshadow=global\fR" 4
  7397. .IX Item "-Wshadow=global"
  7398. Warn for any shadowing.
  7399. Same as \fB\-Wshadow\fR.
  7400. .IP "\fB\-Wshadow=local\fR" 4
  7401. .IX Item "-Wshadow=local"
  7402. Warn when a local variable shadows another local variable or parameter.
  7403. .IP "\fB\-Wshadow=compatible\-local\fR" 4
  7404. .IX Item "-Wshadow=compatible-local"
  7405. Warn when a local variable shadows another local variable or parameter
  7406. whose type is compatible with that of the shadowing variable. In \*(C+,
  7407. type compatibility here means the type of the shadowing variable can be
  7408. converted to that of the shadowed variable. The creation of this flag
  7409. (in addition to \fB\-Wshadow=local\fR) is based on the idea that when
  7410. a local variable shadows another one of incompatible type, it is most
  7411. likely intentional, not a bug or typo, as shown in the following example:
  7412. .Sp
  7413. .Vb 8
  7414. \& for (SomeIterator i = SomeObj.begin(); i != SomeObj.end(); ++i)
  7415. \& {
  7416. \& for (int i = 0; i < N; ++i)
  7417. \& {
  7418. \& ...
  7419. \& }
  7420. \& ...
  7421. \& }
  7422. .Ve
  7423. .Sp
  7424. Since the two variable \f(CW\*(C`i\*(C'\fR in the example above have incompatible types,
  7425. enabling only \fB\-Wshadow=compatible\-local\fR does not emit a warning.
  7426. Because their types are incompatible, if a programmer accidentally uses one
  7427. in place of the other, type checking is expected to catch that and emit an
  7428. error or warning. Use of this flag instead of \fB\-Wshadow=local\fR can
  7429. possibly reduce the number of warnings triggered by intentional shadowing.
  7430. Note that this also means that shadowing \f(CW\*(C`const char *i\*(C'\fR by
  7431. \&\f(CW\*(C`char *i\*(C'\fR does not emit a warning.
  7432. .Sp
  7433. This warning is also enabled by \fB\-Wshadow=local\fR.
  7434. .IP "\fB\-Wlarger\-than=\fR\fIbyte-size\fR" 4
  7435. .IX Item "-Wlarger-than=byte-size"
  7436. Warn whenever an object is defined whose size exceeds \fIbyte-size\fR.
  7437. \&\fB\-Wlarger\-than=\fR\fB\s-1PTRDIFF_MAX\s0\fR is enabled by default.
  7438. Warnings controlled by the option can be disabled either by specifying
  7439. \&\fIbyte-size\fR of \fB\s-1SIZE_MAX\s0\fR or more or by \fB\-Wno\-larger\-than\fR.
  7440. .Sp
  7441. Also warn for calls to bounded functions such as \f(CW\*(C`memchr\*(C'\fR or
  7442. \&\f(CW\*(C`strnlen\*(C'\fR that specify a bound greater than the largest possible
  7443. object, which is \fB\s-1PTRDIFF_MAX\s0\fR bytes by default. These warnings
  7444. can only be disabled by \fB\-Wno\-larger\-than\fR.
  7445. .IP "\fB\-Wno\-larger\-than\fR" 4
  7446. .IX Item "-Wno-larger-than"
  7447. Disable \fB\-Wlarger\-than=\fR warnings. The option is equivalent
  7448. to \fB\-Wlarger\-than=\fR\fB\s-1SIZE_MAX\s0\fR or larger.
  7449. .IP "\fB\-Wframe\-larger\-than=\fR\fIbyte-size\fR" 4
  7450. .IX Item "-Wframe-larger-than=byte-size"
  7451. Warn if the size of a function frame exceeds \fIbyte-size\fR.
  7452. The computation done to determine the stack frame size is approximate
  7453. and not conservative.
  7454. The actual requirements may be somewhat greater than \fIbyte-size\fR
  7455. even if you do not get a warning. In addition, any space allocated
  7456. via \f(CW\*(C`alloca\*(C'\fR, variable-length arrays, or related constructs
  7457. is not included by the compiler when determining
  7458. whether or not to issue a warning.
  7459. \&\fB\-Wframe\-larger\-than=\fR\fB\s-1PTRDIFF_MAX\s0\fR is enabled by default.
  7460. Warnings controlled by the option can be disabled either by specifying
  7461. \&\fIbyte-size\fR of \fB\s-1SIZE_MAX\s0\fR or more or by
  7462. \&\fB\-Wno\-frame\-larger\-than\fR.
  7463. .IP "\fB\-Wno\-frame\-larger\-than\fR" 4
  7464. .IX Item "-Wno-frame-larger-than"
  7465. Disable \fB\-Wframe\-larger\-than=\fR warnings. The option is equivalent
  7466. to \fB\-Wframe\-larger\-than=\fR\fB\s-1SIZE_MAX\s0\fR or larger.
  7467. .IP "\fB\-Wno\-free\-nonheap\-object\fR" 4
  7468. .IX Item "-Wno-free-nonheap-object"
  7469. Warn when attempting to deallocate an object that was either not allocated
  7470. on the heap, or by using a pointer that was not returned from a prior call
  7471. to the corresponding allocation function. For example, because the call
  7472. to \f(CW\*(C`stpcpy\*(C'\fR returns a pointer to the terminating nul character and
  7473. not to the begginning of the object, the call to \f(CW\*(C`free\*(C'\fR below is
  7474. diagnosed.
  7475. .Sp
  7476. .Vb 6
  7477. \& void f (char *p)
  7478. \& {
  7479. \& p = stpcpy (p, "abc");
  7480. \& // ...
  7481. \& free (p); // warning
  7482. \& }
  7483. .Ve
  7484. .Sp
  7485. \&\fB\-Wfree\-nonheap\-object\fR is enabled by default.
  7486. .IP "\fB\-Wstack\-usage=\fR\fIbyte-size\fR" 4
  7487. .IX Item "-Wstack-usage=byte-size"
  7488. Warn if the stack usage of a function might exceed \fIbyte-size\fR.
  7489. The computation done to determine the stack usage is conservative.
  7490. Any space allocated via \f(CW\*(C`alloca\*(C'\fR, variable-length arrays, or related
  7491. constructs is included by the compiler when determining whether or not to
  7492. issue a warning.
  7493. .Sp
  7494. The message is in keeping with the output of \fB\-fstack\-usage\fR.
  7495. .RS 4
  7496. .IP "*" 4
  7497. If the stack usage is fully static but exceeds the specified amount, it's:
  7498. .Sp
  7499. .Vb 1
  7500. \& warning: stack usage is 1120 bytes
  7501. .Ve
  7502. .IP "*" 4
  7503. If the stack usage is (partly) dynamic but bounded, it's:
  7504. .Sp
  7505. .Vb 1
  7506. \& warning: stack usage might be 1648 bytes
  7507. .Ve
  7508. .IP "*" 4
  7509. If the stack usage is (partly) dynamic and not bounded, it's:
  7510. .Sp
  7511. .Vb 1
  7512. \& warning: stack usage might be unbounded
  7513. .Ve
  7514. .RE
  7515. .RS 4
  7516. .Sp
  7517. \&\fB\-Wstack\-usage=\fR\fB\s-1PTRDIFF_MAX\s0\fR is enabled by default.
  7518. Warnings controlled by the option can be disabled either by specifying
  7519. \&\fIbyte-size\fR of \fB\s-1SIZE_MAX\s0\fR or more or by
  7520. \&\fB\-Wno\-stack\-usage\fR.
  7521. .RE
  7522. .IP "\fB\-Wno\-stack\-usage\fR" 4
  7523. .IX Item "-Wno-stack-usage"
  7524. Disable \fB\-Wstack\-usage=\fR warnings. The option is equivalent
  7525. to \fB\-Wstack\-usage=\fR\fB\s-1SIZE_MAX\s0\fR or larger.
  7526. .IP "\fB\-Wunsafe\-loop\-optimizations\fR" 4
  7527. .IX Item "-Wunsafe-loop-optimizations"
  7528. Warn if the loop cannot be optimized because the compiler cannot
  7529. assume anything on the bounds of the loop indices. With
  7530. \&\fB\-funsafe\-loop\-optimizations\fR warn if the compiler makes
  7531. such assumptions.
  7532. .IP "\fB\-Wno\-pedantic\-ms\-format\fR (MinGW targets only)" 4
  7533. .IX Item "-Wno-pedantic-ms-format (MinGW targets only)"
  7534. When used in combination with \fB\-Wformat\fR
  7535. and \fB\-pedantic\fR without \s-1GNU\s0 extensions, this option
  7536. disables the warnings about non-ISO \f(CW\*(C`printf\*(C'\fR / \f(CW\*(C`scanf\*(C'\fR format
  7537. width specifiers \f(CW\*(C`I32\*(C'\fR, \f(CW\*(C`I64\*(C'\fR, and \f(CW\*(C`I\*(C'\fR used on Windows targets,
  7538. which depend on the \s-1MS\s0 runtime.
  7539. .IP "\fB\-Wpointer\-arith\fR" 4
  7540. .IX Item "-Wpointer-arith"
  7541. Warn about anything that depends on the \*(L"size of\*(R" a function type or
  7542. of \f(CW\*(C`void\*(C'\fR. \s-1GNU C\s0 assigns these types a size of 1, for
  7543. convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
  7544. to functions. In \*(C+, warn also when an arithmetic operation involves
  7545. \&\f(CW\*(C`NULL\*(C'\fR. This warning is also enabled by \fB\-Wpedantic\fR.
  7546. .IP "\fB\-Wno\-pointer\-compare\fR" 4
  7547. .IX Item "-Wno-pointer-compare"
  7548. Do not warn if a pointer is compared with a zero character constant.
  7549. This usually
  7550. means that the pointer was meant to be dereferenced. For example:
  7551. .Sp
  7552. .Vb 3
  7553. \& const char *p = foo ();
  7554. \& if (p == \*(Aq\e0\*(Aq)
  7555. \& return 42;
  7556. .Ve
  7557. .Sp
  7558. Note that the code above is invalid in \*(C+11.
  7559. .Sp
  7560. This warning is enabled by default.
  7561. .IP "\fB\-Wtsan\fR" 4
  7562. .IX Item "-Wtsan"
  7563. Warn about unsupported features in ThreadSanitizer.
  7564. .Sp
  7565. ThreadSanitizer does not support \f(CW\*(C`std::atomic_thread_fence\*(C'\fR and
  7566. can report false positives.
  7567. .Sp
  7568. This warning is enabled by default.
  7569. .IP "\fB\-Wtype\-limits\fR" 4
  7570. .IX Item "-Wtype-limits"
  7571. Warn if a comparison is always true or always false due to the limited
  7572. range of the data type, but do not warn for constant expressions. For
  7573. example, warn if an unsigned variable is compared against zero with
  7574. \&\f(CW\*(C`<\*(C'\fR or \f(CW\*(C`>=\*(C'\fR. This warning is also enabled by
  7575. \&\fB\-Wextra\fR.
  7576. .IP "\fB\-Wabsolute\-value\fR (C and Objective-C only)" 4
  7577. .IX Item "-Wabsolute-value (C and Objective-C only)"
  7578. Warn for calls to standard functions that compute the absolute value
  7579. of an argument when a more appropriate standard function is available.
  7580. For example, calling \f(CW\*(C`abs(3.14)\*(C'\fR triggers the warning because the
  7581. appropriate function to call to compute the absolute value of a double
  7582. argument is \f(CW\*(C`fabs\*(C'\fR. The option also triggers warnings when the
  7583. argument in a call to such a function has an unsigned type. This
  7584. warning can be suppressed with an explicit type cast and it is also
  7585. enabled by \fB\-Wextra\fR.
  7586. .IP "\fB\-Wcomment\fR" 4
  7587. .IX Item "-Wcomment"
  7588. .PD 0
  7589. .IP "\fB\-Wcomments\fR" 4
  7590. .IX Item "-Wcomments"
  7591. .PD
  7592. Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
  7593. comment, or whenever a backslash-newline appears in a \fB//\fR comment.
  7594. This warning is enabled by \fB\-Wall\fR.
  7595. .IP "\fB\-Wtrigraphs\fR" 4
  7596. .IX Item "-Wtrigraphs"
  7597. Warn if any trigraphs are encountered that might change the meaning of
  7598. the program. Trigraphs within comments are not warned about,
  7599. except those that would form escaped newlines.
  7600. .Sp
  7601. This option is implied by \fB\-Wall\fR. If \fB\-Wall\fR is not
  7602. given, this option is still enabled unless trigraphs are enabled. To
  7603. get trigraph conversion without warnings, but get the other
  7604. \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
  7605. .IP "\fB\-Wundef\fR" 4
  7606. .IX Item "-Wundef"
  7607. Warn if an undefined identifier is evaluated in an \f(CW\*(C`#if\*(C'\fR directive.
  7608. Such identifiers are replaced with zero.
  7609. .IP "\fB\-Wexpansion\-to\-defined\fR" 4
  7610. .IX Item "-Wexpansion-to-defined"
  7611. Warn whenever \fBdefined\fR is encountered in the expansion of a macro
  7612. (including the case where the macro is expanded by an \fB#if\fR directive).
  7613. Such usage is not portable.
  7614. This warning is also enabled by \fB\-Wpedantic\fR and \fB\-Wextra\fR.
  7615. .IP "\fB\-Wunused\-macros\fR" 4
  7616. .IX Item "-Wunused-macros"
  7617. Warn about macros defined in the main file that are unused. A macro
  7618. is \fIused\fR if it is expanded or tested for existence at least once.
  7619. The preprocessor also warns if the macro has not been used at the
  7620. time it is redefined or undefined.
  7621. .Sp
  7622. Built-in macros, macros defined on the command line, and macros
  7623. defined in include files are not warned about.
  7624. .Sp
  7625. \&\fINote:\fR If a macro is actually used, but only used in skipped
  7626. conditional blocks, then the preprocessor reports it as unused. To avoid the
  7627. warning in such a case, you might improve the scope of the macro's
  7628. definition by, for example, moving it into the first skipped block.
  7629. Alternatively, you could provide a dummy use with something like:
  7630. .Sp
  7631. .Vb 2
  7632. \& #if defined the_macro_causing_the_warning
  7633. \& #endif
  7634. .Ve
  7635. .IP "\fB\-Wno\-endif\-labels\fR" 4
  7636. .IX Item "-Wno-endif-labels"
  7637. Do not warn whenever an \f(CW\*(C`#else\*(C'\fR or an \f(CW\*(C`#endif\*(C'\fR are followed by text.
  7638. This sometimes happens in older programs with code of the form
  7639. .Sp
  7640. .Vb 5
  7641. \& #if FOO
  7642. \& ...
  7643. \& #else FOO
  7644. \& ...
  7645. \& #endif FOO
  7646. .Ve
  7647. .Sp
  7648. The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments.
  7649. This warning is on by default.
  7650. .IP "\fB\-Wbad\-function\-cast\fR (C and Objective-C only)" 4
  7651. .IX Item "-Wbad-function-cast (C and Objective-C only)"
  7652. Warn when a function call is cast to a non-matching type.
  7653. For example, warn if a call to a function returning an integer type
  7654. is cast to a pointer type.
  7655. .IP "\fB\-Wc90\-c99\-compat\fR (C and Objective-C only)" 4
  7656. .IX Item "-Wc90-c99-compat (C and Objective-C only)"
  7657. Warn about features not present in \s-1ISO C90,\s0 but present in \s-1ISO C99.\s0
  7658. For instance, warn about use of variable length arrays, \f(CW\*(C`long long\*(C'\fR
  7659. type, \f(CW\*(C`bool\*(C'\fR type, compound literals, designated initializers, and so
  7660. on. This option is independent of the standards mode. Warnings are disabled
  7661. in the expression that follows \f(CW\*(C`_\|_extension_\|_\*(C'\fR.
  7662. .IP "\fB\-Wc99\-c11\-compat\fR (C and Objective-C only)" 4
  7663. .IX Item "-Wc99-c11-compat (C and Objective-C only)"
  7664. Warn about features not present in \s-1ISO C99,\s0 but present in \s-1ISO C11.\s0
  7665. For instance, warn about use of anonymous structures and unions,
  7666. \&\f(CW\*(C`_Atomic\*(C'\fR type qualifier, \f(CW\*(C`_Thread_local\*(C'\fR storage-class specifier,
  7667. \&\f(CW\*(C`_Alignas\*(C'\fR specifier, \f(CW\*(C`Alignof\*(C'\fR operator, \f(CW\*(C`_Generic\*(C'\fR keyword,
  7668. and so on. This option is independent of the standards mode. Warnings are
  7669. disabled in the expression that follows \f(CW\*(C`_\|_extension_\|_\*(C'\fR.
  7670. .IP "\fB\-Wc11\-c2x\-compat\fR (C and Objective-C only)" 4
  7671. .IX Item "-Wc11-c2x-compat (C and Objective-C only)"
  7672. Warn about features not present in \s-1ISO C11,\s0 but present in \s-1ISO C2X.\s0
  7673. For instance, warn about omitting the string in \f(CW\*(C`_Static_assert\*(C'\fR,
  7674. use of \fB[[]]\fR syntax for attributes, use of decimal
  7675. floating-point types, and so on. This option is independent of the
  7676. standards mode. Warnings are disabled in the expression that follows
  7677. \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.
  7678. .IP "\fB\-Wc++\-compat\fR (C and Objective-C only)" 4
  7679. .IX Item "-Wc++-compat (C and Objective-C only)"
  7680. Warn about \s-1ISO C\s0 constructs that are outside of the common subset of
  7681. \&\s-1ISO C\s0 and \s-1ISO \*(C+,\s0 e.g. request for implicit conversion from
  7682. \&\f(CW\*(C`void *\*(C'\fR to a pointer to non\-\f(CW\*(C`void\*(C'\fR type.
  7683. .IP "\fB\-Wc++11\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
  7684. .IX Item "-Wc++11-compat ( and Objective- only)"
  7685. Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 1998\s0
  7686. and \s-1ISO \*(C+ 2011,\s0 e.g., identifiers in \s-1ISO \*(C+ 1998\s0 that are keywords
  7687. in \s-1ISO \*(C+ 2011.\s0 This warning turns on \fB\-Wnarrowing\fR and is
  7688. enabled by \fB\-Wall\fR.
  7689. .IP "\fB\-Wc++14\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
  7690. .IX Item "-Wc++14-compat ( and Objective- only)"
  7691. Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 2011\s0
  7692. and \s-1ISO \*(C+ 2014.\s0 This warning is enabled by \fB\-Wall\fR.
  7693. .IP "\fB\-Wc++17\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
  7694. .IX Item "-Wc++17-compat ( and Objective- only)"
  7695. Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 2014\s0
  7696. and \s-1ISO \*(C+ 2017.\s0 This warning is enabled by \fB\-Wall\fR.
  7697. .IP "\fB\-Wc++20\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
  7698. .IX Item "-Wc++20-compat ( and Objective- only)"
  7699. Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 2017\s0
  7700. and \s-1ISO \*(C+ 2020.\s0 This warning is enabled by \fB\-Wall\fR.
  7701. .IP "\fB\-Wcast\-qual\fR" 4
  7702. .IX Item "-Wcast-qual"
  7703. Warn whenever a pointer is cast so as to remove a type qualifier from
  7704. the target type. For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
  7705. to an ordinary \f(CW\*(C`char *\*(C'\fR.
  7706. .Sp
  7707. Also warn when making a cast that introduces a type qualifier in an
  7708. unsafe way. For example, casting \f(CW\*(C`char **\*(C'\fR to \f(CW\*(C`const char **\*(C'\fR
  7709. is unsafe, as in this example:
  7710. .Sp
  7711. .Vb 6
  7712. \& /* p is char ** value. */
  7713. \& const char **q = (const char **) p;
  7714. \& /* Assignment of readonly string to const char * is OK. */
  7715. \& *q = "string";
  7716. \& /* Now char** pointer points to read\-only memory. */
  7717. \& **p = \*(Aqb\*(Aq;
  7718. .Ve
  7719. .IP "\fB\-Wcast\-align\fR" 4
  7720. .IX Item "-Wcast-align"
  7721. Warn whenever a pointer is cast such that the required alignment of the
  7722. target is increased. For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
  7723. an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
  7724. two\- or four-byte boundaries.
  7725. .IP "\fB\-Wcast\-align=strict\fR" 4
  7726. .IX Item "-Wcast-align=strict"
  7727. Warn whenever a pointer is cast such that the required alignment of the
  7728. target is increased. For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
  7729. an \f(CW\*(C`int *\*(C'\fR regardless of the target machine.
  7730. .IP "\fB\-Wcast\-function\-type\fR" 4
  7731. .IX Item "-Wcast-function-type"
  7732. Warn when a function pointer is cast to an incompatible function pointer.
  7733. In a cast involving function types with a variable argument list only
  7734. the types of initial arguments that are provided are considered.
  7735. Any parameter of pointer-type matches any other pointer-type. Any benign
  7736. differences in integral types are ignored, like \f(CW\*(C`int\*(C'\fR vs. \f(CW\*(C`long\*(C'\fR
  7737. on \s-1ILP32\s0 targets. Likewise type qualifiers are ignored. The function
  7738. type \f(CW\*(C`void (*) (void)\*(C'\fR is special and matches everything, which can
  7739. be used to suppress this warning.
  7740. In a cast involving pointer to member types this warning warns whenever
  7741. the type cast is changing the pointer to member type.
  7742. This warning is enabled by \fB\-Wextra\fR.
  7743. .IP "\fB\-Wwrite\-strings\fR" 4
  7744. .IX Item "-Wwrite-strings"
  7745. When compiling C, give string constants the type \f(CW\*(C`const
  7746. char[\f(CIlength\f(CW]\*(C'\fR so that copying the address of one into a
  7747. non\-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR pointer produces a warning. These
  7748. warnings help you find at compile time code that can try to write
  7749. into a string constant, but only if you have been very careful about
  7750. using \f(CW\*(C`const\*(C'\fR in declarations and prototypes. Otherwise, it is
  7751. just a nuisance. This is why we did not make \fB\-Wall\fR request
  7752. these warnings.
  7753. .Sp
  7754. When compiling \*(C+, warn about the deprecated conversion from string
  7755. literals to \f(CW\*(C`char *\*(C'\fR. This warning is enabled by default for \*(C+
  7756. programs.
  7757. .IP "\fB\-Wclobbered\fR" 4
  7758. .IX Item "-Wclobbered"
  7759. Warn for variables that might be changed by \f(CW\*(C`longjmp\*(C'\fR or
  7760. \&\f(CW\*(C`vfork\*(C'\fR. This warning is also enabled by \fB\-Wextra\fR.
  7761. .IP "\fB\-Wconversion\fR" 4
  7762. .IX Item "-Wconversion"
  7763. Warn for implicit conversions that may alter a value. This includes
  7764. conversions between real and integer, like \f(CW\*(C`abs (x)\*(C'\fR when
  7765. \&\f(CW\*(C`x\*(C'\fR is \f(CW\*(C`double\*(C'\fR; conversions between signed and unsigned,
  7766. like \f(CW\*(C`unsigned ui = \-1\*(C'\fR; and conversions to smaller types, like
  7767. \&\f(CW\*(C`sqrtf (M_PI)\*(C'\fR. Do not warn for explicit casts like \f(CW\*(C`abs
  7768. ((int) x)\*(C'\fR and \f(CW\*(C`ui = (unsigned) \-1\*(C'\fR, or if the value is not
  7769. changed by the conversion like in \f(CW\*(C`abs (2.0)\*(C'\fR. Warnings about
  7770. conversions between signed and unsigned integers can be disabled by
  7771. using \fB\-Wno\-sign\-conversion\fR.
  7772. .Sp
  7773. For \*(C+, also warn for confusing overload resolution for user-defined
  7774. conversions; and conversions that never use a type conversion
  7775. operator: conversions to \f(CW\*(C`void\*(C'\fR, the same type, a base class or a
  7776. reference to them. Warnings about conversions between signed and
  7777. unsigned integers are disabled by default in \*(C+ unless
  7778. \&\fB\-Wsign\-conversion\fR is explicitly enabled.
  7779. .Sp
  7780. Warnings about conversion from arithmetic on a small type back to that
  7781. type are only given with \fB\-Warith\-conversion\fR.
  7782. .IP "\fB\-Wdangling\-else\fR" 4
  7783. .IX Item "-Wdangling-else"
  7784. Warn about constructions where there may be confusion to which
  7785. \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs. Here is an example of
  7786. such a case:
  7787. .Sp
  7788. .Vb 7
  7789. \& {
  7790. \& if (a)
  7791. \& if (b)
  7792. \& foo ();
  7793. \& else
  7794. \& bar ();
  7795. \& }
  7796. .Ve
  7797. .Sp
  7798. In C/\*(C+, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible
  7799. \&\f(CW\*(C`if\*(C'\fR statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR. This is
  7800. often not what the programmer expected, as illustrated in the above
  7801. example by indentation the programmer chose. When there is the
  7802. potential for this confusion, \s-1GCC\s0 issues a warning when this flag
  7803. is specified. To eliminate the warning, add explicit braces around
  7804. the innermost \f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR
  7805. can belong to the enclosing \f(CW\*(C`if\*(C'\fR. The resulting code
  7806. looks like this:
  7807. .Sp
  7808. .Vb 9
  7809. \& {
  7810. \& if (a)
  7811. \& {
  7812. \& if (b)
  7813. \& foo ();
  7814. \& else
  7815. \& bar ();
  7816. \& }
  7817. \& }
  7818. .Ve
  7819. .Sp
  7820. This warning is enabled by \fB\-Wparentheses\fR.
  7821. .IP "\fB\-Wdate\-time\fR" 4
  7822. .IX Item "-Wdate-time"
  7823. Warn when macros \f(CW\*(C`_\|_TIME_\|_\*(C'\fR, \f(CW\*(C`_\|_DATE_\|_\*(C'\fR or \f(CW\*(C`_\|_TIMESTAMP_\|_\*(C'\fR
  7824. are encountered as they might prevent bit-wise-identical reproducible
  7825. compilations.
  7826. .IP "\fB\-Wempty\-body\fR" 4
  7827. .IX Item "-Wempty-body"
  7828. Warn if an empty body occurs in an \f(CW\*(C`if\*(C'\fR, \f(CW\*(C`else\*(C'\fR or \f(CW\*(C`do
  7829. while\*(C'\fR statement. This warning is also enabled by \fB\-Wextra\fR.
  7830. .IP "\fB\-Wno\-endif\-labels\fR" 4
  7831. .IX Item "-Wno-endif-labels"
  7832. Do not warn about stray tokens after \f(CW\*(C`#else\*(C'\fR and \f(CW\*(C`#endif\*(C'\fR.
  7833. .IP "\fB\-Wenum\-compare\fR" 4
  7834. .IX Item "-Wenum-compare"
  7835. Warn about a comparison between values of different enumerated types.
  7836. In \*(C+ enumerated type mismatches in conditional expressions are also
  7837. diagnosed and the warning is enabled by default. In C this warning is
  7838. enabled by \fB\-Wall\fR.
  7839. .IP "\fB\-Wenum\-conversion\fR" 4
  7840. .IX Item "-Wenum-conversion"
  7841. Warn when a value of enumerated type is implicitly converted to a
  7842. different enumerated type. This warning is enabled by \fB\-Wextra\fR
  7843. in C.
  7844. .IP "\fB\-Wjump\-misses\-init\fR (C, Objective-C only)" 4
  7845. .IX Item "-Wjump-misses-init (C, Objective-C only)"
  7846. Warn if a \f(CW\*(C`goto\*(C'\fR statement or a \f(CW\*(C`switch\*(C'\fR statement jumps
  7847. forward across the initialization of a variable, or jumps backward to a
  7848. label after the variable has been initialized. This only warns about
  7849. variables that are initialized when they are declared. This warning is
  7850. only supported for C and Objective-C; in \*(C+ this sort of branch is an
  7851. error in any case.
  7852. .Sp
  7853. \&\fB\-Wjump\-misses\-init\fR is included in \fB\-Wc++\-compat\fR. It
  7854. can be disabled with the \fB\-Wno\-jump\-misses\-init\fR option.
  7855. .IP "\fB\-Wsign\-compare\fR" 4
  7856. .IX Item "-Wsign-compare"
  7857. Warn when a comparison between signed and unsigned values could produce
  7858. an incorrect result when the signed value is converted to unsigned.
  7859. In \*(C+, this warning is also enabled by \fB\-Wall\fR. In C, it is
  7860. also enabled by \fB\-Wextra\fR.
  7861. .IP "\fB\-Wsign\-conversion\fR" 4
  7862. .IX Item "-Wsign-conversion"
  7863. Warn for implicit conversions that may change the sign of an integer
  7864. value, like assigning a signed integer expression to an unsigned
  7865. integer variable. An explicit cast silences the warning. In C, this
  7866. option is enabled also by \fB\-Wconversion\fR.
  7867. .IP "\fB\-Wfloat\-conversion\fR" 4
  7868. .IX Item "-Wfloat-conversion"
  7869. Warn for implicit conversions that reduce the precision of a real value.
  7870. This includes conversions from real to integer, and from higher precision
  7871. real to lower precision real values. This option is also enabled by
  7872. \&\fB\-Wconversion\fR.
  7873. .IP "\fB\-Wno\-scalar\-storage\-order\fR" 4
  7874. .IX Item "-Wno-scalar-storage-order"
  7875. Do not warn on suspicious constructs involving reverse scalar storage order.
  7876. .IP "\fB\-Wsizeof\-array\-div\fR" 4
  7877. .IX Item "-Wsizeof-array-div"
  7878. Warn about divisions of two sizeof operators when the first one is applied
  7879. to an array and the divisor does not equal the size of the array element.
  7880. In such a case, the computation will not yield the number of elements in the
  7881. array, which is likely what the user intended. This warning warns e.g. about
  7882. .Sp
  7883. .Vb 5
  7884. \& int fn ()
  7885. \& {
  7886. \& int arr[10];
  7887. \& return sizeof (arr) / sizeof (short);
  7888. \& }
  7889. .Ve
  7890. .Sp
  7891. This warning is enabled by \fB\-Wall\fR.
  7892. .IP "\fB\-Wsizeof\-pointer\-div\fR" 4
  7893. .IX Item "-Wsizeof-pointer-div"
  7894. Warn for suspicious divisions of two sizeof expressions that divide
  7895. the pointer size by the element size, which is the usual way to compute
  7896. the array size but won't work out correctly with pointers. This warning
  7897. warns e.g. about \f(CW\*(C`sizeof (ptr) / sizeof (ptr[0])\*(C'\fR if \f(CW\*(C`ptr\*(C'\fR is
  7898. not an array, but a pointer. This warning is enabled by \fB\-Wall\fR.
  7899. .IP "\fB\-Wsizeof\-pointer\-memaccess\fR" 4
  7900. .IX Item "-Wsizeof-pointer-memaccess"
  7901. Warn for suspicious length parameters to certain string and memory built-in
  7902. functions if the argument uses \f(CW\*(C`sizeof\*(C'\fR. This warning triggers for
  7903. example for \f(CW\*(C`memset (ptr, 0, sizeof (ptr));\*(C'\fR if \f(CW\*(C`ptr\*(C'\fR is not
  7904. an array, but a pointer, and suggests a possible fix, or about
  7905. \&\f(CW\*(C`memcpy (&foo, ptr, sizeof (&foo));\*(C'\fR. \fB\-Wsizeof\-pointer\-memaccess\fR
  7906. also warns about calls to bounded string copy functions like \f(CW\*(C`strncat\*(C'\fR
  7907. or \f(CW\*(C`strncpy\*(C'\fR that specify as the bound a \f(CW\*(C`sizeof\*(C'\fR expression of
  7908. the source array. For example, in the following function the call to
  7909. \&\f(CW\*(C`strncat\*(C'\fR specifies the size of the source string as the bound. That
  7910. is almost certainly a mistake and so the call is diagnosed.
  7911. .Sp
  7912. .Vb 7
  7913. \& void make_file (const char *name)
  7914. \& {
  7915. \& char path[PATH_MAX];
  7916. \& strncpy (path, name, sizeof path \- 1);
  7917. \& strncat (path, ".text", sizeof ".text");
  7918. \& ...
  7919. \& }
  7920. .Ve
  7921. .Sp
  7922. The \fB\-Wsizeof\-pointer\-memaccess\fR option is enabled by \fB\-Wall\fR.
  7923. .IP "\fB\-Wno\-sizeof\-array\-argument\fR" 4
  7924. .IX Item "-Wno-sizeof-array-argument"
  7925. Do not warn when the \f(CW\*(C`sizeof\*(C'\fR operator is applied to a parameter that is
  7926. declared as an array in a function definition. This warning is enabled by
  7927. default for C and \*(C+ programs.
  7928. .IP "\fB\-Wmemset\-elt\-size\fR" 4
  7929. .IX Item "-Wmemset-elt-size"
  7930. Warn for suspicious calls to the \f(CW\*(C`memset\*(C'\fR built-in function, if the
  7931. first argument references an array, and the third argument is a number
  7932. equal to the number of elements, but not equal to the size of the array
  7933. in memory. This indicates that the user has omitted a multiplication by
  7934. the element size. This warning is enabled by \fB\-Wall\fR.
  7935. .IP "\fB\-Wmemset\-transposed\-args\fR" 4
  7936. .IX Item "-Wmemset-transposed-args"
  7937. Warn for suspicious calls to the \f(CW\*(C`memset\*(C'\fR built-in function where
  7938. the second argument is not zero and the third argument is zero. For
  7939. example, the call \f(CW\*(C`memset (buf, sizeof buf, 0)\*(C'\fR is diagnosed because
  7940. \&\f(CW\*(C`memset (buf, 0, sizeof buf)\*(C'\fR was meant instead. The diagnostic
  7941. is only emitted if the third argument is a literal zero. Otherwise, if
  7942. it is an expression that is folded to zero, or a cast of zero to some
  7943. type, it is far less likely that the arguments have been mistakenly
  7944. transposed and no warning is emitted. This warning is enabled
  7945. by \fB\-Wall\fR.
  7946. .IP "\fB\-Waddress\fR" 4
  7947. .IX Item "-Waddress"
  7948. Warn about suspicious uses of memory addresses. These include using
  7949. the address of a function in a conditional expression, such as
  7950. \&\f(CW\*(C`void func(void); if (func)\*(C'\fR, and comparisons against the memory
  7951. address of a string literal, such as \f(CW\*(C`if (x == "abc")\*(C'\fR. Such
  7952. uses typically indicate a programmer error: the address of a function
  7953. always evaluates to true, so their use in a conditional usually
  7954. indicate that the programmer forgot the parentheses in a function
  7955. call; and comparisons against string literals result in unspecified
  7956. behavior and are not portable in C, so they usually indicate that the
  7957. programmer intended to use \f(CW\*(C`strcmp\*(C'\fR. This warning is enabled by
  7958. \&\fB\-Wall\fR.
  7959. .IP "\fB\-Wno\-address\-of\-packed\-member\fR" 4
  7960. .IX Item "-Wno-address-of-packed-member"
  7961. Do not warn when the address of packed member of struct or union is taken,
  7962. which usually results in an unaligned pointer value. This is
  7963. enabled by default.
  7964. .IP "\fB\-Wlogical\-op\fR" 4
  7965. .IX Item "-Wlogical-op"
  7966. Warn about suspicious uses of logical operators in expressions.
  7967. This includes using logical operators in contexts where a
  7968. bit-wise operator is likely to be expected. Also warns when
  7969. the operands of a logical operator are the same:
  7970. .Sp
  7971. .Vb 2
  7972. \& extern int a;
  7973. \& if (a < 0 && a < 0) { ... }
  7974. .Ve
  7975. .IP "\fB\-Wlogical\-not\-parentheses\fR" 4
  7976. .IX Item "-Wlogical-not-parentheses"
  7977. Warn about logical not used on the left hand side operand of a comparison.
  7978. This option does not warn if the right operand is considered to be a boolean
  7979. expression. Its purpose is to detect suspicious code like the following:
  7980. .Sp
  7981. .Vb 3
  7982. \& int a;
  7983. \& ...
  7984. \& if (!a > 1) { ... }
  7985. .Ve
  7986. .Sp
  7987. It is possible to suppress the warning by wrapping the \s-1LHS\s0 into
  7988. parentheses:
  7989. .Sp
  7990. .Vb 1
  7991. \& if ((!a) > 1) { ... }
  7992. .Ve
  7993. .Sp
  7994. This warning is enabled by \fB\-Wall\fR.
  7995. .IP "\fB\-Waggregate\-return\fR" 4
  7996. .IX Item "-Waggregate-return"
  7997. Warn if any functions that return structures or unions are defined or
  7998. called. (In languages where you can return an array, this also elicits
  7999. a warning.)
  8000. .IP "\fB\-Wno\-aggressive\-loop\-optimizations\fR" 4
  8001. .IX Item "-Wno-aggressive-loop-optimizations"
  8002. Warn if in a loop with constant number of iterations the compiler detects
  8003. undefined behavior in some statement during one or more of the iterations.
  8004. .IP "\fB\-Wno\-attributes\fR" 4
  8005. .IX Item "-Wno-attributes"
  8006. Do not warn if an unexpected \f(CW\*(C`_\|_attribute_\|_\*(C'\fR is used, such as
  8007. unrecognized attributes, function attributes applied to variables,
  8008. etc. This does not stop errors for incorrect use of supported
  8009. attributes.
  8010. .IP "\fB\-Wno\-builtin\-declaration\-mismatch\fR" 4
  8011. .IX Item "-Wno-builtin-declaration-mismatch"
  8012. Warn if a built-in function is declared with an incompatible signature
  8013. or as a non-function, or when a built-in function declared with a type
  8014. that does not include a prototype is called with arguments whose promoted
  8015. types do not match those expected by the function. When \fB\-Wextra\fR
  8016. is specified, also warn when a built-in function that takes arguments is
  8017. declared without a prototype. The \fB\-Wbuiltin\-declaration\-mismatch\fR
  8018. warning is enabled by default. To avoid the warning include the appropriate
  8019. header to bring the prototypes of built-in functions into scope.
  8020. .Sp
  8021. For example, the call to \f(CW\*(C`memset\*(C'\fR below is diagnosed by the warning
  8022. because the function expects a value of type \f(CW\*(C`size_t\*(C'\fR as its argument
  8023. but the type of \f(CW32\fR is \f(CW\*(C`int\*(C'\fR. With \fB\-Wextra\fR,
  8024. the declaration of the function is diagnosed as well.
  8025. .Sp
  8026. .Vb 5
  8027. \& extern void* memset ();
  8028. \& void f (void *d)
  8029. \& {
  8030. \& memset (d, \*(Aq\e0\*(Aq, 32);
  8031. \& }
  8032. .Ve
  8033. .IP "\fB\-Wno\-builtin\-macro\-redefined\fR" 4
  8034. .IX Item "-Wno-builtin-macro-redefined"
  8035. Do not warn if certain built-in macros are redefined. This suppresses
  8036. warnings for redefinition of \f(CW\*(C`_\|_TIMESTAMP_\|_\*(C'\fR, \f(CW\*(C`_\|_TIME_\|_\*(C'\fR,
  8037. \&\f(CW\*(C`_\|_DATE_\|_\*(C'\fR, \f(CW\*(C`_\|_FILE_\|_\*(C'\fR, and \f(CW\*(C`_\|_BASE_FILE_\|_\*(C'\fR.
  8038. .IP "\fB\-Wstrict\-prototypes\fR (C and Objective-C only)" 4
  8039. .IX Item "-Wstrict-prototypes (C and Objective-C only)"
  8040. Warn if a function is declared or defined without specifying the
  8041. argument types. (An old-style function definition is permitted without
  8042. a warning if preceded by a declaration that specifies the argument
  8043. types.)
  8044. .IP "\fB\-Wold\-style\-declaration\fR (C and Objective-C only)" 4
  8045. .IX Item "-Wold-style-declaration (C and Objective-C only)"
  8046. Warn for obsolescent usages, according to the C Standard, in a
  8047. declaration. For example, warn if storage-class specifiers like
  8048. \&\f(CW\*(C`static\*(C'\fR are not the first things in a declaration. This warning
  8049. is also enabled by \fB\-Wextra\fR.
  8050. .IP "\fB\-Wold\-style\-definition\fR (C and Objective-C only)" 4
  8051. .IX Item "-Wold-style-definition (C and Objective-C only)"
  8052. Warn if an old-style function definition is used. A warning is given
  8053. even if there is a previous prototype. A definition using \fB()\fR
  8054. is not considered an old-style definition in C2X mode, because it is
  8055. equivalent to \fB(void)\fR in that case, but is considered an
  8056. old-style definition for older standards.
  8057. .IP "\fB\-Wmissing\-parameter\-type\fR (C and Objective-C only)" 4
  8058. .IX Item "-Wmissing-parameter-type (C and Objective-C only)"
  8059. A function parameter is declared without a type specifier in K&R\-style
  8060. functions:
  8061. .Sp
  8062. .Vb 1
  8063. \& void foo(bar) { }
  8064. .Ve
  8065. .Sp
  8066. This warning is also enabled by \fB\-Wextra\fR.
  8067. .IP "\fB\-Wmissing\-prototypes\fR (C and Objective-C only)" 4
  8068. .IX Item "-Wmissing-prototypes (C and Objective-C only)"
  8069. Warn if a global function is defined without a previous prototype
  8070. declaration. This warning is issued even if the definition itself
  8071. provides a prototype. Use this option to detect global functions
  8072. that do not have a matching prototype declaration in a header file.
  8073. This option is not valid for \*(C+ because all function declarations
  8074. provide prototypes and a non-matching declaration declares an
  8075. overload rather than conflict with an earlier declaration.
  8076. Use \fB\-Wmissing\-declarations\fR to detect missing declarations in \*(C+.
  8077. .IP "\fB\-Wmissing\-declarations\fR" 4
  8078. .IX Item "-Wmissing-declarations"
  8079. Warn if a global function is defined without a previous declaration.
  8080. Do so even if the definition itself provides a prototype.
  8081. Use this option to detect global functions that are not declared in
  8082. header files. In C, no warnings are issued for functions with previous
  8083. non-prototype declarations; use \fB\-Wmissing\-prototypes\fR to detect
  8084. missing prototypes. In \*(C+, no warnings are issued for function templates,
  8085. or for inline functions, or for functions in anonymous namespaces.
  8086. .IP "\fB\-Wmissing\-field\-initializers\fR" 4
  8087. .IX Item "-Wmissing-field-initializers"
  8088. Warn if a structure's initializer has some fields missing. For
  8089. example, the following code causes such a warning, because
  8090. \&\f(CW\*(C`x.h\*(C'\fR is implicitly zero:
  8091. .Sp
  8092. .Vb 2
  8093. \& struct s { int f, g, h; };
  8094. \& struct s x = { 3, 4 };
  8095. .Ve
  8096. .Sp
  8097. This option does not warn about designated initializers, so the following
  8098. modification does not trigger a warning:
  8099. .Sp
  8100. .Vb 2
  8101. \& struct s { int f, g, h; };
  8102. \& struct s x = { .f = 3, .g = 4 };
  8103. .Ve
  8104. .Sp
  8105. In C this option does not warn about the universal zero initializer
  8106. \&\fB{ 0 }\fR:
  8107. .Sp
  8108. .Vb 2
  8109. \& struct s { int f, g, h; };
  8110. \& struct s x = { 0 };
  8111. .Ve
  8112. .Sp
  8113. Likewise, in \*(C+ this option does not warn about the empty { }
  8114. initializer, for example:
  8115. .Sp
  8116. .Vb 2
  8117. \& struct s { int f, g, h; };
  8118. \& s x = { };
  8119. .Ve
  8120. .Sp
  8121. This warning is included in \fB\-Wextra\fR. To get other \fB\-Wextra\fR
  8122. warnings without this one, use \fB\-Wextra \-Wno\-missing\-field\-initializers\fR.
  8123. .IP "\fB\-Wno\-multichar\fR" 4
  8124. .IX Item "-Wno-multichar"
  8125. Do not warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.
  8126. Usually they indicate a typo in the user's code, as they have
  8127. implementation-defined values, and should not be used in portable code.
  8128. .IP "\fB\-Wnormalized=\fR[\fBnone\fR|\fBid\fR|\fBnfc\fR|\fBnfkc\fR]" 4
  8129. .IX Item "-Wnormalized=[none|id|nfc|nfkc]"
  8130. In \s-1ISO C\s0 and \s-1ISO \*(C+,\s0 two identifiers are different if they are
  8131. different sequences of characters. However, sometimes when characters
  8132. outside the basic \s-1ASCII\s0 character set are used, you can have two
  8133. different character sequences that look the same. To avoid confusion,
  8134. the \s-1ISO 10646\s0 standard sets out some \fInormalization rules\fR which
  8135. when applied ensure that two sequences that look the same are turned into
  8136. the same sequence. \s-1GCC\s0 can warn you if you are using identifiers that
  8137. have not been normalized; this option controls that warning.
  8138. .Sp
  8139. There are four levels of warning supported by \s-1GCC.\s0 The default is
  8140. \&\fB\-Wnormalized=nfc\fR, which warns about any identifier that is
  8141. not in the \s-1ISO 10646 \*(L"C\*(R"\s0 normalized form, \fI\s-1NFC\s0\fR. \s-1NFC\s0 is the
  8142. recommended form for most uses. It is equivalent to
  8143. \&\fB\-Wnormalized\fR.
  8144. .Sp
  8145. Unfortunately, there are some characters allowed in identifiers by
  8146. \&\s-1ISO C\s0 and \s-1ISO \*(C+\s0 that, when turned into \s-1NFC,\s0 are not allowed in
  8147. identifiers. That is, there's no way to use these symbols in portable
  8148. \&\s-1ISO C\s0 or \*(C+ and have all your identifiers in \s-1NFC.\s0
  8149. \&\fB\-Wnormalized=id\fR suppresses the warning for these characters.
  8150. It is hoped that future versions of the standards involved will correct
  8151. this, which is why this option is not the default.
  8152. .Sp
  8153. You can switch the warning off for all characters by writing
  8154. \&\fB\-Wnormalized=none\fR or \fB\-Wno\-normalized\fR. You should
  8155. only do this if you are using some other normalization scheme (like
  8156. \&\*(L"D\*(R"), because otherwise you can easily create bugs that are
  8157. literally impossible to see.
  8158. .Sp
  8159. Some characters in \s-1ISO 10646\s0 have distinct meanings but look identical
  8160. in some fonts or display methodologies, especially once formatting has
  8161. been applied. For instance \f(CW\*(C`\eu207F\*(C'\fR, \*(L"\s-1SUPERSCRIPT LATIN SMALL
  8162. LETTER N\*(R",\s0 displays just like a regular \f(CW\*(C`n\*(C'\fR that has been
  8163. placed in a superscript. \s-1ISO 10646\s0 defines the \fI\s-1NFKC\s0\fR
  8164. normalization scheme to convert all these into a standard form as
  8165. well, and \s-1GCC\s0 warns if your code is not in \s-1NFKC\s0 if you use
  8166. \&\fB\-Wnormalized=nfkc\fR. This warning is comparable to warning
  8167. about every identifier that contains the letter O because it might be
  8168. confused with the digit 0, and so is not the default, but may be
  8169. useful as a local coding convention if the programming environment
  8170. cannot be fixed to display these characters distinctly.
  8171. .IP "\fB\-Wno\-attribute\-warning\fR" 4
  8172. .IX Item "-Wno-attribute-warning"
  8173. Do not warn about usage of functions
  8174. declared with \f(CW\*(C`warning\*(C'\fR attribute. By default, this warning is
  8175. enabled. \fB\-Wno\-attribute\-warning\fR can be used to disable the
  8176. warning or \fB\-Wno\-error=attribute\-warning\fR can be used to
  8177. disable the error when compiled with \fB\-Werror\fR flag.
  8178. .IP "\fB\-Wno\-deprecated\fR" 4
  8179. .IX Item "-Wno-deprecated"
  8180. Do not warn about usage of deprecated features.
  8181. .IP "\fB\-Wno\-deprecated\-declarations\fR" 4
  8182. .IX Item "-Wno-deprecated-declarations"
  8183. Do not warn about uses of functions,
  8184. variables, and types marked as deprecated by using the \f(CW\*(C`deprecated\*(C'\fR
  8185. attribute.
  8186. .IP "\fB\-Wno\-overflow\fR" 4
  8187. .IX Item "-Wno-overflow"
  8188. Do not warn about compile-time overflow in constant expressions.
  8189. .IP "\fB\-Wno\-odr\fR" 4
  8190. .IX Item "-Wno-odr"
  8191. Warn about One Definition Rule violations during link-time optimization.
  8192. Enabled by default.
  8193. .IP "\fB\-Wopenmp\-simd\fR" 4
  8194. .IX Item "-Wopenmp-simd"
  8195. Warn if the vectorizer cost model overrides the OpenMP
  8196. simd directive set by user. The \fB\-fsimd\-cost\-model=unlimited\fR
  8197. option can be used to relax the cost model.
  8198. .IP "\fB\-Woverride\-init\fR (C and Objective-C only)" 4
  8199. .IX Item "-Woverride-init (C and Objective-C only)"
  8200. Warn if an initialized field without side effects is overridden when
  8201. using designated initializers.
  8202. .Sp
  8203. This warning is included in \fB\-Wextra\fR. To get other
  8204. \&\fB\-Wextra\fR warnings without this one, use \fB\-Wextra
  8205. \&\-Wno\-override\-init\fR.
  8206. .IP "\fB\-Wno\-override\-init\-side\-effects\fR (C and Objective-C only)" 4
  8207. .IX Item "-Wno-override-init-side-effects (C and Objective-C only)"
  8208. Do not warn if an initialized field with side effects is overridden when
  8209. using designated initializers. This warning is enabled by default.
  8210. .IP "\fB\-Wpacked\fR" 4
  8211. .IX Item "-Wpacked"
  8212. Warn if a structure is given the packed attribute, but the packed
  8213. attribute has no effect on the layout or size of the structure.
  8214. Such structures may be mis-aligned for little benefit. For
  8215. instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
  8216. is misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
  8217. have the packed attribute:
  8218. .Sp
  8219. .Vb 8
  8220. \& struct foo {
  8221. \& int x;
  8222. \& char a, b, c, d;
  8223. \& } _\|_attribute_\|_((packed));
  8224. \& struct bar {
  8225. \& char z;
  8226. \& struct foo f;
  8227. \& };
  8228. .Ve
  8229. .IP "\fB\-Wnopacked\-bitfield\-compat\fR" 4
  8230. .IX Item "-Wnopacked-bitfield-compat"
  8231. The 4.1, 4.2 and 4.3 series of \s-1GCC\s0 ignore the \f(CW\*(C`packed\*(C'\fR attribute
  8232. on bit-fields of type \f(CW\*(C`char\*(C'\fR. This was fixed in \s-1GCC 4.4\s0 but
  8233. the change can lead to differences in the structure layout. \s-1GCC\s0
  8234. informs you when the offset of such a field has changed in \s-1GCC 4.4.\s0
  8235. For example there is no longer a 4\-bit padding between field \f(CW\*(C`a\*(C'\fR
  8236. and \f(CW\*(C`b\*(C'\fR in this structure:
  8237. .Sp
  8238. .Vb 5
  8239. \& struct foo
  8240. \& {
  8241. \& char a:4;
  8242. \& char b:8;
  8243. \& } _\|_attribute_\|_ ((packed));
  8244. .Ve
  8245. .Sp
  8246. This warning is enabled by default. Use
  8247. \&\fB\-Wno\-packed\-bitfield\-compat\fR to disable this warning.
  8248. .IP "\fB\-Wpacked\-not\-aligned\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
  8249. .IX Item "-Wpacked-not-aligned (C, , Objective-C and Objective- only)"
  8250. Warn if a structure field with explicitly specified alignment in a
  8251. packed struct or union is misaligned. For example, a warning will
  8252. be issued on \f(CW\*(C`struct S\*(C'\fR, like, \f(CW\*(C`warning: alignment 1 of
  8253. \&\*(Aqstruct S\*(Aq is less than 8\*(C'\fR, in this code:
  8254. .Sp
  8255. .Vb 4
  8256. \& struct _\|_attribute_\|_ ((aligned (8))) S8 { char a[8]; };
  8257. \& struct _\|_attribute_\|_ ((packed)) S {
  8258. \& struct S8 s8;
  8259. \& };
  8260. .Ve
  8261. .Sp
  8262. This warning is enabled by \fB\-Wall\fR.
  8263. .IP "\fB\-Wpadded\fR" 4
  8264. .IX Item "-Wpadded"
  8265. Warn if padding is included in a structure, either to align an element
  8266. of the structure or to align the whole structure. Sometimes when this
  8267. happens it is possible to rearrange the fields of the structure to
  8268. reduce the padding and so make the structure smaller.
  8269. .IP "\fB\-Wredundant\-decls\fR" 4
  8270. .IX Item "-Wredundant-decls"
  8271. Warn if anything is declared more than once in the same scope, even in
  8272. cases where multiple declaration is valid and changes nothing.
  8273. .IP "\fB\-Wrestrict\fR" 4
  8274. .IX Item "-Wrestrict"
  8275. Warn when an object referenced by a \f(CW\*(C`restrict\*(C'\fR\-qualified parameter
  8276. (or, in \*(C+, a \f(CW\*(C`_\|_restrict\*(C'\fR\-qualified parameter) is aliased by another
  8277. argument, or when copies between such objects overlap. For example,
  8278. the call to the \f(CW\*(C`strcpy\*(C'\fR function below attempts to truncate the string
  8279. by replacing its initial characters with the last four. However, because
  8280. the call writes the terminating \s-1NUL\s0 into \f(CW\*(C`a[4]\*(C'\fR, the copies overlap and
  8281. the call is diagnosed.
  8282. .Sp
  8283. .Vb 6
  8284. \& void foo (void)
  8285. \& {
  8286. \& char a[] = "abcd1234";
  8287. \& strcpy (a, a + 4);
  8288. \& ...
  8289. \& }
  8290. .Ve
  8291. .Sp
  8292. The \fB\-Wrestrict\fR option detects some instances of simple overlap
  8293. even without optimization but works best at \fB\-O2\fR and above. It
  8294. is included in \fB\-Wall\fR.
  8295. .IP "\fB\-Wnested\-externs\fR (C and Objective-C only)" 4
  8296. .IX Item "-Wnested-externs (C and Objective-C only)"
  8297. Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
  8298. .IP "\fB\-Winline\fR" 4
  8299. .IX Item "-Winline"
  8300. Warn if a function that is declared as inline cannot be inlined.
  8301. Even with this option, the compiler does not warn about failures to
  8302. inline functions declared in system headers.
  8303. .Sp
  8304. The compiler uses a variety of heuristics to determine whether or not
  8305. to inline a function. For example, the compiler takes into account
  8306. the size of the function being inlined and the amount of inlining
  8307. that has already been done in the current function. Therefore,
  8308. seemingly insignificant changes in the source program can cause the
  8309. warnings produced by \fB\-Winline\fR to appear or disappear.
  8310. .IP "\fB\-Wint\-in\-bool\-context\fR" 4
  8311. .IX Item "-Wint-in-bool-context"
  8312. Warn for suspicious use of integer values where boolean values are expected,
  8313. such as conditional expressions (?:) using non-boolean integer constants in
  8314. boolean context, like \f(CW\*(C`if (a <= b ? 2 : 3)\*(C'\fR. Or left shifting of signed
  8315. integers in boolean context, like \f(CW\*(C`for (a = 0; 1 << a; a++);\*(C'\fR. Likewise
  8316. for all kinds of multiplications regardless of the data type.
  8317. This warning is enabled by \fB\-Wall\fR.
  8318. .IP "\fB\-Wno\-int\-to\-pointer\-cast\fR" 4
  8319. .IX Item "-Wno-int-to-pointer-cast"
  8320. Suppress warnings from casts to pointer type of an integer of a
  8321. different size. In \*(C+, casting to a pointer type of smaller size is
  8322. an error. \fBWint-to-pointer-cast\fR is enabled by default.
  8323. .IP "\fB\-Wno\-pointer\-to\-int\-cast\fR (C and Objective-C only)" 4
  8324. .IX Item "-Wno-pointer-to-int-cast (C and Objective-C only)"
  8325. Suppress warnings from casts from a pointer to an integer type of a
  8326. different size.
  8327. .IP "\fB\-Winvalid\-pch\fR" 4
  8328. .IX Item "-Winvalid-pch"
  8329. Warn if a precompiled header is found in
  8330. the search path but cannot be used.
  8331. .IP "\fB\-Wlong\-long\fR" 4
  8332. .IX Item "-Wlong-long"
  8333. Warn if \f(CW\*(C`long long\*(C'\fR type is used. This is enabled by either
  8334. \&\fB\-Wpedantic\fR or \fB\-Wtraditional\fR in \s-1ISO C90\s0 and \*(C+98
  8335. modes. To inhibit the warning messages, use \fB\-Wno\-long\-long\fR.
  8336. .IP "\fB\-Wvariadic\-macros\fR" 4
  8337. .IX Item "-Wvariadic-macros"
  8338. Warn if variadic macros are used in \s-1ISO C90\s0 mode, or if the \s-1GNU\s0
  8339. alternate syntax is used in \s-1ISO C99\s0 mode. This is enabled by either
  8340. \&\fB\-Wpedantic\fR or \fB\-Wtraditional\fR. To inhibit the warning
  8341. messages, use \fB\-Wno\-variadic\-macros\fR.
  8342. .IP "\fB\-Wno\-varargs\fR" 4
  8343. .IX Item "-Wno-varargs"
  8344. Do not warn upon questionable usage of the macros used to handle variable
  8345. arguments like \f(CW\*(C`va_start\*(C'\fR. These warnings are enabled by default.
  8346. .IP "\fB\-Wvector\-operation\-performance\fR" 4
  8347. .IX Item "-Wvector-operation-performance"
  8348. Warn if vector operation is not implemented via \s-1SIMD\s0 capabilities of the
  8349. architecture. Mainly useful for the performance tuning.
  8350. Vector operation can be implemented \f(CW\*(C`piecewise\*(C'\fR, which means that the
  8351. scalar operation is performed on every vector element;
  8352. \&\f(CW\*(C`in parallel\*(C'\fR, which means that the vector operation is implemented
  8353. using scalars of wider type, which normally is more performance efficient;
  8354. and \f(CW\*(C`as a single scalar\*(C'\fR, which means that vector fits into a
  8355. scalar type.
  8356. .IP "\fB\-Wvla\fR" 4
  8357. .IX Item "-Wvla"
  8358. Warn if a variable-length array is used in the code.
  8359. \&\fB\-Wno\-vla\fR prevents the \fB\-Wpedantic\fR warning of
  8360. the variable-length array.
  8361. .IP "\fB\-Wvla\-larger\-than=\fR\fIbyte-size\fR" 4
  8362. .IX Item "-Wvla-larger-than=byte-size"
  8363. If this option is used, the compiler warns for declarations of
  8364. variable-length arrays whose size is either unbounded, or bounded
  8365. by an argument that allows the array size to exceed \fIbyte-size\fR
  8366. bytes. This is similar to how \fB\-Walloca\-larger\-than=\fR\fIbyte-size\fR
  8367. works, but with variable-length arrays.
  8368. .Sp
  8369. Note that \s-1GCC\s0 may optimize small variable-length arrays of a known
  8370. value into plain arrays, so this warning may not get triggered for
  8371. such arrays.
  8372. .Sp
  8373. \&\fB\-Wvla\-larger\-than=\fR\fB\s-1PTRDIFF_MAX\s0\fR is enabled by default but
  8374. is typically only effective when \fB\-ftree\-vrp\fR is active (default
  8375. for \fB\-O2\fR and above).
  8376. .Sp
  8377. See also \fB\-Walloca\-larger\-than=\fR\fIbyte-size\fR.
  8378. .IP "\fB\-Wno\-vla\-larger\-than\fR" 4
  8379. .IX Item "-Wno-vla-larger-than"
  8380. Disable \fB\-Wvla\-larger\-than=\fR warnings. The option is equivalent
  8381. to \fB\-Wvla\-larger\-than=\fR\fB\s-1SIZE_MAX\s0\fR or larger.
  8382. .IP "\fB\-Wvla\-parameter\fR" 4
  8383. .IX Item "-Wvla-parameter"
  8384. Warn about redeclarations of functions involving arguments of Variable
  8385. Length Array types of inconsistent kinds or forms, and enable the detection
  8386. of out-of-bounds accesses to such parameters by warnings such as
  8387. \&\fB\-Warray\-bounds\fR.
  8388. .Sp
  8389. If the first function declaration uses the \s-1VLA\s0 form the bound specified
  8390. in the array is assumed to be the minimum number of elements expected to
  8391. be provided in calls to the function and the maximum number of elements
  8392. accessed by it. Failing to provide arguments of sufficient size or
  8393. accessing more than the maximum number of elements may be diagnosed.
  8394. .Sp
  8395. For example, the warning triggers for the following redeclarations because
  8396. the first one allows an array of any size to be passed to \f(CW\*(C`f\*(C'\fR while
  8397. the second one specifies that the array argument must have at least \f(CW\*(C`n\*(C'\fR
  8398. elements. In addition, calling \f(CW\*(C`f\*(C'\fR with the assotiated \s-1VLA\s0 bound
  8399. parameter in excess of the actual \s-1VLA\s0 bound triggers a warning as well.
  8400. .Sp
  8401. .Vb 2
  8402. \& void f (int n, int[n]);
  8403. \& void f (int, int[]); // warning: argument 2 previously declared as a VLA
  8404. \&
  8405. \& void g (int n)
  8406. \& {
  8407. \& if (n > 4)
  8408. \& return;
  8409. \& int a[n];
  8410. \& f (sizeof a, a); // warning: access to a by f may be out of bounds
  8411. \& ...
  8412. \& }
  8413. .Ve
  8414. .Sp
  8415. \&\fB\-Wvla\-parameter\fR is included in \fB\-Wall\fR. The
  8416. \&\fB\-Warray\-parameter\fR option triggers warnings for similar problems
  8417. involving ordinary array arguments.
  8418. .IP "\fB\-Wvolatile\-register\-var\fR" 4
  8419. .IX Item "-Wvolatile-register-var"
  8420. Warn if a register variable is declared volatile. The volatile
  8421. modifier does not inhibit all optimizations that may eliminate reads
  8422. and/or writes to register variables. This warning is enabled by
  8423. \&\fB\-Wall\fR.
  8424. .IP "\fB\-Wdisabled\-optimization\fR" 4
  8425. .IX Item "-Wdisabled-optimization"
  8426. Warn if a requested optimization pass is disabled. This warning does
  8427. not generally indicate that there is anything wrong with your code; it
  8428. merely indicates that \s-1GCC\s0's optimizers are unable to handle the code
  8429. effectively. Often, the problem is that your code is too big or too
  8430. complex; \s-1GCC\s0 refuses to optimize programs when the optimization
  8431. itself is likely to take inordinate amounts of time.
  8432. .IP "\fB\-Wpointer\-sign\fR (C and Objective-C only)" 4
  8433. .IX Item "-Wpointer-sign (C and Objective-C only)"
  8434. Warn for pointer argument passing or assignment with different signedness.
  8435. This option is only supported for C and Objective-C. It is implied by
  8436. \&\fB\-Wall\fR and by \fB\-Wpedantic\fR, which can be disabled with
  8437. \&\fB\-Wno\-pointer\-sign\fR.
  8438. .IP "\fB\-Wstack\-protector\fR" 4
  8439. .IX Item "-Wstack-protector"
  8440. This option is only active when \fB\-fstack\-protector\fR is active. It
  8441. warns about functions that are not protected against stack smashing.
  8442. .IP "\fB\-Woverlength\-strings\fR" 4
  8443. .IX Item "-Woverlength-strings"
  8444. Warn about string constants that are longer than the \*(L"minimum
  8445. maximum\*(R" length specified in the C standard. Modern compilers
  8446. generally allow string constants that are much longer than the
  8447. standard's minimum limit, but very portable programs should avoid
  8448. using longer strings.
  8449. .Sp
  8450. The limit applies \fIafter\fR string constant concatenation, and does
  8451. not count the trailing \s-1NUL.\s0 In C90, the limit was 509 characters; in
  8452. C99, it was raised to 4095. \*(C+98 does not specify a normative
  8453. minimum maximum, so we do not diagnose overlength strings in \*(C+.
  8454. .Sp
  8455. This option is implied by \fB\-Wpedantic\fR, and can be disabled with
  8456. \&\fB\-Wno\-overlength\-strings\fR.
  8457. .IP "\fB\-Wunsuffixed\-float\-constants\fR (C and Objective-C only)" 4
  8458. .IX Item "-Wunsuffixed-float-constants (C and Objective-C only)"
  8459. Issue a warning for any floating constant that does not have
  8460. a suffix. When used together with \fB\-Wsystem\-headers\fR it
  8461. warns about such constants in system header files. This can be useful
  8462. when preparing code to use with the \f(CW\*(C`FLOAT_CONST_DECIMAL64\*(C'\fR pragma
  8463. from the decimal floating-point extension to C99.
  8464. .IP "\fB\-Wno\-lto\-type\-mismatch\fR" 4
  8465. .IX Item "-Wno-lto-type-mismatch"
  8466. During the link-time optimization, do not warn about type mismatches in
  8467. global declarations from different compilation units.
  8468. Requires \fB\-flto\fR to be enabled. Enabled by default.
  8469. .IP "\fB\-Wno\-designated\-init\fR (C and Objective-C only)" 4
  8470. .IX Item "-Wno-designated-init (C and Objective-C only)"
  8471. Suppress warnings when a positional initializer is used to initialize
  8472. a structure that has been marked with the \f(CW\*(C`designated_init\*(C'\fR
  8473. attribute.
  8474. .SS "Options That Control Static Analysis"
  8475. .IX Subsection "Options That Control Static Analysis"
  8476. .IP "\fB\-fanalyzer\fR" 4
  8477. .IX Item "-fanalyzer"
  8478. This option enables an static analysis of program flow which looks
  8479. for \*(L"interesting\*(R" interprocedural paths through the
  8480. code, and issues warnings for problems found on them.
  8481. .Sp
  8482. This analysis is much more expensive than other \s-1GCC\s0 warnings.
  8483. .Sp
  8484. Enabling this option effectively enables the following warnings:
  8485. .Sp
  8486. \&\fB\-Wanalyzer\-double\-fclose
  8487. \&\-Wanalyzer\-double\-free
  8488. \&\-Wanalyzer\-exposure\-through\-output\-file
  8489. \&\-Wanalyzer\-file\-leak
  8490. \&\-Wanalyzer\-free\-of\-non\-heap
  8491. \&\-Wanalyzer\-malloc\-leak
  8492. \&\-Wanalyzer\-mismatching\-deallocation
  8493. \&\-Wanalyzer\-possible\-null\-argument
  8494. \&\-Wanalyzer\-possible\-null\-dereference
  8495. \&\-Wanalyzer\-null\-argument
  8496. \&\-Wanalyzer\-null\-dereference
  8497. \&\-Wanalyzer\-shift\-count\-negative
  8498. \&\-Wanalyzer\-shift\-count\-overflow
  8499. \&\-Wanalyzer\-stale\-setjmp\-buffer
  8500. \&\-Wanalyzer\-tainted\-array\-index
  8501. \&\-Wanalyzer\-unsafe\-call\-within\-signal\-handler
  8502. \&\-Wanalyzer\-use\-after\-free
  8503. \&\-Wanalyzer\-use\-of\-pointer\-in\-stale\-stack\-frame
  8504. \&\-Wanalyzer\-write\-to\-const
  8505. \&\-Wanalyzer\-write\-to\-string\-literal\fR
  8506. .Sp
  8507. This option is only available if \s-1GCC\s0 was configured with analyzer
  8508. support enabled.
  8509. .IP "\fB\-Wanalyzer\-too\-complex\fR" 4
  8510. .IX Item "-Wanalyzer-too-complex"
  8511. If \fB\-fanalyzer\fR is enabled, the analyzer uses various heuristics
  8512. to attempt to explore the control flow and data flow in the program,
  8513. but these can be defeated by sufficiently complicated code.
  8514. .Sp
  8515. By default, the analysis silently stops if the code is too
  8516. complicated for the analyzer to fully explore and it reaches an internal
  8517. limit. The \fB\-Wanalyzer\-too\-complex\fR option warns if this occurs.
  8518. .IP "\fB\-Wno\-analyzer\-double\-fclose\fR" 4
  8519. .IX Item "-Wno-analyzer-double-fclose"
  8520. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8521. \&\fB\-Wno\-analyzer\-double\-fclose\fR to disable it.
  8522. .Sp
  8523. This diagnostic warns for paths through the code in which a \f(CW\*(C`FILE *\*(C'\fR
  8524. can have \f(CW\*(C`fclose\*(C'\fR called on it more than once.
  8525. .IP "\fB\-Wno\-analyzer\-double\-free\fR" 4
  8526. .IX Item "-Wno-analyzer-double-free"
  8527. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8528. \&\fB\-Wno\-analyzer\-double\-free\fR to disable it.
  8529. .Sp
  8530. This diagnostic warns for paths through the code in which a pointer
  8531. can have a deallocator called on it more than once, either \f(CW\*(C`free\*(C'\fR,
  8532. or a deallocator referenced by attribute \f(CW\*(C`malloc\*(C'\fR.
  8533. .IP "\fB\-Wno\-analyzer\-exposure\-through\-output\-file\fR" 4
  8534. .IX Item "-Wno-analyzer-exposure-through-output-file"
  8535. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8536. \&\fB\-Wno\-analyzer\-exposure\-through\-output\-file\fR
  8537. to disable it.
  8538. .Sp
  8539. This diagnostic warns for paths through the code in which a
  8540. security-sensitive value is written to an output file
  8541. (such as writing a password to a log file).
  8542. .IP "\fB\-Wno\-analyzer\-file\-leak\fR" 4
  8543. .IX Item "-Wno-analyzer-file-leak"
  8544. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8545. \&\fB\-Wno\-analyzer\-file\-leak\fR
  8546. to disable it.
  8547. .Sp
  8548. This diagnostic warns for paths through the code in which a
  8549. \&\f(CW\*(C`<stdio.h>\*(C'\fR \f(CW\*(C`FILE *\*(C'\fR stream object is leaked.
  8550. .IP "\fB\-Wno\-analyzer\-free\-of\-non\-heap\fR" 4
  8551. .IX Item "-Wno-analyzer-free-of-non-heap"
  8552. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8553. \&\fB\-Wno\-analyzer\-free\-of\-non\-heap\fR
  8554. to disable it.
  8555. .Sp
  8556. This diagnostic warns for paths through the code in which \f(CW\*(C`free\*(C'\fR
  8557. is called on a non-heap pointer (e.g. an on-stack buffer, or a global).
  8558. .IP "\fB\-Wno\-analyzer\-malloc\-leak\fR" 4
  8559. .IX Item "-Wno-analyzer-malloc-leak"
  8560. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8561. \&\fB\-Wno\-analyzer\-malloc\-leak\fR
  8562. to disable it.
  8563. .Sp
  8564. This diagnostic warns for paths through the code in which a
  8565. pointer allocated via an allocator is leaked: either \f(CW\*(C`malloc\*(C'\fR,
  8566. or a function marked with attribute \f(CW\*(C`malloc\*(C'\fR.
  8567. .IP "\fB\-Wno\-analyzer\-mismatching\-deallocation\fR" 4
  8568. .IX Item "-Wno-analyzer-mismatching-deallocation"
  8569. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8570. \&\fB\-Wno\-analyzer\-mismatching\-deallocation\fR
  8571. to disable it.
  8572. .Sp
  8573. This diagnostic warns for paths through the code in which the
  8574. wrong deallocation function is called on a pointer value, based on
  8575. which function was used to allocate the pointer value. The diagnostic
  8576. will warn about mismatches between \f(CW\*(C`free\*(C'\fR, scalar \f(CW\*(C`delete\*(C'\fR
  8577. and vector \f(CW\*(C`delete[]\*(C'\fR, and those marked as allocator/deallocator
  8578. pairs using attribute \f(CW\*(C`malloc\*(C'\fR.
  8579. .IP "\fB\-Wno\-analyzer\-possible\-null\-argument\fR" 4
  8580. .IX Item "-Wno-analyzer-possible-null-argument"
  8581. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8582. \&\fB\-Wno\-analyzer\-possible\-null\-argument\fR to disable it.
  8583. .Sp
  8584. This diagnostic warns for paths through the code in which a
  8585. possibly-NULL value is passed to a function argument marked
  8586. with \f(CW\*(C`_\|_attribute_\|_((nonnull))\*(C'\fR as requiring a non-NULL
  8587. value.
  8588. .IP "\fB\-Wno\-analyzer\-possible\-null\-dereference\fR" 4
  8589. .IX Item "-Wno-analyzer-possible-null-dereference"
  8590. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8591. \&\fB\-Wno\-analyzer\-possible\-null\-dereference\fR to disable it.
  8592. .Sp
  8593. This diagnostic warns for paths through the code in which a
  8594. possibly-NULL value is dereferenced.
  8595. .IP "\fB\-Wno\-analyzer\-null\-argument\fR" 4
  8596. .IX Item "-Wno-analyzer-null-argument"
  8597. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8598. \&\fB\-Wno\-analyzer\-null\-argument\fR to disable it.
  8599. .Sp
  8600. This diagnostic warns for paths through the code in which a
  8601. value known to be \s-1NULL\s0 is passed to a function argument marked
  8602. with \f(CW\*(C`_\|_attribute_\|_((nonnull))\*(C'\fR as requiring a non-NULL
  8603. value.
  8604. .IP "\fB\-Wno\-analyzer\-null\-dereference\fR" 4
  8605. .IX Item "-Wno-analyzer-null-dereference"
  8606. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8607. \&\fB\-Wno\-analyzer\-null\-dereference\fR to disable it.
  8608. .Sp
  8609. This diagnostic warns for paths through the code in which a
  8610. value known to be \s-1NULL\s0 is dereferenced.
  8611. .IP "\fB\-Wno\-analyzer\-shift\-count\-negative\fR" 4
  8612. .IX Item "-Wno-analyzer-shift-count-negative"
  8613. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8614. \&\fB\-Wno\-analyzer\-shift\-count\-negative\fR to disable it.
  8615. .Sp
  8616. This diagnostic warns for paths through the code in which a
  8617. shift is attempted with a negative count. It is analogous to
  8618. the \fB\-Wshift\-count\-negative\fR diagnostic implemented in
  8619. the C/\*(C+ front ends, but is implemented based on analyzing
  8620. interprocedural paths, rather than merely parsing the syntax tree.
  8621. However, the analyzer does not prioritize detection of such paths, so
  8622. false negatives are more likely relative to other warnings.
  8623. .IP "\fB\-Wno\-analyzer\-shift\-count\-overflow\fR" 4
  8624. .IX Item "-Wno-analyzer-shift-count-overflow"
  8625. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8626. \&\fB\-Wno\-analyzer\-shift\-count\-overflow\fR to disable it.
  8627. .Sp
  8628. This diagnostic warns for paths through the code in which a
  8629. shift is attempted with a count greater than or equal to the
  8630. precision of the operand's type. It is analogous to
  8631. the \fB\-Wshift\-count\-overflow\fR diagnostic implemented in
  8632. the C/\*(C+ front ends, but is implemented based on analyzing
  8633. interprocedural paths, rather than merely parsing the syntax tree.
  8634. However, the analyzer does not prioritize detection of such paths, so
  8635. false negatives are more likely relative to other warnings.
  8636. .IP "\fB\-Wno\-analyzer\-stale\-setjmp\-buffer\fR" 4
  8637. .IX Item "-Wno-analyzer-stale-setjmp-buffer"
  8638. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8639. \&\fB\-Wno\-analyzer\-stale\-setjmp\-buffer\fR to disable it.
  8640. .Sp
  8641. This diagnostic warns for paths through the code in which
  8642. \&\f(CW\*(C`longjmp\*(C'\fR is called to rewind to a \f(CW\*(C`jmp_buf\*(C'\fR relating
  8643. to a \f(CW\*(C`setjmp\*(C'\fR call in a function that has returned.
  8644. .Sp
  8645. When \f(CW\*(C`setjmp\*(C'\fR is called on a \f(CW\*(C`jmp_buf\*(C'\fR to record a rewind
  8646. location, it records the stack frame. The stack frame becomes invalid
  8647. when the function containing the \f(CW\*(C`setjmp\*(C'\fR call returns. Attempting
  8648. to rewind to it via \f(CW\*(C`longjmp\*(C'\fR would reference a stack frame that
  8649. no longer exists, and likely lead to a crash (or worse).
  8650. .IP "\fB\-Wno\-analyzer\-tainted\-array\-index\fR" 4
  8651. .IX Item "-Wno-analyzer-tainted-array-index"
  8652. This warning requires both \fB\-fanalyzer\fR and
  8653. \&\fB\-fanalyzer\-checker=taint\fR to enable it;
  8654. use \fB\-Wno\-analyzer\-tainted\-array\-index\fR to disable it.
  8655. .Sp
  8656. This diagnostic warns for paths through the code in which a value
  8657. that could be under an attacker's control is used as the index
  8658. of an array access without being sanitized.
  8659. .IP "\fB\-Wno\-analyzer\-unsafe\-call\-within\-signal\-handler\fR" 4
  8660. .IX Item "-Wno-analyzer-unsafe-call-within-signal-handler"
  8661. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8662. \&\fB\-Wno\-analyzer\-unsafe\-call\-within\-signal\-handler\fR to disable it.
  8663. .Sp
  8664. This diagnostic warns for paths through the code in which a
  8665. function known to be async-signal-unsafe (such as \f(CW\*(C`fprintf\*(C'\fR) is
  8666. called from a signal handler.
  8667. .IP "\fB\-Wno\-analyzer\-use\-after\-free\fR" 4
  8668. .IX Item "-Wno-analyzer-use-after-free"
  8669. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8670. \&\fB\-Wno\-analyzer\-use\-after\-free\fR to disable it.
  8671. .Sp
  8672. This diagnostic warns for paths through the code in which a
  8673. pointer is used after a deallocator is called on it: either \f(CW\*(C`free\*(C'\fR,
  8674. or a deallocator referenced by attribute \f(CW\*(C`malloc\*(C'\fR.
  8675. .IP "\fB\-Wno\-analyzer\-use\-of\-pointer\-in\-stale\-stack\-frame\fR" 4
  8676. .IX Item "-Wno-analyzer-use-of-pointer-in-stale-stack-frame"
  8677. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8678. \&\fB\-Wno\-analyzer\-use\-of\-pointer\-in\-stale\-stack\-frame\fR
  8679. to disable it.
  8680. .Sp
  8681. This diagnostic warns for paths through the code in which a pointer
  8682. is dereferenced that points to a variable in a stale stack frame.
  8683. .IP "\fB\-Wno\-analyzer\-write\-to\-const\fR" 4
  8684. .IX Item "-Wno-analyzer-write-to-const"
  8685. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8686. \&\fB\-Wno\-analyzer\-write\-to\-const\fR
  8687. to disable it.
  8688. .Sp
  8689. This diagnostic warns for paths through the code in which the analyzer
  8690. detects an attempt to write through a pointer to a \f(CW\*(C`const\*(C'\fR object.
  8691. However, the analyzer does not prioritize detection of such paths, so
  8692. false negatives are more likely relative to other warnings.
  8693. .IP "\fB\-Wno\-analyzer\-write\-to\-string\-literal\fR" 4
  8694. .IX Item "-Wno-analyzer-write-to-string-literal"
  8695. This warning requires \fB\-fanalyzer\fR, which enables it; use
  8696. \&\fB\-Wno\-analyzer\-write\-to\-string\-literal\fR
  8697. to disable it.
  8698. .Sp
  8699. This diagnostic warns for paths through the code in which the analyzer
  8700. detects an attempt to write through a pointer to a string literal.
  8701. However, the analyzer does not prioritize detection of such paths, so
  8702. false negatives are more likely relative to other warnings.
  8703. .PP
  8704. Pertinent parameters for controlling the exploration are:
  8705. \&\fB\-\-param analyzer\-bb\-explosion\-factor=\fR\fIvalue\fR,
  8706. \&\fB\-\-param analyzer\-max\-enodes\-per\-program\-point=\fR\fIvalue\fR,
  8707. \&\fB\-\-param analyzer\-max\-recursion\-depth=\fR\fIvalue\fR, and
  8708. \&\fB\-\-param analyzer\-min\-snodes\-for\-call\-summary=\fR\fIvalue\fR.
  8709. .PP
  8710. The following options control the analyzer.
  8711. .IP "\fB\-fanalyzer\-call\-summaries\fR" 4
  8712. .IX Item "-fanalyzer-call-summaries"
  8713. Simplify interprocedural analysis by computing the effect of certain calls,
  8714. rather than exploring all paths through the function from callsite to each
  8715. possible return.
  8716. .Sp
  8717. If enabled, call summaries are only used for functions with more than one
  8718. call site, and that are sufficiently complicated (as per
  8719. \&\fB\-\-param analyzer\-min\-snodes\-for\-call\-summary=\fR\fIvalue\fR).
  8720. .IP "\fB\-fanalyzer\-checker=\fR\fIname\fR" 4
  8721. .IX Item "-fanalyzer-checker=name"
  8722. Restrict the analyzer to run just the named checker, and enable it.
  8723. .Sp
  8724. Some checkers are disabled by default (even with \fB\-fanalyzer\fR),
  8725. such as the \f(CW\*(C`taint\*(C'\fR checker that implements
  8726. \&\fB\-Wanalyzer\-tainted\-array\-index\fR, and this option is required
  8727. to enable them.
  8728. .IP "\fB\-fno\-analyzer\-feasibility\fR" 4
  8729. .IX Item "-fno-analyzer-feasibility"
  8730. This option is intended for analyzer developers.
  8731. .Sp
  8732. By default the analyzer verifies that there is a feasible control flow path
  8733. for each diagnostic it emits: that the conditions that hold are not mutually
  8734. exclusive. Diagnostics for which no feasible path can be found are rejected.
  8735. This filtering can be suppressed with \fB\-fno\-analyzer\-feasibility\fR, for
  8736. debugging issues in this code.
  8737. .IP "\fB\-fanalyzer\-fine\-grained\fR" 4
  8738. .IX Item "-fanalyzer-fine-grained"
  8739. This option is intended for analyzer developers.
  8740. .Sp
  8741. Internally the analyzer builds an \*(L"exploded graph\*(R" that combines
  8742. control flow graphs with data flow information.
  8743. .Sp
  8744. By default, an edge in this graph can contain the effects of a run
  8745. of multiple statements within a basic block. With
  8746. \&\fB\-fanalyzer\-fine\-grained\fR, each statement gets its own edge.
  8747. .IP "\fB\-fanalyzer\-show\-duplicate\-count\fR" 4
  8748. .IX Item "-fanalyzer-show-duplicate-count"
  8749. This option is intended for analyzer developers: if multiple diagnostics
  8750. have been detected as being duplicates of each other, it emits a note when
  8751. reporting the best diagnostic, giving the number of additional diagnostics
  8752. that were suppressed by the deduplication logic.
  8753. .IP "\fB\-fno\-analyzer\-state\-merge\fR" 4
  8754. .IX Item "-fno-analyzer-state-merge"
  8755. This option is intended for analyzer developers.
  8756. .Sp
  8757. By default the analyzer attempts to simplify analysis by merging
  8758. sufficiently similar states at each program point as it builds its
  8759. \&\*(L"exploded graph\*(R". With \fB\-fno\-analyzer\-state\-merge\fR this
  8760. merging can be suppressed, for debugging state-handling issues.
  8761. .IP "\fB\-fno\-analyzer\-state\-purge\fR" 4
  8762. .IX Item "-fno-analyzer-state-purge"
  8763. This option is intended for analyzer developers.
  8764. .Sp
  8765. By default the analyzer attempts to simplify analysis by purging
  8766. aspects of state at a program point that appear to no longer be relevant
  8767. e.g. the values of locals that aren't accessed later in the function
  8768. and which aren't relevant to leak analysis.
  8769. .Sp
  8770. With \fB\-fno\-analyzer\-state\-purge\fR this purging of state can
  8771. be suppressed, for debugging state-handling issues.
  8772. .IP "\fB\-fanalyzer\-transitivity\fR" 4
  8773. .IX Item "-fanalyzer-transitivity"
  8774. This option enables transitivity of constraints within the analyzer.
  8775. .IP "\fB\-fanalyzer\-verbose\-edges\fR" 4
  8776. .IX Item "-fanalyzer-verbose-edges"
  8777. This option is intended for analyzer developers. It enables more
  8778. verbose, lower-level detail in the descriptions of control flow
  8779. within diagnostic paths.
  8780. .IP "\fB\-fanalyzer\-verbose\-state\-changes\fR" 4
  8781. .IX Item "-fanalyzer-verbose-state-changes"
  8782. This option is intended for analyzer developers. It enables more
  8783. verbose, lower-level detail in the descriptions of events relating
  8784. to state machines within diagnostic paths.
  8785. .IP "\fB\-fanalyzer\-verbosity=\fR\fIlevel\fR" 4
  8786. .IX Item "-fanalyzer-verbosity=level"
  8787. This option controls the complexity of the control flow paths that are
  8788. emitted for analyzer diagnostics.
  8789. .Sp
  8790. The \fIlevel\fR can be one of:
  8791. .RS 4
  8792. .IP "\fB0\fR" 4
  8793. .IX Item "0"
  8794. At this level, interprocedural call and return events are displayed,
  8795. along with the most pertinent state-change events relating to
  8796. a diagnostic. For example, for a double\-\f(CW\*(C`free\*(C'\fR diagnostic,
  8797. both calls to \f(CW\*(C`free\*(C'\fR will be shown.
  8798. .IP "\fB1\fR" 4
  8799. .IX Item "1"
  8800. As per the previous level, but also show events for the entry
  8801. to each function.
  8802. .IP "\fB2\fR" 4
  8803. .IX Item "2"
  8804. As per the previous level, but also show events relating to
  8805. control flow that are significant to triggering the issue
  8806. (e.g. \*(L"true path taken\*(R" at a conditional).
  8807. .Sp
  8808. This level is the default.
  8809. .IP "\fB3\fR" 4
  8810. .IX Item "3"
  8811. As per the previous level, but show all control flow events, not
  8812. just significant ones.
  8813. .IP "\fB4\fR" 4
  8814. .IX Item "4"
  8815. This level is intended for analyzer developers; it adds various
  8816. other events intended for debugging the analyzer.
  8817. .RE
  8818. .RS 4
  8819. .RE
  8820. .IP "\fB\-fdump\-analyzer\fR" 4
  8821. .IX Item "-fdump-analyzer"
  8822. Dump internal details about what the analyzer is doing to
  8823. \&\fI\fIfile\fI.analyzer.txt\fR.
  8824. This option is overridden by \fB\-fdump\-analyzer\-stderr\fR.
  8825. .IP "\fB\-fdump\-analyzer\-stderr\fR" 4
  8826. .IX Item "-fdump-analyzer-stderr"
  8827. Dump internal details about what the analyzer is doing to stderr.
  8828. This option overrides \fB\-fdump\-analyzer\fR.
  8829. .IP "\fB\-fdump\-analyzer\-callgraph\fR" 4
  8830. .IX Item "-fdump-analyzer-callgraph"
  8831. Dump a representation of the call graph suitable for viewing with
  8832. GraphViz to \fI\fIfile\fI.callgraph.dot\fR.
  8833. .IP "\fB\-fdump\-analyzer\-exploded\-graph\fR" 4
  8834. .IX Item "-fdump-analyzer-exploded-graph"
  8835. Dump a representation of the \*(L"exploded graph\*(R" suitable for viewing with
  8836. GraphViz to \fI\fIfile\fI.eg.dot\fR.
  8837. Nodes are color-coded based on state-machine states to emphasize
  8838. state changes.
  8839. .IP "\fB\-fdump\-analyzer\-exploded\-nodes\fR" 4
  8840. .IX Item "-fdump-analyzer-exploded-nodes"
  8841. Emit diagnostics showing where nodes in the \*(L"exploded graph\*(R" are
  8842. in relation to the program source.
  8843. .IP "\fB\-fdump\-analyzer\-exploded\-nodes\-2\fR" 4
  8844. .IX Item "-fdump-analyzer-exploded-nodes-2"
  8845. Dump a textual representation of the \*(L"exploded graph\*(R" to
  8846. \&\fI\fIfile\fI.eg.txt\fR.
  8847. .IP "\fB\-fdump\-analyzer\-exploded\-nodes\-3\fR" 4
  8848. .IX Item "-fdump-analyzer-exploded-nodes-3"
  8849. Dump a textual representation of the \*(L"exploded graph\*(R" to
  8850. one dump file per node, to \fI\fIfile\fI.eg\-\fIid\fI.txt\fR.
  8851. This is typically a large number of dump files.
  8852. .IP "\fB\-fdump\-analyzer\-feasibility\fR" 4
  8853. .IX Item "-fdump-analyzer-feasibility"
  8854. Dump internal details about the analyzer's search for feasible paths.
  8855. The details are written in a form suitable for viewing with GraphViz
  8856. to filenames of the form \fI\fIfile\fI.*.fg.dot\fR and
  8857. \&\fI\fIfile\fI.*.tg.dot\fR.
  8858. .IP "\fB\-fdump\-analyzer\-json\fR" 4
  8859. .IX Item "-fdump-analyzer-json"
  8860. Dump a compressed \s-1JSON\s0 representation of analyzer internals to
  8861. \&\fI\fIfile\fI.analyzer.json.gz\fR. The precise format is subject
  8862. to change.
  8863. .IP "\fB\-fdump\-analyzer\-state\-purge\fR" 4
  8864. .IX Item "-fdump-analyzer-state-purge"
  8865. As per \fB\-fdump\-analyzer\-supergraph\fR, dump a representation of the
  8866. \&\*(L"supergraph\*(R" suitable for viewing with GraphViz, but annotate the
  8867. graph with information on what state will be purged at each node.
  8868. The graph is written to \fI\fIfile\fI.state\-purge.dot\fR.
  8869. .IP "\fB\-fdump\-analyzer\-supergraph\fR" 4
  8870. .IX Item "-fdump-analyzer-supergraph"
  8871. Dump representations of the \*(L"supergraph\*(R" suitable for viewing with
  8872. GraphViz to \fI\fIfile\fI.supergraph.dot\fR and to
  8873. \&\fI\fIfile\fI.supergraph\-eg.dot\fR. These show all of the
  8874. control flow graphs in the program, with interprocedural edges for
  8875. calls and returns. The second dump contains annotations showing nodes
  8876. in the \*(L"exploded graph\*(R" and diagnostics associated with them.
  8877. .SS "Options for Debugging Your Program"
  8878. .IX Subsection "Options for Debugging Your Program"
  8879. To tell \s-1GCC\s0 to emit extra information for use by a debugger, in almost
  8880. all cases you need only to add \fB\-g\fR to your other options.
  8881. .PP
  8882. \&\s-1GCC\s0 allows you to use \fB\-g\fR with
  8883. \&\fB\-O\fR. The shortcuts taken by optimized code may occasionally
  8884. be surprising: some variables you declared may not exist
  8885. at all; flow of control may briefly move where you did not expect it;
  8886. some statements may not be executed because they compute constant
  8887. results or their values are already at hand; some statements may
  8888. execute in different places because they have been moved out of loops.
  8889. Nevertheless it is possible to debug optimized output. This makes
  8890. it reasonable to use the optimizer for programs that might have bugs.
  8891. .PP
  8892. If you are not using some other optimization option, consider
  8893. using \fB\-Og\fR with \fB\-g\fR.
  8894. With no \fB\-O\fR option at all, some compiler passes that collect
  8895. information useful for debugging do not run at all, so that
  8896. \&\fB\-Og\fR may result in a better debugging experience.
  8897. .IP "\fB\-g\fR" 4
  8898. .IX Item "-g"
  8899. Produce debugging information in the operating system's native format
  8900. (stabs, \s-1COFF, XCOFF,\s0 or \s-1DWARF\s0). \s-1GDB\s0 can work with this debugging
  8901. information.
  8902. .Sp
  8903. On most systems that use stabs format, \fB\-g\fR enables use of extra
  8904. debugging information that only \s-1GDB\s0 can use; this extra information
  8905. makes debugging work better in \s-1GDB\s0 but probably makes other debuggers
  8906. crash or
  8907. refuse to read the program. If you want to control for certain whether
  8908. to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
  8909. \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, or \fB\-gvms\fR (see below).
  8910. .IP "\fB\-ggdb\fR" 4
  8911. .IX Item "-ggdb"
  8912. Produce debugging information for use by \s-1GDB.\s0 This means to use the
  8913. most expressive format available (\s-1DWARF,\s0 stabs, or the native format
  8914. if neither of those are supported), including \s-1GDB\s0 extensions if at all
  8915. possible.
  8916. .IP "\fB\-gdwarf\fR" 4
  8917. .IX Item "-gdwarf"
  8918. .PD 0
  8919. .IP "\fB\-gdwarf\-\fR\fIversion\fR" 4
  8920. .IX Item "-gdwarf-version"
  8921. .PD
  8922. Produce debugging information in \s-1DWARF\s0 format (if that is supported).
  8923. The value of \fIversion\fR may be either 2, 3, 4 or 5; the default
  8924. version for most targets is 5 (with the exception of VxWorks, \s-1TPF\s0 and
  8925. Darwin/Mac \s-1OS X,\s0 which default to version 2, and \s-1AIX,\s0 which defaults
  8926. to version 4).
  8927. .Sp
  8928. Note that with \s-1DWARF\s0 Version 2, some ports require and always
  8929. use some non-conflicting \s-1DWARF 3\s0 extensions in the unwind tables.
  8930. .Sp
  8931. Version 4 may require \s-1GDB 7.0\s0 and \fB\-fvar\-tracking\-assignments\fR
  8932. for maximum benefit. Version 5 requires \s-1GDB 8.0\s0 or higher.
  8933. .Sp
  8934. \&\s-1GCC\s0 no longer supports \s-1DWARF\s0 Version 1, which is substantially
  8935. different than Version 2 and later. For historical reasons, some
  8936. other DWARF-related options such as
  8937. \&\fB\-fno\-dwarf2\-cfi\-asm\fR) retain a reference to \s-1DWARF\s0 Version 2
  8938. in their names, but apply to all currently-supported versions of \s-1DWARF.\s0
  8939. .IP "\fB\-gstabs\fR" 4
  8940. .IX Item "-gstabs"
  8941. Produce debugging information in stabs format (if that is supported),
  8942. without \s-1GDB\s0 extensions. This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
  8943. systems. On \s-1MIPS,\s0 Alpha and System V Release 4 systems this option
  8944. produces stabs debugging output that is not understood by \s-1DBX.\s0
  8945. On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
  8946. .IP "\fB\-gstabs+\fR" 4
  8947. .IX Item "-gstabs+"
  8948. Produce debugging information in stabs format (if that is supported),
  8949. using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0). The
  8950. use of these extensions is likely to make other debuggers crash or
  8951. refuse to read the program.
  8952. .IP "\fB\-gxcoff\fR" 4
  8953. .IX Item "-gxcoff"
  8954. Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
  8955. This is the format used by the \s-1DBX\s0 debugger on \s-1IBM RS/6000\s0 systems.
  8956. .IP "\fB\-gxcoff+\fR" 4
  8957. .IX Item "-gxcoff+"
  8958. Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
  8959. using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0). The
  8960. use of these extensions is likely to make other debuggers crash or
  8961. refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
  8962. assembler (\s-1GAS\s0) to fail with an error.
  8963. .IP "\fB\-gvms\fR" 4
  8964. .IX Item "-gvms"
  8965. Produce debugging information in Alpha/VMS debug format (if that is
  8966. supported). This is the format used by \s-1DEBUG\s0 on Alpha/VMS systems.
  8967. .IP "\fB\-g\fR\fIlevel\fR" 4
  8968. .IX Item "-glevel"
  8969. .PD 0
  8970. .IP "\fB\-ggdb\fR\fIlevel\fR" 4
  8971. .IX Item "-ggdblevel"
  8972. .IP "\fB\-gstabs\fR\fIlevel\fR" 4
  8973. .IX Item "-gstabslevel"
  8974. .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
  8975. .IX Item "-gxcofflevel"
  8976. .IP "\fB\-gvms\fR\fIlevel\fR" 4
  8977. .IX Item "-gvmslevel"
  8978. .PD
  8979. Request debugging information and also use \fIlevel\fR to specify how
  8980. much information. The default level is 2.
  8981. .Sp
  8982. Level 0 produces no debug information at all. Thus, \fB\-g0\fR negates
  8983. \&\fB\-g\fR.
  8984. .Sp
  8985. Level 1 produces minimal information, enough for making backtraces in
  8986. parts of the program that you don't plan to debug. This includes
  8987. descriptions of functions and external variables, and line number
  8988. tables, but no information about local variables.
  8989. .Sp
  8990. Level 3 includes extra information, such as all the macro definitions
  8991. present in the program. Some debuggers support macro expansion when
  8992. you use \fB\-g3\fR.
  8993. .Sp
  8994. If you use multiple \fB\-g\fR options, with or without level numbers,
  8995. the last such option is the one that is effective.
  8996. .Sp
  8997. \&\fB\-gdwarf\fR does not accept a concatenated debug level, to avoid
  8998. confusion with \fB\-gdwarf\-\fR\fIlevel\fR.
  8999. Instead use an additional \fB\-g\fR\fIlevel\fR option to change the
  9000. debug level for \s-1DWARF.\s0
  9001. .IP "\fB\-fno\-eliminate\-unused\-debug\-symbols\fR" 4
  9002. .IX Item "-fno-eliminate-unused-debug-symbols"
  9003. By default, no debug information is produced for symbols that are not actually
  9004. used. Use this option if you want debug information for all symbols.
  9005. .IP "\fB\-femit\-class\-debug\-always\fR" 4
  9006. .IX Item "-femit-class-debug-always"
  9007. Instead of emitting debugging information for a \*(C+ class in only one
  9008. object file, emit it in all object files using the class. This option
  9009. should be used only with debuggers that are unable to handle the way \s-1GCC\s0
  9010. normally emits debugging information for classes because using this
  9011. option increases the size of debugging information by as much as a
  9012. factor of two.
  9013. .IP "\fB\-fno\-merge\-debug\-strings\fR" 4
  9014. .IX Item "-fno-merge-debug-strings"
  9015. Direct the linker to not merge together strings in the debugging
  9016. information that are identical in different object files. Merging is
  9017. not supported by all assemblers or linkers. Merging decreases the size
  9018. of the debug information in the output file at the cost of increasing
  9019. link processing time. Merging is enabled by default.
  9020. .IP "\fB\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
  9021. .IX Item "-fdebug-prefix-map=old=new"
  9022. When compiling files residing in directory \fI\fIold\fI\fR, record
  9023. debugging information describing them as if the files resided in
  9024. directory \fI\fInew\fI\fR instead. This can be used to replace a
  9025. build-time path with an install-time path in the debug info. It can
  9026. also be used to change an absolute path to a relative path by using
  9027. \&\fI.\fR for \fInew\fR. This can give more reproducible builds, which
  9028. are location independent, but may require an extra command to tell \s-1GDB\s0
  9029. where to find the source files. See also \fB\-ffile\-prefix\-map\fR.
  9030. .IP "\fB\-fvar\-tracking\fR" 4
  9031. .IX Item "-fvar-tracking"
  9032. Run variable tracking pass. It computes where variables are stored at each
  9033. position in code. Better debugging information is then generated
  9034. (if the debugging information format supports this information).
  9035. .Sp
  9036. It is enabled by default when compiling with optimization (\fB\-Os\fR,
  9037. \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
  9038. the debug info format supports it.
  9039. .IP "\fB\-fvar\-tracking\-assignments\fR" 4
  9040. .IX Item "-fvar-tracking-assignments"
  9041. Annotate assignments to user variables early in the compilation and
  9042. attempt to carry the annotations over throughout the compilation all the
  9043. way to the end, in an attempt to improve debug information while
  9044. optimizing. Use of \fB\-gdwarf\-4\fR is recommended along with it.
  9045. .Sp
  9046. It can be enabled even if var-tracking is disabled, in which case
  9047. annotations are created and maintained, but discarded at the end.
  9048. By default, this flag is enabled together with \fB\-fvar\-tracking\fR,
  9049. except when selective scheduling is enabled.
  9050. .IP "\fB\-gsplit\-dwarf\fR" 4
  9051. .IX Item "-gsplit-dwarf"
  9052. If \s-1DWARF\s0 debugging information is enabled, separate as much debugging
  9053. information as possible into a separate output file with the extension
  9054. \&\fI.dwo\fR. This option allows the build system to avoid linking files with
  9055. debug information. To be useful, this option requires a debugger capable of
  9056. reading \fI.dwo\fR files.
  9057. .IP "\fB\-gdwarf32\fR" 4
  9058. .IX Item "-gdwarf32"
  9059. .PD 0
  9060. .IP "\fB\-gdwarf64\fR" 4
  9061. .IX Item "-gdwarf64"
  9062. .PD
  9063. If \s-1DWARF\s0 debugging information is enabled, the \fB\-gdwarf32\fR selects
  9064. the 32\-bit \s-1DWARF\s0 format and the \fB\-gdwarf64\fR selects the 64\-bit
  9065. \&\s-1DWARF\s0 format. The default is target specific, on most targets it is
  9066. \&\fB\-gdwarf32\fR though. The 32\-bit \s-1DWARF\s0 format is smaller, but
  9067. can't support more than 2GiB of debug information in any of the \s-1DWARF\s0
  9068. debug information sections. The 64\-bit \s-1DWARF\s0 format allows larger debug
  9069. information and might not be well supported by all consumers yet.
  9070. .IP "\fB\-gdescribe\-dies\fR" 4
  9071. .IX Item "-gdescribe-dies"
  9072. Add description attributes to some \s-1DWARF\s0 DIEs that have no name attribute,
  9073. such as artificial variables, external references and call site
  9074. parameter DIEs.
  9075. .IP "\fB\-gpubnames\fR" 4
  9076. .IX Item "-gpubnames"
  9077. Generate \s-1DWARF\s0 \f(CW\*(C`.debug_pubnames\*(C'\fR and \f(CW\*(C`.debug_pubtypes\*(C'\fR sections.
  9078. .IP "\fB\-ggnu\-pubnames\fR" 4
  9079. .IX Item "-ggnu-pubnames"
  9080. Generate \f(CW\*(C`.debug_pubnames\*(C'\fR and \f(CW\*(C`.debug_pubtypes\*(C'\fR sections in a format
  9081. suitable for conversion into a \s-1GDB\s0 index. This option is only useful
  9082. with a linker that can produce \s-1GDB\s0 index version 7.
  9083. .IP "\fB\-fdebug\-types\-section\fR" 4
  9084. .IX Item "-fdebug-types-section"
  9085. When using \s-1DWARF\s0 Version 4 or higher, type DIEs can be put into
  9086. their own \f(CW\*(C`.debug_types\*(C'\fR section instead of making them part of the
  9087. \&\f(CW\*(C`.debug_info\*(C'\fR section. It is more efficient to put them in a separate
  9088. comdat section since the linker can then remove duplicates.
  9089. But not all \s-1DWARF\s0 consumers support \f(CW\*(C`.debug_types\*(C'\fR sections yet
  9090. and on some objects \f(CW\*(C`.debug_types\*(C'\fR produces larger instead of smaller
  9091. debugging information.
  9092. .IP "\fB\-grecord\-gcc\-switches\fR" 4
  9093. .IX Item "-grecord-gcc-switches"
  9094. .PD 0
  9095. .IP "\fB\-gno\-record\-gcc\-switches\fR" 4
  9096. .IX Item "-gno-record-gcc-switches"
  9097. .PD
  9098. This switch causes the command-line options used to invoke the
  9099. compiler that may affect code generation to be appended to the
  9100. DW_AT_producer attribute in \s-1DWARF\s0 debugging information. The options
  9101. are concatenated with spaces separating them from each other and from
  9102. the compiler version.
  9103. It is enabled by default.
  9104. See also \fB\-frecord\-gcc\-switches\fR for another
  9105. way of storing compiler options into the object file.
  9106. .IP "\fB\-gstrict\-dwarf\fR" 4
  9107. .IX Item "-gstrict-dwarf"
  9108. Disallow using extensions of later \s-1DWARF\s0 standard version than selected
  9109. with \fB\-gdwarf\-\fR\fIversion\fR. On most targets using non-conflicting
  9110. \&\s-1DWARF\s0 extensions from later standard versions is allowed.
  9111. .IP "\fB\-gno\-strict\-dwarf\fR" 4
  9112. .IX Item "-gno-strict-dwarf"
  9113. Allow using extensions of later \s-1DWARF\s0 standard version than selected with
  9114. \&\fB\-gdwarf\-\fR\fIversion\fR.
  9115. .IP "\fB\-gas\-loc\-support\fR" 4
  9116. .IX Item "-gas-loc-support"
  9117. Inform the compiler that the assembler supports \f(CW\*(C`.loc\*(C'\fR directives.
  9118. It may then use them for the assembler to generate \s-1DWARF2+\s0 line number
  9119. tables.
  9120. .Sp
  9121. This is generally desirable, because assembler-generated line-number
  9122. tables are a lot more compact than those the compiler can generate
  9123. itself.
  9124. .Sp
  9125. This option will be enabled by default if, at \s-1GCC\s0 configure time, the
  9126. assembler was found to support such directives.
  9127. .IP "\fB\-gno\-as\-loc\-support\fR" 4
  9128. .IX Item "-gno-as-loc-support"
  9129. Force \s-1GCC\s0 to generate \s-1DWARF2+\s0 line number tables internally, if \s-1DWARF2+\s0
  9130. line number tables are to be generated.
  9131. .IP "\fB\-gas\-locview\-support\fR" 4
  9132. .IX Item "-gas-locview-support"
  9133. Inform the compiler that the assembler supports \f(CW\*(C`view\*(C'\fR assignment
  9134. and reset assertion checking in \f(CW\*(C`.loc\*(C'\fR directives.
  9135. .Sp
  9136. This option will be enabled by default if, at \s-1GCC\s0 configure time, the
  9137. assembler was found to support them.
  9138. .IP "\fB\-gno\-as\-locview\-support\fR" 4
  9139. .IX Item "-gno-as-locview-support"
  9140. Force \s-1GCC\s0 to assign view numbers internally, if
  9141. \&\fB\-gvariable\-location\-views\fR are explicitly requested.
  9142. .IP "\fB\-gcolumn\-info\fR" 4
  9143. .IX Item "-gcolumn-info"
  9144. .PD 0
  9145. .IP "\fB\-gno\-column\-info\fR" 4
  9146. .IX Item "-gno-column-info"
  9147. .PD
  9148. Emit location column information into \s-1DWARF\s0 debugging information, rather
  9149. than just file and line.
  9150. This option is enabled by default.
  9151. .IP "\fB\-gstatement\-frontiers\fR" 4
  9152. .IX Item "-gstatement-frontiers"
  9153. .PD 0
  9154. .IP "\fB\-gno\-statement\-frontiers\fR" 4
  9155. .IX Item "-gno-statement-frontiers"
  9156. .PD
  9157. This option causes \s-1GCC\s0 to create markers in the internal representation
  9158. at the beginning of statements, and to keep them roughly in place
  9159. throughout compilation, using them to guide the output of \f(CW\*(C`is_stmt\*(C'\fR
  9160. markers in the line number table. This is enabled by default when
  9161. compiling with optimization (\fB\-Os\fR, \fB\-O\fR, \fB\-O2\fR,
  9162. \&...), and outputting \s-1DWARF 2\s0 debug information at the normal level.
  9163. .IP "\fB\-gvariable\-location\-views\fR" 4
  9164. .IX Item "-gvariable-location-views"
  9165. .PD 0
  9166. .IP "\fB\-gvariable\-location\-views=incompat5\fR" 4
  9167. .IX Item "-gvariable-location-views=incompat5"
  9168. .IP "\fB\-gno\-variable\-location\-views\fR" 4
  9169. .IX Item "-gno-variable-location-views"
  9170. .PD
  9171. Augment variable location lists with progressive view numbers implied
  9172. from the line number table. This enables debug information consumers to
  9173. inspect state at certain points of the program, even if no instructions
  9174. associated with the corresponding source locations are present at that
  9175. point. If the assembler lacks support for view numbers in line number
  9176. tables, this will cause the compiler to emit the line number table,
  9177. which generally makes them somewhat less compact. The augmented line
  9178. number tables and location lists are fully backward-compatible, so they
  9179. can be consumed by debug information consumers that are not aware of
  9180. these augmentations, but they won't derive any benefit from them either.
  9181. .Sp
  9182. This is enabled by default when outputting \s-1DWARF 2\s0 debug information at
  9183. the normal level, as long as there is assembler support,
  9184. \&\fB\-fvar\-tracking\-assignments\fR is enabled and
  9185. \&\fB\-gstrict\-dwarf\fR is not. When assembler support is not
  9186. available, this may still be enabled, but it will force \s-1GCC\s0 to output
  9187. internal line number tables, and if
  9188. \&\fB\-ginternal\-reset\-location\-views\fR is not enabled, that will most
  9189. certainly lead to silently mismatching location views.
  9190. .Sp
  9191. There is a proposed representation for view numbers that is not backward
  9192. compatible with the location list format introduced in \s-1DWARF 5,\s0 that can
  9193. be enabled with \fB\-gvariable\-location\-views=incompat5\fR. This
  9194. option may be removed in the future, is only provided as a reference
  9195. implementation of the proposed representation. Debug information
  9196. consumers are not expected to support this extended format, and they
  9197. would be rendered unable to decode location lists using it.
  9198. .IP "\fB\-ginternal\-reset\-location\-views\fR" 4
  9199. .IX Item "-ginternal-reset-location-views"
  9200. .PD 0
  9201. .IP "\fB\-gno\-internal\-reset\-location\-views\fR" 4
  9202. .IX Item "-gno-internal-reset-location-views"
  9203. .PD
  9204. Attempt to determine location views that can be omitted from location
  9205. view lists. This requires the compiler to have very accurate insn
  9206. length estimates, which isn't always the case, and it may cause
  9207. incorrect view lists to be generated silently when using an assembler
  9208. that does not support location view lists. The \s-1GNU\s0 assembler will flag
  9209. any such error as a \f(CW\*(C`view number mismatch\*(C'\fR. This is only enabled
  9210. on ports that define a reliable estimation function.
  9211. .IP "\fB\-ginline\-points\fR" 4
  9212. .IX Item "-ginline-points"
  9213. .PD 0
  9214. .IP "\fB\-gno\-inline\-points\fR" 4
  9215. .IX Item "-gno-inline-points"
  9216. .PD
  9217. Generate extended debug information for inlined functions. Location
  9218. view tracking markers are inserted at inlined entry points, so that
  9219. address and view numbers can be computed and output in debug
  9220. information. This can be enabled independently of location views, in
  9221. which case the view numbers won't be output, but it can only be enabled
  9222. along with statement frontiers, and it is only enabled by default if
  9223. location views are enabled.
  9224. .IP "\fB\-gz\fR[\fB=\fR\fItype\fR]" 4
  9225. .IX Item "-gz[=type]"
  9226. Produce compressed debug sections in \s-1DWARF\s0 format, if that is supported.
  9227. If \fItype\fR is not given, the default type depends on the capabilities
  9228. of the assembler and linker used. \fItype\fR may be one of
  9229. \&\fBnone\fR (don't compress debug sections), \fBzlib\fR (use zlib
  9230. compression in \s-1ELF\s0 gABI format), or \fBzlib-gnu\fR (use zlib
  9231. compression in traditional \s-1GNU\s0 format). If the linker doesn't support
  9232. writing compressed debug sections, the option is rejected. Otherwise,
  9233. if the assembler does not support them, \fB\-gz\fR is silently ignored
  9234. when producing object files.
  9235. .IP "\fB\-femit\-struct\-debug\-baseonly\fR" 4
  9236. .IX Item "-femit-struct-debug-baseonly"
  9237. Emit debug information for struct-like types
  9238. only when the base name of the compilation source file
  9239. matches the base name of file in which the struct is defined.
  9240. .Sp
  9241. This option substantially reduces the size of debugging information,
  9242. but at significant potential loss in type information to the debugger.
  9243. See \fB\-femit\-struct\-debug\-reduced\fR for a less aggressive option.
  9244. See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
  9245. .Sp
  9246. This option works only with \s-1DWARF\s0 debug output.
  9247. .IP "\fB\-femit\-struct\-debug\-reduced\fR" 4
  9248. .IX Item "-femit-struct-debug-reduced"
  9249. Emit debug information for struct-like types
  9250. only when the base name of the compilation source file
  9251. matches the base name of file in which the type is defined,
  9252. unless the struct is a template or defined in a system header.
  9253. .Sp
  9254. This option significantly reduces the size of debugging information,
  9255. with some potential loss in type information to the debugger.
  9256. See \fB\-femit\-struct\-debug\-baseonly\fR for a more aggressive option.
  9257. See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
  9258. .Sp
  9259. This option works only with \s-1DWARF\s0 debug output.
  9260. .IP "\fB\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR]" 4
  9261. .IX Item "-femit-struct-debug-detailed[=spec-list]"
  9262. Specify the struct-like types
  9263. for which the compiler generates debug information.
  9264. The intent is to reduce duplicate struct debug information
  9265. between different object files within the same program.
  9266. .Sp
  9267. This option is a detailed version of
  9268. \&\fB\-femit\-struct\-debug\-reduced\fR and \fB\-femit\-struct\-debug\-baseonly\fR,
  9269. which serves for most needs.
  9270. .Sp
  9271. A specification has the syntax[\fBdir:\fR|\fBind:\fR][\fBord:\fR|\fBgen:\fR](\fBany\fR|\fBsys\fR|\fBbase\fR|\fBnone\fR)
  9272. .Sp
  9273. The optional first word limits the specification to
  9274. structs that are used directly (\fBdir:\fR) or used indirectly (\fBind:\fR).
  9275. A struct type is used directly when it is the type of a variable, member.
  9276. Indirect uses arise through pointers to structs.
  9277. That is, when use of an incomplete struct is valid, the use is indirect.
  9278. An example is
  9279. \&\fBstruct one direct; struct two * indirect;\fR.
  9280. .Sp
  9281. The optional second word limits the specification to
  9282. ordinary structs (\fBord:\fR) or generic structs (\fBgen:\fR).
  9283. Generic structs are a bit complicated to explain.
  9284. For \*(C+, these are non-explicit specializations of template classes,
  9285. or non-template classes within the above.
  9286. Other programming languages have generics,
  9287. but \fB\-femit\-struct\-debug\-detailed\fR does not yet implement them.
  9288. .Sp
  9289. The third word specifies the source files for those
  9290. structs for which the compiler should emit debug information.
  9291. The values \fBnone\fR and \fBany\fR have the normal meaning.
  9292. The value \fBbase\fR means that
  9293. the base of name of the file in which the type declaration appears
  9294. must match the base of the name of the main compilation file.
  9295. In practice, this means that when compiling \fIfoo.c\fR, debug information
  9296. is generated for types declared in that file and \fIfoo.h\fR,
  9297. but not other header files.
  9298. The value \fBsys\fR means those types satisfying \fBbase\fR
  9299. or declared in system or compiler headers.
  9300. .Sp
  9301. You may need to experiment to determine the best settings for your application.
  9302. .Sp
  9303. The default is \fB\-femit\-struct\-debug\-detailed=all\fR.
  9304. .Sp
  9305. This option works only with \s-1DWARF\s0 debug output.
  9306. .IP "\fB\-fno\-dwarf2\-cfi\-asm\fR" 4
  9307. .IX Item "-fno-dwarf2-cfi-asm"
  9308. Emit \s-1DWARF\s0 unwind info as compiler generated \f(CW\*(C`.eh_frame\*(C'\fR section
  9309. instead of using \s-1GAS\s0 \f(CW\*(C`.cfi_*\*(C'\fR directives.
  9310. .IP "\fB\-fno\-eliminate\-unused\-debug\-types\fR" 4
  9311. .IX Item "-fno-eliminate-unused-debug-types"
  9312. Normally, when producing \s-1DWARF\s0 output, \s-1GCC\s0 avoids producing debug symbol
  9313. output for types that are nowhere used in the source file being compiled.
  9314. Sometimes it is useful to have \s-1GCC\s0 emit debugging
  9315. information for all types declared in a compilation
  9316. unit, regardless of whether or not they are actually used
  9317. in that compilation unit, for example
  9318. if, in the debugger, you want to cast a value to a type that is
  9319. not actually used in your program (but is declared). More often,
  9320. however, this results in a significant amount of wasted space.
  9321. .SS "Options That Control Optimization"
  9322. .IX Subsection "Options That Control Optimization"
  9323. These options control various sorts of optimizations.
  9324. .PP
  9325. Without any optimization option, the compiler's goal is to reduce the
  9326. cost of compilation and to make debugging produce the expected
  9327. results. Statements are independent: if you stop the program with a
  9328. breakpoint between statements, you can then assign a new value to any
  9329. variable or change the program counter to any other statement in the
  9330. function and get exactly the results you expect from the source
  9331. code.
  9332. .PP
  9333. Turning on optimization flags makes the compiler attempt to improve
  9334. the performance and/or code size at the expense of compilation time
  9335. and possibly the ability to debug the program.
  9336. .PP
  9337. The compiler performs optimization based on the knowledge it has of the
  9338. program. Compiling multiple files at once to a single output file mode allows
  9339. the compiler to use information gained from all of the files when compiling
  9340. each of them.
  9341. .PP
  9342. Not all optimizations are controlled directly by a flag. Only
  9343. optimizations that have a flag are listed in this section.
  9344. .PP
  9345. Most optimizations are completely disabled at \fB\-O0\fR or if an
  9346. \&\fB\-O\fR level is not set on the command line, even if individual
  9347. optimization flags are specified. Similarly, \fB\-Og\fR suppresses
  9348. many optimization passes.
  9349. .PP
  9350. Depending on the target and how \s-1GCC\s0 was configured, a slightly different
  9351. set of optimizations may be enabled at each \fB\-O\fR level than
  9352. those listed here. You can invoke \s-1GCC\s0 with \fB\-Q \-\-help=optimizers\fR
  9353. to find out the exact set of optimizations that are enabled at each level.
  9354. .IP "\fB\-O\fR" 4
  9355. .IX Item "-O"
  9356. .PD 0
  9357. .IP "\fB\-O1\fR" 4
  9358. .IX Item "-O1"
  9359. .PD
  9360. Optimize. Optimizing compilation takes somewhat more time, and a lot
  9361. more memory for a large function.
  9362. .Sp
  9363. With \fB\-O\fR, the compiler tries to reduce code size and execution
  9364. time, without performing any optimizations that take a great deal of
  9365. compilation time.
  9366. .Sp
  9367. \&\fB\-O\fR turns on the following optimization flags:
  9368. .Sp
  9369. \&\fB\-fauto\-inc\-dec
  9370. \&\-fbranch\-count\-reg
  9371. \&\-fcombine\-stack\-adjustments
  9372. \&\-fcompare\-elim
  9373. \&\-fcprop\-registers
  9374. \&\-fdce
  9375. \&\-fdefer\-pop
  9376. \&\-fdelayed\-branch
  9377. \&\-fdse
  9378. \&\-fforward\-propagate
  9379. \&\-fguess\-branch\-probability
  9380. \&\-fif\-conversion
  9381. \&\-fif\-conversion2
  9382. \&\-finline\-functions\-called\-once
  9383. \&\-fipa\-modref
  9384. \&\-fipa\-profile
  9385. \&\-fipa\-pure\-const
  9386. \&\-fipa\-reference
  9387. \&\-fipa\-reference\-addressable
  9388. \&\-fmerge\-constants
  9389. \&\-fmove\-loop\-invariants
  9390. \&\-fomit\-frame\-pointer
  9391. \&\-freorder\-blocks
  9392. \&\-fshrink\-wrap
  9393. \&\-fshrink\-wrap\-separate
  9394. \&\-fsplit\-wide\-types
  9395. \&\-fssa\-backprop
  9396. \&\-fssa\-phiopt
  9397. \&\-ftree\-bit\-ccp
  9398. \&\-ftree\-ccp
  9399. \&\-ftree\-ch
  9400. \&\-ftree\-coalesce\-vars
  9401. \&\-ftree\-copy\-prop
  9402. \&\-ftree\-dce
  9403. \&\-ftree\-dominator\-opts
  9404. \&\-ftree\-dse
  9405. \&\-ftree\-forwprop
  9406. \&\-ftree\-fre
  9407. \&\-ftree\-phiprop
  9408. \&\-ftree\-pta
  9409. \&\-ftree\-scev\-cprop
  9410. \&\-ftree\-sink
  9411. \&\-ftree\-slsr
  9412. \&\-ftree\-sra
  9413. \&\-ftree\-ter
  9414. \&\-funit\-at\-a\-time\fR
  9415. .IP "\fB\-O2\fR" 4
  9416. .IX Item "-O2"
  9417. Optimize even more. \s-1GCC\s0 performs nearly all supported optimizations
  9418. that do not involve a space-speed tradeoff.
  9419. As compared to \fB\-O\fR, this option increases both compilation time
  9420. and the performance of the generated code.
  9421. .Sp
  9422. \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR. It
  9423. also turns on the following optimization flags:
  9424. .Sp
  9425. \&\fB\-falign\-functions \-falign\-jumps
  9426. \&\-falign\-labels \-falign\-loops
  9427. \&\-fcaller\-saves
  9428. \&\-fcode\-hoisting
  9429. \&\-fcrossjumping
  9430. \&\-fcse\-follow\-jumps \-fcse\-skip\-blocks
  9431. \&\-fdelete\-null\-pointer\-checks
  9432. \&\-fdevirtualize \-fdevirtualize\-speculatively
  9433. \&\-fexpensive\-optimizations
  9434. \&\-ffinite\-loops
  9435. \&\-fgcse \-fgcse\-lm
  9436. \&\-fhoist\-adjacent\-loads
  9437. \&\-finline\-functions
  9438. \&\-finline\-small\-functions
  9439. \&\-findirect\-inlining
  9440. \&\-fipa\-bit\-cp \-fipa\-cp \-fipa\-icf
  9441. \&\-fipa\-ra \-fipa\-sra \-fipa\-vrp
  9442. \&\-fisolate\-erroneous\-paths\-dereference
  9443. \&\-flra\-remat
  9444. \&\-foptimize\-sibling\-calls
  9445. \&\-foptimize\-strlen
  9446. \&\-fpartial\-inlining
  9447. \&\-fpeephole2
  9448. \&\-freorder\-blocks\-algorithm=stc
  9449. \&\-freorder\-blocks\-and\-partition \-freorder\-functions
  9450. \&\-frerun\-cse\-after\-loop
  9451. \&\-fschedule\-insns \-fschedule\-insns2
  9452. \&\-fsched\-interblock \-fsched\-spec
  9453. \&\-fstore\-merging
  9454. \&\-fstrict\-aliasing
  9455. \&\-fthread\-jumps
  9456. \&\-ftree\-builtin\-call\-dce
  9457. \&\-ftree\-pre
  9458. \&\-ftree\-switch\-conversion \-ftree\-tail\-merge
  9459. \&\-ftree\-vrp\fR
  9460. .Sp
  9461. Please note the warning under \fB\-fgcse\fR about
  9462. invoking \fB\-O2\fR on programs that use computed gotos.
  9463. .IP "\fB\-O3\fR" 4
  9464. .IX Item "-O3"
  9465. Optimize yet more. \fB\-O3\fR turns on all optimizations specified
  9466. by \fB\-O2\fR and also turns on the following optimization flags:
  9467. .Sp
  9468. \&\fB\-fgcse\-after\-reload
  9469. \&\-fipa\-cp\-clone
  9470. \&\-floop\-interchange
  9471. \&\-floop\-unroll\-and\-jam
  9472. \&\-fpeel\-loops
  9473. \&\-fpredictive\-commoning
  9474. \&\-fsplit\-loops
  9475. \&\-fsplit\-paths
  9476. \&\-ftree\-loop\-distribution
  9477. \&\-ftree\-loop\-vectorize
  9478. \&\-ftree\-partial\-pre
  9479. \&\-ftree\-slp\-vectorize
  9480. \&\-funswitch\-loops
  9481. \&\-fvect\-cost\-model
  9482. \&\-fvect\-cost\-model=dynamic
  9483. \&\-fversion\-loops\-for\-strides\fR
  9484. .IP "\fB\-O0\fR" 4
  9485. .IX Item "-O0"
  9486. Reduce compilation time and make debugging produce the expected
  9487. results. This is the default.
  9488. .IP "\fB\-Os\fR" 4
  9489. .IX Item "-Os"
  9490. Optimize for size. \fB\-Os\fR enables all \fB\-O2\fR optimizations
  9491. except those that often increase code size:
  9492. .Sp
  9493. \&\fB\-falign\-functions \-falign\-jumps
  9494. \&\-falign\-labels \-falign\-loops
  9495. \&\-fprefetch\-loop\-arrays \-freorder\-blocks\-algorithm=stc\fR
  9496. .Sp
  9497. It also enables \fB\-finline\-functions\fR, causes the compiler to tune for
  9498. code size rather than execution speed, and performs further optimizations
  9499. designed to reduce code size.
  9500. .IP "\fB\-Ofast\fR" 4
  9501. .IX Item "-Ofast"
  9502. Disregard strict standards compliance. \fB\-Ofast\fR enables all
  9503. \&\fB\-O3\fR optimizations. It also enables optimizations that are not
  9504. valid for all standard-compliant programs.
  9505. It turns on \fB\-ffast\-math\fR, \fB\-fallow\-store\-data\-races\fR
  9506. and the Fortran-specific \fB\-fstack\-arrays\fR, unless
  9507. \&\fB\-fmax\-stack\-var\-size\fR is specified, and \fB\-fno\-protect\-parens\fR.
  9508. .IP "\fB\-Og\fR" 4
  9509. .IX Item "-Og"
  9510. Optimize debugging experience. \fB\-Og\fR should be the optimization
  9511. level of choice for the standard edit-compile-debug cycle, offering
  9512. a reasonable level of optimization while maintaining fast compilation
  9513. and a good debugging experience. It is a better choice than \fB\-O0\fR
  9514. for producing debuggable code because some compiler passes
  9515. that collect debug information are disabled at \fB\-O0\fR.
  9516. .Sp
  9517. Like \fB\-O0\fR, \fB\-Og\fR completely disables a number of
  9518. optimization passes so that individual options controlling them have
  9519. no effect. Otherwise \fB\-Og\fR enables all \fB\-O1\fR
  9520. optimization flags except for those that may interfere with debugging:
  9521. .Sp
  9522. \&\fB\-fbranch\-count\-reg \-fdelayed\-branch
  9523. \&\-fdse \-fif\-conversion \-fif\-conversion2
  9524. \&\-finline\-functions\-called\-once
  9525. \&\-fmove\-loop\-invariants \-fssa\-phiopt
  9526. \&\-ftree\-bit\-ccp \-ftree\-dse \-ftree\-pta \-ftree\-sra\fR
  9527. .PP
  9528. If you use multiple \fB\-O\fR options, with or without level numbers,
  9529. the last such option is the one that is effective.
  9530. .PP
  9531. Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
  9532. flags. Most flags have both positive and negative forms; the negative
  9533. form of \fB\-ffoo\fR is \fB\-fno\-foo\fR. In the table
  9534. below, only one of the forms is listed\-\-\-the one you typically
  9535. use. You can figure out the other form by either removing \fBno\-\fR
  9536. or adding it.
  9537. .PP
  9538. The following options control specific optimizations. They are either
  9539. activated by \fB\-O\fR options or are related to ones that are. You
  9540. can use the following flags in the rare cases when \*(L"fine-tuning\*(R" of
  9541. optimizations to be performed is desired.
  9542. .IP "\fB\-fno\-defer\-pop\fR" 4
  9543. .IX Item "-fno-defer-pop"
  9544. For machines that must pop arguments after a function call, always pop
  9545. the arguments as soon as each function returns.
  9546. At levels \fB\-O1\fR and higher, \fB\-fdefer\-pop\fR is the default;
  9547. this allows the compiler to let arguments accumulate on the stack for several
  9548. function calls and pop them all at once.
  9549. .IP "\fB\-fforward\-propagate\fR" 4
  9550. .IX Item "-fforward-propagate"
  9551. Perform a forward propagation pass on \s-1RTL.\s0 The pass tries to combine two
  9552. instructions and checks if the result can be simplified. If loop unrolling
  9553. is active, two passes are performed and the second is scheduled after
  9554. loop unrolling.
  9555. .Sp
  9556. This option is enabled by default at optimization levels \fB\-O\fR,
  9557. \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  9558. .IP "\fB\-ffp\-contract=\fR\fIstyle\fR" 4
  9559. .IX Item "-ffp-contract=style"
  9560. \&\fB\-ffp\-contract=off\fR disables floating-point expression contraction.
  9561. \&\fB\-ffp\-contract=fast\fR enables floating-point expression contraction
  9562. such as forming of fused multiply-add operations if the target has
  9563. native support for them.
  9564. \&\fB\-ffp\-contract=on\fR enables floating-point expression contraction
  9565. if allowed by the language standard. This is currently not implemented
  9566. and treated equal to \fB\-ffp\-contract=off\fR.
  9567. .Sp
  9568. The default is \fB\-ffp\-contract=fast\fR.
  9569. .IP "\fB\-fomit\-frame\-pointer\fR" 4
  9570. .IX Item "-fomit-frame-pointer"
  9571. Omit the frame pointer in functions that don't need one. This avoids the
  9572. instructions to save, set up and restore the frame pointer; on many targets
  9573. it also makes an extra register available.
  9574. .Sp
  9575. On some targets this flag has no effect because the standard calling sequence
  9576. always uses a frame pointer, so it cannot be omitted.
  9577. .Sp
  9578. Note that \fB\-fno\-omit\-frame\-pointer\fR doesn't guarantee the frame pointer
  9579. is used in all functions. Several targets always omit the frame pointer in
  9580. leaf functions.
  9581. .Sp
  9582. Enabled by default at \fB\-O\fR and higher.
  9583. .IP "\fB\-foptimize\-sibling\-calls\fR" 4
  9584. .IX Item "-foptimize-sibling-calls"
  9585. Optimize sibling and tail recursive calls.
  9586. .Sp
  9587. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  9588. .IP "\fB\-foptimize\-strlen\fR" 4
  9589. .IX Item "-foptimize-strlen"
  9590. Optimize various standard C string functions (e.g. \f(CW\*(C`strlen\*(C'\fR,
  9591. \&\f(CW\*(C`strchr\*(C'\fR or \f(CW\*(C`strcpy\*(C'\fR) and
  9592. their \f(CW\*(C`_FORTIFY_SOURCE\*(C'\fR counterparts into faster alternatives.
  9593. .Sp
  9594. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  9595. .IP "\fB\-fno\-inline\fR" 4
  9596. .IX Item "-fno-inline"
  9597. Do not expand any functions inline apart from those marked with
  9598. the \f(CW\*(C`always_inline\*(C'\fR attribute. This is the default when not
  9599. optimizing.
  9600. .Sp
  9601. Single functions can be exempted from inlining by marking them
  9602. with the \f(CW\*(C`noinline\*(C'\fR attribute.
  9603. .IP "\fB\-finline\-small\-functions\fR" 4
  9604. .IX Item "-finline-small-functions"
  9605. Integrate functions into their callers when their body is smaller than expected
  9606. function call code (so overall size of program gets smaller). The compiler
  9607. heuristically decides which functions are simple enough to be worth integrating
  9608. in this way. This inlining applies to all functions, even those not declared
  9609. inline.
  9610. .Sp
  9611. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  9612. .IP "\fB\-findirect\-inlining\fR" 4
  9613. .IX Item "-findirect-inlining"
  9614. Inline also indirect calls that are discovered to be known at compile
  9615. time thanks to previous inlining. This option has any effect only
  9616. when inlining itself is turned on by the \fB\-finline\-functions\fR
  9617. or \fB\-finline\-small\-functions\fR options.
  9618. .Sp
  9619. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  9620. .IP "\fB\-finline\-functions\fR" 4
  9621. .IX Item "-finline-functions"
  9622. Consider all functions for inlining, even if they are not declared inline.
  9623. The compiler heuristically decides which functions are worth integrating
  9624. in this way.
  9625. .Sp
  9626. If all calls to a given function are integrated, and the function is
  9627. declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
  9628. assembler code in its own right.
  9629. .Sp
  9630. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR. Also enabled
  9631. by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  9632. .IP "\fB\-finline\-functions\-called\-once\fR" 4
  9633. .IX Item "-finline-functions-called-once"
  9634. Consider all \f(CW\*(C`static\*(C'\fR functions called once for inlining into their
  9635. caller even if they are not marked \f(CW\*(C`inline\*(C'\fR. If a call to a given
  9636. function is integrated, then the function is not output as assembler code
  9637. in its own right.
  9638. .Sp
  9639. Enabled at levels \fB\-O1\fR, \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR,
  9640. but not \fB\-Og\fR.
  9641. .IP "\fB\-fearly\-inlining\fR" 4
  9642. .IX Item "-fearly-inlining"
  9643. Inline functions marked by \f(CW\*(C`always_inline\*(C'\fR and functions whose body seems
  9644. smaller than the function call overhead early before doing
  9645. \&\fB\-fprofile\-generate\fR instrumentation and real inlining pass. Doing so
  9646. makes profiling significantly cheaper and usually inlining faster on programs
  9647. having large chains of nested wrapper functions.
  9648. .Sp
  9649. Enabled by default.
  9650. .IP "\fB\-fipa\-sra\fR" 4
  9651. .IX Item "-fipa-sra"
  9652. Perform interprocedural scalar replacement of aggregates, removal of
  9653. unused parameters and replacement of parameters passed by reference
  9654. by parameters passed by value.
  9655. .Sp
  9656. Enabled at levels \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
  9657. .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
  9658. .IX Item "-finline-limit=n"
  9659. By default, \s-1GCC\s0 limits the size of functions that can be inlined. This flag
  9660. allows coarse control of this limit. \fIn\fR is the size of functions that
  9661. can be inlined in number of pseudo instructions.
  9662. .Sp
  9663. Inlining is actually controlled by a number of parameters, which may be
  9664. specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
  9665. The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
  9666. as follows:
  9667. .RS 4
  9668. .IP "\fBmax-inline-insns-single\fR" 4
  9669. .IX Item "max-inline-insns-single"
  9670. is set to \fIn\fR/2.
  9671. .IP "\fBmax-inline-insns-auto\fR" 4
  9672. .IX Item "max-inline-insns-auto"
  9673. is set to \fIn\fR/2.
  9674. .RE
  9675. .RS 4
  9676. .Sp
  9677. See below for a documentation of the individual
  9678. parameters controlling inlining and for the defaults of these parameters.
  9679. .Sp
  9680. \&\fINote:\fR there may be no value to \fB\-finline\-limit\fR that results
  9681. in default behavior.
  9682. .Sp
  9683. \&\fINote:\fR pseudo instruction represents, in this particular context, an
  9684. abstract measurement of function's size. In no way does it represent a count
  9685. of assembly instructions and as such its exact meaning might change from one
  9686. release to an another.
  9687. .RE
  9688. .IP "\fB\-fno\-keep\-inline\-dllexport\fR" 4
  9689. .IX Item "-fno-keep-inline-dllexport"
  9690. This is a more fine-grained version of \fB\-fkeep\-inline\-functions\fR,
  9691. which applies only to functions that are declared using the \f(CW\*(C`dllexport\*(C'\fR
  9692. attribute or declspec.
  9693. .IP "\fB\-fkeep\-inline\-functions\fR" 4
  9694. .IX Item "-fkeep-inline-functions"
  9695. In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
  9696. into the object file, even if the function has been inlined into all
  9697. of its callers. This switch does not affect functions using the
  9698. \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU C90.\s0 In \*(C+, emit any and all
  9699. inline functions into the object file.
  9700. .IP "\fB\-fkeep\-static\-functions\fR" 4
  9701. .IX Item "-fkeep-static-functions"
  9702. Emit \f(CW\*(C`static\*(C'\fR functions into the object file, even if the function
  9703. is never used.
  9704. .IP "\fB\-fkeep\-static\-consts\fR" 4
  9705. .IX Item "-fkeep-static-consts"
  9706. Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
  9707. on, even if the variables aren't referenced.
  9708. .Sp
  9709. \&\s-1GCC\s0 enables this option by default. If you want to force the compiler to
  9710. check if a variable is referenced, regardless of whether or not
  9711. optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
  9712. .IP "\fB\-fmerge\-constants\fR" 4
  9713. .IX Item "-fmerge-constants"
  9714. Attempt to merge identical constants (string constants and floating-point
  9715. constants) across compilation units.
  9716. .Sp
  9717. This option is the default for optimized compilation if the assembler and
  9718. linker support it. Use \fB\-fno\-merge\-constants\fR to inhibit this
  9719. behavior.
  9720. .Sp
  9721. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  9722. .IP "\fB\-fmerge\-all\-constants\fR" 4
  9723. .IX Item "-fmerge-all-constants"
  9724. Attempt to merge identical constants and identical variables.
  9725. .Sp
  9726. This option implies \fB\-fmerge\-constants\fR. In addition to
  9727. \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
  9728. arrays or initialized constant variables with integral or floating-point
  9729. types. Languages like C or \*(C+ require each variable, including multiple
  9730. instances of the same variable in recursive calls, to have distinct locations,
  9731. so using this option results in non-conforming
  9732. behavior.
  9733. .IP "\fB\-fmodulo\-sched\fR" 4
  9734. .IX Item "-fmodulo-sched"
  9735. Perform swing modulo scheduling immediately before the first scheduling
  9736. pass. This pass looks at innermost loops and reorders their
  9737. instructions by overlapping different iterations.
  9738. .IP "\fB\-fmodulo\-sched\-allow\-regmoves\fR" 4
  9739. .IX Item "-fmodulo-sched-allow-regmoves"
  9740. Perform more aggressive SMS-based modulo scheduling with register moves
  9741. allowed. By setting this flag certain anti-dependences edges are
  9742. deleted, which triggers the generation of reg-moves based on the
  9743. life-range analysis. This option is effective only with
  9744. \&\fB\-fmodulo\-sched\fR enabled.
  9745. .IP "\fB\-fno\-branch\-count\-reg\fR" 4
  9746. .IX Item "-fno-branch-count-reg"
  9747. Disable the optimization pass that scans for opportunities to use
  9748. \&\*(L"decrement and branch\*(R" instructions on a count register instead of
  9749. instruction sequences that decrement a register, compare it against zero, and
  9750. then branch based upon the result. This option is only meaningful on
  9751. architectures that support such instructions, which include x86, PowerPC,
  9752. \&\s-1IA\-64\s0 and S/390. Note that the \fB\-fno\-branch\-count\-reg\fR option
  9753. doesn't remove the decrement and branch instructions from the generated
  9754. instruction stream introduced by other optimization passes.
  9755. .Sp
  9756. The default is \fB\-fbranch\-count\-reg\fR at \fB\-O1\fR and higher,
  9757. except for \fB\-Og\fR.
  9758. .IP "\fB\-fno\-function\-cse\fR" 4
  9759. .IX Item "-fno-function-cse"
  9760. Do not put function addresses in registers; make each instruction that
  9761. calls a constant function contain the function's address explicitly.
  9762. .Sp
  9763. This option results in less efficient code, but some strange hacks
  9764. that alter the assembler output may be confused by the optimizations
  9765. performed when this option is not used.
  9766. .Sp
  9767. The default is \fB\-ffunction\-cse\fR
  9768. .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
  9769. .IX Item "-fno-zero-initialized-in-bss"
  9770. If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
  9771. are initialized to zero into \s-1BSS.\s0 This can save space in the resulting
  9772. code.
  9773. .Sp
  9774. This option turns off this behavior because some programs explicitly
  9775. rely on variables going to the data section\-\-\-e.g., so that the
  9776. resulting executable can find the beginning of that section and/or make
  9777. assumptions based on that.
  9778. .Sp
  9779. The default is \fB\-fzero\-initialized\-in\-bss\fR.
  9780. .IP "\fB\-fthread\-jumps\fR" 4
  9781. .IX Item "-fthread-jumps"
  9782. Perform optimizations that check to see if a jump branches to a
  9783. location where another comparison subsumed by the first is found. If
  9784. so, the first branch is redirected to either the destination of the
  9785. second branch or a point immediately following it, depending on whether
  9786. the condition is known to be true or false.
  9787. .Sp
  9788. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  9789. .IP "\fB\-fsplit\-wide\-types\fR" 4
  9790. .IX Item "-fsplit-wide-types"
  9791. When using a type that occupies multiple registers, such as \f(CW\*(C`long
  9792. long\*(C'\fR on a 32\-bit system, split the registers apart and allocate them
  9793. independently. This normally generates better code for those types,
  9794. but may make debugging more difficult.
  9795. .Sp
  9796. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR,
  9797. \&\fB\-Os\fR.
  9798. .IP "\fB\-fsplit\-wide\-types\-early\fR" 4
  9799. .IX Item "-fsplit-wide-types-early"
  9800. Fully split wide types early, instead of very late.
  9801. This option has no effect unless \fB\-fsplit\-wide\-types\fR is turned on.
  9802. .Sp
  9803. This is the default on some targets.
  9804. .IP "\fB\-fcse\-follow\-jumps\fR" 4
  9805. .IX Item "-fcse-follow-jumps"
  9806. In common subexpression elimination (\s-1CSE\s0), scan through jump instructions
  9807. when the target of the jump is not reached by any other path. For
  9808. example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
  9809. \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 follows the jump when the condition
  9810. tested is false.
  9811. .Sp
  9812. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  9813. .IP "\fB\-fcse\-skip\-blocks\fR" 4
  9814. .IX Item "-fcse-skip-blocks"
  9815. This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
  9816. follow jumps that conditionally skip over blocks. When \s-1CSE\s0
  9817. encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
  9818. \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
  9819. body of the \f(CW\*(C`if\*(C'\fR.
  9820. .Sp
  9821. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  9822. .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
  9823. .IX Item "-frerun-cse-after-loop"
  9824. Re-run common subexpression elimination after loop optimizations are
  9825. performed.
  9826. .Sp
  9827. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  9828. .IP "\fB\-fgcse\fR" 4
  9829. .IX Item "-fgcse"
  9830. Perform a global common subexpression elimination pass.
  9831. This pass also performs global constant and copy propagation.
  9832. .Sp
  9833. \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
  9834. extension, you may get better run-time performance if you disable
  9835. the global common subexpression elimination pass by adding
  9836. \&\fB\-fno\-gcse\fR to the command line.
  9837. .Sp
  9838. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  9839. .IP "\fB\-fgcse\-lm\fR" 4
  9840. .IX Item "-fgcse-lm"
  9841. When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination
  9842. attempts to move loads that are only killed by stores into themselves. This
  9843. allows a loop containing a load/store sequence to be changed to a load outside
  9844. the loop, and a copy/store within the loop.
  9845. .Sp
  9846. Enabled by default when \fB\-fgcse\fR is enabled.
  9847. .IP "\fB\-fgcse\-sm\fR" 4
  9848. .IX Item "-fgcse-sm"
  9849. When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
  9850. global common subexpression elimination. This pass attempts to move
  9851. stores out of loops. When used in conjunction with \fB\-fgcse\-lm\fR,
  9852. loops containing a load/store sequence can be changed to a load before
  9853. the loop and a store after the loop.
  9854. .Sp
  9855. Not enabled at any optimization level.
  9856. .IP "\fB\-fgcse\-las\fR" 4
  9857. .IX Item "-fgcse-las"
  9858. When \fB\-fgcse\-las\fR is enabled, the global common subexpression
  9859. elimination pass eliminates redundant loads that come after stores to the
  9860. same memory location (both partial and full redundancies).
  9861. .Sp
  9862. Not enabled at any optimization level.
  9863. .IP "\fB\-fgcse\-after\-reload\fR" 4
  9864. .IX Item "-fgcse-after-reload"
  9865. When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
  9866. pass is performed after reload. The purpose of this pass is to clean up
  9867. redundant spilling.
  9868. .Sp
  9869. Enabled by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  9870. .IP "\fB\-faggressive\-loop\-optimizations\fR" 4
  9871. .IX Item "-faggressive-loop-optimizations"
  9872. This option tells the loop optimizer to use language constraints to
  9873. derive bounds for the number of iterations of a loop. This assumes that
  9874. loop code does not invoke undefined behavior by for example causing signed
  9875. integer overflows or out-of-bound array accesses. The bounds for the
  9876. number of iterations of a loop are used to guide loop unrolling and peeling
  9877. and loop exit test optimizations.
  9878. This option is enabled by default.
  9879. .IP "\fB\-funconstrained\-commons\fR" 4
  9880. .IX Item "-funconstrained-commons"
  9881. This option tells the compiler that variables declared in common blocks
  9882. (e.g. Fortran) may later be overridden with longer trailing arrays. This
  9883. prevents certain optimizations that depend on knowing the array bounds.
  9884. .IP "\fB\-fcrossjumping\fR" 4
  9885. .IX Item "-fcrossjumping"
  9886. Perform cross-jumping transformation.
  9887. This transformation unifies equivalent code and saves code size. The
  9888. resulting code may or may not perform better than without cross-jumping.
  9889. .Sp
  9890. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  9891. .IP "\fB\-fauto\-inc\-dec\fR" 4
  9892. .IX Item "-fauto-inc-dec"
  9893. Combine increments or decrements of addresses with memory accesses.
  9894. This pass is always skipped on architectures that do not have
  9895. instructions to support this. Enabled by default at \fB\-O\fR and
  9896. higher on architectures that support this.
  9897. .IP "\fB\-fdce\fR" 4
  9898. .IX Item "-fdce"
  9899. Perform dead code elimination (\s-1DCE\s0) on \s-1RTL.\s0
  9900. Enabled by default at \fB\-O\fR and higher.
  9901. .IP "\fB\-fdse\fR" 4
  9902. .IX Item "-fdse"
  9903. Perform dead store elimination (\s-1DSE\s0) on \s-1RTL.\s0
  9904. Enabled by default at \fB\-O\fR and higher.
  9905. .IP "\fB\-fif\-conversion\fR" 4
  9906. .IX Item "-fif-conversion"
  9907. Attempt to transform conditional jumps into branch-less equivalents. This
  9908. includes use of conditional moves, min, max, set flags and abs instructions, and
  9909. some tricks doable by standard arithmetics. The use of conditional execution
  9910. on chips where it is available is controlled by \fB\-fif\-conversion2\fR.
  9911. .Sp
  9912. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR, but
  9913. not with \fB\-Og\fR.
  9914. .IP "\fB\-fif\-conversion2\fR" 4
  9915. .IX Item "-fif-conversion2"
  9916. Use conditional execution (where available) to transform conditional jumps into
  9917. branch-less equivalents.
  9918. .Sp
  9919. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR, but
  9920. not with \fB\-Og\fR.
  9921. .IP "\fB\-fdeclone\-ctor\-dtor\fR" 4
  9922. .IX Item "-fdeclone-ctor-dtor"
  9923. The \*(C+ \s-1ABI\s0 requires multiple entry points for constructors and
  9924. destructors: one for a base subobject, one for a complete object, and
  9925. one for a virtual destructor that calls operator delete afterwards.
  9926. For a hierarchy with virtual bases, the base and complete variants are
  9927. clones, which means two copies of the function. With this option, the
  9928. base and complete variants are changed to be thunks that call a common
  9929. implementation.
  9930. .Sp
  9931. Enabled by \fB\-Os\fR.
  9932. .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
  9933. .IX Item "-fdelete-null-pointer-checks"
  9934. Assume that programs cannot safely dereference null pointers, and that
  9935. no code or data element resides at address zero.
  9936. This option enables simple constant
  9937. folding optimizations at all optimization levels. In addition, other
  9938. optimization passes in \s-1GCC\s0 use this flag to control global dataflow
  9939. analyses that eliminate useless checks for null pointers; these assume
  9940. that a memory access to address zero always results in a trap, so
  9941. that if a pointer is checked after it has already been dereferenced,
  9942. it cannot be null.
  9943. .Sp
  9944. Note however that in some environments this assumption is not true.
  9945. Use \fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
  9946. for programs that depend on that behavior.
  9947. .Sp
  9948. This option is enabled by default on most targets. On Nios \s-1II ELF,\s0 it
  9949. defaults to off. On \s-1AVR, CR16,\s0 and \s-1MSP430,\s0 this option is completely disabled.
  9950. .Sp
  9951. Passes that use the dataflow information
  9952. are enabled independently at different optimization levels.
  9953. .IP "\fB\-fdevirtualize\fR" 4
  9954. .IX Item "-fdevirtualize"
  9955. Attempt to convert calls to virtual functions to direct calls. This
  9956. is done both within a procedure and interprocedurally as part of
  9957. indirect inlining (\fB\-findirect\-inlining\fR) and interprocedural constant
  9958. propagation (\fB\-fipa\-cp\fR).
  9959. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  9960. .IP "\fB\-fdevirtualize\-speculatively\fR" 4
  9961. .IX Item "-fdevirtualize-speculatively"
  9962. Attempt to convert calls to virtual functions to speculative direct calls.
  9963. Based on the analysis of the type inheritance graph, determine for a given call
  9964. the set of likely targets. If the set is small, preferably of size 1, change
  9965. the call into a conditional deciding between direct and indirect calls. The
  9966. speculative calls enable more optimizations, such as inlining. When they seem
  9967. useless after further optimization, they are converted back into original form.
  9968. .IP "\fB\-fdevirtualize\-at\-ltrans\fR" 4
  9969. .IX Item "-fdevirtualize-at-ltrans"
  9970. Stream extra information needed for aggressive devirtualization when running
  9971. the link-time optimizer in local transformation mode.
  9972. This option enables more devirtualization but
  9973. significantly increases the size of streamed data. For this reason it is
  9974. disabled by default.
  9975. .IP "\fB\-fexpensive\-optimizations\fR" 4
  9976. .IX Item "-fexpensive-optimizations"
  9977. Perform a number of minor optimizations that are relatively expensive.
  9978. .Sp
  9979. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  9980. .IP "\fB\-free\fR" 4
  9981. .IX Item "-free"
  9982. Attempt to remove redundant extension instructions. This is especially
  9983. helpful for the x86\-64 architecture, which implicitly zero-extends in 64\-bit
  9984. registers after writing to their lower 32\-bit half.
  9985. .Sp
  9986. Enabled for Alpha, AArch64 and x86 at levels \fB\-O2\fR,
  9987. \&\fB\-O3\fR, \fB\-Os\fR.
  9988. .IP "\fB\-fno\-lifetime\-dse\fR" 4
  9989. .IX Item "-fno-lifetime-dse"
  9990. In \*(C+ the value of an object is only affected by changes within its
  9991. lifetime: when the constructor begins, the object has an indeterminate
  9992. value, and any changes during the lifetime of the object are dead when
  9993. the object is destroyed. Normally dead store elimination will take
  9994. advantage of this; if your code relies on the value of the object
  9995. storage persisting beyond the lifetime of the object, you can use this
  9996. flag to disable this optimization. To preserve stores before the
  9997. constructor starts (e.g. because your operator new clears the object
  9998. storage) but still treat the object as dead after the destructor, you
  9999. can use \fB\-flifetime\-dse=1\fR. The default behavior can be
  10000. explicitly selected with \fB\-flifetime\-dse=2\fR.
  10001. \&\fB\-flifetime\-dse=0\fR is equivalent to \fB\-fno\-lifetime\-dse\fR.
  10002. .IP "\fB\-flive\-range\-shrinkage\fR" 4
  10003. .IX Item "-flive-range-shrinkage"
  10004. Attempt to decrease register pressure through register live range
  10005. shrinkage. This is helpful for fast processors with small or moderate
  10006. size register sets.
  10007. .IP "\fB\-fira\-algorithm=\fR\fIalgorithm\fR" 4
  10008. .IX Item "-fira-algorithm=algorithm"
  10009. Use the specified coloring algorithm for the integrated register
  10010. allocator. The \fIalgorithm\fR argument can be \fBpriority\fR, which
  10011. specifies Chow's priority coloring, or \fB\s-1CB\s0\fR, which specifies
  10012. Chaitin-Briggs coloring. Chaitin-Briggs coloring is not implemented
  10013. for all architectures, but for those targets that do support it, it is
  10014. the default because it generates better code.
  10015. .IP "\fB\-fira\-region=\fR\fIregion\fR" 4
  10016. .IX Item "-fira-region=region"
  10017. Use specified regions for the integrated register allocator. The
  10018. \&\fIregion\fR argument should be one of the following:
  10019. .RS 4
  10020. .IP "\fBall\fR" 4
  10021. .IX Item "all"
  10022. Use all loops as register allocation regions.
  10023. This can give the best results for machines with a small and/or
  10024. irregular register set.
  10025. .IP "\fBmixed\fR" 4
  10026. .IX Item "mixed"
  10027. Use all loops except for loops with small register pressure
  10028. as the regions. This value usually gives
  10029. the best results in most cases and for most architectures,
  10030. and is enabled by default when compiling with optimization for speed
  10031. (\fB\-O\fR, \fB\-O2\fR, ...).
  10032. .IP "\fBone\fR" 4
  10033. .IX Item "one"
  10034. Use all functions as a single region.
  10035. This typically results in the smallest code size, and is enabled by default for
  10036. \&\fB\-Os\fR or \fB\-O0\fR.
  10037. .RE
  10038. .RS 4
  10039. .RE
  10040. .IP "\fB\-fira\-hoist\-pressure\fR" 4
  10041. .IX Item "-fira-hoist-pressure"
  10042. Use \s-1IRA\s0 to evaluate register pressure in the code hoisting pass for
  10043. decisions to hoist expressions. This option usually results in smaller
  10044. code, but it can slow the compiler down.
  10045. .Sp
  10046. This option is enabled at level \fB\-Os\fR for all targets.
  10047. .IP "\fB\-fira\-loop\-pressure\fR" 4
  10048. .IX Item "-fira-loop-pressure"
  10049. Use \s-1IRA\s0 to evaluate register pressure in loops for decisions to move
  10050. loop invariants. This option usually results in generation
  10051. of faster and smaller code on machines with large register files (>= 32
  10052. registers), but it can slow the compiler down.
  10053. .Sp
  10054. This option is enabled at level \fB\-O3\fR for some targets.
  10055. .IP "\fB\-fno\-ira\-share\-save\-slots\fR" 4
  10056. .IX Item "-fno-ira-share-save-slots"
  10057. Disable sharing of stack slots used for saving call-used hard
  10058. registers living through a call. Each hard register gets a
  10059. separate stack slot, and as a result function stack frames are
  10060. larger.
  10061. .IP "\fB\-fno\-ira\-share\-spill\-slots\fR" 4
  10062. .IX Item "-fno-ira-share-spill-slots"
  10063. Disable sharing of stack slots allocated for pseudo-registers. Each
  10064. pseudo-register that does not get a hard register gets a separate
  10065. stack slot, and as a result function stack frames are larger.
  10066. .IP "\fB\-flra\-remat\fR" 4
  10067. .IX Item "-flra-remat"
  10068. Enable CFG-sensitive rematerialization in \s-1LRA.\s0 Instead of loading
  10069. values of spilled pseudos, \s-1LRA\s0 tries to rematerialize (recalculate)
  10070. values if it is profitable.
  10071. .Sp
  10072. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  10073. .IP "\fB\-fdelayed\-branch\fR" 4
  10074. .IX Item "-fdelayed-branch"
  10075. If supported for the target machine, attempt to reorder instructions
  10076. to exploit instruction slots available after delayed branch
  10077. instructions.
  10078. .Sp
  10079. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR,
  10080. but not at \fB\-Og\fR.
  10081. .IP "\fB\-fschedule\-insns\fR" 4
  10082. .IX Item "-fschedule-insns"
  10083. If supported for the target machine, attempt to reorder instructions to
  10084. eliminate execution stalls due to required data being unavailable. This
  10085. helps machines that have slow floating point or memory load instructions
  10086. by allowing other instructions to be issued until the result of the load
  10087. or floating-point instruction is required.
  10088. .Sp
  10089. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  10090. .IP "\fB\-fschedule\-insns2\fR" 4
  10091. .IX Item "-fschedule-insns2"
  10092. Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
  10093. instruction scheduling after register allocation has been done. This is
  10094. especially useful on machines with a relatively small number of
  10095. registers and where memory load instructions take more than one cycle.
  10096. .Sp
  10097. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  10098. .IP "\fB\-fno\-sched\-interblock\fR" 4
  10099. .IX Item "-fno-sched-interblock"
  10100. Disable instruction scheduling across basic blocks, which
  10101. is normally enabled when scheduling before register allocation, i.e.
  10102. with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
  10103. .IP "\fB\-fno\-sched\-spec\fR" 4
  10104. .IX Item "-fno-sched-spec"
  10105. Disable speculative motion of non-load instructions, which
  10106. is normally enabled when scheduling before register allocation, i.e.
  10107. with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
  10108. .IP "\fB\-fsched\-pressure\fR" 4
  10109. .IX Item "-fsched-pressure"
  10110. Enable register pressure sensitive insn scheduling before register
  10111. allocation. This only makes sense when scheduling before register
  10112. allocation is enabled, i.e. with \fB\-fschedule\-insns\fR or at
  10113. \&\fB\-O2\fR or higher. Usage of this option can improve the
  10114. generated code and decrease its size by preventing register pressure
  10115. increase above the number of available hard registers and subsequent
  10116. spills in register allocation.
  10117. .IP "\fB\-fsched\-spec\-load\fR" 4
  10118. .IX Item "-fsched-spec-load"
  10119. Allow speculative motion of some load instructions. This only makes
  10120. sense when scheduling before register allocation, i.e. with
  10121. \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
  10122. .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
  10123. .IX Item "-fsched-spec-load-dangerous"
  10124. Allow speculative motion of more load instructions. This only makes
  10125. sense when scheduling before register allocation, i.e. with
  10126. \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
  10127. .IP "\fB\-fsched\-stalled\-insns\fR" 4
  10128. .IX Item "-fsched-stalled-insns"
  10129. .PD 0
  10130. .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
  10131. .IX Item "-fsched-stalled-insns=n"
  10132. .PD
  10133. Define how many insns (if any) can be moved prematurely from the queue
  10134. of stalled insns into the ready list during the second scheduling pass.
  10135. \&\fB\-fno\-sched\-stalled\-insns\fR means that no insns are moved
  10136. prematurely, \fB\-fsched\-stalled\-insns=0\fR means there is no limit
  10137. on how many queued insns can be moved prematurely.
  10138. \&\fB\-fsched\-stalled\-insns\fR without a value is equivalent to
  10139. \&\fB\-fsched\-stalled\-insns=1\fR.
  10140. .IP "\fB\-fsched\-stalled\-insns\-dep\fR" 4
  10141. .IX Item "-fsched-stalled-insns-dep"
  10142. .PD 0
  10143. .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
  10144. .IX Item "-fsched-stalled-insns-dep=n"
  10145. .PD
  10146. Define how many insn groups (cycles) are examined for a dependency
  10147. on a stalled insn that is a candidate for premature removal from the queue
  10148. of stalled insns. This has an effect only during the second scheduling pass,
  10149. and only if \fB\-fsched\-stalled\-insns\fR is used.
  10150. \&\fB\-fno\-sched\-stalled\-insns\-dep\fR is equivalent to
  10151. \&\fB\-fsched\-stalled\-insns\-dep=0\fR.
  10152. \&\fB\-fsched\-stalled\-insns\-dep\fR without a value is equivalent to
  10153. \&\fB\-fsched\-stalled\-insns\-dep=1\fR.
  10154. .IP "\fB\-fsched2\-use\-superblocks\fR" 4
  10155. .IX Item "-fsched2-use-superblocks"
  10156. When scheduling after register allocation, use superblock scheduling.
  10157. This allows motion across basic block boundaries,
  10158. resulting in faster schedules. This option is experimental, as not all machine
  10159. descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
  10160. results from the algorithm.
  10161. .Sp
  10162. This only makes sense when scheduling after register allocation, i.e. with
  10163. \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
  10164. .IP "\fB\-fsched\-group\-heuristic\fR" 4
  10165. .IX Item "-fsched-group-heuristic"
  10166. Enable the group heuristic in the scheduler. This heuristic favors
  10167. the instruction that belongs to a schedule group. This is enabled
  10168. by default when scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
  10169. or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
  10170. .IP "\fB\-fsched\-critical\-path\-heuristic\fR" 4
  10171. .IX Item "-fsched-critical-path-heuristic"
  10172. Enable the critical-path heuristic in the scheduler. This heuristic favors
  10173. instructions on the critical path. This is enabled by default when
  10174. scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
  10175. or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
  10176. .IP "\fB\-fsched\-spec\-insn\-heuristic\fR" 4
  10177. .IX Item "-fsched-spec-insn-heuristic"
  10178. Enable the speculative instruction heuristic in the scheduler. This
  10179. heuristic favors speculative instructions with greater dependency weakness.
  10180. This is enabled by default when scheduling is enabled, i.e.
  10181. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR
  10182. or at \fB\-O2\fR or higher.
  10183. .IP "\fB\-fsched\-rank\-heuristic\fR" 4
  10184. .IX Item "-fsched-rank-heuristic"
  10185. Enable the rank heuristic in the scheduler. This heuristic favors
  10186. the instruction belonging to a basic block with greater size or frequency.
  10187. This is enabled by default when scheduling is enabled, i.e.
  10188. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
  10189. at \fB\-O2\fR or higher.
  10190. .IP "\fB\-fsched\-last\-insn\-heuristic\fR" 4
  10191. .IX Item "-fsched-last-insn-heuristic"
  10192. Enable the last-instruction heuristic in the scheduler. This heuristic
  10193. favors the instruction that is less dependent on the last instruction
  10194. scheduled. This is enabled by default when scheduling is enabled,
  10195. i.e. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
  10196. at \fB\-O2\fR or higher.
  10197. .IP "\fB\-fsched\-dep\-count\-heuristic\fR" 4
  10198. .IX Item "-fsched-dep-count-heuristic"
  10199. Enable the dependent-count heuristic in the scheduler. This heuristic
  10200. favors the instruction that has more instructions depending on it.
  10201. This is enabled by default when scheduling is enabled, i.e.
  10202. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
  10203. at \fB\-O2\fR or higher.
  10204. .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
  10205. .IX Item "-freschedule-modulo-scheduled-loops"
  10206. Modulo scheduling is performed before traditional scheduling. If a loop
  10207. is modulo scheduled, later scheduling passes may change its schedule.
  10208. Use this option to control that behavior.
  10209. .IP "\fB\-fselective\-scheduling\fR" 4
  10210. .IX Item "-fselective-scheduling"
  10211. Schedule instructions using selective scheduling algorithm. Selective
  10212. scheduling runs instead of the first scheduler pass.
  10213. .IP "\fB\-fselective\-scheduling2\fR" 4
  10214. .IX Item "-fselective-scheduling2"
  10215. Schedule instructions using selective scheduling algorithm. Selective
  10216. scheduling runs instead of the second scheduler pass.
  10217. .IP "\fB\-fsel\-sched\-pipelining\fR" 4
  10218. .IX Item "-fsel-sched-pipelining"
  10219. Enable software pipelining of innermost loops during selective scheduling.
  10220. This option has no effect unless one of \fB\-fselective\-scheduling\fR or
  10221. \&\fB\-fselective\-scheduling2\fR is turned on.
  10222. .IP "\fB\-fsel\-sched\-pipelining\-outer\-loops\fR" 4
  10223. .IX Item "-fsel-sched-pipelining-outer-loops"
  10224. When pipelining loops during selective scheduling, also pipeline outer loops.
  10225. This option has no effect unless \fB\-fsel\-sched\-pipelining\fR is turned on.
  10226. .IP "\fB\-fsemantic\-interposition\fR" 4
  10227. .IX Item "-fsemantic-interposition"
  10228. Some object formats, like \s-1ELF,\s0 allow interposing of symbols by the
  10229. dynamic linker.
  10230. This means that for symbols exported from the \s-1DSO,\s0 the compiler cannot perform
  10231. interprocedural propagation, inlining and other optimizations in anticipation
  10232. that the function or variable in question may change. While this feature is
  10233. useful, for example, to rewrite memory allocation functions by a debugging
  10234. implementation, it is expensive in the terms of code quality.
  10235. With \fB\-fno\-semantic\-interposition\fR the compiler assumes that
  10236. if interposition happens for functions the overwriting function will have
  10237. precisely the same semantics (and side effects).
  10238. Similarly if interposition happens
  10239. for variables, the constructor of the variable will be the same. The flag
  10240. has no effect for functions explicitly declared inline
  10241. (where it is never allowed for interposition to change semantics)
  10242. and for symbols explicitly declared weak.
  10243. .IP "\fB\-fshrink\-wrap\fR" 4
  10244. .IX Item "-fshrink-wrap"
  10245. Emit function prologues only before parts of the function that need it,
  10246. rather than at the top of the function. This flag is enabled by default at
  10247. \&\fB\-O\fR and higher.
  10248. .IP "\fB\-fshrink\-wrap\-separate\fR" 4
  10249. .IX Item "-fshrink-wrap-separate"
  10250. Shrink-wrap separate parts of the prologue and epilogue separately, so that
  10251. those parts are only executed when needed.
  10252. This option is on by default, but has no effect unless \fB\-fshrink\-wrap\fR
  10253. is also turned on and the target supports this.
  10254. .IP "\fB\-fcaller\-saves\fR" 4
  10255. .IX Item "-fcaller-saves"
  10256. Enable allocation of values to registers that are clobbered by
  10257. function calls, by emitting extra instructions to save and restore the
  10258. registers around such calls. Such allocation is done only when it
  10259. seems to result in better code.
  10260. .Sp
  10261. This option is always enabled by default on certain machines, usually
  10262. those which have no call-preserved registers to use instead.
  10263. .Sp
  10264. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  10265. .IP "\fB\-fcombine\-stack\-adjustments\fR" 4
  10266. .IX Item "-fcombine-stack-adjustments"
  10267. Tracks stack adjustments (pushes and pops) and stack memory references
  10268. and then tries to find ways to combine them.
  10269. .Sp
  10270. Enabled by default at \fB\-O1\fR and higher.
  10271. .IP "\fB\-fipa\-ra\fR" 4
  10272. .IX Item "-fipa-ra"
  10273. Use caller save registers for allocation if those registers are not used by
  10274. any called function. In that case it is not necessary to save and restore
  10275. them around calls. This is only possible if called functions are part of
  10276. same compilation unit as current function and they are compiled before it.
  10277. .Sp
  10278. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR, however the option
  10279. is disabled if generated code will be instrumented for profiling
  10280. (\fB\-p\fR, or \fB\-pg\fR) or if callee's register usage cannot be known
  10281. exactly (this happens on targets that do not expose prologues
  10282. and epilogues in \s-1RTL\s0).
  10283. .IP "\fB\-fconserve\-stack\fR" 4
  10284. .IX Item "-fconserve-stack"
  10285. Attempt to minimize stack usage. The compiler attempts to use less
  10286. stack space, even if that makes the program slower. This option
  10287. implies setting the \fBlarge-stack-frame\fR parameter to 100
  10288. and the \fBlarge-stack-frame-growth\fR parameter to 400.
  10289. .IP "\fB\-ftree\-reassoc\fR" 4
  10290. .IX Item "-ftree-reassoc"
  10291. Perform reassociation on trees. This flag is enabled by default
  10292. at \fB\-O\fR and higher.
  10293. .IP "\fB\-fcode\-hoisting\fR" 4
  10294. .IX Item "-fcode-hoisting"
  10295. Perform code hoisting. Code hoisting tries to move the
  10296. evaluation of expressions executed on all paths to the function exit
  10297. as early as possible. This is especially useful as a code size
  10298. optimization, but it often helps for code speed as well.
  10299. This flag is enabled by default at \fB\-O2\fR and higher.
  10300. .IP "\fB\-ftree\-pre\fR" 4
  10301. .IX Item "-ftree-pre"
  10302. Perform partial redundancy elimination (\s-1PRE\s0) on trees. This flag is
  10303. enabled by default at \fB\-O2\fR and \fB\-O3\fR.
  10304. .IP "\fB\-ftree\-partial\-pre\fR" 4
  10305. .IX Item "-ftree-partial-pre"
  10306. Make partial redundancy elimination (\s-1PRE\s0) more aggressive. This flag is
  10307. enabled by default at \fB\-O3\fR.
  10308. .IP "\fB\-ftree\-forwprop\fR" 4
  10309. .IX Item "-ftree-forwprop"
  10310. Perform forward propagation on trees. This flag is enabled by default
  10311. at \fB\-O\fR and higher.
  10312. .IP "\fB\-ftree\-fre\fR" 4
  10313. .IX Item "-ftree-fre"
  10314. Perform full redundancy elimination (\s-1FRE\s0) on trees. The difference
  10315. between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
  10316. that are computed on all paths leading to the redundant computation.
  10317. This analysis is faster than \s-1PRE,\s0 though it exposes fewer redundancies.
  10318. This flag is enabled by default at \fB\-O\fR and higher.
  10319. .IP "\fB\-ftree\-phiprop\fR" 4
  10320. .IX Item "-ftree-phiprop"
  10321. Perform hoisting of loads from conditional pointers on trees. This
  10322. pass is enabled by default at \fB\-O\fR and higher.
  10323. .IP "\fB\-fhoist\-adjacent\-loads\fR" 4
  10324. .IX Item "-fhoist-adjacent-loads"
  10325. Speculatively hoist loads from both branches of an if-then-else if the
  10326. loads are from adjacent locations in the same structure and the target
  10327. architecture has a conditional move instruction. This flag is enabled
  10328. by default at \fB\-O2\fR and higher.
  10329. .IP "\fB\-ftree\-copy\-prop\fR" 4
  10330. .IX Item "-ftree-copy-prop"
  10331. Perform copy propagation on trees. This pass eliminates unnecessary
  10332. copy operations. This flag is enabled by default at \fB\-O\fR and
  10333. higher.
  10334. .IP "\fB\-fipa\-pure\-const\fR" 4
  10335. .IX Item "-fipa-pure-const"
  10336. Discover which functions are pure or constant.
  10337. Enabled by default at \fB\-O\fR and higher.
  10338. .IP "\fB\-fipa\-reference\fR" 4
  10339. .IX Item "-fipa-reference"
  10340. Discover which static variables do not escape the
  10341. compilation unit.
  10342. Enabled by default at \fB\-O\fR and higher.
  10343. .IP "\fB\-fipa\-reference\-addressable\fR" 4
  10344. .IX Item "-fipa-reference-addressable"
  10345. Discover read-only, write-only and non-addressable static variables.
  10346. Enabled by default at \fB\-O\fR and higher.
  10347. .IP "\fB\-fipa\-stack\-alignment\fR" 4
  10348. .IX Item "-fipa-stack-alignment"
  10349. Reduce stack alignment on call sites if possible.
  10350. Enabled by default.
  10351. .IP "\fB\-fipa\-pta\fR" 4
  10352. .IX Item "-fipa-pta"
  10353. Perform interprocedural pointer analysis and interprocedural modification
  10354. and reference analysis. This option can cause excessive memory and
  10355. compile-time usage on large compilation units. It is not enabled by
  10356. default at any optimization level.
  10357. .IP "\fB\-fipa\-profile\fR" 4
  10358. .IX Item "-fipa-profile"
  10359. Perform interprocedural profile propagation. The functions called only from
  10360. cold functions are marked as cold. Also functions executed once (such as
  10361. \&\f(CW\*(C`cold\*(C'\fR, \f(CW\*(C`noreturn\*(C'\fR, static constructors or destructors) are
  10362. identified. Cold functions and loop less parts of functions executed once are
  10363. then optimized for size.
  10364. Enabled by default at \fB\-O\fR and higher.
  10365. .IP "\fB\-fipa\-modref\fR" 4
  10366. .IX Item "-fipa-modref"
  10367. Perform interprocedural mod/ref analysis. This optimization analyzes the side
  10368. effects of functions (memory locations that are modified or referenced) and
  10369. enables better optimization across the function call boundary. This flag is
  10370. enabled by default at \fB\-O\fR and higher.
  10371. .IP "\fB\-fipa\-cp\fR" 4
  10372. .IX Item "-fipa-cp"
  10373. Perform interprocedural constant propagation.
  10374. This optimization analyzes the program to determine when values passed
  10375. to functions are constants and then optimizes accordingly.
  10376. This optimization can substantially increase performance
  10377. if the application has constants passed to functions.
  10378. This flag is enabled by default at \fB\-O2\fR, \fB\-Os\fR and \fB\-O3\fR.
  10379. It is also enabled by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  10380. .IP "\fB\-fipa\-cp\-clone\fR" 4
  10381. .IX Item "-fipa-cp-clone"
  10382. Perform function cloning to make interprocedural constant propagation stronger.
  10383. When enabled, interprocedural constant propagation performs function cloning
  10384. when externally visible function can be called with constant arguments.
  10385. Because this optimization can create multiple copies of functions,
  10386. it may significantly increase code size
  10387. (see \fB\-\-param ipa\-cp\-unit\-growth=\fR\fIvalue\fR).
  10388. This flag is enabled by default at \fB\-O3\fR.
  10389. It is also enabled by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  10390. .IP "\fB\-fipa\-bit\-cp\fR" 4
  10391. .IX Item "-fipa-bit-cp"
  10392. When enabled, perform interprocedural bitwise constant
  10393. propagation. This flag is enabled by default at \fB\-O2\fR and
  10394. by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  10395. It requires that \fB\-fipa\-cp\fR is enabled.
  10396. .IP "\fB\-fipa\-vrp\fR" 4
  10397. .IX Item "-fipa-vrp"
  10398. When enabled, perform interprocedural propagation of value
  10399. ranges. This flag is enabled by default at \fB\-O2\fR. It requires
  10400. that \fB\-fipa\-cp\fR is enabled.
  10401. .IP "\fB\-fipa\-icf\fR" 4
  10402. .IX Item "-fipa-icf"
  10403. Perform Identical Code Folding for functions and read-only variables.
  10404. The optimization reduces code size and may disturb unwind stacks by replacing
  10405. a function by equivalent one with a different name. The optimization works
  10406. more effectively with link-time optimization enabled.
  10407. .Sp
  10408. Although the behavior is similar to the Gold Linker's \s-1ICF\s0 optimization, \s-1GCC ICF\s0
  10409. works on different levels and thus the optimizations are not same \- there are
  10410. equivalences that are found only by \s-1GCC\s0 and equivalences found only by Gold.
  10411. .Sp
  10412. This flag is enabled by default at \fB\-O2\fR and \fB\-Os\fR.
  10413. .IP "\fB\-flive\-patching=\fR\fIlevel\fR" 4
  10414. .IX Item "-flive-patching=level"
  10415. Control \s-1GCC\s0's optimizations to produce output suitable for live-patching.
  10416. .Sp
  10417. If the compiler's optimization uses a function's body or information extracted
  10418. from its body to optimize/change another function, the latter is called an
  10419. impacted function of the former. If a function is patched, its impacted
  10420. functions should be patched too.
  10421. .Sp
  10422. The impacted functions are determined by the compiler's interprocedural
  10423. optimizations. For example, a caller is impacted when inlining a function
  10424. into its caller,
  10425. cloning a function and changing its caller to call this new clone,
  10426. or extracting a function's pureness/constness information to optimize
  10427. its direct or indirect callers, etc.
  10428. .Sp
  10429. Usually, the more \s-1IPA\s0 optimizations enabled, the larger the number of
  10430. impacted functions for each function. In order to control the number of
  10431. impacted functions and more easily compute the list of impacted function,
  10432. \&\s-1IPA\s0 optimizations can be partially enabled at two different levels.
  10433. .Sp
  10434. The \fIlevel\fR argument should be one of the following:
  10435. .RS 4
  10436. .IP "\fBinline-clone\fR" 4
  10437. .IX Item "inline-clone"
  10438. Only enable inlining and cloning optimizations, which includes inlining,
  10439. cloning, interprocedural scalar replacement of aggregates and partial inlining.
  10440. As a result, when patching a function, all its callers and its clones'
  10441. callers are impacted, therefore need to be patched as well.
  10442. .Sp
  10443. \&\fB\-flive\-patching=inline\-clone\fR disables the following optimization flags:
  10444. \&\fB\-fwhole\-program \-fipa\-pta \-fipa\-reference \-fipa\-ra
  10445. \&\-fipa\-icf \-fipa\-icf\-functions \-fipa\-icf\-variables
  10446. \&\-fipa\-bit\-cp \-fipa\-vrp \-fipa\-pure\-const \-fipa\-reference\-addressable
  10447. \&\-fipa\-stack\-alignment \-fipa\-modref\fR
  10448. .IP "\fBinline-only-static\fR" 4
  10449. .IX Item "inline-only-static"
  10450. Only enable inlining of static functions.
  10451. As a result, when patching a static function, all its callers are impacted
  10452. and so need to be patched as well.
  10453. .Sp
  10454. In addition to all the flags that \fB\-flive\-patching=inline\-clone\fR
  10455. disables,
  10456. \&\fB\-flive\-patching=inline\-only\-static\fR disables the following additional
  10457. optimization flags:
  10458. \&\fB\-fipa\-cp\-clone \-fipa\-sra \-fpartial\-inlining \-fipa\-cp\fR
  10459. .RE
  10460. .RS 4
  10461. .Sp
  10462. When \fB\-flive\-patching\fR is specified without any value, the default value
  10463. is \fIinline-clone\fR.
  10464. .Sp
  10465. This flag is disabled by default.
  10466. .Sp
  10467. Note that \fB\-flive\-patching\fR is not supported with link-time optimization
  10468. (\fB\-flto\fR).
  10469. .RE
  10470. .IP "\fB\-fisolate\-erroneous\-paths\-dereference\fR" 4
  10471. .IX Item "-fisolate-erroneous-paths-dereference"
  10472. Detect paths that trigger erroneous or undefined behavior due to
  10473. dereferencing a null pointer. Isolate those paths from the main control
  10474. flow and turn the statement with erroneous or undefined behavior into a trap.
  10475. This flag is enabled by default at \fB\-O2\fR and higher and depends on
  10476. \&\fB\-fdelete\-null\-pointer\-checks\fR also being enabled.
  10477. .IP "\fB\-fisolate\-erroneous\-paths\-attribute\fR" 4
  10478. .IX Item "-fisolate-erroneous-paths-attribute"
  10479. Detect paths that trigger erroneous or undefined behavior due to a null value
  10480. being used in a way forbidden by a \f(CW\*(C`returns_nonnull\*(C'\fR or \f(CW\*(C`nonnull\*(C'\fR
  10481. attribute. Isolate those paths from the main control flow and turn the
  10482. statement with erroneous or undefined behavior into a trap. This is not
  10483. currently enabled, but may be enabled by \fB\-O2\fR in the future.
  10484. .IP "\fB\-ftree\-sink\fR" 4
  10485. .IX Item "-ftree-sink"
  10486. Perform forward store motion on trees. This flag is
  10487. enabled by default at \fB\-O\fR and higher.
  10488. .IP "\fB\-ftree\-bit\-ccp\fR" 4
  10489. .IX Item "-ftree-bit-ccp"
  10490. Perform sparse conditional bit constant propagation on trees and propagate
  10491. pointer alignment information.
  10492. This pass only operates on local scalar variables and is enabled by default
  10493. at \fB\-O1\fR and higher, except for \fB\-Og\fR.
  10494. It requires that \fB\-ftree\-ccp\fR is enabled.
  10495. .IP "\fB\-ftree\-ccp\fR" 4
  10496. .IX Item "-ftree-ccp"
  10497. Perform sparse conditional constant propagation (\s-1CCP\s0) on trees. This
  10498. pass only operates on local scalar variables and is enabled by default
  10499. at \fB\-O\fR and higher.
  10500. .IP "\fB\-fssa\-backprop\fR" 4
  10501. .IX Item "-fssa-backprop"
  10502. Propagate information about uses of a value up the definition chain
  10503. in order to simplify the definitions. For example, this pass strips
  10504. sign operations if the sign of a value never matters. The flag is
  10505. enabled by default at \fB\-O\fR and higher.
  10506. .IP "\fB\-fssa\-phiopt\fR" 4
  10507. .IX Item "-fssa-phiopt"
  10508. Perform pattern matching on \s-1SSA PHI\s0 nodes to optimize conditional
  10509. code. This pass is enabled by default at \fB\-O1\fR and higher,
  10510. except for \fB\-Og\fR.
  10511. .IP "\fB\-ftree\-switch\-conversion\fR" 4
  10512. .IX Item "-ftree-switch-conversion"
  10513. Perform conversion of simple initializations in a switch to
  10514. initializations from a scalar array. This flag is enabled by default
  10515. at \fB\-O2\fR and higher.
  10516. .IP "\fB\-ftree\-tail\-merge\fR" 4
  10517. .IX Item "-ftree-tail-merge"
  10518. Look for identical code sequences. When found, replace one with a jump to the
  10519. other. This optimization is known as tail merging or cross jumping. This flag
  10520. is enabled by default at \fB\-O2\fR and higher. The compilation time
  10521. in this pass can
  10522. be limited using \fBmax-tail-merge-comparisons\fR parameter and
  10523. \&\fBmax-tail-merge-iterations\fR parameter.
  10524. .IP "\fB\-ftree\-dce\fR" 4
  10525. .IX Item "-ftree-dce"
  10526. Perform dead code elimination (\s-1DCE\s0) on trees. This flag is enabled by
  10527. default at \fB\-O\fR and higher.
  10528. .IP "\fB\-ftree\-builtin\-call\-dce\fR" 4
  10529. .IX Item "-ftree-builtin-call-dce"
  10530. Perform conditional dead code elimination (\s-1DCE\s0) for calls to built-in functions
  10531. that may set \f(CW\*(C`errno\*(C'\fR but are otherwise free of side effects. This flag is
  10532. enabled by default at \fB\-O2\fR and higher if \fB\-Os\fR is not also
  10533. specified.
  10534. .IP "\fB\-ffinite\-loops\fR" 4
  10535. .IX Item "-ffinite-loops"
  10536. Assume that a loop with an exit will eventually take the exit and not loop
  10537. indefinitely. This allows the compiler to remove loops that otherwise have
  10538. no side-effects, not considering eventual endless looping as such.
  10539. .Sp
  10540. This option is enabled by default at \fB\-O2\fR for \*(C+ with \-std=c++11
  10541. or higher.
  10542. .IP "\fB\-ftree\-dominator\-opts\fR" 4
  10543. .IX Item "-ftree-dominator-opts"
  10544. Perform a variety of simple scalar cleanups (constant/copy
  10545. propagation, redundancy elimination, range propagation and expression
  10546. simplification) based on a dominator tree traversal. This also
  10547. performs jump threading (to reduce jumps to jumps). This flag is
  10548. enabled by default at \fB\-O\fR and higher.
  10549. .IP "\fB\-ftree\-dse\fR" 4
  10550. .IX Item "-ftree-dse"
  10551. Perform dead store elimination (\s-1DSE\s0) on trees. A dead store is a store into
  10552. a memory location that is later overwritten by another store without
  10553. any intervening loads. In this case the earlier store can be deleted. This
  10554. flag is enabled by default at \fB\-O\fR and higher.
  10555. .IP "\fB\-ftree\-ch\fR" 4
  10556. .IX Item "-ftree-ch"
  10557. Perform loop header copying on trees. This is beneficial since it increases
  10558. effectiveness of code motion optimizations. It also saves one jump. This flag
  10559. is enabled by default at \fB\-O\fR and higher. It is not enabled
  10560. for \fB\-Os\fR, since it usually increases code size.
  10561. .IP "\fB\-ftree\-loop\-optimize\fR" 4
  10562. .IX Item "-ftree-loop-optimize"
  10563. Perform loop optimizations on trees. This flag is enabled by default
  10564. at \fB\-O\fR and higher.
  10565. .IP "\fB\-ftree\-loop\-linear\fR" 4
  10566. .IX Item "-ftree-loop-linear"
  10567. .PD 0
  10568. .IP "\fB\-floop\-strip\-mine\fR" 4
  10569. .IX Item "-floop-strip-mine"
  10570. .IP "\fB\-floop\-block\fR" 4
  10571. .IX Item "-floop-block"
  10572. .PD
  10573. Perform loop nest optimizations. Same as
  10574. \&\fB\-floop\-nest\-optimize\fR. To use this code transformation, \s-1GCC\s0 has
  10575. to be configured with \fB\-\-with\-isl\fR to enable the Graphite loop
  10576. transformation infrastructure.
  10577. .IP "\fB\-fgraphite\-identity\fR" 4
  10578. .IX Item "-fgraphite-identity"
  10579. Enable the identity transformation for graphite. For every SCoP we generate
  10580. the polyhedral representation and transform it back to gimple. Using
  10581. \&\fB\-fgraphite\-identity\fR we can check the costs or benefits of the
  10582. \&\s-1GIMPLE\s0 \-> \s-1GRAPHITE\s0 \-> \s-1GIMPLE\s0 transformation. Some minimal optimizations
  10583. are also performed by the code generator isl, like index splitting and
  10584. dead code elimination in loops.
  10585. .IP "\fB\-floop\-nest\-optimize\fR" 4
  10586. .IX Item "-floop-nest-optimize"
  10587. Enable the isl based loop nest optimizer. This is a generic loop nest
  10588. optimizer based on the Pluto optimization algorithms. It calculates a loop
  10589. structure optimized for data-locality and parallelism. This option
  10590. is experimental.
  10591. .IP "\fB\-floop\-parallelize\-all\fR" 4
  10592. .IX Item "-floop-parallelize-all"
  10593. Use the Graphite data dependence analysis to identify loops that can
  10594. be parallelized. Parallelize all the loops that can be analyzed to
  10595. not contain loop carried dependences without checking that it is
  10596. profitable to parallelize the loops.
  10597. .IP "\fB\-ftree\-coalesce\-vars\fR" 4
  10598. .IX Item "-ftree-coalesce-vars"
  10599. While transforming the program out of the \s-1SSA\s0 representation, attempt to
  10600. reduce copying by coalescing versions of different user-defined
  10601. variables, instead of just compiler temporaries. This may severely
  10602. limit the ability to debug an optimized program compiled with
  10603. \&\fB\-fno\-var\-tracking\-assignments\fR. In the negated form, this flag
  10604. prevents \s-1SSA\s0 coalescing of user variables. This option is enabled by
  10605. default if optimization is enabled, and it does very little otherwise.
  10606. .IP "\fB\-ftree\-loop\-if\-convert\fR" 4
  10607. .IX Item "-ftree-loop-if-convert"
  10608. Attempt to transform conditional jumps in the innermost loops to
  10609. branch-less equivalents. The intent is to remove control-flow from
  10610. the innermost loops in order to improve the ability of the
  10611. vectorization pass to handle these loops. This is enabled by default
  10612. if vectorization is enabled.
  10613. .IP "\fB\-ftree\-loop\-distribution\fR" 4
  10614. .IX Item "-ftree-loop-distribution"
  10615. Perform loop distribution. This flag can improve cache performance on
  10616. big loop bodies and allow further loop optimizations, like
  10617. parallelization or vectorization, to take place. For example, the loop
  10618. .Sp
  10619. .Vb 4
  10620. \& DO I = 1, N
  10621. \& A(I) = B(I) + C
  10622. \& D(I) = E(I) * F
  10623. \& ENDDO
  10624. .Ve
  10625. .Sp
  10626. is transformed to
  10627. .Sp
  10628. .Vb 6
  10629. \& DO I = 1, N
  10630. \& A(I) = B(I) + C
  10631. \& ENDDO
  10632. \& DO I = 1, N
  10633. \& D(I) = E(I) * F
  10634. \& ENDDO
  10635. .Ve
  10636. .Sp
  10637. This flag is enabled by default at \fB\-O3\fR.
  10638. It is also enabled by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  10639. .IP "\fB\-ftree\-loop\-distribute\-patterns\fR" 4
  10640. .IX Item "-ftree-loop-distribute-patterns"
  10641. Perform loop distribution of patterns that can be code generated with
  10642. calls to a library. This flag is enabled by default at \fB\-O2\fR and
  10643. higher, and by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  10644. .Sp
  10645. This pass distributes the initialization loops and generates a call to
  10646. memset zero. For example, the loop
  10647. .Sp
  10648. .Vb 4
  10649. \& DO I = 1, N
  10650. \& A(I) = 0
  10651. \& B(I) = A(I) + I
  10652. \& ENDDO
  10653. .Ve
  10654. .Sp
  10655. is transformed to
  10656. .Sp
  10657. .Vb 6
  10658. \& DO I = 1, N
  10659. \& A(I) = 0
  10660. \& ENDDO
  10661. \& DO I = 1, N
  10662. \& B(I) = A(I) + I
  10663. \& ENDDO
  10664. .Ve
  10665. .Sp
  10666. and the initialization loop is transformed into a call to memset zero.
  10667. This flag is enabled by default at \fB\-O3\fR.
  10668. It is also enabled by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  10669. .IP "\fB\-floop\-interchange\fR" 4
  10670. .IX Item "-floop-interchange"
  10671. Perform loop interchange outside of graphite. This flag can improve cache
  10672. performance on loop nest and allow further loop optimizations, like
  10673. vectorization, to take place. For example, the loop
  10674. .Sp
  10675. .Vb 4
  10676. \& for (int i = 0; i < N; i++)
  10677. \& for (int j = 0; j < N; j++)
  10678. \& for (int k = 0; k < N; k++)
  10679. \& c[i][j] = c[i][j] + a[i][k]*b[k][j];
  10680. .Ve
  10681. .Sp
  10682. is transformed to
  10683. .Sp
  10684. .Vb 4
  10685. \& for (int i = 0; i < N; i++)
  10686. \& for (int k = 0; k < N; k++)
  10687. \& for (int j = 0; j < N; j++)
  10688. \& c[i][j] = c[i][j] + a[i][k]*b[k][j];
  10689. .Ve
  10690. .Sp
  10691. This flag is enabled by default at \fB\-O3\fR.
  10692. It is also enabled by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  10693. .IP "\fB\-floop\-unroll\-and\-jam\fR" 4
  10694. .IX Item "-floop-unroll-and-jam"
  10695. Apply unroll and jam transformations on feasible loops. In a loop
  10696. nest this unrolls the outer loop by some factor and fuses the resulting
  10697. multiple inner loops. This flag is enabled by default at \fB\-O3\fR.
  10698. It is also enabled by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  10699. .IP "\fB\-ftree\-loop\-im\fR" 4
  10700. .IX Item "-ftree-loop-im"
  10701. Perform loop invariant motion on trees. This pass moves only invariants that
  10702. are hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
  10703. nontrivial sequences of insns). With \fB\-funswitch\-loops\fR it also moves
  10704. operands of conditions that are invariant out of the loop, so that we can use
  10705. just trivial invariantness analysis in loop unswitching. The pass also includes
  10706. store motion.
  10707. .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
  10708. .IX Item "-ftree-loop-ivcanon"
  10709. Create a canonical counter for number of iterations in loops for which
  10710. determining number of iterations requires complicated analysis. Later
  10711. optimizations then may determine the number easily. Useful especially
  10712. in connection with unrolling.
  10713. .IP "\fB\-ftree\-scev\-cprop\fR" 4
  10714. .IX Item "-ftree-scev-cprop"
  10715. Perform final value replacement. If a variable is modified in a loop
  10716. in such a way that its value when exiting the loop can be determined using
  10717. only its initial value and the number of loop iterations, replace uses of
  10718. the final value by such a computation, provided it is sufficiently cheap.
  10719. This reduces data dependencies and may allow further simplifications.
  10720. Enabled by default at \fB\-O\fR and higher.
  10721. .IP "\fB\-fivopts\fR" 4
  10722. .IX Item "-fivopts"
  10723. Perform induction variable optimizations (strength reduction, induction
  10724. variable merging and induction variable elimination) on trees.
  10725. .IP "\fB\-ftree\-parallelize\-loops=n\fR" 4
  10726. .IX Item "-ftree-parallelize-loops=n"
  10727. Parallelize loops, i.e., split their iteration space to run in n threads.
  10728. This is only possible for loops whose iterations are independent
  10729. and can be arbitrarily reordered. The optimization is only
  10730. profitable on multiprocessor machines, for loops that are CPU-intensive,
  10731. rather than constrained e.g. by memory bandwidth. This option
  10732. implies \fB\-pthread\fR, and thus is only supported on targets
  10733. that have support for \fB\-pthread\fR.
  10734. .IP "\fB\-ftree\-pta\fR" 4
  10735. .IX Item "-ftree-pta"
  10736. Perform function-local points-to analysis on trees. This flag is
  10737. enabled by default at \fB\-O1\fR and higher, except for \fB\-Og\fR.
  10738. .IP "\fB\-ftree\-sra\fR" 4
  10739. .IX Item "-ftree-sra"
  10740. Perform scalar replacement of aggregates. This pass replaces structure
  10741. references with scalars to prevent committing structures to memory too
  10742. early. This flag is enabled by default at \fB\-O1\fR and higher,
  10743. except for \fB\-Og\fR.
  10744. .IP "\fB\-fstore\-merging\fR" 4
  10745. .IX Item "-fstore-merging"
  10746. Perform merging of narrow stores to consecutive memory addresses. This pass
  10747. merges contiguous stores of immediate values narrower than a word into fewer
  10748. wider stores to reduce the number of instructions. This is enabled by default
  10749. at \fB\-O2\fR and higher as well as \fB\-Os\fR.
  10750. .IP "\fB\-ftree\-ter\fR" 4
  10751. .IX Item "-ftree-ter"
  10752. Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase. Single
  10753. use/single def temporaries are replaced at their use location with their
  10754. defining expression. This results in non-GIMPLE code, but gives the expanders
  10755. much more complex trees to work on resulting in better \s-1RTL\s0 generation. This is
  10756. enabled by default at \fB\-O\fR and higher.
  10757. .IP "\fB\-ftree\-slsr\fR" 4
  10758. .IX Item "-ftree-slsr"
  10759. Perform straight-line strength reduction on trees. This recognizes related
  10760. expressions involving multiplications and replaces them by less expensive
  10761. calculations when possible. This is enabled by default at \fB\-O\fR and
  10762. higher.
  10763. .IP "\fB\-ftree\-vectorize\fR" 4
  10764. .IX Item "-ftree-vectorize"
  10765. Perform vectorization on trees. This flag enables \fB\-ftree\-loop\-vectorize\fR
  10766. and \fB\-ftree\-slp\-vectorize\fR if not explicitly specified.
  10767. .IP "\fB\-ftree\-loop\-vectorize\fR" 4
  10768. .IX Item "-ftree-loop-vectorize"
  10769. Perform loop vectorization on trees. This flag is enabled by default at
  10770. \&\fB\-O3\fR and by \fB\-ftree\-vectorize\fR, \fB\-fprofile\-use\fR,
  10771. and \fB\-fauto\-profile\fR.
  10772. .IP "\fB\-ftree\-slp\-vectorize\fR" 4
  10773. .IX Item "-ftree-slp-vectorize"
  10774. Perform basic block vectorization on trees. This flag is enabled by default at
  10775. \&\fB\-O3\fR and by \fB\-ftree\-vectorize\fR, \fB\-fprofile\-use\fR,
  10776. and \fB\-fauto\-profile\fR.
  10777. .IP "\fB\-fvect\-cost\-model=\fR\fImodel\fR" 4
  10778. .IX Item "-fvect-cost-model=model"
  10779. Alter the cost model used for vectorization. The \fImodel\fR argument
  10780. should be one of \fBunlimited\fR, \fBdynamic\fR, \fBcheap\fR or
  10781. \&\fBvery-cheap\fR.
  10782. With the \fBunlimited\fR model the vectorized code-path is assumed
  10783. to be profitable while with the \fBdynamic\fR model a runtime check
  10784. guards the vectorized code-path to enable it only for iteration
  10785. counts that will likely execute faster than when executing the original
  10786. scalar loop. The \fBcheap\fR model disables vectorization of
  10787. loops where doing so would be cost prohibitive for example due to
  10788. required runtime checks for data dependence or alignment but otherwise
  10789. is equal to the \fBdynamic\fR model. The \fBvery-cheap\fR model only
  10790. allows vectorization if the vector code would entirely replace the
  10791. scalar code that is being vectorized. For example, if each iteration
  10792. of a vectorized loop would only be able to handle exactly four iterations
  10793. of the scalar loop, the \fBvery-cheap\fR model would only allow
  10794. vectorization if the scalar iteration count is known to be a multiple
  10795. of four.
  10796. .Sp
  10797. The default cost model depends on other optimization flags and is
  10798. either \fBdynamic\fR or \fBcheap\fR.
  10799. .IP "\fB\-fsimd\-cost\-model=\fR\fImodel\fR" 4
  10800. .IX Item "-fsimd-cost-model=model"
  10801. Alter the cost model used for vectorization of loops marked with the OpenMP
  10802. simd directive. The \fImodel\fR argument should be one of
  10803. \&\fBunlimited\fR, \fBdynamic\fR, \fBcheap\fR. All values of \fImodel\fR
  10804. have the same meaning as described in \fB\-fvect\-cost\-model\fR and by
  10805. default a cost model defined with \fB\-fvect\-cost\-model\fR is used.
  10806. .IP "\fB\-ftree\-vrp\fR" 4
  10807. .IX Item "-ftree-vrp"
  10808. Perform Value Range Propagation on trees. This is similar to the
  10809. constant propagation pass, but instead of values, ranges of values are
  10810. propagated. This allows the optimizers to remove unnecessary range
  10811. checks like array bound checks and null pointer checks. This is
  10812. enabled by default at \fB\-O2\fR and higher. Null pointer check
  10813. elimination is only done if \fB\-fdelete\-null\-pointer\-checks\fR is
  10814. enabled.
  10815. .IP "\fB\-fsplit\-paths\fR" 4
  10816. .IX Item "-fsplit-paths"
  10817. Split paths leading to loop backedges. This can improve dead code
  10818. elimination and common subexpression elimination. This is enabled by
  10819. default at \fB\-O3\fR and above.
  10820. .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
  10821. .IX Item "-fsplit-ivs-in-unroller"
  10822. Enables expression of values of induction variables in later iterations
  10823. of the unrolled loop using the value in the first iteration. This breaks
  10824. long dependency chains, thus improving efficiency of the scheduling passes.
  10825. .Sp
  10826. A combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
  10827. same effect. However, that is not reliable in cases where the loop body
  10828. is more complicated than a single basic block. It also does not work at all
  10829. on some architectures due to restrictions in the \s-1CSE\s0 pass.
  10830. .Sp
  10831. This optimization is enabled by default.
  10832. .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
  10833. .IX Item "-fvariable-expansion-in-unroller"
  10834. With this option, the compiler creates multiple copies of some
  10835. local variables when unrolling a loop, which can result in superior code.
  10836. .Sp
  10837. This optimization is enabled by default for PowerPC targets, but disabled
  10838. by default otherwise.
  10839. .IP "\fB\-fpartial\-inlining\fR" 4
  10840. .IX Item "-fpartial-inlining"
  10841. Inline parts of functions. This option has any effect only
  10842. when inlining itself is turned on by the \fB\-finline\-functions\fR
  10843. or \fB\-finline\-small\-functions\fR options.
  10844. .Sp
  10845. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  10846. .IP "\fB\-fpredictive\-commoning\fR" 4
  10847. .IX Item "-fpredictive-commoning"
  10848. Perform predictive commoning optimization, i.e., reusing computations
  10849. (especially memory loads and stores) performed in previous
  10850. iterations of loops.
  10851. .Sp
  10852. This option is enabled at level \fB\-O3\fR.
  10853. It is also enabled by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  10854. .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
  10855. .IX Item "-fprefetch-loop-arrays"
  10856. If supported by the target machine, generate instructions to prefetch
  10857. memory to improve the performance of loops that access large arrays.
  10858. .Sp
  10859. This option may generate better or worse code; results are highly
  10860. dependent on the structure of loops within the source code.
  10861. .Sp
  10862. Disabled at level \fB\-Os\fR.
  10863. .IP "\fB\-fno\-printf\-return\-value\fR" 4
  10864. .IX Item "-fno-printf-return-value"
  10865. Do not substitute constants for known return value of formatted output
  10866. functions such as \f(CW\*(C`sprintf\*(C'\fR, \f(CW\*(C`snprintf\*(C'\fR, \f(CW\*(C`vsprintf\*(C'\fR, and
  10867. \&\f(CW\*(C`vsnprintf\*(C'\fR (but not \f(CW\*(C`printf\*(C'\fR of \f(CW\*(C`fprintf\*(C'\fR). This
  10868. transformation allows \s-1GCC\s0 to optimize or even eliminate branches based
  10869. on the known return value of these functions called with arguments that
  10870. are either constant, or whose values are known to be in a range that
  10871. makes determining the exact return value possible. For example, when
  10872. \&\fB\-fprintf\-return\-value\fR is in effect, both the branch and the
  10873. body of the \f(CW\*(C`if\*(C'\fR statement (but not the call to \f(CW\*(C`snprint\*(C'\fR)
  10874. can be optimized away when \f(CW\*(C`i\*(C'\fR is a 32\-bit or smaller integer
  10875. because the return value is guaranteed to be at most 8.
  10876. .Sp
  10877. .Vb 3
  10878. \& char buf[9];
  10879. \& if (snprintf (buf, "%08x", i) >= sizeof buf)
  10880. \& ...
  10881. .Ve
  10882. .Sp
  10883. The \fB\-fprintf\-return\-value\fR option relies on other optimizations
  10884. and yields best results with \fB\-O2\fR and above. It works in tandem
  10885. with the \fB\-Wformat\-overflow\fR and \fB\-Wformat\-truncation\fR
  10886. options. The \fB\-fprintf\-return\-value\fR option is enabled by default.
  10887. .IP "\fB\-fno\-peephole\fR" 4
  10888. .IX Item "-fno-peephole"
  10889. .PD 0
  10890. .IP "\fB\-fno\-peephole2\fR" 4
  10891. .IX Item "-fno-peephole2"
  10892. .PD
  10893. Disable any machine-specific peephole optimizations. The difference
  10894. between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
  10895. are implemented in the compiler; some targets use one, some use the
  10896. other, a few use both.
  10897. .Sp
  10898. \&\fB\-fpeephole\fR is enabled by default.
  10899. \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  10900. .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
  10901. .IX Item "-fno-guess-branch-probability"
  10902. Do not guess branch probabilities using heuristics.
  10903. .Sp
  10904. \&\s-1GCC\s0 uses heuristics to guess branch probabilities if they are
  10905. not provided by profiling feedback (\fB\-fprofile\-arcs\fR). These
  10906. heuristics are based on the control flow graph. If some branch probabilities
  10907. are specified by \f(CW\*(C`_\|_builtin_expect\*(C'\fR, then the heuristics are
  10908. used to guess branch probabilities for the rest of the control flow graph,
  10909. taking the \f(CW\*(C`_\|_builtin_expect\*(C'\fR info into account. The interactions
  10910. between the heuristics and \f(CW\*(C`_\|_builtin_expect\*(C'\fR can be complex, and in
  10911. some cases, it may be useful to disable the heuristics so that the effects
  10912. of \f(CW\*(C`_\|_builtin_expect\*(C'\fR are easier to understand.
  10913. .Sp
  10914. It is also possible to specify expected probability of the expression
  10915. with \f(CW\*(C`_\|_builtin_expect_with_probability\*(C'\fR built-in function.
  10916. .Sp
  10917. The default is \fB\-fguess\-branch\-probability\fR at levels
  10918. \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  10919. .IP "\fB\-freorder\-blocks\fR" 4
  10920. .IX Item "-freorder-blocks"
  10921. Reorder basic blocks in the compiled function in order to reduce number of
  10922. taken branches and improve code locality.
  10923. .Sp
  10924. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  10925. .IP "\fB\-freorder\-blocks\-algorithm=\fR\fIalgorithm\fR" 4
  10926. .IX Item "-freorder-blocks-algorithm=algorithm"
  10927. Use the specified algorithm for basic block reordering. The
  10928. \&\fIalgorithm\fR argument can be \fBsimple\fR, which does not increase
  10929. code size (except sometimes due to secondary effects like alignment),
  10930. or \fBstc\fR, the \*(L"software trace cache\*(R" algorithm, which tries to
  10931. put all often executed code together, minimizing the number of branches
  10932. executed by making extra copies of code.
  10933. .Sp
  10934. The default is \fBsimple\fR at levels \fB\-O\fR, \fB\-Os\fR, and
  10935. \&\fBstc\fR at levels \fB\-O2\fR, \fB\-O3\fR.
  10936. .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
  10937. .IX Item "-freorder-blocks-and-partition"
  10938. In addition to reordering basic blocks in the compiled function, in order
  10939. to reduce number of taken branches, partitions hot and cold basic blocks
  10940. into separate sections of the assembly and \fI.o\fR files, to improve
  10941. paging and cache locality performance.
  10942. .Sp
  10943. This optimization is automatically turned off in the presence of
  10944. exception handling or unwind tables (on targets using setjump/longjump or target specific scheme), for linkonce sections, for functions with a user-defined
  10945. section attribute and on any architecture that does not support named
  10946. sections. When \fB\-fsplit\-stack\fR is used this option is not
  10947. enabled by default (to avoid linker errors), but may be enabled
  10948. explicitly (if using a working linker).
  10949. .Sp
  10950. Enabled for x86 at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  10951. .IP "\fB\-freorder\-functions\fR" 4
  10952. .IX Item "-freorder-functions"
  10953. Reorder functions in the object file in order to
  10954. improve code locality. This is implemented by using special
  10955. subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
  10956. \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions. Reordering is done by
  10957. the linker so object file format must support named sections and linker must
  10958. place them in a reasonable way.
  10959. .Sp
  10960. This option isn't effective unless you either provide profile feedback
  10961. (see \fB\-fprofile\-arcs\fR for details) or manually annotate functions with
  10962. \&\f(CW\*(C`hot\*(C'\fR or \f(CW\*(C`cold\*(C'\fR attributes.
  10963. .Sp
  10964. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  10965. .IP "\fB\-fstrict\-aliasing\fR" 4
  10966. .IX Item "-fstrict-aliasing"
  10967. Allow the compiler to assume the strictest aliasing rules applicable to
  10968. the language being compiled. For C (and \*(C+), this activates
  10969. optimizations based on the type of expressions. In particular, an
  10970. object of one type is assumed never to reside at the same address as an
  10971. object of a different type, unless the types are almost the same. For
  10972. example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
  10973. \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR. A character type may alias any other
  10974. type.
  10975. .Sp
  10976. Pay special attention to code like this:
  10977. .Sp
  10978. .Vb 4
  10979. \& union a_union {
  10980. \& int i;
  10981. \& double d;
  10982. \& };
  10983. \&
  10984. \& int f() {
  10985. \& union a_union t;
  10986. \& t.d = 3.0;
  10987. \& return t.i;
  10988. \& }
  10989. .Ve
  10990. .Sp
  10991. The practice of reading from a different union member than the one most
  10992. recently written to (called \*(L"type-punning\*(R") is common. Even with
  10993. \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
  10994. is accessed through the union type. So, the code above works as
  10995. expected. However, this code might not:
  10996. .Sp
  10997. .Vb 7
  10998. \& int f() {
  10999. \& union a_union t;
  11000. \& int* ip;
  11001. \& t.d = 3.0;
  11002. \& ip = &t.i;
  11003. \& return *ip;
  11004. \& }
  11005. .Ve
  11006. .Sp
  11007. Similarly, access by taking the address, casting the resulting pointer
  11008. and dereferencing the result has undefined behavior, even if the cast
  11009. uses a union type, e.g.:
  11010. .Sp
  11011. .Vb 4
  11012. \& int f() {
  11013. \& double d = 3.0;
  11014. \& return ((union a_union *) &d)\->i;
  11015. \& }
  11016. .Ve
  11017. .Sp
  11018. The \fB\-fstrict\-aliasing\fR option is enabled at levels
  11019. \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  11020. .IP "\fB\-falign\-functions\fR" 4
  11021. .IX Item "-falign-functions"
  11022. .PD 0
  11023. .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
  11024. .IX Item "-falign-functions=n"
  11025. .IP "\fB\-falign\-functions=\fR\fIn\fR\fB:\fR\fIm\fR" 4
  11026. .IX Item "-falign-functions=n:m"
  11027. .IP "\fB\-falign\-functions=\fR\fIn\fR\fB:\fR\fIm\fR\fB:\fR\fIn2\fR" 4
  11028. .IX Item "-falign-functions=n:m:n2"
  11029. .IP "\fB\-falign\-functions=\fR\fIn\fR\fB:\fR\fIm\fR\fB:\fR\fIn2\fR\fB:\fR\fIm2\fR" 4
  11030. .IX Item "-falign-functions=n:m:n2:m2"
  11031. .PD
  11032. Align the start of functions to the next power-of-two greater than or
  11033. equal to \fIn\fR, skipping up to \fIm\fR\-1 bytes. This ensures that at
  11034. least the first \fIm\fR bytes of the function can be fetched by the \s-1CPU\s0
  11035. without crossing an \fIn\fR\-byte alignment boundary.
  11036. .Sp
  11037. If \fIm\fR is not specified, it defaults to \fIn\fR.
  11038. .Sp
  11039. Examples: \fB\-falign\-functions=32\fR aligns functions to the next
  11040. 32\-byte boundary, \fB\-falign\-functions=24\fR aligns to the next
  11041. 32\-byte boundary only if this can be done by skipping 23 bytes or less,
  11042. \&\fB\-falign\-functions=32:7\fR aligns to the next
  11043. 32\-byte boundary only if this can be done by skipping 6 bytes or less.
  11044. .Sp
  11045. The second pair of \fIn2\fR:\fIm2\fR values allows you to specify
  11046. a secondary alignment: \fB\-falign\-functions=64:7:32:3\fR aligns to
  11047. the next 64\-byte boundary if this can be done by skipping 6 bytes or less,
  11048. otherwise aligns to the next 32\-byte boundary if this can be done
  11049. by skipping 2 bytes or less.
  11050. If \fIm2\fR is not specified, it defaults to \fIn2\fR.
  11051. .Sp
  11052. Some assemblers only support this flag when \fIn\fR is a power of two;
  11053. in that case, it is rounded up.
  11054. .Sp
  11055. \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
  11056. equivalent and mean that functions are not aligned.
  11057. .Sp
  11058. If \fIn\fR is not specified or is zero, use a machine-dependent default.
  11059. The maximum allowed \fIn\fR option value is 65536.
  11060. .Sp
  11061. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  11062. .IP "\fB\-flimit\-function\-alignment\fR" 4
  11063. .IX Item "-flimit-function-alignment"
  11064. If this option is enabled, the compiler tries to avoid unnecessarily
  11065. overaligning functions. It attempts to instruct the assembler to align
  11066. by the amount specified by \fB\-falign\-functions\fR, but not to
  11067. skip more bytes than the size of the function.
  11068. .IP "\fB\-falign\-labels\fR" 4
  11069. .IX Item "-falign-labels"
  11070. .PD 0
  11071. .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
  11072. .IX Item "-falign-labels=n"
  11073. .IP "\fB\-falign\-labels=\fR\fIn\fR\fB:\fR\fIm\fR" 4
  11074. .IX Item "-falign-labels=n:m"
  11075. .IP "\fB\-falign\-labels=\fR\fIn\fR\fB:\fR\fIm\fR\fB:\fR\fIn2\fR" 4
  11076. .IX Item "-falign-labels=n:m:n2"
  11077. .IP "\fB\-falign\-labels=\fR\fIn\fR\fB:\fR\fIm\fR\fB:\fR\fIn2\fR\fB:\fR\fIm2\fR" 4
  11078. .IX Item "-falign-labels=n:m:n2:m2"
  11079. .PD
  11080. Align all branch targets to a power-of-two boundary.
  11081. .Sp
  11082. Parameters of this option are analogous to the \fB\-falign\-functions\fR option.
  11083. \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
  11084. equivalent and mean that labels are not aligned.
  11085. .Sp
  11086. If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
  11087. are greater than this value, then their values are used instead.
  11088. .Sp
  11089. If \fIn\fR is not specified or is zero, use a machine-dependent default
  11090. which is very likely to be \fB1\fR, meaning no alignment.
  11091. The maximum allowed \fIn\fR option value is 65536.
  11092. .Sp
  11093. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  11094. .IP "\fB\-falign\-loops\fR" 4
  11095. .IX Item "-falign-loops"
  11096. .PD 0
  11097. .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
  11098. .IX Item "-falign-loops=n"
  11099. .IP "\fB\-falign\-loops=\fR\fIn\fR\fB:\fR\fIm\fR" 4
  11100. .IX Item "-falign-loops=n:m"
  11101. .IP "\fB\-falign\-loops=\fR\fIn\fR\fB:\fR\fIm\fR\fB:\fR\fIn2\fR" 4
  11102. .IX Item "-falign-loops=n:m:n2"
  11103. .IP "\fB\-falign\-loops=\fR\fIn\fR\fB:\fR\fIm\fR\fB:\fR\fIn2\fR\fB:\fR\fIm2\fR" 4
  11104. .IX Item "-falign-loops=n:m:n2:m2"
  11105. .PD
  11106. Align loops to a power-of-two boundary. If the loops are executed
  11107. many times, this makes up for any execution of the dummy padding
  11108. instructions.
  11109. .Sp
  11110. If \fB\-falign\-labels\fR is greater than this value, then its value
  11111. is used instead.
  11112. .Sp
  11113. Parameters of this option are analogous to the \fB\-falign\-functions\fR option.
  11114. \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
  11115. equivalent and mean that loops are not aligned.
  11116. The maximum allowed \fIn\fR option value is 65536.
  11117. .Sp
  11118. If \fIn\fR is not specified or is zero, use a machine-dependent default.
  11119. .Sp
  11120. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  11121. .IP "\fB\-falign\-jumps\fR" 4
  11122. .IX Item "-falign-jumps"
  11123. .PD 0
  11124. .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
  11125. .IX Item "-falign-jumps=n"
  11126. .IP "\fB\-falign\-jumps=\fR\fIn\fR\fB:\fR\fIm\fR" 4
  11127. .IX Item "-falign-jumps=n:m"
  11128. .IP "\fB\-falign\-jumps=\fR\fIn\fR\fB:\fR\fIm\fR\fB:\fR\fIn2\fR" 4
  11129. .IX Item "-falign-jumps=n:m:n2"
  11130. .IP "\fB\-falign\-jumps=\fR\fIn\fR\fB:\fR\fIm\fR\fB:\fR\fIn2\fR\fB:\fR\fIm2\fR" 4
  11131. .IX Item "-falign-jumps=n:m:n2:m2"
  11132. .PD
  11133. Align branch targets to a power-of-two boundary, for branch targets
  11134. where the targets can only be reached by jumping. In this case,
  11135. no dummy operations need be executed.
  11136. .Sp
  11137. If \fB\-falign\-labels\fR is greater than this value, then its value
  11138. is used instead.
  11139. .Sp
  11140. Parameters of this option are analogous to the \fB\-falign\-functions\fR option.
  11141. \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
  11142. equivalent and mean that loops are not aligned.
  11143. .Sp
  11144. If \fIn\fR is not specified or is zero, use a machine-dependent default.
  11145. The maximum allowed \fIn\fR option value is 65536.
  11146. .Sp
  11147. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  11148. .IP "\fB\-fno\-allocation\-dce\fR" 4
  11149. .IX Item "-fno-allocation-dce"
  11150. Do not remove unused \*(C+ allocations in dead code elimination.
  11151. .IP "\fB\-fallow\-store\-data\-races\fR" 4
  11152. .IX Item "-fallow-store-data-races"
  11153. Allow the compiler to perform optimizations that may introduce new data races
  11154. on stores, without proving that the variable cannot be concurrently accessed
  11155. by other threads. Does not affect optimization of local data. It is safe to
  11156. use this option if it is known that global data will not be accessed by
  11157. multiple threads.
  11158. .Sp
  11159. Examples of optimizations enabled by \fB\-fallow\-store\-data\-races\fR include
  11160. hoisting or if-conversions that may cause a value that was already in memory
  11161. to be re-written with that same value. Such re-writing is safe in a single
  11162. threaded context but may be unsafe in a multi-threaded context. Note that on
  11163. some processors, if-conversions may be required in order to enable
  11164. vectorization.
  11165. .Sp
  11166. Enabled at level \fB\-Ofast\fR.
  11167. .IP "\fB\-funit\-at\-a\-time\fR" 4
  11168. .IX Item "-funit-at-a-time"
  11169. This option is left for compatibility reasons. \fB\-funit\-at\-a\-time\fR
  11170. has no effect, while \fB\-fno\-unit\-at\-a\-time\fR implies
  11171. \&\fB\-fno\-toplevel\-reorder\fR and \fB\-fno\-section\-anchors\fR.
  11172. .Sp
  11173. Enabled by default.
  11174. .IP "\fB\-fno\-toplevel\-reorder\fR" 4
  11175. .IX Item "-fno-toplevel-reorder"
  11176. Do not reorder top-level functions, variables, and \f(CW\*(C`asm\*(C'\fR
  11177. statements. Output them in the same order that they appear in the
  11178. input file. When this option is used, unreferenced static variables
  11179. are not removed. This option is intended to support existing code
  11180. that relies on a particular ordering. For new code, it is better to
  11181. use attributes when possible.
  11182. .Sp
  11183. \&\fB\-ftoplevel\-reorder\fR is the default at \fB\-O1\fR and higher, and
  11184. also at \fB\-O0\fR if \fB\-fsection\-anchors\fR is explicitly requested.
  11185. Additionally \fB\-fno\-toplevel\-reorder\fR implies
  11186. \&\fB\-fno\-section\-anchors\fR.
  11187. .IP "\fB\-fweb\fR" 4
  11188. .IX Item "-fweb"
  11189. Constructs webs as commonly used for register allocation purposes and assign
  11190. each web individual pseudo register. This allows the register allocation pass
  11191. to operate on pseudos directly, but also strengthens several other optimization
  11192. passes, such as \s-1CSE,\s0 loop optimizer and trivial dead code remover. It can,
  11193. however, make debugging impossible, since variables no longer stay in a
  11194. \&\*(L"home register\*(R".
  11195. .Sp
  11196. Enabled by default with \fB\-funroll\-loops\fR.
  11197. .IP "\fB\-fwhole\-program\fR" 4
  11198. .IX Item "-fwhole-program"
  11199. Assume that the current compilation unit represents the whole program being
  11200. compiled. All public functions and variables with the exception of \f(CW\*(C`main\*(C'\fR
  11201. and those merged by attribute \f(CW\*(C`externally_visible\*(C'\fR become static functions
  11202. and in effect are optimized more aggressively by interprocedural optimizers.
  11203. .Sp
  11204. This option should not be used in combination with \fB\-flto\fR.
  11205. Instead relying on a linker plugin should provide safer and more precise
  11206. information.
  11207. .IP "\fB\-flto[=\fR\fIn\fR\fB]\fR" 4
  11208. .IX Item "-flto[=n]"
  11209. This option runs the standard link-time optimizer. When invoked
  11210. with source code, it generates \s-1GIMPLE\s0 (one of \s-1GCC\s0's internal
  11211. representations) and writes it to special \s-1ELF\s0 sections in the object
  11212. file. When the object files are linked together, all the function
  11213. bodies are read from these \s-1ELF\s0 sections and instantiated as if they
  11214. had been part of the same translation unit.
  11215. .Sp
  11216. To use the link-time optimizer, \fB\-flto\fR and optimization
  11217. options should be specified at compile time and during the final link.
  11218. It is recommended that you compile all the files participating in the
  11219. same link with the same options and also specify those options at
  11220. link time.
  11221. For example:
  11222. .Sp
  11223. .Vb 3
  11224. \& gcc \-c \-O2 \-flto foo.c
  11225. \& gcc \-c \-O2 \-flto bar.c
  11226. \& gcc \-o myprog \-flto \-O2 foo.o bar.o
  11227. .Ve
  11228. .Sp
  11229. The first two invocations to \s-1GCC\s0 save a bytecode representation
  11230. of \s-1GIMPLE\s0 into special \s-1ELF\s0 sections inside \fIfoo.o\fR and
  11231. \&\fIbar.o\fR. The final invocation reads the \s-1GIMPLE\s0 bytecode from
  11232. \&\fIfoo.o\fR and \fIbar.o\fR, merges the two files into a single
  11233. internal image, and compiles the result as usual. Since both
  11234. \&\fIfoo.o\fR and \fIbar.o\fR are merged into a single image, this
  11235. causes all the interprocedural analyses and optimizations in \s-1GCC\s0 to
  11236. work across the two files as if they were a single one. This means,
  11237. for example, that the inliner is able to inline functions in
  11238. \&\fIbar.o\fR into functions in \fIfoo.o\fR and vice-versa.
  11239. .Sp
  11240. Another (simpler) way to enable link-time optimization is:
  11241. .Sp
  11242. .Vb 1
  11243. \& gcc \-o myprog \-flto \-O2 foo.c bar.c
  11244. .Ve
  11245. .Sp
  11246. The above generates bytecode for \fIfoo.c\fR and \fIbar.c\fR,
  11247. merges them together into a single \s-1GIMPLE\s0 representation and optimizes
  11248. them as usual to produce \fImyprog\fR.
  11249. .Sp
  11250. The important thing to keep in mind is that to enable link-time
  11251. optimizations you need to use the \s-1GCC\s0 driver to perform the link step.
  11252. \&\s-1GCC\s0 automatically performs link-time optimization if any of the
  11253. objects involved were compiled with the \fB\-flto\fR command-line option.
  11254. You can always override
  11255. the automatic decision to do link-time optimization
  11256. by passing \fB\-fno\-lto\fR to the link command.
  11257. .Sp
  11258. To make whole program optimization effective, it is necessary to make
  11259. certain whole program assumptions. The compiler needs to know
  11260. what functions and variables can be accessed by libraries and runtime
  11261. outside of the link-time optimized unit. When supported by the linker,
  11262. the linker plugin (see \fB\-fuse\-linker\-plugin\fR) passes information
  11263. to the compiler about used and externally visible symbols. When
  11264. the linker plugin is not available, \fB\-fwhole\-program\fR should be
  11265. used to allow the compiler to make these assumptions, which leads
  11266. to more aggressive optimization decisions.
  11267. .Sp
  11268. When a file is compiled with \fB\-flto\fR without
  11269. \&\fB\-fuse\-linker\-plugin\fR, the generated object file is larger than
  11270. a regular object file because it contains \s-1GIMPLE\s0 bytecodes and the usual
  11271. final code (see \fB\-ffat\-lto\-objects\fR). This means that
  11272. object files with \s-1LTO\s0 information can be linked as normal object
  11273. files; if \fB\-fno\-lto\fR is passed to the linker, no
  11274. interprocedural optimizations are applied. Note that when
  11275. \&\fB\-fno\-fat\-lto\-objects\fR is enabled the compile stage is faster
  11276. but you cannot perform a regular, non-LTO link on them.
  11277. .Sp
  11278. When producing the final binary, \s-1GCC\s0 only
  11279. applies link-time optimizations to those files that contain bytecode.
  11280. Therefore, you can mix and match object files and libraries with
  11281. \&\s-1GIMPLE\s0 bytecodes and final object code. \s-1GCC\s0 automatically selects
  11282. which files to optimize in \s-1LTO\s0 mode and which files to link without
  11283. further processing.
  11284. .Sp
  11285. Generally, options specified at link time override those
  11286. specified at compile time, although in some cases \s-1GCC\s0 attempts to infer
  11287. link-time options from the settings used to compile the input files.
  11288. .Sp
  11289. If you do not specify an optimization level option \fB\-O\fR at
  11290. link time, then \s-1GCC\s0 uses the highest optimization level
  11291. used when compiling the object files. Note that it is generally
  11292. ineffective to specify an optimization level option only at link time and
  11293. not at compile time, for two reasons. First, compiling without
  11294. optimization suppresses compiler passes that gather information
  11295. needed for effective optimization at link time. Second, some early
  11296. optimization passes can be performed only at compile time and
  11297. not at link time.
  11298. .Sp
  11299. There are some code generation flags preserved by \s-1GCC\s0 when
  11300. generating bytecodes, as they need to be used during the final link.
  11301. Currently, the following options and their settings are taken from
  11302. the first object file that explicitly specifies them:
  11303. \&\fB\-fcommon\fR, \fB\-fexceptions\fR, \fB\-fnon\-call\-exceptions\fR,
  11304. \&\fB\-fgnu\-tm\fR and all the \fB\-m\fR target flags.
  11305. .Sp
  11306. The following options \fB\-fPIC\fR, \fB\-fpic\fR, \fB\-fpie\fR and
  11307. \&\fB\-fPIE\fR are combined based on the following scheme:
  11308. .Sp
  11309. .Vb 6
  11310. \& B<\-fPIC> + B<\-fpic> = B<\-fpic>
  11311. \& B<\-fPIC> + B<\-fno\-pic> = B<\-fno\-pic>
  11312. \& B<\-fpic/\-fPIC> + (no option) = (no option)
  11313. \& B<\-fPIC> + B<\-fPIE> = B<\-fPIE>
  11314. \& B<\-fpic> + B<\-fPIE> = B<\-fpie>
  11315. \& B<\-fPIC/\-fpic> + B<\-fpie> = B<\-fpie>
  11316. .Ve
  11317. .Sp
  11318. Certain ABI-changing flags are required to match in all compilation units,
  11319. and trying to override this at link time with a conflicting value
  11320. is ignored. This includes options such as \fB\-freg\-struct\-return\fR
  11321. and \fB\-fpcc\-struct\-return\fR.
  11322. .Sp
  11323. Other options such as \fB\-ffp\-contract\fR, \fB\-fno\-strict\-overflow\fR,
  11324. \&\fB\-fwrapv\fR, \fB\-fno\-trapv\fR or \fB\-fno\-strict\-aliasing\fR
  11325. are passed through to the link stage and merged conservatively for
  11326. conflicting translation units. Specifically
  11327. \&\fB\-fno\-strict\-overflow\fR, \fB\-fwrapv\fR and \fB\-fno\-trapv\fR take
  11328. precedence; and for example \fB\-ffp\-contract=off\fR takes precedence
  11329. over \fB\-ffp\-contract=fast\fR. You can override them at link time.
  11330. .Sp
  11331. Diagnostic options such as \fB\-Wstringop\-overflow\fR are passed
  11332. through to the link stage and their setting matches that of the
  11333. compile-step at function granularity. Note that this matters only
  11334. for diagnostics emitted during optimization. Note that code
  11335. transforms such as inlining can lead to warnings being enabled
  11336. or disabled for regions if code not consistent with the setting
  11337. at compile time.
  11338. .Sp
  11339. When you need to pass options to the assembler via \fB\-Wa\fR or
  11340. \&\fB\-Xassembler\fR make sure to either compile such translation
  11341. units with \fB\-fno\-lto\fR or consistently use the same assembler
  11342. options on all translation units. You can alternatively also
  11343. specify assembler options at \s-1LTO\s0 link time.
  11344. .Sp
  11345. To enable debug info generation you need to supply \fB\-g\fR at
  11346. compile time. If any of the input files at link time were built
  11347. with debug info generation enabled the link will enable debug info
  11348. generation as well. Any elaborate debug info settings
  11349. like the dwarf level \fB\-gdwarf\-5\fR need to be explicitly repeated
  11350. at the linker command line and mixing different settings in different
  11351. translation units is discouraged.
  11352. .Sp
  11353. If \s-1LTO\s0 encounters objects with C linkage declared with incompatible
  11354. types in separate translation units to be linked together (undefined
  11355. behavior according to \s-1ISO C99 6.2.7\s0), a non-fatal diagnostic may be
  11356. issued. The behavior is still undefined at run time. Similar
  11357. diagnostics may be raised for other languages.
  11358. .Sp
  11359. Another feature of \s-1LTO\s0 is that it is possible to apply interprocedural
  11360. optimizations on files written in different languages:
  11361. .Sp
  11362. .Vb 4
  11363. \& gcc \-c \-flto foo.c
  11364. \& g++ \-c \-flto bar.cc
  11365. \& gfortran \-c \-flto baz.f90
  11366. \& g++ \-o myprog \-flto \-O3 foo.o bar.o baz.o \-lgfortran
  11367. .Ve
  11368. .Sp
  11369. Notice that the final link is done with \fBg++\fR to get the \*(C+
  11370. runtime libraries and \fB\-lgfortran\fR is added to get the Fortran
  11371. runtime libraries. In general, when mixing languages in \s-1LTO\s0 mode, you
  11372. should use the same link command options as when mixing languages in a
  11373. regular (non-LTO) compilation.
  11374. .Sp
  11375. If object files containing \s-1GIMPLE\s0 bytecode are stored in a library archive, say
  11376. \&\fIlibfoo.a\fR, it is possible to extract and use them in an \s-1LTO\s0 link if you
  11377. are using a linker with plugin support. To create static libraries suitable
  11378. for \s-1LTO,\s0 use \fBgcc-ar\fR and \fBgcc-ranlib\fR instead of \fBar\fR
  11379. and \fBranlib\fR;
  11380. to show the symbols of object files with \s-1GIMPLE\s0 bytecode, use
  11381. \&\fBgcc-nm\fR. Those commands require that \fBar\fR, \fBranlib\fR
  11382. and \fBnm\fR have been compiled with plugin support. At link time, use the
  11383. flag \fB\-fuse\-linker\-plugin\fR to ensure that the library participates in
  11384. the \s-1LTO\s0 optimization process:
  11385. .Sp
  11386. .Vb 1
  11387. \& gcc \-o myprog \-O2 \-flto \-fuse\-linker\-plugin a.o b.o \-lfoo
  11388. .Ve
  11389. .Sp
  11390. With the linker plugin enabled, the linker extracts the needed
  11391. \&\s-1GIMPLE\s0 files from \fIlibfoo.a\fR and passes them on to the running \s-1GCC\s0
  11392. to make them part of the aggregated \s-1GIMPLE\s0 image to be optimized.
  11393. .Sp
  11394. If you are not using a linker with plugin support and/or do not
  11395. enable the linker plugin, then the objects inside \fIlibfoo.a\fR
  11396. are extracted and linked as usual, but they do not participate
  11397. in the \s-1LTO\s0 optimization process. In order to make a static library suitable
  11398. for both \s-1LTO\s0 optimization and usual linkage, compile its object files with
  11399. \&\fB\-flto\fR \fB\-ffat\-lto\-objects\fR.
  11400. .Sp
  11401. Link-time optimizations do not require the presence of the whole program to
  11402. operate. If the program does not require any symbols to be exported, it is
  11403. possible to combine \fB\-flto\fR and \fB\-fwhole\-program\fR to allow
  11404. the interprocedural optimizers to use more aggressive assumptions which may
  11405. lead to improved optimization opportunities.
  11406. Use of \fB\-fwhole\-program\fR is not needed when linker plugin is
  11407. active (see \fB\-fuse\-linker\-plugin\fR).
  11408. .Sp
  11409. The current implementation of \s-1LTO\s0 makes no
  11410. attempt to generate bytecode that is portable between different
  11411. types of hosts. The bytecode files are versioned and there is a
  11412. strict version check, so bytecode files generated in one version of
  11413. \&\s-1GCC\s0 do not work with an older or newer version of \s-1GCC.\s0
  11414. .Sp
  11415. Link-time optimization does not work well with generation of debugging
  11416. information on systems other than those using a combination of \s-1ELF\s0 and
  11417. \&\s-1DWARF.\s0
  11418. .Sp
  11419. If you specify the optional \fIn\fR, the optimization and code
  11420. generation done at link time is executed in parallel using \fIn\fR
  11421. parallel jobs by utilizing an installed \fBmake\fR program. The
  11422. environment variable \fB\s-1MAKE\s0\fR may be used to override the program
  11423. used.
  11424. .Sp
  11425. You can also specify \fB\-flto=jobserver\fR to use \s-1GNU\s0 make's
  11426. job server mode to determine the number of parallel jobs. This
  11427. is useful when the Makefile calling \s-1GCC\s0 is already executing in parallel.
  11428. You must prepend a \fB+\fR to the command recipe in the parent Makefile
  11429. for this to work. This option likely only works if \fB\s-1MAKE\s0\fR is
  11430. \&\s-1GNU\s0 make. Even without the option value, \s-1GCC\s0 tries to automatically
  11431. detect a running \s-1GNU\s0 make's job server.
  11432. .Sp
  11433. Use \fB\-flto=auto\fR to use \s-1GNU\s0 make's job server, if available,
  11434. or otherwise fall back to autodetection of the number of \s-1CPU\s0 threads
  11435. present in your system.
  11436. .IP "\fB\-flto\-partition=\fR\fIalg\fR" 4
  11437. .IX Item "-flto-partition=alg"
  11438. Specify the partitioning algorithm used by the link-time optimizer.
  11439. The value is either \fB1to1\fR to specify a partitioning mirroring
  11440. the original source files or \fBbalanced\fR to specify partitioning
  11441. into equally sized chunks (whenever possible) or \fBmax\fR to create
  11442. new partition for every symbol where possible. Specifying \fBnone\fR
  11443. as an algorithm disables partitioning and streaming completely.
  11444. The default value is \fBbalanced\fR. While \fB1to1\fR can be used
  11445. as an workaround for various code ordering issues, the \fBmax\fR
  11446. partitioning is intended for internal testing only.
  11447. The value \fBone\fR specifies that exactly one partition should be
  11448. used while the value \fBnone\fR bypasses partitioning and executes
  11449. the link-time optimization step directly from the \s-1WPA\s0 phase.
  11450. .IP "\fB\-flto\-compression\-level=\fR\fIn\fR" 4
  11451. .IX Item "-flto-compression-level=n"
  11452. This option specifies the level of compression used for intermediate
  11453. language written to \s-1LTO\s0 object files, and is only meaningful in
  11454. conjunction with \s-1LTO\s0 mode (\fB\-flto\fR). \s-1GCC\s0 currently supports two
  11455. \&\s-1LTO\s0 compression algorithms. For zstd, valid values are 0 (no compression)
  11456. to 19 (maximum compression), while zlib supports values from 0 to 9.
  11457. Values outside this range are clamped to either minimum or maximum
  11458. of the supported values. If the option is not given,
  11459. a default balanced compression setting is used.
  11460. .IP "\fB\-fuse\-linker\-plugin\fR" 4
  11461. .IX Item "-fuse-linker-plugin"
  11462. Enables the use of a linker plugin during link-time optimization. This
  11463. option relies on plugin support in the linker, which is available in gold
  11464. or in \s-1GNU\s0 ld 2.21 or newer.
  11465. .Sp
  11466. This option enables the extraction of object files with \s-1GIMPLE\s0 bytecode out
  11467. of library archives. This improves the quality of optimization by exposing
  11468. more code to the link-time optimizer. This information specifies what
  11469. symbols can be accessed externally (by non-LTO object or during dynamic
  11470. linking). Resulting code quality improvements on binaries (and shared
  11471. libraries that use hidden visibility) are similar to \fB\-fwhole\-program\fR.
  11472. See \fB\-flto\fR for a description of the effect of this flag and how to
  11473. use it.
  11474. .Sp
  11475. This option is enabled by default when \s-1LTO\s0 support in \s-1GCC\s0 is enabled
  11476. and \s-1GCC\s0 was configured for use with
  11477. a linker supporting plugins (\s-1GNU\s0 ld 2.21 or newer or gold).
  11478. .IP "\fB\-ffat\-lto\-objects\fR" 4
  11479. .IX Item "-ffat-lto-objects"
  11480. Fat \s-1LTO\s0 objects are object files that contain both the intermediate language
  11481. and the object code. This makes them usable for both \s-1LTO\s0 linking and normal
  11482. linking. This option is effective only when compiling with \fB\-flto\fR
  11483. and is ignored at link time.
  11484. .Sp
  11485. \&\fB\-fno\-fat\-lto\-objects\fR improves compilation time over plain \s-1LTO,\s0 but
  11486. requires the complete toolchain to be aware of \s-1LTO.\s0 It requires a linker with
  11487. linker plugin support for basic functionality. Additionally,
  11488. \&\fBnm\fR, \fBar\fR and \fBranlib\fR
  11489. need to support linker plugins to allow a full-featured build environment
  11490. (capable of building static libraries etc). \s-1GCC\s0 provides the \fBgcc-ar\fR,
  11491. \&\fBgcc-nm\fR, \fBgcc-ranlib\fR wrappers to pass the right options
  11492. to these tools. With non fat \s-1LTO\s0 makefiles need to be modified to use them.
  11493. .Sp
  11494. Note that modern binutils provide plugin auto-load mechanism.
  11495. Installing the linker plugin into \fI\f(CI$libdir\fI/bfd\-plugins\fR has the same
  11496. effect as usage of the command wrappers (\fBgcc-ar\fR, \fBgcc-nm\fR and
  11497. \&\fBgcc-ranlib\fR).
  11498. .Sp
  11499. The default is \fB\-fno\-fat\-lto\-objects\fR on targets with linker plugin
  11500. support.
  11501. .IP "\fB\-fcompare\-elim\fR" 4
  11502. .IX Item "-fcompare-elim"
  11503. After register allocation and post-register allocation instruction splitting,
  11504. identify arithmetic instructions that compute processor flags similar to a
  11505. comparison operation based on that arithmetic. If possible, eliminate the
  11506. explicit comparison operation.
  11507. .Sp
  11508. This pass only applies to certain targets that cannot explicitly represent
  11509. the comparison operation before register allocation is complete.
  11510. .Sp
  11511. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  11512. .IP "\fB\-fcprop\-registers\fR" 4
  11513. .IX Item "-fcprop-registers"
  11514. After register allocation and post-register allocation instruction splitting,
  11515. perform a copy-propagation pass to try to reduce scheduling dependencies
  11516. and occasionally eliminate the copy.
  11517. .Sp
  11518. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  11519. .IP "\fB\-fprofile\-correction\fR" 4
  11520. .IX Item "-fprofile-correction"
  11521. Profiles collected using an instrumented binary for multi-threaded programs may
  11522. be inconsistent due to missed counter updates. When this option is specified,
  11523. \&\s-1GCC\s0 uses heuristics to correct or smooth out such inconsistencies. By
  11524. default, \s-1GCC\s0 emits an error message when an inconsistent profile is detected.
  11525. .Sp
  11526. This option is enabled by \fB\-fauto\-profile\fR.
  11527. .IP "\fB\-fprofile\-partial\-training\fR" 4
  11528. .IX Item "-fprofile-partial-training"
  11529. With \f(CW\*(C`\-fprofile\-use\*(C'\fR all portions of programs not executed during train
  11530. run are optimized agressively for size rather than speed. In some cases it is
  11531. not practical to train all possible hot paths in the program. (For
  11532. example, program may contain functions specific for a given hardware and
  11533. trianing may not cover all hardware configurations program is run on.) With
  11534. \&\f(CW\*(C`\-fprofile\-partial\-training\*(C'\fR profile feedback will be ignored for all
  11535. functions not executed during the train run leading them to be optimized as if
  11536. they were compiled without profile feedback. This leads to better performance
  11537. when train run is not representative but also leads to significantly bigger
  11538. code.
  11539. .IP "\fB\-fprofile\-use\fR" 4
  11540. .IX Item "-fprofile-use"
  11541. .PD 0
  11542. .IP "\fB\-fprofile\-use=\fR\fIpath\fR" 4
  11543. .IX Item "-fprofile-use=path"
  11544. .PD
  11545. Enable profile feedback-directed optimizations,
  11546. and the following optimizations, many of which
  11547. are generally profitable only with profile feedback available:
  11548. .Sp
  11549. \&\fB\-fbranch\-probabilities \-fprofile\-values
  11550. \&\-funroll\-loops \-fpeel\-loops \-ftracer \-fvpt
  11551. \&\-finline\-functions \-fipa\-cp \-fipa\-cp\-clone \-fipa\-bit\-cp
  11552. \&\-fpredictive\-commoning \-fsplit\-loops \-funswitch\-loops
  11553. \&\-fgcse\-after\-reload \-ftree\-loop\-vectorize \-ftree\-slp\-vectorize
  11554. \&\-fvect\-cost\-model=dynamic \-ftree\-loop\-distribute\-patterns
  11555. \&\-fprofile\-reorder\-functions\fR
  11556. .Sp
  11557. Before you can use this option, you must first generate profiling information.
  11558. .Sp
  11559. By default, \s-1GCC\s0 emits an error message if the feedback profiles do not
  11560. match the source code. This error can be turned into a warning by using
  11561. \&\fB\-Wno\-error=coverage\-mismatch\fR. Note this may result in poorly
  11562. optimized code. Additionally, by default, \s-1GCC\s0 also emits a warning message if
  11563. the feedback profiles do not exist (see \fB\-Wmissing\-profile\fR).
  11564. .Sp
  11565. If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
  11566. the profile feedback data files. See \fB\-fprofile\-dir\fR.
  11567. .IP "\fB\-fauto\-profile\fR" 4
  11568. .IX Item "-fauto-profile"
  11569. .PD 0
  11570. .IP "\fB\-fauto\-profile=\fR\fIpath\fR" 4
  11571. .IX Item "-fauto-profile=path"
  11572. .PD
  11573. Enable sampling-based feedback-directed optimizations,
  11574. and the following optimizations,
  11575. many of which are generally profitable only with profile feedback available:
  11576. .Sp
  11577. \&\fB\-fbranch\-probabilities \-fprofile\-values
  11578. \&\-funroll\-loops \-fpeel\-loops \-ftracer \-fvpt
  11579. \&\-finline\-functions \-fipa\-cp \-fipa\-cp\-clone \-fipa\-bit\-cp
  11580. \&\-fpredictive\-commoning \-fsplit\-loops \-funswitch\-loops
  11581. \&\-fgcse\-after\-reload \-ftree\-loop\-vectorize \-ftree\-slp\-vectorize
  11582. \&\-fvect\-cost\-model=dynamic \-ftree\-loop\-distribute\-patterns
  11583. \&\-fprofile\-correction\fR
  11584. .Sp
  11585. \&\fIpath\fR is the name of a file containing AutoFDO profile information.
  11586. If omitted, it defaults to \fIfbdata.afdo\fR in the current directory.
  11587. .Sp
  11588. Producing an AutoFDO profile data file requires running your program
  11589. with the \fBperf\fR utility on a supported GNU/Linux target system.
  11590. For more information, see <\fBhttps://perf.wiki.kernel.org/\fR>.
  11591. .Sp
  11592. E.g.
  11593. .Sp
  11594. .Vb 2
  11595. \& perf record \-e br_inst_retired:near_taken \-b \-o perf.data \e
  11596. \& \-\- your_program
  11597. .Ve
  11598. .Sp
  11599. Then use the \fBcreate_gcov\fR tool to convert the raw profile data
  11600. to a format that can be used by \s-1GCC.\s0 You must also supply the
  11601. unstripped binary for your program to this tool.
  11602. See <\fBhttps://github.com/google/autofdo\fR>.
  11603. .Sp
  11604. E.g.
  11605. .Sp
  11606. .Vb 2
  11607. \& create_gcov \-\-binary=your_program.unstripped \-\-profile=perf.data \e
  11608. \& \-\-gcov=profile.afdo
  11609. .Ve
  11610. .PP
  11611. The following options control compiler behavior regarding floating-point
  11612. arithmetic. These options trade off between speed and
  11613. correctness. All must be specifically enabled.
  11614. .IP "\fB\-ffloat\-store\fR" 4
  11615. .IX Item "-ffloat-store"
  11616. Do not store floating-point variables in registers, and inhibit other
  11617. options that might change whether a floating-point value is taken from a
  11618. register or memory.
  11619. .Sp
  11620. This option prevents undesirable excess precision on machines such as
  11621. the 68000 where the floating registers (of the 68881) keep more
  11622. precision than a \f(CW\*(C`double\*(C'\fR is supposed to have. Similarly for the
  11623. x86 architecture. For most programs, the excess precision does only
  11624. good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
  11625. point. Use \fB\-ffloat\-store\fR for such programs, after modifying
  11626. them to store all pertinent intermediate computations into variables.
  11627. .IP "\fB\-fexcess\-precision=\fR\fIstyle\fR" 4
  11628. .IX Item "-fexcess-precision=style"
  11629. This option allows further control over excess precision on machines
  11630. where floating-point operations occur in a format with more precision or
  11631. range than the \s-1IEEE\s0 standard and interchange floating-point types. By
  11632. default, \fB\-fexcess\-precision=fast\fR is in effect; this means that
  11633. operations may be carried out in a wider precision than the types specified
  11634. in the source if that would result in faster code, and it is unpredictable
  11635. when rounding to the types specified in the source code takes place.
  11636. When compiling C, if \fB\-fexcess\-precision=standard\fR is specified then
  11637. excess precision follows the rules specified in \s-1ISO C99\s0; in particular,
  11638. both casts and assignments cause values to be rounded to their
  11639. semantic types (whereas \fB\-ffloat\-store\fR only affects
  11640. assignments). This option is enabled by default for C if a strict
  11641. conformance option such as \fB\-std=c99\fR is used.
  11642. \&\fB\-ffast\-math\fR enables \fB\-fexcess\-precision=fast\fR by default
  11643. regardless of whether a strict conformance option is used.
  11644. .Sp
  11645. \&\fB\-fexcess\-precision=standard\fR is not implemented for languages
  11646. other than C. On the x86, it has no effect if \fB\-mfpmath=sse\fR
  11647. or \fB\-mfpmath=sse+387\fR is specified; in the former case, \s-1IEEE\s0
  11648. semantics apply without excess precision, and in the latter, rounding
  11649. is unpredictable.
  11650. .IP "\fB\-ffast\-math\fR" 4
  11651. .IX Item "-ffast-math"
  11652. Sets the options \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR,
  11653. \&\fB\-ffinite\-math\-only\fR, \fB\-fno\-rounding\-math\fR,
  11654. \&\fB\-fno\-signaling\-nans\fR, \fB\-fcx\-limited\-range\fR and
  11655. \&\fB\-fexcess\-precision=fast\fR.
  11656. .Sp
  11657. This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
  11658. .Sp
  11659. This option is not turned on by any \fB\-O\fR option besides
  11660. \&\fB\-Ofast\fR since it can result in incorrect output for programs
  11661. that depend on an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications
  11662. for math functions. It may, however, yield faster code for programs
  11663. that do not require the guarantees of these specifications.
  11664. .IP "\fB\-fno\-math\-errno\fR" 4
  11665. .IX Item "-fno-math-errno"
  11666. Do not set \f(CW\*(C`errno\*(C'\fR after calling math functions that are executed
  11667. with a single instruction, e.g., \f(CW\*(C`sqrt\*(C'\fR. A program that relies on
  11668. \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
  11669. for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
  11670. .Sp
  11671. This option is not turned on by any \fB\-O\fR option since
  11672. it can result in incorrect output for programs that depend on
  11673. an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
  11674. math functions. It may, however, yield faster code for programs
  11675. that do not require the guarantees of these specifications.
  11676. .Sp
  11677. The default is \fB\-fmath\-errno\fR.
  11678. .Sp
  11679. On Darwin systems, the math library never sets \f(CW\*(C`errno\*(C'\fR. There is
  11680. therefore no reason for the compiler to consider the possibility that
  11681. it might, and \fB\-fno\-math\-errno\fR is the default.
  11682. .IP "\fB\-funsafe\-math\-optimizations\fR" 4
  11683. .IX Item "-funsafe-math-optimizations"
  11684. Allow optimizations for floating-point arithmetic that (a) assume
  11685. that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
  11686. \&\s-1ANSI\s0 standards. When used at link time, it may include libraries
  11687. or startup files that change the default \s-1FPU\s0 control word or other
  11688. similar optimizations.
  11689. .Sp
  11690. This option is not turned on by any \fB\-O\fR option since
  11691. it can result in incorrect output for programs that depend on
  11692. an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
  11693. math functions. It may, however, yield faster code for programs
  11694. that do not require the guarantees of these specifications.
  11695. Enables \fB\-fno\-signed\-zeros\fR, \fB\-fno\-trapping\-math\fR,
  11696. \&\fB\-fassociative\-math\fR and \fB\-freciprocal\-math\fR.
  11697. .Sp
  11698. The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
  11699. .IP "\fB\-fassociative\-math\fR" 4
  11700. .IX Item "-fassociative-math"
  11701. Allow re-association of operands in series of floating-point operations.
  11702. This violates the \s-1ISO C\s0 and \*(C+ language standard by possibly changing
  11703. computation result. \s-1NOTE:\s0 re-ordering may change the sign of zero as
  11704. well as ignore NaNs and inhibit or create underflow or overflow (and
  11705. thus cannot be used on code that relies on rounding behavior like
  11706. \&\f(CW\*(C`(x + 2**52) \- 2**52\*(C'\fR. May also reorder floating-point comparisons
  11707. and thus may not be used when ordered comparisons are required.
  11708. This option requires that both \fB\-fno\-signed\-zeros\fR and
  11709. \&\fB\-fno\-trapping\-math\fR be in effect. Moreover, it doesn't make
  11710. much sense with \fB\-frounding\-math\fR. For Fortran the option
  11711. is automatically enabled when both \fB\-fno\-signed\-zeros\fR and
  11712. \&\fB\-fno\-trapping\-math\fR are in effect.
  11713. .Sp
  11714. The default is \fB\-fno\-associative\-math\fR.
  11715. .IP "\fB\-freciprocal\-math\fR" 4
  11716. .IX Item "-freciprocal-math"
  11717. Allow the reciprocal of a value to be used instead of dividing by
  11718. the value if this enables optimizations. For example \f(CW\*(C`x / y\*(C'\fR
  11719. can be replaced with \f(CW\*(C`x * (1/y)\*(C'\fR, which is useful if \f(CW\*(C`(1/y)\*(C'\fR
  11720. is subject to common subexpression elimination. Note that this loses
  11721. precision and increases the number of flops operating on the value.
  11722. .Sp
  11723. The default is \fB\-fno\-reciprocal\-math\fR.
  11724. .IP "\fB\-ffinite\-math\-only\fR" 4
  11725. .IX Item "-ffinite-math-only"
  11726. Allow optimizations for floating-point arithmetic that assume
  11727. that arguments and results are not NaNs or +\-Infs.
  11728. .Sp
  11729. This option is not turned on by any \fB\-O\fR option since
  11730. it can result in incorrect output for programs that depend on
  11731. an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
  11732. math functions. It may, however, yield faster code for programs
  11733. that do not require the guarantees of these specifications.
  11734. .Sp
  11735. The default is \fB\-fno\-finite\-math\-only\fR.
  11736. .IP "\fB\-fno\-signed\-zeros\fR" 4
  11737. .IX Item "-fno-signed-zeros"
  11738. Allow optimizations for floating-point arithmetic that ignore the
  11739. signedness of zero. \s-1IEEE\s0 arithmetic specifies the behavior of
  11740. distinct +0.0 and \-0.0 values, which then prohibits simplification
  11741. of expressions such as x+0.0 or 0.0*x (even with \fB\-ffinite\-math\-only\fR).
  11742. This option implies that the sign of a zero result isn't significant.
  11743. .Sp
  11744. The default is \fB\-fsigned\-zeros\fR.
  11745. .IP "\fB\-fno\-trapping\-math\fR" 4
  11746. .IX Item "-fno-trapping-math"
  11747. Compile code assuming that floating-point operations cannot generate
  11748. user-visible traps. These traps include division by zero, overflow,
  11749. underflow, inexact result and invalid operation. This option requires
  11750. that \fB\-fno\-signaling\-nans\fR be in effect. Setting this option may
  11751. allow faster code if one relies on \*(L"non-stop\*(R" \s-1IEEE\s0 arithmetic, for example.
  11752. .Sp
  11753. This option should never be turned on by any \fB\-O\fR option since
  11754. it can result in incorrect output for programs that depend on
  11755. an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
  11756. math functions.
  11757. .Sp
  11758. The default is \fB\-ftrapping\-math\fR.
  11759. .IP "\fB\-frounding\-math\fR" 4
  11760. .IX Item "-frounding-math"
  11761. Disable transformations and optimizations that assume default floating-point
  11762. rounding behavior. This is round-to-zero for all floating point
  11763. to integer conversions, and round-to-nearest for all other arithmetic
  11764. truncations. This option should be specified for programs that change
  11765. the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
  11766. non-default rounding mode. This option disables constant folding of
  11767. floating-point expressions at compile time (which may be affected by
  11768. rounding mode) and arithmetic transformations that are unsafe in the
  11769. presence of sign-dependent rounding modes.
  11770. .Sp
  11771. The default is \fB\-fno\-rounding\-math\fR.
  11772. .Sp
  11773. This option is experimental and does not currently guarantee to
  11774. disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
  11775. Future versions of \s-1GCC\s0 may provide finer control of this setting
  11776. using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma. This command-line option
  11777. will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
  11778. .IP "\fB\-fsignaling\-nans\fR" 4
  11779. .IX Item "-fsignaling-nans"
  11780. Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
  11781. traps during floating-point operations. Setting this option disables
  11782. optimizations that may change the number of exceptions visible with
  11783. signaling NaNs. This option implies \fB\-ftrapping\-math\fR.
  11784. .Sp
  11785. This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
  11786. be defined.
  11787. .Sp
  11788. The default is \fB\-fno\-signaling\-nans\fR.
  11789. .Sp
  11790. This option is experimental and does not currently guarantee to
  11791. disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
  11792. .IP "\fB\-fno\-fp\-int\-builtin\-inexact\fR" 4
  11793. .IX Item "-fno-fp-int-builtin-inexact"
  11794. Do not allow the built-in functions \f(CW\*(C`ceil\*(C'\fR, \f(CW\*(C`floor\*(C'\fR,
  11795. \&\f(CW\*(C`round\*(C'\fR and \f(CW\*(C`trunc\*(C'\fR, and their \f(CW\*(C`float\*(C'\fR and \f(CW\*(C`long
  11796. double\*(C'\fR variants, to generate code that raises the \*(L"inexact\*(R"
  11797. floating-point exception for noninteger arguments. \s-1ISO C99\s0 and C11
  11798. allow these functions to raise the \*(L"inexact\*(R" exception, but \s-1ISO/IEC
  11799. TS 18661\-1:2014,\s0 the C bindings to \s-1IEEE 754\-2008,\s0 as integrated into
  11800. \&\s-1ISO C2X,\s0 does not allow these functions to do so.
  11801. .Sp
  11802. The default is \fB\-ffp\-int\-builtin\-inexact\fR, allowing the
  11803. exception to be raised, unless C2X or a later C standard is selected.
  11804. This option does nothing unless \fB\-ftrapping\-math\fR is in effect.
  11805. .Sp
  11806. Even if \fB\-fno\-fp\-int\-builtin\-inexact\fR is used, if the functions
  11807. generate a call to a library function then the \*(L"inexact\*(R" exception
  11808. may be raised if the library implementation does not follow \s-1TS 18661.\s0
  11809. .IP "\fB\-fsingle\-precision\-constant\fR" 4
  11810. .IX Item "-fsingle-precision-constant"
  11811. Treat floating-point constants as single precision instead of
  11812. implicitly converting them to double-precision constants.
  11813. .IP "\fB\-fcx\-limited\-range\fR" 4
  11814. .IX Item "-fcx-limited-range"
  11815. When enabled, this option states that a range reduction step is not
  11816. needed when performing complex division. Also, there is no checking
  11817. whether the result of a complex multiplication or division is \f(CW\*(C`NaN
  11818. + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case. The
  11819. default is \fB\-fno\-cx\-limited\-range\fR, but is enabled by
  11820. \&\fB\-ffast\-math\fR.
  11821. .Sp
  11822. This option controls the default setting of the \s-1ISO C99\s0
  11823. \&\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma. Nevertheless, the option applies to
  11824. all languages.
  11825. .IP "\fB\-fcx\-fortran\-rules\fR" 4
  11826. .IX Item "-fcx-fortran-rules"
  11827. Complex multiplication and division follow Fortran rules. Range
  11828. reduction is done as part of complex division, but there is no checking
  11829. whether the result of a complex multiplication or division is \f(CW\*(C`NaN
  11830. + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.
  11831. .Sp
  11832. The default is \fB\-fno\-cx\-fortran\-rules\fR.
  11833. .PP
  11834. The following options control optimizations that may improve
  11835. performance, but are not enabled by any \fB\-O\fR options. This
  11836. section includes experimental options that may produce broken code.
  11837. .IP "\fB\-fbranch\-probabilities\fR" 4
  11838. .IX Item "-fbranch-probabilities"
  11839. After running a program compiled with \fB\-fprofile\-arcs\fR,
  11840. you can compile it a second time using
  11841. \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
  11842. the number of times each branch was taken. When a program
  11843. compiled with \fB\-fprofile\-arcs\fR exits, it saves arc execution
  11844. counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
  11845. file. The information in this data file is very dependent on the
  11846. structure of the generated code, so you must use the same source code
  11847. and the same optimization options for both compilations.
  11848. .Sp
  11849. With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
  11850. \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
  11851. These can be used to improve optimization. Currently, they are only
  11852. used in one place: in \fIreorg.c\fR, instead of guessing which path a
  11853. branch is most likely to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
  11854. exactly determine which path is taken more often.
  11855. .Sp
  11856. Enabled by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  11857. .IP "\fB\-fprofile\-values\fR" 4
  11858. .IX Item "-fprofile-values"
  11859. If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
  11860. data about values of expressions in the program is gathered.
  11861. .Sp
  11862. With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
  11863. from profiling values of expressions for usage in optimizations.
  11864. .Sp
  11865. Enabled by \fB\-fprofile\-generate\fR, \fB\-fprofile\-use\fR, and
  11866. \&\fB\-fauto\-profile\fR.
  11867. .IP "\fB\-fprofile\-reorder\-functions\fR" 4
  11868. .IX Item "-fprofile-reorder-functions"
  11869. Function reordering based on profile instrumentation collects
  11870. first time of execution of a function and orders these functions
  11871. in ascending order.
  11872. .Sp
  11873. Enabled with \fB\-fprofile\-use\fR.
  11874. .IP "\fB\-fvpt\fR" 4
  11875. .IX Item "-fvpt"
  11876. If combined with \fB\-fprofile\-arcs\fR, this option instructs the compiler
  11877. to add code to gather information about values of expressions.
  11878. .Sp
  11879. With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
  11880. and actually performs the optimizations based on them.
  11881. Currently the optimizations include specialization of division operations
  11882. using the knowledge about the value of the denominator.
  11883. .Sp
  11884. Enabled with \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  11885. .IP "\fB\-frename\-registers\fR" 4
  11886. .IX Item "-frename-registers"
  11887. Attempt to avoid false dependencies in scheduled code by making use
  11888. of registers left over after register allocation. This optimization
  11889. most benefits processors with lots of registers. Depending on the
  11890. debug information format adopted by the target, however, it can
  11891. make debugging impossible, since variables no longer stay in
  11892. a \*(L"home register\*(R".
  11893. .Sp
  11894. Enabled by default with \fB\-funroll\-loops\fR.
  11895. .IP "\fB\-fschedule\-fusion\fR" 4
  11896. .IX Item "-fschedule-fusion"
  11897. Performs a target dependent pass over the instruction stream to schedule
  11898. instructions of same type together because target machine can execute them
  11899. more efficiently if they are adjacent to each other in the instruction flow.
  11900. .Sp
  11901. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  11902. .IP "\fB\-ftracer\fR" 4
  11903. .IX Item "-ftracer"
  11904. Perform tail duplication to enlarge superblock size. This transformation
  11905. simplifies the control flow of the function allowing other optimizations to do
  11906. a better job.
  11907. .Sp
  11908. Enabled by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  11909. .IP "\fB\-funroll\-loops\fR" 4
  11910. .IX Item "-funroll-loops"
  11911. Unroll loops whose number of iterations can be determined at compile time or
  11912. upon entry to the loop. \fB\-funroll\-loops\fR implies
  11913. \&\fB\-frerun\-cse\-after\-loop\fR, \fB\-fweb\fR and \fB\-frename\-registers\fR.
  11914. It also turns on complete loop peeling (i.e. complete removal of loops with
  11915. a small constant number of iterations). This option makes code larger, and may
  11916. or may not make it run faster.
  11917. .Sp
  11918. Enabled by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  11919. .IP "\fB\-funroll\-all\-loops\fR" 4
  11920. .IX Item "-funroll-all-loops"
  11921. Unroll all loops, even if their number of iterations is uncertain when
  11922. the loop is entered. This usually makes programs run more slowly.
  11923. \&\fB\-funroll\-all\-loops\fR implies the same options as
  11924. \&\fB\-funroll\-loops\fR.
  11925. .IP "\fB\-fpeel\-loops\fR" 4
  11926. .IX Item "-fpeel-loops"
  11927. Peels loops for which there is enough information that they do not
  11928. roll much (from profile feedback or static analysis). It also turns on
  11929. complete loop peeling (i.e. complete removal of loops with small constant
  11930. number of iterations).
  11931. .Sp
  11932. Enabled by \fB\-O3\fR, \fB\-fprofile\-use\fR, and \fB\-fauto\-profile\fR.
  11933. .IP "\fB\-fmove\-loop\-invariants\fR" 4
  11934. .IX Item "-fmove-loop-invariants"
  11935. Enables the loop invariant motion pass in the \s-1RTL\s0 loop optimizer. Enabled
  11936. at level \fB\-O1\fR and higher, except for \fB\-Og\fR.
  11937. .IP "\fB\-fsplit\-loops\fR" 4
  11938. .IX Item "-fsplit-loops"
  11939. Split a loop into two if it contains a condition that's always true
  11940. for one side of the iteration space and false for the other.
  11941. .Sp
  11942. Enabled by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  11943. .IP "\fB\-funswitch\-loops\fR" 4
  11944. .IX Item "-funswitch-loops"
  11945. Move branches with loop invariant conditions out of the loop, with duplicates
  11946. of the loop on both branches (modified according to result of the condition).
  11947. .Sp
  11948. Enabled by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  11949. .IP "\fB\-fversion\-loops\-for\-strides\fR" 4
  11950. .IX Item "-fversion-loops-for-strides"
  11951. If a loop iterates over an array with a variable stride, create another
  11952. version of the loop that assumes the stride is always one. For example:
  11953. .Sp
  11954. .Vb 2
  11955. \& for (int i = 0; i < n; ++i)
  11956. \& x[i * stride] = ...;
  11957. .Ve
  11958. .Sp
  11959. becomes:
  11960. .Sp
  11961. .Vb 6
  11962. \& if (stride == 1)
  11963. \& for (int i = 0; i < n; ++i)
  11964. \& x[i] = ...;
  11965. \& else
  11966. \& for (int i = 0; i < n; ++i)
  11967. \& x[i * stride] = ...;
  11968. .Ve
  11969. .Sp
  11970. This is particularly useful for assumed-shape arrays in Fortran where
  11971. (for example) it allows better vectorization assuming contiguous accesses.
  11972. This flag is enabled by default at \fB\-O3\fR.
  11973. It is also enabled by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  11974. .IP "\fB\-ffunction\-sections\fR" 4
  11975. .IX Item "-ffunction-sections"
  11976. .PD 0
  11977. .IP "\fB\-fdata\-sections\fR" 4
  11978. .IX Item "-fdata-sections"
  11979. .PD
  11980. Place each function or data item into its own section in the output
  11981. file if the target supports arbitrary sections. The name of the
  11982. function or the name of the data item determines the section's name
  11983. in the output file.
  11984. .Sp
  11985. Use these options on systems where the linker can perform optimizations to
  11986. improve locality of reference in the instruction space. Most systems using the
  11987. \&\s-1ELF\s0 object format have linkers with such optimizations. On \s-1AIX,\s0 the linker
  11988. rearranges sections (CSECTs) based on the call graph. The performance impact
  11989. varies.
  11990. .Sp
  11991. Together with a linker garbage collection (linker \fB\-\-gc\-sections\fR
  11992. option) these options may lead to smaller statically-linked executables (after
  11993. stripping).
  11994. .Sp
  11995. On \s-1ELF/DWARF\s0 systems these options do not degenerate the quality of the debug
  11996. information. There could be issues with other object files/debug info formats.
  11997. .Sp
  11998. Only use these options when there are significant benefits from doing so. When
  11999. you specify these options, the assembler and linker create larger object and
  12000. executable files and are also slower. These options affect code generation.
  12001. They prevent optimizations by the compiler and assembler using relative
  12002. locations inside a translation unit since the locations are unknown until
  12003. link time. An example of such an optimization is relaxing calls to short call
  12004. instructions.
  12005. .IP "\fB\-fstdarg\-opt\fR" 4
  12006. .IX Item "-fstdarg-opt"
  12007. Optimize the prologue of variadic argument functions with respect to usage of
  12008. those arguments.
  12009. .IP "\fB\-fsection\-anchors\fR" 4
  12010. .IX Item "-fsection-anchors"
  12011. Try to reduce the number of symbolic address calculations by using
  12012. shared \*(L"anchor\*(R" symbols to address nearby objects. This transformation
  12013. can help to reduce the number of \s-1GOT\s0 entries and \s-1GOT\s0 accesses on some
  12014. targets.
  12015. .Sp
  12016. For example, the implementation of the following function \f(CW\*(C`foo\*(C'\fR:
  12017. .Sp
  12018. .Vb 2
  12019. \& static int a, b, c;
  12020. \& int foo (void) { return a + b + c; }
  12021. .Ve
  12022. .Sp
  12023. usually calculates the addresses of all three variables, but if you
  12024. compile it with \fB\-fsection\-anchors\fR, it accesses the variables
  12025. from a common anchor point instead. The effect is similar to the
  12026. following pseudocode (which isn't valid C):
  12027. .Sp
  12028. .Vb 5
  12029. \& int foo (void)
  12030. \& {
  12031. \& register int *xr = &x;
  12032. \& return xr[&a \- &x] + xr[&b \- &x] + xr[&c \- &x];
  12033. \& }
  12034. .Ve
  12035. .Sp
  12036. Not all targets support this option.
  12037. .IP "\fB\-fzero\-call\-used\-regs=\fR\fIchoice\fR" 4
  12038. .IX Item "-fzero-call-used-regs=choice"
  12039. Zero call-used registers at function return to increase program
  12040. security by either mitigating Return-Oriented Programming (\s-1ROP\s0)
  12041. attacks or preventing information leakage through registers.
  12042. .Sp
  12043. The possible values of \fIchoice\fR are the same as for the
  12044. \&\f(CW\*(C`zero_call_used_regs\*(C'\fR attribute.
  12045. The default is \fBskip\fR.
  12046. .Sp
  12047. You can control this behavior for a specific function by using the function
  12048. attribute \f(CW\*(C`zero_call_used_regs\*(C'\fR.
  12049. .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
  12050. .IX Item "--param name=value"
  12051. In some places, \s-1GCC\s0 uses various constants to control the amount of
  12052. optimization that is done. For example, \s-1GCC\s0 does not inline functions
  12053. that contain more than a certain number of instructions. You can
  12054. control some of these constants on the command line using the
  12055. \&\fB\-\-param\fR option.
  12056. .Sp
  12057. The names of specific parameters, and the meaning of the values, are
  12058. tied to the internals of the compiler, and are subject to change
  12059. without notice in future releases.
  12060. .Sp
  12061. In order to get minimal, maximal and default value of a parameter,
  12062. one can use \fB\-\-help=param \-Q\fR options.
  12063. .Sp
  12064. In each case, the \fIvalue\fR is an integer. The following choices
  12065. of \fIname\fR are recognized for all targets:
  12066. .RS 4
  12067. .IP "\fBpredictable-branch-outcome\fR" 4
  12068. .IX Item "predictable-branch-outcome"
  12069. When branch is predicted to be taken with probability lower than this threshold
  12070. (in percent), then it is considered well predictable.
  12071. .IP "\fBmax-rtl-if-conversion-insns\fR" 4
  12072. .IX Item "max-rtl-if-conversion-insns"
  12073. \&\s-1RTL\s0 if-conversion tries to remove conditional branches around a block and
  12074. replace them with conditionally executed instructions. This parameter
  12075. gives the maximum number of instructions in a block which should be
  12076. considered for if-conversion. The compiler will
  12077. also use other heuristics to decide whether if-conversion is likely to be
  12078. profitable.
  12079. .IP "\fBmax-rtl-if-conversion-predictable-cost\fR" 4
  12080. .IX Item "max-rtl-if-conversion-predictable-cost"
  12081. \&\s-1RTL\s0 if-conversion will try to remove conditional branches around a block
  12082. and replace them with conditionally executed instructions. These parameters
  12083. give the maximum permissible cost for the sequence that would be generated
  12084. by if-conversion depending on whether the branch is statically determined
  12085. to be predictable or not. The units for this parameter are the same as
  12086. those for the \s-1GCC\s0 internal seq_cost metric. The compiler will try to
  12087. provide a reasonable default for this parameter using the \s-1BRANCH_COST\s0
  12088. target macro.
  12089. .IP "\fBmax-crossjump-edges\fR" 4
  12090. .IX Item "max-crossjump-edges"
  12091. The maximum number of incoming edges to consider for cross-jumping.
  12092. The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
  12093. the number of edges incoming to each block. Increasing values mean
  12094. more aggressive optimization, making the compilation time increase with
  12095. probably small improvement in executable size.
  12096. .IP "\fBmin-crossjump-insns\fR" 4
  12097. .IX Item "min-crossjump-insns"
  12098. The minimum number of instructions that must be matched at the end
  12099. of two blocks before cross-jumping is performed on them. This
  12100. value is ignored in the case where all instructions in the block being
  12101. cross-jumped from are matched.
  12102. .IP "\fBmax-grow-copy-bb-insns\fR" 4
  12103. .IX Item "max-grow-copy-bb-insns"
  12104. The maximum code size expansion factor when copying basic blocks
  12105. instead of jumping. The expansion is relative to a jump instruction.
  12106. .IP "\fBmax-goto-duplication-insns\fR" 4
  12107. .IX Item "max-goto-duplication-insns"
  12108. The maximum number of instructions to duplicate to a block that jumps
  12109. to a computed goto. To avoid O(N^2) behavior in a number of
  12110. passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
  12111. and unfactors them as late as possible. Only computed jumps at the
  12112. end of a basic blocks with no more than max-goto-duplication-insns are
  12113. unfactored.
  12114. .IP "\fBmax-delay-slot-insn-search\fR" 4
  12115. .IX Item "max-delay-slot-insn-search"
  12116. The maximum number of instructions to consider when looking for an
  12117. instruction to fill a delay slot. If more than this arbitrary number of
  12118. instructions are searched, the time savings from filling the delay slot
  12119. are minimal, so stop searching. Increasing values mean more
  12120. aggressive optimization, making the compilation time increase with probably
  12121. small improvement in execution time.
  12122. .IP "\fBmax-delay-slot-live-search\fR" 4
  12123. .IX Item "max-delay-slot-live-search"
  12124. When trying to fill delay slots, the maximum number of instructions to
  12125. consider when searching for a block with valid live register
  12126. information. Increasing this arbitrarily chosen value means more
  12127. aggressive optimization, increasing the compilation time. This parameter
  12128. should be removed when the delay slot code is rewritten to maintain the
  12129. control-flow graph.
  12130. .IP "\fBmax-gcse-memory\fR" 4
  12131. .IX Item "max-gcse-memory"
  12132. The approximate maximum amount of memory in \f(CW\*(C`kB\*(C'\fR that can be allocated in
  12133. order to perform the global common subexpression elimination
  12134. optimization. If more memory than specified is required, the
  12135. optimization is not done.
  12136. .IP "\fBmax-gcse-insertion-ratio\fR" 4
  12137. .IX Item "max-gcse-insertion-ratio"
  12138. If the ratio of expression insertions to deletions is larger than this value
  12139. for any expression, then \s-1RTL PRE\s0 inserts or removes the expression and thus
  12140. leaves partially redundant computations in the instruction stream.
  12141. .IP "\fBmax-pending-list-length\fR" 4
  12142. .IX Item "max-pending-list-length"
  12143. The maximum number of pending dependencies scheduling allows
  12144. before flushing the current state and starting over. Large functions
  12145. with few branches or calls can create excessively large lists which
  12146. needlessly consume memory and resources.
  12147. .IP "\fBmax-modulo-backtrack-attempts\fR" 4
  12148. .IX Item "max-modulo-backtrack-attempts"
  12149. The maximum number of backtrack attempts the scheduler should make
  12150. when modulo scheduling a loop. Larger values can exponentially increase
  12151. compilation time.
  12152. .IP "\fBmax-inline-insns-single\fR" 4
  12153. .IX Item "max-inline-insns-single"
  12154. Several parameters control the tree inliner used in \s-1GCC.\s0 This number sets the
  12155. maximum number of instructions (counted in \s-1GCC\s0's internal representation) in a
  12156. single function that the tree inliner considers for inlining. This only
  12157. affects functions declared inline and methods implemented in a class
  12158. declaration (\*(C+).
  12159. .IP "\fBmax-inline-insns-auto\fR" 4
  12160. .IX Item "max-inline-insns-auto"
  12161. When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
  12162. a lot of functions that would otherwise not be considered for inlining
  12163. by the compiler are investigated. To those functions, a different
  12164. (more restrictive) limit compared to functions declared inline can
  12165. be applied (\fB\-\-param max-inline-insns-auto\fR).
  12166. .IP "\fBmax-inline-insns-small\fR" 4
  12167. .IX Item "max-inline-insns-small"
  12168. This is bound applied to calls which are considered relevant with
  12169. \&\fB\-finline\-small\-functions\fR.
  12170. .IP "\fBmax-inline-insns-size\fR" 4
  12171. .IX Item "max-inline-insns-size"
  12172. This is bound applied to calls which are optimized for size. Small growth
  12173. may be desirable to anticipate optimization oppurtunities exposed by inlining.
  12174. .IP "\fBuninlined-function-insns\fR" 4
  12175. .IX Item "uninlined-function-insns"
  12176. Number of instructions accounted by inliner for function overhead such as
  12177. function prologue and epilogue.
  12178. .IP "\fBuninlined-function-time\fR" 4
  12179. .IX Item "uninlined-function-time"
  12180. Extra time accounted by inliner for function overhead such as time needed to
  12181. execute function prologue and epilogue
  12182. .IP "\fBinline-heuristics-hint-percent\fR" 4
  12183. .IX Item "inline-heuristics-hint-percent"
  12184. The scale (in percents) applied to \fBinline-insns-single\fR,
  12185. \&\fBinline\-insns\-single\-O2\fR, \fBinline-insns-auto\fR
  12186. when inline heuristics hints that inlining is
  12187. very profitable (will enable later optimizations).
  12188. .IP "\fBuninlined-thunk-insns\fR" 4
  12189. .IX Item "uninlined-thunk-insns"
  12190. .PD 0
  12191. .IP "\fBuninlined-thunk-time\fR" 4
  12192. .IX Item "uninlined-thunk-time"
  12193. .PD
  12194. Same as \fB\-\-param uninlined-function-insns\fR and
  12195. \&\fB\-\-param uninlined-function-time\fR but applied to function thunks
  12196. .IP "\fBinline-min-speedup\fR" 4
  12197. .IX Item "inline-min-speedup"
  12198. When estimated performance improvement of caller + callee runtime exceeds this
  12199. threshold (in percent), the function can be inlined regardless of the limit on
  12200. \&\fB\-\-param max-inline-insns-single\fR and \fB\-\-param
  12201. max-inline-insns-auto\fR.
  12202. .IP "\fBlarge-function-insns\fR" 4
  12203. .IX Item "large-function-insns"
  12204. The limit specifying really large functions. For functions larger than this
  12205. limit after inlining, inlining is constrained by
  12206. \&\fB\-\-param large-function-growth\fR. This parameter is useful primarily
  12207. to avoid extreme compilation time caused by non-linear algorithms used by the
  12208. back end.
  12209. .IP "\fBlarge-function-growth\fR" 4
  12210. .IX Item "large-function-growth"
  12211. Specifies maximal growth of large function caused by inlining in percents.
  12212. For example, parameter value 100 limits large function growth to 2.0 times
  12213. the original size.
  12214. .IP "\fBlarge-unit-insns\fR" 4
  12215. .IX Item "large-unit-insns"
  12216. The limit specifying large translation unit. Growth caused by inlining of
  12217. units larger than this limit is limited by \fB\-\-param inline-unit-growth\fR.
  12218. For small units this might be too tight.
  12219. For example, consider a unit consisting of function A
  12220. that is inline and B that just calls A three times. If B is small relative to
  12221. A, the growth of unit is 300\e% and yet such inlining is very sane. For very
  12222. large units consisting of small inlineable functions, however, the overall unit
  12223. growth limit is needed to avoid exponential explosion of code size. Thus for
  12224. smaller units, the size is increased to \fB\-\-param large-unit-insns\fR
  12225. before applying \fB\-\-param inline-unit-growth\fR.
  12226. .IP "\fBlazy-modules\fR" 4
  12227. .IX Item "lazy-modules"
  12228. Maximum number of concurrently open \*(C+ module files when lazy loading.
  12229. .IP "\fBinline-unit-growth\fR" 4
  12230. .IX Item "inline-unit-growth"
  12231. Specifies maximal overall growth of the compilation unit caused by inlining.
  12232. For example, parameter value 20 limits unit growth to 1.2 times the original
  12233. size. Cold functions (either marked cold via an attribute or by profile
  12234. feedback) are not accounted into the unit size.
  12235. .IP "\fBipa-cp-unit-growth\fR" 4
  12236. .IX Item "ipa-cp-unit-growth"
  12237. Specifies maximal overall growth of the compilation unit caused by
  12238. interprocedural constant propagation. For example, parameter value 10 limits
  12239. unit growth to 1.1 times the original size.
  12240. .IP "\fBipa-cp-large-unit-insns\fR" 4
  12241. .IX Item "ipa-cp-large-unit-insns"
  12242. The size of translation unit that IPA-CP pass considers large.
  12243. .IP "\fBlarge-stack-frame\fR" 4
  12244. .IX Item "large-stack-frame"
  12245. The limit specifying large stack frames. While inlining the algorithm is trying
  12246. to not grow past this limit too much.
  12247. .IP "\fBlarge-stack-frame-growth\fR" 4
  12248. .IX Item "large-stack-frame-growth"
  12249. Specifies maximal growth of large stack frames caused by inlining in percents.
  12250. For example, parameter value 1000 limits large stack frame growth to 11 times
  12251. the original size.
  12252. .IP "\fBmax-inline-insns-recursive\fR" 4
  12253. .IX Item "max-inline-insns-recursive"
  12254. .PD 0
  12255. .IP "\fBmax-inline-insns-recursive-auto\fR" 4
  12256. .IX Item "max-inline-insns-recursive-auto"
  12257. .PD
  12258. Specifies the maximum number of instructions an out-of-line copy of a
  12259. self-recursive inline
  12260. function can grow into by performing recursive inlining.
  12261. .Sp
  12262. \&\fB\-\-param max-inline-insns-recursive\fR applies to functions
  12263. declared inline.
  12264. For functions not declared inline, recursive inlining
  12265. happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
  12266. enabled; \fB\-\-param max-inline-insns-recursive-auto\fR applies instead.
  12267. .IP "\fBmax-inline-recursive-depth\fR" 4
  12268. .IX Item "max-inline-recursive-depth"
  12269. .PD 0
  12270. .IP "\fBmax-inline-recursive-depth-auto\fR" 4
  12271. .IX Item "max-inline-recursive-depth-auto"
  12272. .PD
  12273. Specifies the maximum recursion depth used for recursive inlining.
  12274. .Sp
  12275. \&\fB\-\-param max-inline-recursive-depth\fR applies to functions
  12276. declared inline. For functions not declared inline, recursive inlining
  12277. happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
  12278. enabled; \fB\-\-param max-inline-recursive-depth-auto\fR applies instead.
  12279. .IP "\fBmin-inline-recursive-probability\fR" 4
  12280. .IX Item "min-inline-recursive-probability"
  12281. Recursive inlining is profitable only for function having deep recursion
  12282. in average and can hurt for function having little recursion depth by
  12283. increasing the prologue size or complexity of function body to other
  12284. optimizers.
  12285. .Sp
  12286. When profile feedback is available (see \fB\-fprofile\-generate\fR) the actual
  12287. recursion depth can be guessed from the probability that function recurses
  12288. via a given call expression. This parameter limits inlining only to call
  12289. expressions whose probability exceeds the given threshold (in percents).
  12290. .IP "\fBearly-inlining-insns\fR" 4
  12291. .IX Item "early-inlining-insns"
  12292. Specify growth that the early inliner can make. In effect it increases
  12293. the amount of inlining for code having a large abstraction penalty.
  12294. .IP "\fBmax-early-inliner-iterations\fR" 4
  12295. .IX Item "max-early-inliner-iterations"
  12296. Limit of iterations of the early inliner. This basically bounds
  12297. the number of nested indirect calls the early inliner can resolve.
  12298. Deeper chains are still handled by late inlining.
  12299. .IP "\fBcomdat-sharing-probability\fR" 4
  12300. .IX Item "comdat-sharing-probability"
  12301. Probability (in percent) that \*(C+ inline function with comdat visibility
  12302. are shared across multiple compilation units.
  12303. .IP "\fBmodref-max-bases\fR" 4
  12304. .IX Item "modref-max-bases"
  12305. .PD 0
  12306. .IP "\fBmodref-max-refs\fR" 4
  12307. .IX Item "modref-max-refs"
  12308. .IP "\fBmodref-max-accesses\fR" 4
  12309. .IX Item "modref-max-accesses"
  12310. .PD
  12311. Specifies the maximal number of base pointers, references and accesses stored
  12312. for a single function by mod/ref analysis.
  12313. .IP "\fBmodref-max-tests\fR" 4
  12314. .IX Item "modref-max-tests"
  12315. Specifies the maxmal number of tests alias oracle can perform to disambiguate
  12316. memory locations using the mod/ref information. This parameter ought to be
  12317. bigger than \fB\-\-param modref-max-bases\fR and \fB\-\-param
  12318. modref-max-refs\fR.
  12319. .IP "\fBmodref-max-depth\fR" 4
  12320. .IX Item "modref-max-depth"
  12321. Specifies the maximum depth of \s-1DFS\s0 walk used by modref escape analysis.
  12322. Setting to 0 disables the analysis completely.
  12323. .IP "\fBmodref-max-escape-points\fR" 4
  12324. .IX Item "modref-max-escape-points"
  12325. Specifies the maximum number of escape points tracked by modref per SSA-name.
  12326. .IP "\fBprofile-func-internal-id\fR" 4
  12327. .IX Item "profile-func-internal-id"
  12328. A parameter to control whether to use function internal id in profile
  12329. database lookup. If the value is 0, the compiler uses an id that
  12330. is based on function assembler name and filename, which makes old profile
  12331. data more tolerant to source changes such as function reordering etc.
  12332. .IP "\fBmin-vect-loop-bound\fR" 4
  12333. .IX Item "min-vect-loop-bound"
  12334. The minimum number of iterations under which loops are not vectorized
  12335. when \fB\-ftree\-vectorize\fR is used. The number of iterations after
  12336. vectorization needs to be greater than the value specified by this option
  12337. to allow vectorization.
  12338. .IP "\fBgcse-cost-distance-ratio\fR" 4
  12339. .IX Item "gcse-cost-distance-ratio"
  12340. Scaling factor in calculation of maximum distance an expression
  12341. can be moved by \s-1GCSE\s0 optimizations. This is currently supported only in the
  12342. code hoisting pass. The bigger the ratio, the more aggressive code hoisting
  12343. is with simple expressions, i.e., the expressions that have cost
  12344. less than \fBgcse-unrestricted-cost\fR. Specifying 0 disables
  12345. hoisting of simple expressions.
  12346. .IP "\fBgcse-unrestricted-cost\fR" 4
  12347. .IX Item "gcse-unrestricted-cost"
  12348. Cost, roughly measured as the cost of a single typical machine
  12349. instruction, at which \s-1GCSE\s0 optimizations do not constrain
  12350. the distance an expression can travel. This is currently
  12351. supported only in the code hoisting pass. The lesser the cost,
  12352. the more aggressive code hoisting is. Specifying 0
  12353. allows all expressions to travel unrestricted distances.
  12354. .IP "\fBmax-hoist-depth\fR" 4
  12355. .IX Item "max-hoist-depth"
  12356. The depth of search in the dominator tree for expressions to hoist.
  12357. This is used to avoid quadratic behavior in hoisting algorithm.
  12358. The value of 0 does not limit on the search, but may slow down compilation
  12359. of huge functions.
  12360. .IP "\fBmax-tail-merge-comparisons\fR" 4
  12361. .IX Item "max-tail-merge-comparisons"
  12362. The maximum amount of similar bbs to compare a bb with. This is used to
  12363. avoid quadratic behavior in tree tail merging.
  12364. .IP "\fBmax-tail-merge-iterations\fR" 4
  12365. .IX Item "max-tail-merge-iterations"
  12366. The maximum amount of iterations of the pass over the function. This is used to
  12367. limit compilation time in tree tail merging.
  12368. .IP "\fBstore-merging-allow-unaligned\fR" 4
  12369. .IX Item "store-merging-allow-unaligned"
  12370. Allow the store merging pass to introduce unaligned stores if it is legal to
  12371. do so.
  12372. .IP "\fBmax-stores-to-merge\fR" 4
  12373. .IX Item "max-stores-to-merge"
  12374. The maximum number of stores to attempt to merge into wider stores in the store
  12375. merging pass.
  12376. .IP "\fBmax-store-chains-to-track\fR" 4
  12377. .IX Item "max-store-chains-to-track"
  12378. The maximum number of store chains to track at the same time in the attempt
  12379. to merge them into wider stores in the store merging pass.
  12380. .IP "\fBmax-stores-to-track\fR" 4
  12381. .IX Item "max-stores-to-track"
  12382. The maximum number of stores to track at the same time in the attemt to
  12383. to merge them into wider stores in the store merging pass.
  12384. .IP "\fBmax-unrolled-insns\fR" 4
  12385. .IX Item "max-unrolled-insns"
  12386. The maximum number of instructions that a loop may have to be unrolled.
  12387. If a loop is unrolled, this parameter also determines how many times
  12388. the loop code is unrolled.
  12389. .IP "\fBmax-average-unrolled-insns\fR" 4
  12390. .IX Item "max-average-unrolled-insns"
  12391. The maximum number of instructions biased by probabilities of their execution
  12392. that a loop may have to be unrolled. If a loop is unrolled,
  12393. this parameter also determines how many times the loop code is unrolled.
  12394. .IP "\fBmax-unroll-times\fR" 4
  12395. .IX Item "max-unroll-times"
  12396. The maximum number of unrollings of a single loop.
  12397. .IP "\fBmax-peeled-insns\fR" 4
  12398. .IX Item "max-peeled-insns"
  12399. The maximum number of instructions that a loop may have to be peeled.
  12400. If a loop is peeled, this parameter also determines how many times
  12401. the loop code is peeled.
  12402. .IP "\fBmax-peel-times\fR" 4
  12403. .IX Item "max-peel-times"
  12404. The maximum number of peelings of a single loop.
  12405. .IP "\fBmax-peel-branches\fR" 4
  12406. .IX Item "max-peel-branches"
  12407. The maximum number of branches on the hot path through the peeled sequence.
  12408. .IP "\fBmax-completely-peeled-insns\fR" 4
  12409. .IX Item "max-completely-peeled-insns"
  12410. The maximum number of insns of a completely peeled loop.
  12411. .IP "\fBmax-completely-peel-times\fR" 4
  12412. .IX Item "max-completely-peel-times"
  12413. The maximum number of iterations of a loop to be suitable for complete peeling.
  12414. .IP "\fBmax-completely-peel-loop-nest-depth\fR" 4
  12415. .IX Item "max-completely-peel-loop-nest-depth"
  12416. The maximum depth of a loop nest suitable for complete peeling.
  12417. .IP "\fBmax-unswitch-insns\fR" 4
  12418. .IX Item "max-unswitch-insns"
  12419. The maximum number of insns of an unswitched loop.
  12420. .IP "\fBmax-unswitch-level\fR" 4
  12421. .IX Item "max-unswitch-level"
  12422. The maximum number of branches unswitched in a single loop.
  12423. .IP "\fBlim-expensive\fR" 4
  12424. .IX Item "lim-expensive"
  12425. The minimum cost of an expensive expression in the loop invariant motion.
  12426. .IP "\fBmin-loop-cond-split-prob\fR" 4
  12427. .IX Item "min-loop-cond-split-prob"
  12428. When \s-1FDO\s0 profile information is available, \fBmin-loop-cond-split-prob\fR
  12429. specifies minimum threshold for probability of semi-invariant condition
  12430. statement to trigger loop split.
  12431. .IP "\fBiv-consider-all-candidates-bound\fR" 4
  12432. .IX Item "iv-consider-all-candidates-bound"
  12433. Bound on number of candidates for induction variables, below which
  12434. all candidates are considered for each use in induction variable
  12435. optimizations. If there are more candidates than this,
  12436. only the most relevant ones are considered to avoid quadratic time complexity.
  12437. .IP "\fBiv-max-considered-uses\fR" 4
  12438. .IX Item "iv-max-considered-uses"
  12439. The induction variable optimizations give up on loops that contain more
  12440. induction variable uses.
  12441. .IP "\fBiv-always-prune-cand-set-bound\fR" 4
  12442. .IX Item "iv-always-prune-cand-set-bound"
  12443. If the number of candidates in the set is smaller than this value,
  12444. always try to remove unnecessary ivs from the set
  12445. when adding a new one.
  12446. .IP "\fBavg-loop-niter\fR" 4
  12447. .IX Item "avg-loop-niter"
  12448. Average number of iterations of a loop.
  12449. .IP "\fBdse-max-object-size\fR" 4
  12450. .IX Item "dse-max-object-size"
  12451. Maximum size (in bytes) of objects tracked bytewise by dead store elimination.
  12452. Larger values may result in larger compilation times.
  12453. .IP "\fBdse-max-alias-queries-per-store\fR" 4
  12454. .IX Item "dse-max-alias-queries-per-store"
  12455. Maximum number of queries into the alias oracle per store.
  12456. Larger values result in larger compilation times and may result in more
  12457. removed dead stores.
  12458. .IP "\fBscev-max-expr-size\fR" 4
  12459. .IX Item "scev-max-expr-size"
  12460. Bound on size of expressions used in the scalar evolutions analyzer.
  12461. Large expressions slow the analyzer.
  12462. .IP "\fBscev-max-expr-complexity\fR" 4
  12463. .IX Item "scev-max-expr-complexity"
  12464. Bound on the complexity of the expressions in the scalar evolutions analyzer.
  12465. Complex expressions slow the analyzer.
  12466. .IP "\fBmax-tree-if-conversion-phi-args\fR" 4
  12467. .IX Item "max-tree-if-conversion-phi-args"
  12468. Maximum number of arguments in a \s-1PHI\s0 supported by \s-1TREE\s0 if conversion
  12469. unless the loop is marked with simd pragma.
  12470. .IP "\fBvect-max-version-for-alignment-checks\fR" 4
  12471. .IX Item "vect-max-version-for-alignment-checks"
  12472. The maximum number of run-time checks that can be performed when
  12473. doing loop versioning for alignment in the vectorizer.
  12474. .IP "\fBvect-max-version-for-alias-checks\fR" 4
  12475. .IX Item "vect-max-version-for-alias-checks"
  12476. The maximum number of run-time checks that can be performed when
  12477. doing loop versioning for alias in the vectorizer.
  12478. .IP "\fBvect-max-peeling-for-alignment\fR" 4
  12479. .IX Item "vect-max-peeling-for-alignment"
  12480. The maximum number of loop peels to enhance access alignment
  12481. for vectorizer. Value \-1 means no limit.
  12482. .IP "\fBmax-iterations-to-track\fR" 4
  12483. .IX Item "max-iterations-to-track"
  12484. The maximum number of iterations of a loop the brute-force algorithm
  12485. for analysis of the number of iterations of the loop tries to evaluate.
  12486. .IP "\fBhot-bb-count-fraction\fR" 4
  12487. .IX Item "hot-bb-count-fraction"
  12488. The denominator n of fraction 1/n of the maximal execution count of a
  12489. basic block in the entire program that a basic block needs to at least
  12490. have in order to be considered hot. The default is 10000, which means
  12491. that a basic block is considered hot if its execution count is greater
  12492. than 1/10000 of the maximal execution count. 0 means that it is never
  12493. considered hot. Used in non-LTO mode.
  12494. .IP "\fBhot-bb-count-ws-permille\fR" 4
  12495. .IX Item "hot-bb-count-ws-permille"
  12496. The number of most executed permilles, ranging from 0 to 1000, of the
  12497. profiled execution of the entire program to which the execution count
  12498. of a basic block must be part of in order to be considered hot. The
  12499. default is 990, which means that a basic block is considered hot if
  12500. its execution count contributes to the upper 990 permilles, or 99.0%,
  12501. of the profiled execution of the entire program. 0 means that it is
  12502. never considered hot. Used in \s-1LTO\s0 mode.
  12503. .IP "\fBhot-bb-frequency-fraction\fR" 4
  12504. .IX Item "hot-bb-frequency-fraction"
  12505. The denominator n of fraction 1/n of the execution frequency of the
  12506. entry block of a function that a basic block of this function needs
  12507. to at least have in order to be considered hot. The default is 1000,
  12508. which means that a basic block is considered hot in a function if it
  12509. is executed more frequently than 1/1000 of the frequency of the entry
  12510. block of the function. 0 means that it is never considered hot.
  12511. .IP "\fBunlikely-bb-count-fraction\fR" 4
  12512. .IX Item "unlikely-bb-count-fraction"
  12513. The denominator n of fraction 1/n of the number of profiled runs of
  12514. the entire program below which the execution count of a basic block
  12515. must be in order for the basic block to be considered unlikely executed.
  12516. The default is 20, which means that a basic block is considered unlikely
  12517. executed if it is executed in fewer than 1/20, or 5%, of the runs of
  12518. the program. 0 means that it is always considered unlikely executed.
  12519. .IP "\fBmax-predicted-iterations\fR" 4
  12520. .IX Item "max-predicted-iterations"
  12521. The maximum number of loop iterations we predict statically. This is useful
  12522. in cases where a function contains a single loop with known bound and
  12523. another loop with unknown bound.
  12524. The known number of iterations is predicted correctly, while
  12525. the unknown number of iterations average to roughly 10. This means that the
  12526. loop without bounds appears artificially cold relative to the other one.
  12527. .IP "\fBbuiltin-expect-probability\fR" 4
  12528. .IX Item "builtin-expect-probability"
  12529. Control the probability of the expression having the specified value. This
  12530. parameter takes a percentage (i.e. 0 ... 100) as input.
  12531. .IP "\fBbuiltin-string-cmp-inline-length\fR" 4
  12532. .IX Item "builtin-string-cmp-inline-length"
  12533. The maximum length of a constant string for a builtin string cmp call
  12534. eligible for inlining.
  12535. .IP "\fBalign-threshold\fR" 4
  12536. .IX Item "align-threshold"
  12537. Select fraction of the maximal frequency of executions of a basic block in
  12538. a function to align the basic block.
  12539. .IP "\fBalign-loop-iterations\fR" 4
  12540. .IX Item "align-loop-iterations"
  12541. A loop expected to iterate at least the selected number of iterations is
  12542. aligned.
  12543. .IP "\fBtracer-dynamic-coverage\fR" 4
  12544. .IX Item "tracer-dynamic-coverage"
  12545. .PD 0
  12546. .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
  12547. .IX Item "tracer-dynamic-coverage-feedback"
  12548. .PD
  12549. This value is used to limit superblock formation once the given percentage of
  12550. executed instructions is covered. This limits unnecessary code size
  12551. expansion.
  12552. .Sp
  12553. The \fBtracer-dynamic-coverage-feedback\fR parameter
  12554. is used only when profile
  12555. feedback is available. The real profiles (as opposed to statically estimated
  12556. ones) are much less balanced allowing the threshold to be larger value.
  12557. .IP "\fBtracer-max-code-growth\fR" 4
  12558. .IX Item "tracer-max-code-growth"
  12559. Stop tail duplication once code growth has reached given percentage. This is
  12560. a rather artificial limit, as most of the duplicates are eliminated later in
  12561. cross jumping, so it may be set to much higher values than is the desired code
  12562. growth.
  12563. .IP "\fBtracer-min-branch-ratio\fR" 4
  12564. .IX Item "tracer-min-branch-ratio"
  12565. Stop reverse growth when the reverse probability of best edge is less than this
  12566. threshold (in percent).
  12567. .IP "\fBtracer-min-branch-probability\fR" 4
  12568. .IX Item "tracer-min-branch-probability"
  12569. .PD 0
  12570. .IP "\fBtracer-min-branch-probability-feedback\fR" 4
  12571. .IX Item "tracer-min-branch-probability-feedback"
  12572. .PD
  12573. Stop forward growth if the best edge has probability lower than this
  12574. threshold.
  12575. .Sp
  12576. Similarly to \fBtracer-dynamic-coverage\fR two parameters are
  12577. provided. \fBtracer-min-branch-probability-feedback\fR is used for
  12578. compilation with profile feedback and \fBtracer-min-branch-probability\fR
  12579. compilation without. The value for compilation with profile feedback
  12580. needs to be more conservative (higher) in order to make tracer
  12581. effective.
  12582. .IP "\fBstack-clash-protection-guard-size\fR" 4
  12583. .IX Item "stack-clash-protection-guard-size"
  12584. Specify the size of the operating system provided stack guard as
  12585. 2 raised to \fInum\fR bytes. Higher values may reduce the
  12586. number of explicit probes, but a value larger than the operating system
  12587. provided guard will leave code vulnerable to stack clash style attacks.
  12588. .IP "\fBstack-clash-protection-probe-interval\fR" 4
  12589. .IX Item "stack-clash-protection-probe-interval"
  12590. Stack clash protection involves probing stack space as it is allocated. This
  12591. param controls the maximum distance between probes into the stack as 2 raised
  12592. to \fInum\fR bytes. Higher values may reduce the number of explicit probes, but a value
  12593. larger than the operating system provided guard will leave code vulnerable to
  12594. stack clash style attacks.
  12595. .IP "\fBmax-cse-path-length\fR" 4
  12596. .IX Item "max-cse-path-length"
  12597. The maximum number of basic blocks on path that \s-1CSE\s0 considers.
  12598. .IP "\fBmax-cse-insns\fR" 4
  12599. .IX Item "max-cse-insns"
  12600. The maximum number of instructions \s-1CSE\s0 processes before flushing.
  12601. .IP "\fBggc-min-expand\fR" 4
  12602. .IX Item "ggc-min-expand"
  12603. \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation. This
  12604. parameter specifies the minimum percentage by which the garbage
  12605. collector's heap should be allowed to expand between collections.
  12606. Tuning this may improve compilation speed; it has no effect on code
  12607. generation.
  12608. .Sp
  12609. The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
  12610. \&\s-1RAM\s0 >= 1GB. If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\*(R"\s0 is
  12611. the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR. If
  12612. \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
  12613. bound of 30% is used. Setting this parameter and
  12614. \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
  12615. every opportunity. This is extremely slow, but can be useful for
  12616. debugging.
  12617. .IP "\fBggc-min-heapsize\fR" 4
  12618. .IX Item "ggc-min-heapsize"
  12619. Minimum size of the garbage collector's heap before it begins bothering
  12620. to collect garbage. The first collection occurs after the heap expands
  12621. by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR. Again,
  12622. tuning this may improve compilation speed, and has no effect on code
  12623. generation.
  12624. .Sp
  12625. The default is the smaller of \s-1RAM/8, RLIMIT_RSS,\s0 or a limit that
  12626. tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
  12627. with a lower bound of 4096 (four megabytes) and an upper bound of
  12628. 131072 (128 megabytes). If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
  12629. particular platform, the lower bound is used. Setting this parameter
  12630. very large effectively disables garbage collection. Setting this
  12631. parameter and \fBggc-min-expand\fR to zero causes a full collection
  12632. to occur at every opportunity.
  12633. .IP "\fBmax-reload-search-insns\fR" 4
  12634. .IX Item "max-reload-search-insns"
  12635. The maximum number of instruction reload should look backward for equivalent
  12636. register. Increasing values mean more aggressive optimization, making the
  12637. compilation time increase with probably slightly better performance.
  12638. .IP "\fBmax-cselib-memory-locations\fR" 4
  12639. .IX Item "max-cselib-memory-locations"
  12640. The maximum number of memory locations cselib should take into account.
  12641. Increasing values mean more aggressive optimization, making the compilation time
  12642. increase with probably slightly better performance.
  12643. .IP "\fBmax-sched-ready-insns\fR" 4
  12644. .IX Item "max-sched-ready-insns"
  12645. The maximum number of instructions ready to be issued the scheduler should
  12646. consider at any given time during the first scheduling pass. Increasing
  12647. values mean more thorough searches, making the compilation time increase
  12648. with probably little benefit.
  12649. .IP "\fBmax-sched-region-blocks\fR" 4
  12650. .IX Item "max-sched-region-blocks"
  12651. The maximum number of blocks in a region to be considered for
  12652. interblock scheduling.
  12653. .IP "\fBmax-pipeline-region-blocks\fR" 4
  12654. .IX Item "max-pipeline-region-blocks"
  12655. The maximum number of blocks in a region to be considered for
  12656. pipelining in the selective scheduler.
  12657. .IP "\fBmax-sched-region-insns\fR" 4
  12658. .IX Item "max-sched-region-insns"
  12659. The maximum number of insns in a region to be considered for
  12660. interblock scheduling.
  12661. .IP "\fBmax-pipeline-region-insns\fR" 4
  12662. .IX Item "max-pipeline-region-insns"
  12663. The maximum number of insns in a region to be considered for
  12664. pipelining in the selective scheduler.
  12665. .IP "\fBmin-spec-prob\fR" 4
  12666. .IX Item "min-spec-prob"
  12667. The minimum probability (in percents) of reaching a source block
  12668. for interblock speculative scheduling.
  12669. .IP "\fBmax-sched-extend-regions-iters\fR" 4
  12670. .IX Item "max-sched-extend-regions-iters"
  12671. The maximum number of iterations through \s-1CFG\s0 to extend regions.
  12672. A value of 0 disables region extensions.
  12673. .IP "\fBmax-sched-insn-conflict-delay\fR" 4
  12674. .IX Item "max-sched-insn-conflict-delay"
  12675. The maximum conflict delay for an insn to be considered for speculative motion.
  12676. .IP "\fBsched-spec-prob-cutoff\fR" 4
  12677. .IX Item "sched-spec-prob-cutoff"
  12678. The minimal probability of speculation success (in percents), so that
  12679. speculative insns are scheduled.
  12680. .IP "\fBsched-state-edge-prob-cutoff\fR" 4
  12681. .IX Item "sched-state-edge-prob-cutoff"
  12682. The minimum probability an edge must have for the scheduler to save its
  12683. state across it.
  12684. .IP "\fBsched-mem-true-dep-cost\fR" 4
  12685. .IX Item "sched-mem-true-dep-cost"
  12686. Minimal distance (in \s-1CPU\s0 cycles) between store and load targeting same
  12687. memory locations.
  12688. .IP "\fBselsched-max-lookahead\fR" 4
  12689. .IX Item "selsched-max-lookahead"
  12690. The maximum size of the lookahead window of selective scheduling. It is a
  12691. depth of search for available instructions.
  12692. .IP "\fBselsched-max-sched-times\fR" 4
  12693. .IX Item "selsched-max-sched-times"
  12694. The maximum number of times that an instruction is scheduled during
  12695. selective scheduling. This is the limit on the number of iterations
  12696. through which the instruction may be pipelined.
  12697. .IP "\fBselsched-insns-to-rename\fR" 4
  12698. .IX Item "selsched-insns-to-rename"
  12699. The maximum number of best instructions in the ready list that are considered
  12700. for renaming in the selective scheduler.
  12701. .IP "\fBsms-min-sc\fR" 4
  12702. .IX Item "sms-min-sc"
  12703. The minimum value of stage count that swing modulo scheduler
  12704. generates.
  12705. .IP "\fBmax-last-value-rtl\fR" 4
  12706. .IX Item "max-last-value-rtl"
  12707. The maximum size measured as number of RTLs that can be recorded in an expression
  12708. in combiner for a pseudo register as last known value of that register.
  12709. .IP "\fBmax-combine-insns\fR" 4
  12710. .IX Item "max-combine-insns"
  12711. The maximum number of instructions the \s-1RTL\s0 combiner tries to combine.
  12712. .IP "\fBinteger-share-limit\fR" 4
  12713. .IX Item "integer-share-limit"
  12714. Small integer constants can use a shared data structure, reducing the
  12715. compiler's memory usage and increasing its speed. This sets the maximum
  12716. value of a shared integer constant.
  12717. .IP "\fBssp-buffer-size\fR" 4
  12718. .IX Item "ssp-buffer-size"
  12719. The minimum size of buffers (i.e. arrays) that receive stack smashing
  12720. protection when \fB\-fstack\-protection\fR is used.
  12721. .IP "\fBmin-size-for-stack-sharing\fR" 4
  12722. .IX Item "min-size-for-stack-sharing"
  12723. The minimum size of variables taking part in stack slot sharing when not
  12724. optimizing.
  12725. .IP "\fBmax-jump-thread-duplication-stmts\fR" 4
  12726. .IX Item "max-jump-thread-duplication-stmts"
  12727. Maximum number of statements allowed in a block that needs to be
  12728. duplicated when threading jumps.
  12729. .IP "\fBmax-fields-for-field-sensitive\fR" 4
  12730. .IX Item "max-fields-for-field-sensitive"
  12731. Maximum number of fields in a structure treated in
  12732. a field sensitive manner during pointer analysis.
  12733. .IP "\fBprefetch-latency\fR" 4
  12734. .IX Item "prefetch-latency"
  12735. Estimate on average number of instructions that are executed before
  12736. prefetch finishes. The distance prefetched ahead is proportional
  12737. to this constant. Increasing this number may also lead to less
  12738. streams being prefetched (see \fBsimultaneous-prefetches\fR).
  12739. .IP "\fBsimultaneous-prefetches\fR" 4
  12740. .IX Item "simultaneous-prefetches"
  12741. Maximum number of prefetches that can run at the same time.
  12742. .IP "\fBl1\-cache\-line\-size\fR" 4
  12743. .IX Item "l1-cache-line-size"
  12744. The size of cache line in L1 data cache, in bytes.
  12745. .IP "\fBl1\-cache\-size\fR" 4
  12746. .IX Item "l1-cache-size"
  12747. The size of L1 data cache, in kilobytes.
  12748. .IP "\fBl2\-cache\-size\fR" 4
  12749. .IX Item "l2-cache-size"
  12750. The size of L2 data cache, in kilobytes.
  12751. .IP "\fBprefetch-dynamic-strides\fR" 4
  12752. .IX Item "prefetch-dynamic-strides"
  12753. Whether the loop array prefetch pass should issue software prefetch hints
  12754. for strides that are non-constant. In some cases this may be
  12755. beneficial, though the fact the stride is non-constant may make it
  12756. hard to predict when there is clear benefit to issuing these hints.
  12757. .Sp
  12758. Set to 1 if the prefetch hints should be issued for non-constant
  12759. strides. Set to 0 if prefetch hints should be issued only for strides that
  12760. are known to be constant and below \fBprefetch-minimum-stride\fR.
  12761. .IP "\fBprefetch-minimum-stride\fR" 4
  12762. .IX Item "prefetch-minimum-stride"
  12763. Minimum constant stride, in bytes, to start using prefetch hints for. If
  12764. the stride is less than this threshold, prefetch hints will not be issued.
  12765. .Sp
  12766. This setting is useful for processors that have hardware prefetchers, in
  12767. which case there may be conflicts between the hardware prefetchers and
  12768. the software prefetchers. If the hardware prefetchers have a maximum
  12769. stride they can handle, it should be used here to improve the use of
  12770. software prefetchers.
  12771. .Sp
  12772. A value of \-1 means we don't have a threshold and therefore
  12773. prefetch hints can be issued for any constant stride.
  12774. .Sp
  12775. This setting is only useful for strides that are known and constant.
  12776. .IP "\fBloop-interchange-max-num-stmts\fR" 4
  12777. .IX Item "loop-interchange-max-num-stmts"
  12778. The maximum number of stmts in a loop to be interchanged.
  12779. .IP "\fBloop-interchange-stride-ratio\fR" 4
  12780. .IX Item "loop-interchange-stride-ratio"
  12781. The minimum ratio between stride of two loops for interchange to be profitable.
  12782. .IP "\fBmin-insn-to-prefetch-ratio\fR" 4
  12783. .IX Item "min-insn-to-prefetch-ratio"
  12784. The minimum ratio between the number of instructions and the
  12785. number of prefetches to enable prefetching in a loop.
  12786. .IP "\fBprefetch-min-insn-to-mem-ratio\fR" 4
  12787. .IX Item "prefetch-min-insn-to-mem-ratio"
  12788. The minimum ratio between the number of instructions and the
  12789. number of memory references to enable prefetching in a loop.
  12790. .IP "\fBuse-canonical-types\fR" 4
  12791. .IX Item "use-canonical-types"
  12792. Whether the compiler should use the \*(L"canonical\*(R" type system.
  12793. Should always be 1, which uses a more efficient internal
  12794. mechanism for comparing types in \*(C+ and Objective\-\*(C+. However, if
  12795. bugs in the canonical type system are causing compilation failures,
  12796. set this value to 0 to disable canonical types.
  12797. .IP "\fBswitch-conversion-max-branch-ratio\fR" 4
  12798. .IX Item "switch-conversion-max-branch-ratio"
  12799. Switch initialization conversion refuses to create arrays that are
  12800. bigger than \fBswitch-conversion-max-branch-ratio\fR times the number of
  12801. branches in the switch.
  12802. .IP "\fBmax-partial-antic-length\fR" 4
  12803. .IX Item "max-partial-antic-length"
  12804. Maximum length of the partial antic set computed during the tree
  12805. partial redundancy elimination optimization (\fB\-ftree\-pre\fR) when
  12806. optimizing at \fB\-O3\fR and above. For some sorts of source code
  12807. the enhanced partial redundancy elimination optimization can run away,
  12808. consuming all of the memory available on the host machine. This
  12809. parameter sets a limit on the length of the sets that are computed,
  12810. which prevents the runaway behavior. Setting a value of 0 for
  12811. this parameter allows an unlimited set length.
  12812. .IP "\fBrpo-vn-max-loop-depth\fR" 4
  12813. .IX Item "rpo-vn-max-loop-depth"
  12814. Maximum loop depth that is value-numbered optimistically.
  12815. When the limit hits the innermost
  12816. \&\fIrpo-vn-max-loop-depth\fR loops and the outermost loop in the
  12817. loop nest are value-numbered optimistically and the remaining ones not.
  12818. .IP "\fBsccvn-max-alias-queries-per-access\fR" 4
  12819. .IX Item "sccvn-max-alias-queries-per-access"
  12820. Maximum number of alias-oracle queries we perform when looking for
  12821. redundancies for loads and stores. If this limit is hit the search
  12822. is aborted and the load or store is not considered redundant. The
  12823. number of queries is algorithmically limited to the number of
  12824. stores on all paths from the load to the function entry.
  12825. .IP "\fBira-max-loops-num\fR" 4
  12826. .IX Item "ira-max-loops-num"
  12827. \&\s-1IRA\s0 uses regional register allocation by default. If a function
  12828. contains more loops than the number given by this parameter, only at most
  12829. the given number of the most frequently-executed loops form regions
  12830. for regional register allocation.
  12831. .IP "\fBira-max-conflict-table-size\fR" 4
  12832. .IX Item "ira-max-conflict-table-size"
  12833. Although \s-1IRA\s0 uses a sophisticated algorithm to compress the conflict
  12834. table, the table can still require excessive amounts of memory for
  12835. huge functions. If the conflict table for a function could be more
  12836. than the size in \s-1MB\s0 given by this parameter, the register allocator
  12837. instead uses a faster, simpler, and lower-quality
  12838. algorithm that does not require building a pseudo-register conflict table.
  12839. .IP "\fBira-loop-reserved-regs\fR" 4
  12840. .IX Item "ira-loop-reserved-regs"
  12841. \&\s-1IRA\s0 can be used to evaluate more accurate register pressure in loops
  12842. for decisions to move loop invariants (see \fB\-O3\fR). The number
  12843. of available registers reserved for some other purposes is given
  12844. by this parameter. Default of the parameter
  12845. is the best found from numerous experiments.
  12846. .IP "\fBlra-inheritance-ebb-probability-cutoff\fR" 4
  12847. .IX Item "lra-inheritance-ebb-probability-cutoff"
  12848. \&\s-1LRA\s0 tries to reuse values reloaded in registers in subsequent insns.
  12849. This optimization is called inheritance. \s-1EBB\s0 is used as a region to
  12850. do this optimization. The parameter defines a minimal fall-through
  12851. edge probability in percentage used to add \s-1BB\s0 to inheritance \s-1EBB\s0 in
  12852. \&\s-1LRA.\s0 The default value was chosen
  12853. from numerous runs of \s-1SPEC2000\s0 on x86\-64.
  12854. .IP "\fBloop-invariant-max-bbs-in-loop\fR" 4
  12855. .IX Item "loop-invariant-max-bbs-in-loop"
  12856. Loop invariant motion can be very expensive, both in compilation time and
  12857. in amount of needed compile-time memory, with very large loops. Loops
  12858. with more basic blocks than this parameter won't have loop invariant
  12859. motion optimization performed on them.
  12860. .IP "\fBloop-max-datarefs-for-datadeps\fR" 4
  12861. .IX Item "loop-max-datarefs-for-datadeps"
  12862. Building data dependencies is expensive for very large loops. This
  12863. parameter limits the number of data references in loops that are
  12864. considered for data dependence analysis. These large loops are no
  12865. handled by the optimizations using loop data dependencies.
  12866. .IP "\fBmax-vartrack-size\fR" 4
  12867. .IX Item "max-vartrack-size"
  12868. Sets a maximum number of hash table slots to use during variable
  12869. tracking dataflow analysis of any function. If this limit is exceeded
  12870. with variable tracking at assignments enabled, analysis for that
  12871. function is retried without it, after removing all debug insns from
  12872. the function. If the limit is exceeded even without debug insns, var
  12873. tracking analysis is completely disabled for the function. Setting
  12874. the parameter to zero makes it unlimited.
  12875. .IP "\fBmax-vartrack-expr-depth\fR" 4
  12876. .IX Item "max-vartrack-expr-depth"
  12877. Sets a maximum number of recursion levels when attempting to map
  12878. variable names or debug temporaries to value expressions. This trades
  12879. compilation time for more complete debug information. If this is set too
  12880. low, value expressions that are available and could be represented in
  12881. debug information may end up not being used; setting this higher may
  12882. enable the compiler to find more complex debug expressions, but compile
  12883. time and memory use may grow.
  12884. .IP "\fBmax-debug-marker-count\fR" 4
  12885. .IX Item "max-debug-marker-count"
  12886. Sets a threshold on the number of debug markers (e.g. begin stmt
  12887. markers) to avoid complexity explosion at inlining or expanding to \s-1RTL.\s0
  12888. If a function has more such gimple stmts than the set limit, such stmts
  12889. will be dropped from the inlined copy of a function, and from its \s-1RTL\s0
  12890. expansion.
  12891. .IP "\fBmin-nondebug-insn-uid\fR" 4
  12892. .IX Item "min-nondebug-insn-uid"
  12893. Use uids starting at this parameter for nondebug insns. The range below
  12894. the parameter is reserved exclusively for debug insns created by
  12895. \&\fB\-fvar\-tracking\-assignments\fR, but debug insns may get
  12896. (non-overlapping) uids above it if the reserved range is exhausted.
  12897. .IP "\fBipa-sra-ptr-growth-factor\fR" 4
  12898. .IX Item "ipa-sra-ptr-growth-factor"
  12899. IPA-SRA replaces a pointer to an aggregate with one or more new
  12900. parameters only when their cumulative size is less or equal to
  12901. \&\fBipa-sra-ptr-growth-factor\fR times the size of the original
  12902. pointer parameter.
  12903. .IP "\fBipa-sra-max-replacements\fR" 4
  12904. .IX Item "ipa-sra-max-replacements"
  12905. Maximum pieces of an aggregate that IPA-SRA tracks. As a
  12906. consequence, it is also the maximum number of replacements of a formal
  12907. parameter.
  12908. .IP "\fBsra-max-scalarization-size-Ospeed\fR" 4
  12909. .IX Item "sra-max-scalarization-size-Ospeed"
  12910. .PD 0
  12911. .IP "\fBsra-max-scalarization-size-Osize\fR" 4
  12912. .IX Item "sra-max-scalarization-size-Osize"
  12913. .PD
  12914. The two Scalar Reduction of Aggregates passes (\s-1SRA\s0 and IPA-SRA) aim to
  12915. replace scalar parts of aggregates with uses of independent scalar
  12916. variables. These parameters control the maximum size, in storage units,
  12917. of aggregate which is considered for replacement when compiling for
  12918. speed
  12919. (\fBsra-max-scalarization-size-Ospeed\fR) or size
  12920. (\fBsra-max-scalarization-size-Osize\fR) respectively.
  12921. .IP "\fBsra-max-propagations\fR" 4
  12922. .IX Item "sra-max-propagations"
  12923. The maximum number of artificial accesses that Scalar Replacement of
  12924. Aggregates (\s-1SRA\s0) will track, per one local variable, in order to
  12925. facilitate copy propagation.
  12926. .IP "\fBtm-max-aggregate-size\fR" 4
  12927. .IX Item "tm-max-aggregate-size"
  12928. When making copies of thread-local variables in a transaction, this
  12929. parameter specifies the size in bytes after which variables are
  12930. saved with the logging functions as opposed to save/restore code
  12931. sequence pairs. This option only applies when using
  12932. \&\fB\-fgnu\-tm\fR.
  12933. .IP "\fBgraphite-max-nb-scop-params\fR" 4
  12934. .IX Item "graphite-max-nb-scop-params"
  12935. To avoid exponential effects in the Graphite loop transforms, the
  12936. number of parameters in a Static Control Part (SCoP) is bounded.
  12937. A value of zero can be used to lift
  12938. the bound. A variable whose value is unknown at compilation time and
  12939. defined outside a SCoP is a parameter of the SCoP.
  12940. .IP "\fBloop-block-tile-size\fR" 4
  12941. .IX Item "loop-block-tile-size"
  12942. Loop blocking or strip mining transforms, enabled with
  12943. \&\fB\-floop\-block\fR or \fB\-floop\-strip\-mine\fR, strip mine each
  12944. loop in the loop nest by a given number of iterations. The strip
  12945. length can be changed using the \fBloop-block-tile-size\fR
  12946. parameter.
  12947. .IP "\fBipa-jump-function-lookups\fR" 4
  12948. .IX Item "ipa-jump-function-lookups"
  12949. Specifies number of statements visited during jump function offset discovery.
  12950. .IP "\fBipa-cp-value-list-size\fR" 4
  12951. .IX Item "ipa-cp-value-list-size"
  12952. IPA-CP attempts to track all possible values and types passed to a function's
  12953. parameter in order to propagate them and perform devirtualization.
  12954. \&\fBipa-cp-value-list-size\fR is the maximum number of values and types it
  12955. stores per one formal parameter of a function.
  12956. .IP "\fBipa-cp-eval-threshold\fR" 4
  12957. .IX Item "ipa-cp-eval-threshold"
  12958. IPA-CP calculates its own score of cloning profitability heuristics
  12959. and performs those cloning opportunities with scores that exceed
  12960. \&\fBipa-cp-eval-threshold\fR.
  12961. .IP "\fBipa-cp-max-recursive-depth\fR" 4
  12962. .IX Item "ipa-cp-max-recursive-depth"
  12963. Maximum depth of recursive cloning for self-recursive function.
  12964. .IP "\fBipa-cp-min-recursive-probability\fR" 4
  12965. .IX Item "ipa-cp-min-recursive-probability"
  12966. Recursive cloning only when the probability of call being executed exceeds
  12967. the parameter.
  12968. .IP "\fBipa-cp-recursion-penalty\fR" 4
  12969. .IX Item "ipa-cp-recursion-penalty"
  12970. Percentage penalty the recursive functions will receive when they
  12971. are evaluated for cloning.
  12972. .IP "\fBipa-cp-single-call-penalty\fR" 4
  12973. .IX Item "ipa-cp-single-call-penalty"
  12974. Percentage penalty functions containing a single call to another
  12975. function will receive when they are evaluated for cloning.
  12976. .IP "\fBipa-max-agg-items\fR" 4
  12977. .IX Item "ipa-max-agg-items"
  12978. IPA-CP is also capable to propagate a number of scalar values passed
  12979. in an aggregate. \fBipa-max-agg-items\fR controls the maximum
  12980. number of such values per one parameter.
  12981. .IP "\fBipa-cp-loop-hint-bonus\fR" 4
  12982. .IX Item "ipa-cp-loop-hint-bonus"
  12983. When IPA-CP determines that a cloning candidate would make the number
  12984. of iterations of a loop known, it adds a bonus of
  12985. \&\fBipa-cp-loop-hint-bonus\fR to the profitability score of
  12986. the candidate.
  12987. .IP "\fBipa-max-loop-predicates\fR" 4
  12988. .IX Item "ipa-max-loop-predicates"
  12989. The maximum number of different predicates \s-1IPA\s0 will use to describe when
  12990. loops in a function have known properties.
  12991. .IP "\fBipa-max-aa-steps\fR" 4
  12992. .IX Item "ipa-max-aa-steps"
  12993. During its analysis of function bodies, IPA-CP employs alias analysis
  12994. in order to track values pointed to by function parameters. In order
  12995. not spend too much time analyzing huge functions, it gives up and
  12996. consider all memory clobbered after examining
  12997. \&\fBipa-max-aa-steps\fR statements modifying memory.
  12998. .IP "\fBipa-max-switch-predicate-bounds\fR" 4
  12999. .IX Item "ipa-max-switch-predicate-bounds"
  13000. Maximal number of boundary endpoints of case ranges of switch statement.
  13001. For switch exceeding this limit, IPA-CP will not construct cloning cost
  13002. predicate, which is used to estimate cloning benefit, for default case
  13003. of the switch statement.
  13004. .IP "\fBipa-max-param-expr-ops\fR" 4
  13005. .IX Item "ipa-max-param-expr-ops"
  13006. IPA-CP will analyze conditional statement that references some function
  13007. parameter to estimate benefit for cloning upon certain constant value.
  13008. But if number of operations in a parameter expression exceeds
  13009. \&\fBipa-max-param-expr-ops\fR, the expression is treated as complicated
  13010. one, and is not handled by \s-1IPA\s0 analysis.
  13011. .IP "\fBlto-partitions\fR" 4
  13012. .IX Item "lto-partitions"
  13013. Specify desired number of partitions produced during \s-1WHOPR\s0 compilation.
  13014. The number of partitions should exceed the number of CPUs used for compilation.
  13015. .IP "\fBlto-min-partition\fR" 4
  13016. .IX Item "lto-min-partition"
  13017. Size of minimal partition for \s-1WHOPR\s0 (in estimated instructions).
  13018. This prevents expenses of splitting very small programs into too many
  13019. partitions.
  13020. .IP "\fBlto-max-partition\fR" 4
  13021. .IX Item "lto-max-partition"
  13022. Size of max partition for \s-1WHOPR\s0 (in estimated instructions).
  13023. to provide an upper bound for individual size of partition.
  13024. Meant to be used only with balanced partitioning.
  13025. .IP "\fBlto-max-streaming-parallelism\fR" 4
  13026. .IX Item "lto-max-streaming-parallelism"
  13027. Maximal number of parallel processes used for \s-1LTO\s0 streaming.
  13028. .IP "\fBcxx-max-namespaces-for-diagnostic-help\fR" 4
  13029. .IX Item "cxx-max-namespaces-for-diagnostic-help"
  13030. The maximum number of namespaces to consult for suggestions when \*(C+
  13031. name lookup fails for an identifier.
  13032. .IP "\fBsink-frequency-threshold\fR" 4
  13033. .IX Item "sink-frequency-threshold"
  13034. The maximum relative execution frequency (in percents) of the target block
  13035. relative to a statement's original block to allow statement sinking of a
  13036. statement. Larger numbers result in more aggressive statement sinking.
  13037. A small positive adjustment is applied for
  13038. statements with memory operands as those are even more profitable so sink.
  13039. .IP "\fBmax-stores-to-sink\fR" 4
  13040. .IX Item "max-stores-to-sink"
  13041. The maximum number of conditional store pairs that can be sunk. Set to 0
  13042. if either vectorization (\fB\-ftree\-vectorize\fR) or if-conversion
  13043. (\fB\-ftree\-loop\-if\-convert\fR) is disabled.
  13044. .IP "\fBcase-values-threshold\fR" 4
  13045. .IX Item "case-values-threshold"
  13046. The smallest number of different values for which it is best to use a
  13047. jump-table instead of a tree of conditional branches. If the value is
  13048. 0, use the default for the machine.
  13049. .IP "\fBjump-table-max-growth-ratio-for-size\fR" 4
  13050. .IX Item "jump-table-max-growth-ratio-for-size"
  13051. The maximum code size growth ratio when expanding
  13052. into a jump table (in percent). The parameter is used when
  13053. optimizing for size.
  13054. .IP "\fBjump-table-max-growth-ratio-for-speed\fR" 4
  13055. .IX Item "jump-table-max-growth-ratio-for-speed"
  13056. The maximum code size growth ratio when expanding
  13057. into a jump table (in percent). The parameter is used when
  13058. optimizing for speed.
  13059. .IP "\fBtree-reassoc-width\fR" 4
  13060. .IX Item "tree-reassoc-width"
  13061. Set the maximum number of instructions executed in parallel in
  13062. reassociated tree. This parameter overrides target dependent
  13063. heuristics used by default if has non zero value.
  13064. .IP "\fBsched-pressure-algorithm\fR" 4
  13065. .IX Item "sched-pressure-algorithm"
  13066. Choose between the two available implementations of
  13067. \&\fB\-fsched\-pressure\fR. Algorithm 1 is the original implementation
  13068. and is the more likely to prevent instructions from being reordered.
  13069. Algorithm 2 was designed to be a compromise between the relatively
  13070. conservative approach taken by algorithm 1 and the rather aggressive
  13071. approach taken by the default scheduler. It relies more heavily on
  13072. having a regular register file and accurate register pressure classes.
  13073. See \fIhaifa\-sched.c\fR in the \s-1GCC\s0 sources for more details.
  13074. .Sp
  13075. The default choice depends on the target.
  13076. .IP "\fBmax-slsr-cand-scan\fR" 4
  13077. .IX Item "max-slsr-cand-scan"
  13078. Set the maximum number of existing candidates that are considered when
  13079. seeking a basis for a new straight-line strength reduction candidate.
  13080. .IP "\fBasan-globals\fR" 4
  13081. .IX Item "asan-globals"
  13082. Enable buffer overflow detection for global objects. This kind
  13083. of protection is enabled by default if you are using
  13084. \&\fB\-fsanitize=address\fR option.
  13085. To disable global objects protection use \fB\-\-param asan\-globals=0\fR.
  13086. .IP "\fBasan-stack\fR" 4
  13087. .IX Item "asan-stack"
  13088. Enable buffer overflow detection for stack objects. This kind of
  13089. protection is enabled by default when using \fB\-fsanitize=address\fR.
  13090. To disable stack protection use \fB\-\-param asan\-stack=0\fR option.
  13091. .IP "\fBasan-instrument-reads\fR" 4
  13092. .IX Item "asan-instrument-reads"
  13093. Enable buffer overflow detection for memory reads. This kind of
  13094. protection is enabled by default when using \fB\-fsanitize=address\fR.
  13095. To disable memory reads protection use
  13096. \&\fB\-\-param asan\-instrument\-reads=0\fR.
  13097. .IP "\fBasan-instrument-writes\fR" 4
  13098. .IX Item "asan-instrument-writes"
  13099. Enable buffer overflow detection for memory writes. This kind of
  13100. protection is enabled by default when using \fB\-fsanitize=address\fR.
  13101. To disable memory writes protection use
  13102. \&\fB\-\-param asan\-instrument\-writes=0\fR option.
  13103. .IP "\fBasan-memintrin\fR" 4
  13104. .IX Item "asan-memintrin"
  13105. Enable detection for built-in functions. This kind of protection
  13106. is enabled by default when using \fB\-fsanitize=address\fR.
  13107. To disable built-in functions protection use
  13108. \&\fB\-\-param asan\-memintrin=0\fR.
  13109. .IP "\fBasan-use-after-return\fR" 4
  13110. .IX Item "asan-use-after-return"
  13111. Enable detection of use-after-return. This kind of protection
  13112. is enabled by default when using the \fB\-fsanitize=address\fR option.
  13113. To disable it use \fB\-\-param asan\-use\-after\-return=0\fR.
  13114. .Sp
  13115. Note: By default the check is disabled at run time. To enable it,
  13116. add \f(CW\*(C`detect_stack_use_after_return=1\*(C'\fR to the environment variable
  13117. \&\fB\s-1ASAN_OPTIONS\s0\fR.
  13118. .IP "\fBasan-instrumentation-with-call-threshold\fR" 4
  13119. .IX Item "asan-instrumentation-with-call-threshold"
  13120. If number of memory accesses in function being instrumented
  13121. is greater or equal to this number, use callbacks instead of inline checks.
  13122. E.g. to disable inline code use
  13123. \&\fB\-\-param asan\-instrumentation\-with\-call\-threshold=0\fR.
  13124. .IP "\fBhwasan-instrument-stack\fR" 4
  13125. .IX Item "hwasan-instrument-stack"
  13126. Enable hwasan instrumentation of statically sized stack-allocated variables.
  13127. This kind of instrumentation is enabled by default when using
  13128. \&\fB\-fsanitize=hwaddress\fR and disabled by default when using
  13129. \&\fB\-fsanitize=kernel\-hwaddress\fR.
  13130. To disable stack instrumentation use
  13131. \&\fB\-\-param hwasan\-instrument\-stack=0\fR, and to enable it use
  13132. \&\fB\-\-param hwasan\-instrument\-stack=1\fR.
  13133. .IP "\fBhwasan-random-frame-tag\fR" 4
  13134. .IX Item "hwasan-random-frame-tag"
  13135. When using stack instrumentation, decide tags for stack variables using a
  13136. deterministic sequence beginning at a random tag for each frame. With this
  13137. parameter unset tags are chosen using the same sequence but beginning from 1.
  13138. This is enabled by default for \fB\-fsanitize=hwaddress\fR and unavailable
  13139. for \fB\-fsanitize=kernel\-hwaddress\fR.
  13140. To disable it use \fB\-\-param hwasan\-random\-frame\-tag=0\fR.
  13141. .IP "\fBhwasan-instrument-allocas\fR" 4
  13142. .IX Item "hwasan-instrument-allocas"
  13143. Enable hwasan instrumentation of dynamically sized stack-allocated variables.
  13144. This kind of instrumentation is enabled by default when using
  13145. \&\fB\-fsanitize=hwaddress\fR and disabled by default when using
  13146. \&\fB\-fsanitize=kernel\-hwaddress\fR.
  13147. To disable instrumentation of such variables use
  13148. \&\fB\-\-param hwasan\-instrument\-allocas=0\fR, and to enable it use
  13149. \&\fB\-\-param hwasan\-instrument\-allocas=1\fR.
  13150. .IP "\fBhwasan-instrument-reads\fR" 4
  13151. .IX Item "hwasan-instrument-reads"
  13152. Enable hwasan checks on memory reads. Instrumentation of reads is enabled by
  13153. default for both \fB\-fsanitize=hwaddress\fR and
  13154. \&\fB\-fsanitize=kernel\-hwaddress\fR.
  13155. To disable checking memory reads use
  13156. \&\fB\-\-param hwasan\-instrument\-reads=0\fR.
  13157. .IP "\fBhwasan-instrument-writes\fR" 4
  13158. .IX Item "hwasan-instrument-writes"
  13159. Enable hwasan checks on memory writes. Instrumentation of writes is enabled by
  13160. default for both \fB\-fsanitize=hwaddress\fR and
  13161. \&\fB\-fsanitize=kernel\-hwaddress\fR.
  13162. To disable checking memory writes use
  13163. \&\fB\-\-param hwasan\-instrument\-writes=0\fR.
  13164. .IP "\fBhwasan-instrument-mem-intrinsics\fR" 4
  13165. .IX Item "hwasan-instrument-mem-intrinsics"
  13166. Enable hwasan instrumentation of builtin functions. Instrumentation of these
  13167. builtin functions is enabled by default for both \fB\-fsanitize=hwaddress\fR
  13168. and \fB\-fsanitize=kernel\-hwaddress\fR.
  13169. To disable instrumentation of builtin functions use
  13170. \&\fB\-\-param hwasan\-instrument\-mem\-intrinsics=0\fR.
  13171. .IP "\fBuse-after-scope-direct-emission-threshold\fR" 4
  13172. .IX Item "use-after-scope-direct-emission-threshold"
  13173. If the size of a local variable in bytes is smaller or equal to this
  13174. number, directly poison (or unpoison) shadow memory instead of using
  13175. run-time callbacks.
  13176. .IP "\fBtsan-distinguish-volatile\fR" 4
  13177. .IX Item "tsan-distinguish-volatile"
  13178. Emit special instrumentation for accesses to volatiles.
  13179. .IP "\fBtsan-instrument-func-entry-exit\fR" 4
  13180. .IX Item "tsan-instrument-func-entry-exit"
  13181. Emit instrumentation calls to _\|\fB_tsan_func_entry()\fR and _\|\fB_tsan_func_exit()\fR.
  13182. .IP "\fBmax-fsm-thread-path-insns\fR" 4
  13183. .IX Item "max-fsm-thread-path-insns"
  13184. Maximum number of instructions to copy when duplicating blocks on a
  13185. finite state automaton jump thread path.
  13186. .IP "\fBmax-fsm-thread-length\fR" 4
  13187. .IX Item "max-fsm-thread-length"
  13188. Maximum number of basic blocks on a finite state automaton jump thread
  13189. path.
  13190. .IP "\fBmax-fsm-thread-paths\fR" 4
  13191. .IX Item "max-fsm-thread-paths"
  13192. Maximum number of new jump thread paths to create for a finite state
  13193. automaton.
  13194. .IP "\fBparloops-chunk-size\fR" 4
  13195. .IX Item "parloops-chunk-size"
  13196. Chunk size of omp schedule for loops parallelized by parloops.
  13197. .IP "\fBparloops-schedule\fR" 4
  13198. .IX Item "parloops-schedule"
  13199. Schedule type of omp schedule for loops parallelized by parloops (static,
  13200. dynamic, guided, auto, runtime).
  13201. .IP "\fBparloops-min-per-thread\fR" 4
  13202. .IX Item "parloops-min-per-thread"
  13203. The minimum number of iterations per thread of an innermost parallelized
  13204. loop for which the parallelized variant is preferred over the single threaded
  13205. one. Note that for a parallelized loop nest the
  13206. minimum number of iterations of the outermost loop per thread is two.
  13207. .IP "\fBmax-ssa-name-query-depth\fR" 4
  13208. .IX Item "max-ssa-name-query-depth"
  13209. Maximum depth of recursion when querying properties of \s-1SSA\s0 names in things
  13210. like fold routines. One level of recursion corresponds to following a
  13211. use-def chain.
  13212. .IP "\fBmax-speculative-devirt-maydefs\fR" 4
  13213. .IX Item "max-speculative-devirt-maydefs"
  13214. The maximum number of may-defs we analyze when looking for a must-def
  13215. specifying the dynamic type of an object that invokes a virtual call
  13216. we may be able to devirtualize speculatively.
  13217. .IP "\fBmax-vrp-switch-assertions\fR" 4
  13218. .IX Item "max-vrp-switch-assertions"
  13219. The maximum number of assertions to add along the default edge of a switch
  13220. statement during \s-1VRP.\s0
  13221. .IP "\fBevrp-mode\fR" 4
  13222. .IX Item "evrp-mode"
  13223. Specifies the mode Early \s-1VRP\s0 should operate in.
  13224. .IP "\fBunroll-jam-min-percent\fR" 4
  13225. .IX Item "unroll-jam-min-percent"
  13226. The minimum percentage of memory references that must be optimized
  13227. away for the unroll-and-jam transformation to be considered profitable.
  13228. .IP "\fBunroll-jam-max-unroll\fR" 4
  13229. .IX Item "unroll-jam-max-unroll"
  13230. The maximum number of times the outer loop should be unrolled by
  13231. the unroll-and-jam transformation.
  13232. .IP "\fBmax-rtl-if-conversion-unpredictable-cost\fR" 4
  13233. .IX Item "max-rtl-if-conversion-unpredictable-cost"
  13234. Maximum permissible cost for the sequence that would be generated
  13235. by the \s-1RTL\s0 if-conversion pass for a branch that is considered unpredictable.
  13236. .IP "\fBmax-variable-expansions-in-unroller\fR" 4
  13237. .IX Item "max-variable-expansions-in-unroller"
  13238. If \fB\-fvariable\-expansion\-in\-unroller\fR is used, the maximum number
  13239. of times that an individual variable will be expanded during loop unrolling.
  13240. .IP "\fBtracer-min-branch-probability-feedback\fR" 4
  13241. .IX Item "tracer-min-branch-probability-feedback"
  13242. Stop forward growth if the probability of best edge is less than
  13243. this threshold (in percent). Used when profile feedback is available.
  13244. .IP "\fBpartial-inlining-entry-probability\fR" 4
  13245. .IX Item "partial-inlining-entry-probability"
  13246. Maximum probability of the entry \s-1BB\s0 of split region
  13247. (in percent relative to entry \s-1BB\s0 of the function)
  13248. to make partial inlining happen.
  13249. .IP "\fBmax-tracked-strlens\fR" 4
  13250. .IX Item "max-tracked-strlens"
  13251. Maximum number of strings for which strlen optimization pass will
  13252. track string lengths.
  13253. .IP "\fBgcse-after-reload-partial-fraction\fR" 4
  13254. .IX Item "gcse-after-reload-partial-fraction"
  13255. The threshold ratio for performing partial redundancy
  13256. elimination after reload.
  13257. .IP "\fBgcse-after-reload-critical-fraction\fR" 4
  13258. .IX Item "gcse-after-reload-critical-fraction"
  13259. The threshold ratio of critical edges execution count that
  13260. permit performing redundancy elimination after reload.
  13261. .IP "\fBmax-loop-header-insns\fR" 4
  13262. .IX Item "max-loop-header-insns"
  13263. The maximum number of insns in loop header duplicated
  13264. by the copy loop headers pass.
  13265. .IP "\fBvect-epilogues-nomask\fR" 4
  13266. .IX Item "vect-epilogues-nomask"
  13267. Enable loop epilogue vectorization using smaller vector size.
  13268. .IP "\fBvect-partial-vector-usage\fR" 4
  13269. .IX Item "vect-partial-vector-usage"
  13270. Controls when the loop vectorizer considers using partial vector loads
  13271. and stores as an alternative to falling back to scalar code. 0 stops
  13272. the vectorizer from ever using partial vector loads and stores. 1 allows
  13273. partial vector loads and stores if vectorization removes the need for the
  13274. code to iterate. 2 allows partial vector loads and stores in all loops.
  13275. The parameter only has an effect on targets that support partial
  13276. vector loads and stores.
  13277. .IP "\fBavoid-fma-max-bits\fR" 4
  13278. .IX Item "avoid-fma-max-bits"
  13279. Maximum number of bits for which we avoid creating FMAs.
  13280. .IP "\fBsms-loop-average-count-threshold\fR" 4
  13281. .IX Item "sms-loop-average-count-threshold"
  13282. A threshold on the average loop count considered by the swing modulo scheduler.
  13283. .IP "\fBsms-dfa-history\fR" 4
  13284. .IX Item "sms-dfa-history"
  13285. The number of cycles the swing modulo scheduler considers when checking
  13286. conflicts using \s-1DFA.\s0
  13287. .IP "\fBmax-inline-insns-recursive-auto\fR" 4
  13288. .IX Item "max-inline-insns-recursive-auto"
  13289. The maximum number of instructions non-inline function
  13290. can grow to via recursive inlining.
  13291. .IP "\fBgraphite-allow-codegen-errors\fR" 4
  13292. .IX Item "graphite-allow-codegen-errors"
  13293. Whether codegen errors should be ICEs when \fB\-fchecking\fR.
  13294. .IP "\fBsms-max-ii-factor\fR" 4
  13295. .IX Item "sms-max-ii-factor"
  13296. A factor for tuning the upper bound that swing modulo scheduler
  13297. uses for scheduling a loop.
  13298. .IP "\fBlra-max-considered-reload-pseudos\fR" 4
  13299. .IX Item "lra-max-considered-reload-pseudos"
  13300. The max number of reload pseudos which are considered during
  13301. spilling a non-reload pseudo.
  13302. .IP "\fBmax-pow-sqrt-depth\fR" 4
  13303. .IX Item "max-pow-sqrt-depth"
  13304. Maximum depth of sqrt chains to use when synthesizing exponentiation
  13305. by a real constant.
  13306. .IP "\fBmax-dse-active-local-stores\fR" 4
  13307. .IX Item "max-dse-active-local-stores"
  13308. Maximum number of active local stores in \s-1RTL\s0 dead store elimination.
  13309. .IP "\fBasan-instrument-allocas\fR" 4
  13310. .IX Item "asan-instrument-allocas"
  13311. Enable asan allocas/VLAs protection.
  13312. .IP "\fBmax-iterations-computation-cost\fR" 4
  13313. .IX Item "max-iterations-computation-cost"
  13314. Bound on the cost of an expression to compute the number of iterations.
  13315. .IP "\fBmax-isl-operations\fR" 4
  13316. .IX Item "max-isl-operations"
  13317. Maximum number of isl operations, 0 means unlimited.
  13318. .IP "\fBgraphite-max-arrays-per-scop\fR" 4
  13319. .IX Item "graphite-max-arrays-per-scop"
  13320. Maximum number of arrays per scop.
  13321. .IP "\fBmax-vartrack-reverse-op-size\fR" 4
  13322. .IX Item "max-vartrack-reverse-op-size"
  13323. Max. size of loc list for which reverse ops should be added.
  13324. .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
  13325. .IX Item "tracer-dynamic-coverage-feedback"
  13326. The percentage of function, weighted by execution frequency,
  13327. that must be covered by trace formation.
  13328. Used when profile feedback is available.
  13329. .IP "\fBmax-inline-recursive-depth-auto\fR" 4
  13330. .IX Item "max-inline-recursive-depth-auto"
  13331. The maximum depth of recursive inlining for non-inline functions.
  13332. .IP "\fBfsm-scale-path-stmts\fR" 4
  13333. .IX Item "fsm-scale-path-stmts"
  13334. Scale factor to apply to the number of statements in a threading path
  13335. when comparing to the number of (scaled) blocks.
  13336. .IP "\fBfsm-maximum-phi-arguments\fR" 4
  13337. .IX Item "fsm-maximum-phi-arguments"
  13338. Maximum number of arguments a \s-1PHI\s0 may have before the \s-1FSM\s0 threader
  13339. will not try to thread through its block.
  13340. .IP "\fBuninit-control-dep-attempts\fR" 4
  13341. .IX Item "uninit-control-dep-attempts"
  13342. Maximum number of nested calls to search for control dependencies
  13343. during uninitialized variable analysis.
  13344. .IP "\fBsra-max-scalarization-size-Osize\fR" 4
  13345. .IX Item "sra-max-scalarization-size-Osize"
  13346. Maximum size, in storage units, of an aggregate
  13347. which should be considered for scalarization when compiling for size.
  13348. .IP "\fBfsm-scale-path-blocks\fR" 4
  13349. .IX Item "fsm-scale-path-blocks"
  13350. Scale factor to apply to the number of blocks in a threading path
  13351. when comparing to the number of (scaled) statements.
  13352. .IP "\fBsched-autopref-queue-depth\fR" 4
  13353. .IX Item "sched-autopref-queue-depth"
  13354. Hardware autoprefetcher scheduler model control flag.
  13355. Number of lookahead cycles the model looks into; at '
  13356. \&' only enable instruction sorting heuristic.
  13357. .IP "\fBloop-versioning-max-inner-insns\fR" 4
  13358. .IX Item "loop-versioning-max-inner-insns"
  13359. The maximum number of instructions that an inner loop can have
  13360. before the loop versioning pass considers it too big to copy.
  13361. .IP "\fBloop-versioning-max-outer-insns\fR" 4
  13362. .IX Item "loop-versioning-max-outer-insns"
  13363. The maximum number of instructions that an outer loop can have
  13364. before the loop versioning pass considers it too big to copy,
  13365. discounting any instructions in inner loops that directly benefit
  13366. from versioning.
  13367. .IP "\fBssa-name-def-chain-limit\fR" 4
  13368. .IX Item "ssa-name-def-chain-limit"
  13369. The maximum number of \s-1SSA_NAME\s0 assignments to follow in determining
  13370. a property of a variable such as its value. This limits the number
  13371. of iterations or recursive calls \s-1GCC\s0 performs when optimizing certain
  13372. statements or when determining their validity prior to issuing
  13373. diagnostics.
  13374. .IP "\fBstore-merging-max-size\fR" 4
  13375. .IX Item "store-merging-max-size"
  13376. Maximum size of a single store merging region in bytes.
  13377. .IP "\fBhash-table-verification-limit\fR" 4
  13378. .IX Item "hash-table-verification-limit"
  13379. The number of elements for which hash table verification is done
  13380. for each searched element.
  13381. .IP "\fBmax-find-base-term-values\fR" 4
  13382. .IX Item "max-find-base-term-values"
  13383. Maximum number of VALUEs handled during a single find_base_term call.
  13384. .IP "\fBanalyzer-max-enodes-per-program-point\fR" 4
  13385. .IX Item "analyzer-max-enodes-per-program-point"
  13386. The maximum number of exploded nodes per program point within
  13387. the analyzer, before terminating analysis of that point.
  13388. .IP "\fBanalyzer-max-constraints\fR" 4
  13389. .IX Item "analyzer-max-constraints"
  13390. The maximum number of constraints per state.
  13391. .IP "\fBanalyzer-min-snodes-for-call-summary\fR" 4
  13392. .IX Item "analyzer-min-snodes-for-call-summary"
  13393. The minimum number of supernodes within a function for the
  13394. analyzer to consider summarizing its effects at call sites.
  13395. .IP "\fBanalyzer-max-enodes-for-full-dump\fR" 4
  13396. .IX Item "analyzer-max-enodes-for-full-dump"
  13397. The maximum depth of exploded nodes that should appear in a dot dump
  13398. before switching to a less verbose format.
  13399. .IP "\fBanalyzer-max-recursion-depth\fR" 4
  13400. .IX Item "analyzer-max-recursion-depth"
  13401. The maximum number of times a callsite can appear in a call stack
  13402. within the analyzer, before terminating analysis of a call that would
  13403. recurse deeper.
  13404. .IP "\fBanalyzer-max-svalue-depth\fR" 4
  13405. .IX Item "analyzer-max-svalue-depth"
  13406. The maximum depth of a symbolic value, before approximating
  13407. the value as unknown.
  13408. .IP "\fBanalyzer-max-infeasible-edges\fR" 4
  13409. .IX Item "analyzer-max-infeasible-edges"
  13410. The maximum number of infeasible edges to reject before declaring
  13411. a diagnostic as infeasible.
  13412. .IP "\fBgimple-fe-computed-hot-bb-threshold\fR" 4
  13413. .IX Item "gimple-fe-computed-hot-bb-threshold"
  13414. The number of executions of a basic block which is considered hot.
  13415. The parameter is used only in \s-1GIMPLE FE.\s0
  13416. .IP "\fBanalyzer-bb-explosion-factor\fR" 4
  13417. .IX Item "analyzer-bb-explosion-factor"
  13418. The maximum number of 'after supernode' exploded nodes within the analyzer
  13419. per supernode, before terminating analysis.
  13420. .IP "\fBranger-logical-depth\fR" 4
  13421. .IX Item "ranger-logical-depth"
  13422. Maximum depth of logical expression evaluation ranger will look through
  13423. when evaluating outgoing edge ranges.
  13424. .IP "\fBopenacc-kernels\fR" 4
  13425. .IX Item "openacc-kernels"
  13426. Specify mode of OpenACC `kernels' constructs handling.
  13427. With \fB\-\-param=openacc\-kernels=decompose\fR, OpenACC `kernels'
  13428. constructs are decomposed into parts, a sequence of compute
  13429. constructs, each then handled individually.
  13430. This is work in progress.
  13431. With \fB\-\-param=openacc\-kernels=parloops\fR, OpenACC `kernels'
  13432. constructs are handled by the \fBparloops\fR pass, en bloc.
  13433. This is the current default.
  13434. .RE
  13435. .RS 4
  13436. .Sp
  13437. The following choices of \fIname\fR are available on AArch64 targets:
  13438. .IP "\fBaarch64\-sve\-compare\-costs\fR" 4
  13439. .IX Item "aarch64-sve-compare-costs"
  13440. When vectorizing for \s-1SVE,\s0 consider using \*(L"unpacked\*(R" vectors for
  13441. smaller elements and use the cost model to pick the cheapest approach.
  13442. Also use the cost model to choose between \s-1SVE\s0 and Advanced \s-1SIMD\s0 vectorization.
  13443. .Sp
  13444. Using unpacked vectors includes storing smaller elements in larger
  13445. containers and accessing elements with extending loads and truncating
  13446. stores.
  13447. .IP "\fBaarch64\-float\-recp\-precision\fR" 4
  13448. .IX Item "aarch64-float-recp-precision"
  13449. The number of Newton iterations for calculating the reciprocal for float type.
  13450. The precision of division is proportional to this param when division
  13451. approximation is enabled. The default value is 1.
  13452. .IP "\fBaarch64\-double\-recp\-precision\fR" 4
  13453. .IX Item "aarch64-double-recp-precision"
  13454. The number of Newton iterations for calculating the reciprocal for double type.
  13455. The precision of division is propotional to this param when division
  13456. approximation is enabled. The default value is 2.
  13457. .IP "\fBaarch64\-autovec\-preference\fR" 4
  13458. .IX Item "aarch64-autovec-preference"
  13459. Force an \s-1ISA\s0 selection strategy for auto-vectorization. Accepts values from
  13460. 0 to 4, inclusive.
  13461. .RS 4
  13462. .IP "\fB0\fR" 4
  13463. .IX Item "0"
  13464. Use the default heuristics.
  13465. .IP "\fB1\fR" 4
  13466. .IX Item "1"
  13467. Use only Advanced \s-1SIMD\s0 for auto-vectorization.
  13468. .IP "\fB2\fR" 4
  13469. .IX Item "2"
  13470. Use only \s-1SVE\s0 for auto-vectorization.
  13471. .IP "\fB3\fR" 4
  13472. .IX Item "3"
  13473. Use both Advanced \s-1SIMD\s0 and \s-1SVE.\s0 Prefer Advanced \s-1SIMD\s0 when the costs are
  13474. deemed equal.
  13475. .IP "\fB4\fR" 4
  13476. .IX Item "4"
  13477. Use both Advanced \s-1SIMD\s0 and \s-1SVE.\s0 Prefer \s-1SVE\s0 when the costs are deemed equal.
  13478. .RE
  13479. .RS 4
  13480. .Sp
  13481. The default value is 0.
  13482. .RE
  13483. .IP "\fBaarch64\-loop\-vect\-issue\-rate\-niters\fR" 4
  13484. .IX Item "aarch64-loop-vect-issue-rate-niters"
  13485. The tuning for some AArch64 CPUs tries to take both latencies and issue
  13486. rates into account when deciding whether a loop should be vectorized
  13487. using \s-1SVE,\s0 vectorized using Advanced \s-1SIMD,\s0 or not vectorized at all.
  13488. If this parameter is set to \fIn\fR, \s-1GCC\s0 will not use this heuristic
  13489. for loops that are known to execute in fewer than \fIn\fR Advanced
  13490. \&\s-1SIMD\s0 iterations.
  13491. .RE
  13492. .RS 4
  13493. .RE
  13494. .SS "Program Instrumentation Options"
  13495. .IX Subsection "Program Instrumentation Options"
  13496. \&\s-1GCC\s0 supports a number of command-line options that control adding
  13497. run-time instrumentation to the code it normally generates.
  13498. For example, one purpose of instrumentation is collect profiling
  13499. statistics for use in finding program hot spots, code coverage
  13500. analysis, or profile-guided optimizations.
  13501. Another class of program instrumentation is adding run-time checking
  13502. to detect programming errors like invalid pointer
  13503. dereferences or out-of-bounds array accesses, as well as deliberately
  13504. hostile attacks such as stack smashing or \*(C+ vtable hijacking.
  13505. There is also a general hook which can be used to implement other
  13506. forms of tracing or function-level instrumentation for debug or
  13507. program analysis purposes.
  13508. .IP "\fB\-p\fR" 4
  13509. .IX Item "-p"
  13510. .PD 0
  13511. .IP "\fB\-pg\fR" 4
  13512. .IX Item "-pg"
  13513. .PD
  13514. Generate extra code to write profile information suitable for the
  13515. analysis program \fBprof\fR (for \fB\-p\fR) or \fBgprof\fR
  13516. (for \fB\-pg\fR). You must use this option when compiling
  13517. the source files you want data about, and you must also use it when
  13518. linking.
  13519. .Sp
  13520. You can use the function attribute \f(CW\*(C`no_instrument_function\*(C'\fR to
  13521. suppress profiling of individual functions when compiling with these options.
  13522. .IP "\fB\-fprofile\-arcs\fR" 4
  13523. .IX Item "-fprofile-arcs"
  13524. Add code so that program flow \fIarcs\fR are instrumented. During
  13525. execution the program records how many times each branch and call is
  13526. executed and how many times it is taken or returns. On targets that support
  13527. constructors with priority support, profiling properly handles constructors,
  13528. destructors and \*(C+ constructors (and destructors) of classes which are used
  13529. as a type of a global variable.
  13530. .Sp
  13531. When the compiled
  13532. program exits it saves this data to a file called
  13533. \&\fI\fIauxname\fI.gcda\fR for each source file. The data may be used for
  13534. profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
  13535. test coverage analysis (\fB\-ftest\-coverage\fR). Each object file's
  13536. \&\fIauxname\fR is generated from the name of the output file, if
  13537. explicitly specified and it is not the final executable, otherwise it is
  13538. the basename of the source file. In both cases any suffix is removed
  13539. (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
  13540. \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
  13541. .IP "\fB\-\-coverage\fR" 4
  13542. .IX Item "--coverage"
  13543. This option is used to compile and link code instrumented for coverage
  13544. analysis. The option is a synonym for \fB\-fprofile\-arcs\fR
  13545. \&\fB\-ftest\-coverage\fR (when compiling) and \fB\-lgcov\fR (when
  13546. linking). See the documentation for those options for more details.
  13547. .RS 4
  13548. .IP "*" 4
  13549. Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
  13550. and code generation options. For test coverage analysis, use the
  13551. additional \fB\-ftest\-coverage\fR option. You do not need to profile
  13552. every source file in a program.
  13553. .IP "*" 4
  13554. Compile the source files additionally with \fB\-fprofile\-abs\-path\fR
  13555. to create absolute path names in the \fI.gcno\fR files. This allows
  13556. \&\fBgcov\fR to find the correct sources in projects where compilations
  13557. occur with different working directories.
  13558. .IP "*" 4
  13559. Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
  13560. (the latter implies the former).
  13561. .IP "*" 4
  13562. Run the program on a representative workload to generate the arc profile
  13563. information. This may be repeated any number of times. You can run
  13564. concurrent instances of your program, and provided that the file system
  13565. supports locking, the data files will be correctly updated. Unless
  13566. a strict \s-1ISO C\s0 dialect option is in effect, \f(CW\*(C`fork\*(C'\fR calls are
  13567. detected and correctly handled without double counting.
  13568. .IP "*" 4
  13569. For profile-directed optimizations, compile the source files again with
  13570. the same optimization and code generation options plus
  13571. \&\fB\-fbranch\-probabilities\fR.
  13572. .IP "*" 4
  13573. For test coverage analysis, use \fBgcov\fR to produce human readable
  13574. information from the \fI.gcno\fR and \fI.gcda\fR files. Refer to the
  13575. \&\fBgcov\fR documentation for further information.
  13576. .RE
  13577. .RS 4
  13578. .Sp
  13579. With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
  13580. creates a program flow graph, then finds a spanning tree for the graph.
  13581. Only arcs that are not on the spanning tree have to be instrumented: the
  13582. compiler adds code to count the number of times that these arcs are
  13583. executed. When an arc is the only exit or only entrance to a block, the
  13584. instrumentation code can be added to the block; otherwise, a new basic
  13585. block must be created to hold the instrumentation code.
  13586. .RE
  13587. .IP "\fB\-ftest\-coverage\fR" 4
  13588. .IX Item "-ftest-coverage"
  13589. Produce a notes file that the \fBgcov\fR code-coverage utility can use to
  13590. show program coverage. Each source file's note file is called
  13591. \&\fI\fIauxname\fI.gcno\fR. Refer to the \fB\-fprofile\-arcs\fR option
  13592. above for a description of \fIauxname\fR and instructions on how to
  13593. generate test coverage data. Coverage data matches the source files
  13594. more closely if you do not optimize.
  13595. .IP "\fB\-fprofile\-abs\-path\fR" 4
  13596. .IX Item "-fprofile-abs-path"
  13597. Automatically convert relative source file names to absolute path names
  13598. in the \fI.gcno\fR files. This allows \fBgcov\fR to find the correct
  13599. sources in projects where compilations occur with different working
  13600. directories.
  13601. .IP "\fB\-fprofile\-dir=\fR\fIpath\fR" 4
  13602. .IX Item "-fprofile-dir=path"
  13603. Set the directory to search for the profile data files in to \fIpath\fR.
  13604. This option affects only the profile data generated by
  13605. \&\fB\-fprofile\-generate\fR, \fB\-ftest\-coverage\fR, \fB\-fprofile\-arcs\fR
  13606. and used by \fB\-fprofile\-use\fR and \fB\-fbranch\-probabilities\fR
  13607. and its related options. Both absolute and relative paths can be used.
  13608. By default, \s-1GCC\s0 uses the current directory as \fIpath\fR, thus the
  13609. profile data file appears in the same directory as the object file.
  13610. In order to prevent the file name clashing, if the object file name is
  13611. not an absolute path, we mangle the absolute path of the
  13612. \&\fI\fIsourcename\fI.gcda\fR file and use it as the file name of a
  13613. \&\fI.gcda\fR file. See similar option \fB\-fprofile\-note\fR.
  13614. .Sp
  13615. When an executable is run in a massive parallel environment, it is recommended
  13616. to save profile to different folders. That can be done with variables
  13617. in \fIpath\fR that are exported during run-time:
  13618. .RS 4
  13619. .IP "\fB\f(CB%p\fB\fR" 4
  13620. .IX Item "%p"
  13621. process \s-1ID.\s0
  13622. .IP "\fB\f(CB%q\fB{\s-1VAR\s0}\fR" 4
  13623. .IX Item "%q{VAR}"
  13624. value of environment variable \fI\s-1VAR\s0\fR
  13625. .RE
  13626. .RS 4
  13627. .RE
  13628. .IP "\fB\-fprofile\-generate\fR" 4
  13629. .IX Item "-fprofile-generate"
  13630. .PD 0
  13631. .IP "\fB\-fprofile\-generate=\fR\fIpath\fR" 4
  13632. .IX Item "-fprofile-generate=path"
  13633. .PD
  13634. Enable options usually used for instrumenting application to produce
  13635. profile useful for later recompilation with profile feedback based
  13636. optimization. You must use \fB\-fprofile\-generate\fR both when
  13637. compiling and when linking your program.
  13638. .Sp
  13639. The following options are enabled:
  13640. \&\fB\-fprofile\-arcs\fR, \fB\-fprofile\-values\fR,
  13641. \&\fB\-finline\-functions\fR, and \fB\-fipa\-bit\-cp\fR.
  13642. .Sp
  13643. If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
  13644. the profile feedback data files. See \fB\-fprofile\-dir\fR.
  13645. .Sp
  13646. To optimize the program based on the collected profile information, use
  13647. \&\fB\-fprofile\-use\fR.
  13648. .IP "\fB\-fprofile\-info\-section\fR" 4
  13649. .IX Item "-fprofile-info-section"
  13650. .PD 0
  13651. .IP "\fB\-fprofile\-info\-section=\fR\fIname\fR" 4
  13652. .IX Item "-fprofile-info-section=name"
  13653. .PD
  13654. Register the profile information in the specified section instead of using a
  13655. constructor/destructor. The section name is \fIname\fR if it is specified,
  13656. otherwise the section name defaults to \f(CW\*(C`.gcov_info\*(C'\fR. A pointer to the
  13657. profile information generated by \fB\-fprofile\-arcs\fR or
  13658. \&\fB\-ftest\-coverage\fR is placed in the specified section for each
  13659. translation unit. This option disables the profile information registration
  13660. through a constructor and it disables the profile information processing
  13661. through a destructor. This option is not intended to be used in hosted
  13662. environments such as GNU/Linux. It targets systems with limited resources
  13663. which do not support constructors and destructors. The linker could collect
  13664. the input sections in a continuous memory block and define start and end
  13665. symbols. The runtime support could dump the profiling information registered
  13666. in this linker set during program termination to a serial line for example. A
  13667. \&\s-1GNU\s0 linker script example which defines a linker output section follows:
  13668. .Sp
  13669. .Vb 6
  13670. \& .gcov_info :
  13671. \& {
  13672. \& PROVIDE (_\|_gcov_info_start = .);
  13673. \& KEEP (*(.gcov_info))
  13674. \& PROVIDE (_\|_gcov_info_end = .);
  13675. \& }
  13676. .Ve
  13677. .IP "\fB\-fprofile\-note=\fR\fIpath\fR" 4
  13678. .IX Item "-fprofile-note=path"
  13679. If \fIpath\fR is specified, \s-1GCC\s0 saves \fI.gcno\fR file into \fIpath\fR
  13680. location. If you combine the option with multiple source files,
  13681. the \fI.gcno\fR file will be overwritten.
  13682. .IP "\fB\-fprofile\-prefix\-path=\fR\fIpath\fR" 4
  13683. .IX Item "-fprofile-prefix-path=path"
  13684. This option can be used in combination with
  13685. \&\fBprofile\-generate=\fR\fIprofile_dir\fR and
  13686. \&\fBprofile\-use=\fR\fIprofile_dir\fR to inform \s-1GCC\s0 where is the base
  13687. directory of built source tree. By default \fIprofile_dir\fR will contain
  13688. files with mangled absolute paths of all object files in the built project.
  13689. This is not desirable when directory used to build the instrumented binary
  13690. differs from the directory used to build the binary optimized with profile
  13691. feedback because the profile data will not be found during the optimized build.
  13692. In such setups \fB\-fprofile\-prefix\-path=\fR\fIpath\fR with \fIpath\fR
  13693. pointing to the base directory of the build can be used to strip the irrelevant
  13694. part of the path and keep all file names relative to the main build directory.
  13695. .IP "\fB\-fprofile\-update=\fR\fImethod\fR" 4
  13696. .IX Item "-fprofile-update=method"
  13697. Alter the update method for an application instrumented for profile
  13698. feedback based optimization. The \fImethod\fR argument should be one of
  13699. \&\fBsingle\fR, \fBatomic\fR or \fBprefer-atomic\fR.
  13700. The first one is useful for single-threaded applications,
  13701. while the second one prevents profile corruption by emitting thread-safe code.
  13702. .Sp
  13703. \&\fBWarning:\fR When an application does not properly join all threads
  13704. (or creates an detached thread), a profile file can be still corrupted.
  13705. .Sp
  13706. Using \fBprefer-atomic\fR would be transformed either to \fBatomic\fR,
  13707. when supported by a target, or to \fBsingle\fR otherwise. The \s-1GCC\s0 driver
  13708. automatically selects \fBprefer-atomic\fR when \fB\-pthread\fR
  13709. is present in the command line.
  13710. .IP "\fB\-fprofile\-filter\-files=\fR\fIregex\fR" 4
  13711. .IX Item "-fprofile-filter-files=regex"
  13712. Instrument only functions from files whose name matches
  13713. any of the regular expressions (separated by semi-colons).
  13714. .Sp
  13715. For example, \fB\-fprofile\-filter\-files=main\e.c;module.*\e.c\fR will instrument
  13716. only \fImain.c\fR and all C files starting with 'module'.
  13717. .IP "\fB\-fprofile\-exclude\-files=\fR\fIregex\fR" 4
  13718. .IX Item "-fprofile-exclude-files=regex"
  13719. Instrument only functions from files whose name does not match
  13720. any of the regular expressions (separated by semi-colons).
  13721. .Sp
  13722. For example, \fB\-fprofile\-exclude\-files=/usr/.*\fR will prevent instrumentation
  13723. of all files that are located in the \fI/usr/\fR folder.
  13724. .IP "\fB\-fprofile\-reproducible=\fR[\fBmultithreaded\fR|\fBparallel-runs\fR|\fBserial\fR]" 4
  13725. .IX Item "-fprofile-reproducible=[multithreaded|parallel-runs|serial]"
  13726. Control level of reproducibility of profile gathered by
  13727. \&\f(CW\*(C`\-fprofile\-generate\*(C'\fR. This makes it possible to rebuild program
  13728. with same outcome which is useful, for example, for distribution
  13729. packages.
  13730. .Sp
  13731. With \fB\-fprofile\-reproducible=serial\fR the profile gathered by
  13732. \&\fB\-fprofile\-generate\fR is reproducible provided the trained program
  13733. behaves the same at each invocation of the train run, it is not
  13734. multi-threaded and profile data streaming is always done in the same
  13735. order. Note that profile streaming happens at the end of program run but
  13736. also before \f(CW\*(C`fork\*(C'\fR function is invoked.
  13737. .Sp
  13738. Note that it is quite common that execution counts of some part of
  13739. programs depends, for example, on length of temporary file names or
  13740. memory space randomization (that may affect hash-table collision rate).
  13741. Such non-reproducible part of programs may be annotated by
  13742. \&\f(CW\*(C`no_instrument_function\*(C'\fR function attribute. \fBgcov-dump\fR with
  13743. \&\fB\-l\fR can be used to dump gathered data and verify that they are
  13744. indeed reproducible.
  13745. .Sp
  13746. With \fB\-fprofile\-reproducible=parallel\-runs\fR collected profile
  13747. stays reproducible regardless the order of streaming of the data into
  13748. gcda files. This setting makes it possible to run multiple instances of
  13749. instrumented program in parallel (such as with \f(CW\*(C`make \-j\*(C'\fR). This
  13750. reduces quality of gathered data, in particular of indirect call
  13751. profiling.
  13752. .IP "\fB\-fsanitize=address\fR" 4
  13753. .IX Item "-fsanitize=address"
  13754. Enable AddressSanitizer, a fast memory error detector.
  13755. Memory access instructions are instrumented to detect
  13756. out-of-bounds and use-after-free bugs.
  13757. The option enables \fB\-fsanitize\-address\-use\-after\-scope\fR.
  13758. See <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizer\fR> for
  13759. more details. The run-time behavior can be influenced using the
  13760. \&\fB\s-1ASAN_OPTIONS\s0\fR environment variable. When set to \f(CW\*(C`help=1\*(C'\fR,
  13761. the available options are shown at startup of the instrumented program. See
  13762. <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizerFlags#run\-time\-flags\fR>
  13763. for a list of supported options.
  13764. The option cannot be combined with \fB\-fsanitize=thread\fR or
  13765. \&\fB\-fsanitize=hwaddress\fR. Note that the only target
  13766. \&\fB\-fsanitize=hwaddress\fR is currently supported on is AArch64.
  13767. .IP "\fB\-fsanitize=kernel\-address\fR" 4
  13768. .IX Item "-fsanitize=kernel-address"
  13769. Enable AddressSanitizer for Linux kernel.
  13770. See <\fBhttps://github.com/google/kasan\fR> for more details.
  13771. .IP "\fB\-fsanitize=hwaddress\fR" 4
  13772. .IX Item "-fsanitize=hwaddress"
  13773. Enable Hardware-assisted AddressSanitizer, which uses a hardware ability to
  13774. ignore the top byte of a pointer to allow the detection of memory errors with
  13775. a low memory overhead.
  13776. Memory access instructions are instrumented to detect out-of-bounds and
  13777. use-after-free bugs.
  13778. The option enables \fB\-fsanitize\-address\-use\-after\-scope\fR.
  13779. See
  13780. <\fBhttps://clang.llvm.org/docs/HardwareAssistedAddressSanitizerDesign.html\fR>
  13781. for more details. The run-time behavior can be influenced using the
  13782. \&\fB\s-1HWASAN_OPTIONS\s0\fR environment variable. When set to \f(CW\*(C`help=1\*(C'\fR,
  13783. the available options are shown at startup of the instrumented program.
  13784. The option cannot be combined with \fB\-fsanitize=thread\fR or
  13785. \&\fB\-fsanitize=address\fR, and is currently only available on AArch64.
  13786. .IP "\fB\-fsanitize=kernel\-hwaddress\fR" 4
  13787. .IX Item "-fsanitize=kernel-hwaddress"
  13788. Enable Hardware-assisted AddressSanitizer for compilation of the Linux kernel.
  13789. Similar to \fB\-fsanitize=kernel\-address\fR but using an alternate
  13790. instrumentation method, and similar to \fB\-fsanitize=hwaddress\fR but with
  13791. instrumentation differences necessary for compiling the Linux kernel.
  13792. These differences are to avoid hwasan library initialization calls and to
  13793. account for the stack pointer having a different value in its top byte.
  13794. .Sp
  13795. \&\fINote:\fR This option has different defaults to the \fB\-fsanitize=hwaddress\fR.
  13796. Instrumenting the stack and alloca calls are not on by default but are still
  13797. possible by specifying the command-line options
  13798. \&\fB\-\-param hwasan\-instrument\-stack=1\fR and
  13799. \&\fB\-\-param hwasan\-instrument\-allocas=1\fR respectively. Using a random frame
  13800. tag is not implemented for kernel instrumentation.
  13801. .IP "\fB\-fsanitize=pointer\-compare\fR" 4
  13802. .IX Item "-fsanitize=pointer-compare"
  13803. Instrument comparison operation (<, <=, >, >=) with pointer operands.
  13804. The option must be combined with either \fB\-fsanitize=kernel\-address\fR or
  13805. \&\fB\-fsanitize=address\fR
  13806. The option cannot be combined with \fB\-fsanitize=thread\fR.
  13807. Note: By default the check is disabled at run time. To enable it,
  13808. add \f(CW\*(C`detect_invalid_pointer_pairs=2\*(C'\fR to the environment variable
  13809. \&\fB\s-1ASAN_OPTIONS\s0\fR. Using \f(CW\*(C`detect_invalid_pointer_pairs=1\*(C'\fR detects
  13810. invalid operation only when both pointers are non-null.
  13811. .IP "\fB\-fsanitize=pointer\-subtract\fR" 4
  13812. .IX Item "-fsanitize=pointer-subtract"
  13813. Instrument subtraction with pointer operands.
  13814. The option must be combined with either \fB\-fsanitize=kernel\-address\fR or
  13815. \&\fB\-fsanitize=address\fR
  13816. The option cannot be combined with \fB\-fsanitize=thread\fR.
  13817. Note: By default the check is disabled at run time. To enable it,
  13818. add \f(CW\*(C`detect_invalid_pointer_pairs=2\*(C'\fR to the environment variable
  13819. \&\fB\s-1ASAN_OPTIONS\s0\fR. Using \f(CW\*(C`detect_invalid_pointer_pairs=1\*(C'\fR detects
  13820. invalid operation only when both pointers are non-null.
  13821. .IP "\fB\-fsanitize=thread\fR" 4
  13822. .IX Item "-fsanitize=thread"
  13823. Enable ThreadSanitizer, a fast data race detector.
  13824. Memory access instructions are instrumented to detect
  13825. data race bugs. See <\fBhttps://github.com/google/sanitizers/wiki#threadsanitizer\fR> for more
  13826. details. The run-time behavior can be influenced using the \fB\s-1TSAN_OPTIONS\s0\fR
  13827. environment variable; see
  13828. <\fBhttps://github.com/google/sanitizers/wiki/ThreadSanitizerFlags\fR> for a list of
  13829. supported options.
  13830. The option cannot be combined with \fB\-fsanitize=address\fR,
  13831. \&\fB\-fsanitize=leak\fR.
  13832. .Sp
  13833. Note that sanitized atomic builtins cannot throw exceptions when
  13834. operating on invalid memory addresses with non-call exceptions
  13835. (\fB\-fnon\-call\-exceptions\fR).
  13836. .IP "\fB\-fsanitize=leak\fR" 4
  13837. .IX Item "-fsanitize=leak"
  13838. Enable LeakSanitizer, a memory leak detector.
  13839. This option only matters for linking of executables and
  13840. the executable is linked against a library that overrides \f(CW\*(C`malloc\*(C'\fR
  13841. and other allocator functions. See
  13842. <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer\fR> for more
  13843. details. The run-time behavior can be influenced using the
  13844. \&\fB\s-1LSAN_OPTIONS\s0\fR environment variable.
  13845. The option cannot be combined with \fB\-fsanitize=thread\fR.
  13846. .IP "\fB\-fsanitize=undefined\fR" 4
  13847. .IX Item "-fsanitize=undefined"
  13848. Enable UndefinedBehaviorSanitizer, a fast undefined behavior detector.
  13849. Various computations are instrumented to detect undefined behavior
  13850. at runtime. Current suboptions are:
  13851. .RS 4
  13852. .IP "\fB\-fsanitize=shift\fR" 4
  13853. .IX Item "-fsanitize=shift"
  13854. This option enables checking that the result of a shift operation is
  13855. not undefined. Note that what exactly is considered undefined differs
  13856. slightly between C and \*(C+, as well as between \s-1ISO C90\s0 and C99, etc.
  13857. This option has two suboptions, \fB\-fsanitize=shift\-base\fR and
  13858. \&\fB\-fsanitize=shift\-exponent\fR.
  13859. .IP "\fB\-fsanitize=shift\-exponent\fR" 4
  13860. .IX Item "-fsanitize=shift-exponent"
  13861. This option enables checking that the second argument of a shift operation
  13862. is not negative and is smaller than the precision of the promoted first
  13863. argument.
  13864. .IP "\fB\-fsanitize=shift\-base\fR" 4
  13865. .IX Item "-fsanitize=shift-base"
  13866. If the second argument of a shift operation is within range, check that the
  13867. result of a shift operation is not undefined. Note that what exactly is
  13868. considered undefined differs slightly between C and \*(C+, as well as between
  13869. \&\s-1ISO C90\s0 and C99, etc.
  13870. .IP "\fB\-fsanitize=integer\-divide\-by\-zero\fR" 4
  13871. .IX Item "-fsanitize=integer-divide-by-zero"
  13872. Detect integer division by zero as well as \f(CW\*(C`INT_MIN / \-1\*(C'\fR division.
  13873. .IP "\fB\-fsanitize=unreachable\fR" 4
  13874. .IX Item "-fsanitize=unreachable"
  13875. With this option, the compiler turns the \f(CW\*(C`_\|_builtin_unreachable\*(C'\fR
  13876. call into a diagnostics message call instead. When reaching the
  13877. \&\f(CW\*(C`_\|_builtin_unreachable\*(C'\fR call, the behavior is undefined.
  13878. .IP "\fB\-fsanitize=vla\-bound\fR" 4
  13879. .IX Item "-fsanitize=vla-bound"
  13880. This option instructs the compiler to check that the size of a variable
  13881. length array is positive.
  13882. .IP "\fB\-fsanitize=null\fR" 4
  13883. .IX Item "-fsanitize=null"
  13884. This option enables pointer checking. Particularly, the application
  13885. built with this option turned on will issue an error message when it
  13886. tries to dereference a \s-1NULL\s0 pointer, or if a reference (possibly an
  13887. rvalue reference) is bound to a \s-1NULL\s0 pointer, or if a method is invoked
  13888. on an object pointed by a \s-1NULL\s0 pointer.
  13889. .IP "\fB\-fsanitize=return\fR" 4
  13890. .IX Item "-fsanitize=return"
  13891. This option enables return statement checking. Programs
  13892. built with this option turned on will issue an error message
  13893. when the end of a non-void function is reached without actually
  13894. returning a value. This option works in \*(C+ only.
  13895. .IP "\fB\-fsanitize=signed\-integer\-overflow\fR" 4
  13896. .IX Item "-fsanitize=signed-integer-overflow"
  13897. This option enables signed integer overflow checking. We check that
  13898. the result of \f(CW\*(C`+\*(C'\fR, \f(CW\*(C`*\*(C'\fR, and both unary and binary \f(CW\*(C`\-\*(C'\fR
  13899. does not overflow in the signed arithmetics. Note, integer promotion
  13900. rules must be taken into account. That is, the following is not an
  13901. overflow:
  13902. .Sp
  13903. .Vb 2
  13904. \& signed char a = SCHAR_MAX;
  13905. \& a++;
  13906. .Ve
  13907. .IP "\fB\-fsanitize=bounds\fR" 4
  13908. .IX Item "-fsanitize=bounds"
  13909. This option enables instrumentation of array bounds. Various out of bounds
  13910. accesses are detected. Flexible array members, flexible array member-like
  13911. arrays, and initializers of variables with static storage are not instrumented.
  13912. .IP "\fB\-fsanitize=bounds\-strict\fR" 4
  13913. .IX Item "-fsanitize=bounds-strict"
  13914. This option enables strict instrumentation of array bounds. Most out of bounds
  13915. accesses are detected, including flexible array members and flexible array
  13916. member-like arrays. Initializers of variables with static storage are not
  13917. instrumented.
  13918. .IP "\fB\-fsanitize=alignment\fR" 4
  13919. .IX Item "-fsanitize=alignment"
  13920. This option enables checking of alignment of pointers when they are
  13921. dereferenced, or when a reference is bound to insufficiently aligned target,
  13922. or when a method or constructor is invoked on insufficiently aligned object.
  13923. .IP "\fB\-fsanitize=object\-size\fR" 4
  13924. .IX Item "-fsanitize=object-size"
  13925. This option enables instrumentation of memory references using the
  13926. \&\f(CW\*(C`_\|_builtin_object_size\*(C'\fR function. Various out of bounds pointer
  13927. accesses are detected.
  13928. .IP "\fB\-fsanitize=float\-divide\-by\-zero\fR" 4
  13929. .IX Item "-fsanitize=float-divide-by-zero"
  13930. Detect floating-point division by zero. Unlike other similar options,
  13931. \&\fB\-fsanitize=float\-divide\-by\-zero\fR is not enabled by
  13932. \&\fB\-fsanitize=undefined\fR, since floating-point division by zero can
  13933. be a legitimate way of obtaining infinities and NaNs.
  13934. .IP "\fB\-fsanitize=float\-cast\-overflow\fR" 4
  13935. .IX Item "-fsanitize=float-cast-overflow"
  13936. This option enables floating-point type to integer conversion checking.
  13937. We check that the result of the conversion does not overflow.
  13938. Unlike other similar options, \fB\-fsanitize=float\-cast\-overflow\fR is
  13939. not enabled by \fB\-fsanitize=undefined\fR.
  13940. This option does not work well with \f(CW\*(C`FE_INVALID\*(C'\fR exceptions enabled.
  13941. .IP "\fB\-fsanitize=nonnull\-attribute\fR" 4
  13942. .IX Item "-fsanitize=nonnull-attribute"
  13943. This option enables instrumentation of calls, checking whether null values
  13944. are not passed to arguments marked as requiring a non-null value by the
  13945. \&\f(CW\*(C`nonnull\*(C'\fR function attribute.
  13946. .IP "\fB\-fsanitize=returns\-nonnull\-attribute\fR" 4
  13947. .IX Item "-fsanitize=returns-nonnull-attribute"
  13948. This option enables instrumentation of return statements in functions
  13949. marked with \f(CW\*(C`returns_nonnull\*(C'\fR function attribute, to detect returning
  13950. of null values from such functions.
  13951. .IP "\fB\-fsanitize=bool\fR" 4
  13952. .IX Item "-fsanitize=bool"
  13953. This option enables instrumentation of loads from bool. If a value other
  13954. than 0/1 is loaded, a run-time error is issued.
  13955. .IP "\fB\-fsanitize=enum\fR" 4
  13956. .IX Item "-fsanitize=enum"
  13957. This option enables instrumentation of loads from an enum type. If
  13958. a value outside the range of values for the enum type is loaded,
  13959. a run-time error is issued.
  13960. .IP "\fB\-fsanitize=vptr\fR" 4
  13961. .IX Item "-fsanitize=vptr"
  13962. This option enables instrumentation of \*(C+ member function calls, member
  13963. accesses and some conversions between pointers to base and derived classes,
  13964. to verify the referenced object has the correct dynamic type.
  13965. .IP "\fB\-fsanitize=pointer\-overflow\fR" 4
  13966. .IX Item "-fsanitize=pointer-overflow"
  13967. This option enables instrumentation of pointer arithmetics. If the pointer
  13968. arithmetics overflows, a run-time error is issued.
  13969. .IP "\fB\-fsanitize=builtin\fR" 4
  13970. .IX Item "-fsanitize=builtin"
  13971. This option enables instrumentation of arguments to selected builtin
  13972. functions. If an invalid value is passed to such arguments, a run-time
  13973. error is issued. E.g. passing 0 as the argument to \f(CW\*(C`_\|_builtin_ctz\*(C'\fR
  13974. or \f(CW\*(C`_\|_builtin_clz\*(C'\fR invokes undefined behavior and is diagnosed
  13975. by this option.
  13976. .RE
  13977. .RS 4
  13978. .Sp
  13979. While \fB\-ftrapv\fR causes traps for signed overflows to be emitted,
  13980. \&\fB\-fsanitize=undefined\fR gives a diagnostic message.
  13981. This currently works only for the C family of languages.
  13982. .RE
  13983. .IP "\fB\-fno\-sanitize=all\fR" 4
  13984. .IX Item "-fno-sanitize=all"
  13985. This option disables all previously enabled sanitizers.
  13986. \&\fB\-fsanitize=all\fR is not allowed, as some sanitizers cannot be used
  13987. together.
  13988. .IP "\fB\-fasan\-shadow\-offset=\fR\fInumber\fR" 4
  13989. .IX Item "-fasan-shadow-offset=number"
  13990. This option forces \s-1GCC\s0 to use custom shadow offset in AddressSanitizer checks.
  13991. It is useful for experimenting with different shadow memory layouts in
  13992. Kernel AddressSanitizer.
  13993. .IP "\fB\-fsanitize\-sections=\fR\fIs1\fR\fB,\fR\fIs2\fR\fB,...\fR" 4
  13994. .IX Item "-fsanitize-sections=s1,s2,..."
  13995. Sanitize global variables in selected user-defined sections. \fIsi\fR may
  13996. contain wildcards.
  13997. .IP "\fB\-fsanitize\-recover\fR[\fB=\fR\fIopts\fR]" 4
  13998. .IX Item "-fsanitize-recover[=opts]"
  13999. \&\fB\-fsanitize\-recover=\fR controls error recovery mode for sanitizers
  14000. mentioned in comma-separated list of \fIopts\fR. Enabling this option
  14001. for a sanitizer component causes it to attempt to continue
  14002. running the program as if no error happened. This means multiple
  14003. runtime errors can be reported in a single program run, and the exit
  14004. code of the program may indicate success even when errors
  14005. have been reported. The \fB\-fno\-sanitize\-recover=\fR option
  14006. can be used to alter
  14007. this behavior: only the first detected error is reported
  14008. and program then exits with a non-zero exit code.
  14009. .Sp
  14010. Currently this feature only works for \fB\-fsanitize=undefined\fR (and its suboptions
  14011. except for \fB\-fsanitize=unreachable\fR and \fB\-fsanitize=return\fR),
  14012. \&\fB\-fsanitize=float\-cast\-overflow\fR, \fB\-fsanitize=float\-divide\-by\-zero\fR,
  14013. \&\fB\-fsanitize=bounds\-strict\fR,
  14014. \&\fB\-fsanitize=kernel\-address\fR and \fB\-fsanitize=address\fR.
  14015. For these sanitizers error recovery is turned on by default,
  14016. except \fB\-fsanitize=address\fR, for which this feature is experimental.
  14017. \&\fB\-fsanitize\-recover=all\fR and \fB\-fno\-sanitize\-recover=all\fR is also
  14018. accepted, the former enables recovery for all sanitizers that support it,
  14019. the latter disables recovery for all sanitizers that support it.
  14020. .Sp
  14021. Even if a recovery mode is turned on the compiler side, it needs to be also
  14022. enabled on the runtime library side, otherwise the failures are still fatal.
  14023. The runtime library defaults to \f(CW\*(C`halt_on_error=0\*(C'\fR for
  14024. ThreadSanitizer and UndefinedBehaviorSanitizer, while default value for
  14025. AddressSanitizer is \f(CW\*(C`halt_on_error=1\*(C'\fR. This can be overridden through
  14026. setting the \f(CW\*(C`halt_on_error\*(C'\fR flag in the corresponding environment variable.
  14027. .Sp
  14028. Syntax without an explicit \fIopts\fR parameter is deprecated. It is
  14029. equivalent to specifying an \fIopts\fR list of:
  14030. .Sp
  14031. .Vb 1
  14032. \& undefined,float\-cast\-overflow,float\-divide\-by\-zero,bounds\-strict
  14033. .Ve
  14034. .IP "\fB\-fsanitize\-address\-use\-after\-scope\fR" 4
  14035. .IX Item "-fsanitize-address-use-after-scope"
  14036. Enable sanitization of local variables to detect use-after-scope bugs.
  14037. The option sets \fB\-fstack\-reuse\fR to \fBnone\fR.
  14038. .IP "\fB\-fsanitize\-undefined\-trap\-on\-error\fR" 4
  14039. .IX Item "-fsanitize-undefined-trap-on-error"
  14040. The \fB\-fsanitize\-undefined\-trap\-on\-error\fR option instructs the compiler to
  14041. report undefined behavior using \f(CW\*(C`_\|_builtin_trap\*(C'\fR rather than
  14042. a \f(CW\*(C`libubsan\*(C'\fR library routine. The advantage of this is that the
  14043. \&\f(CW\*(C`libubsan\*(C'\fR library is not needed and is not linked in, so this
  14044. is usable even in freestanding environments.
  14045. .IP "\fB\-fsanitize\-coverage=trace\-pc\fR" 4
  14046. .IX Item "-fsanitize-coverage=trace-pc"
  14047. Enable coverage-guided fuzzing code instrumentation.
  14048. Inserts a call to \f(CW\*(C`_\|_sanitizer_cov_trace_pc\*(C'\fR into every basic block.
  14049. .IP "\fB\-fsanitize\-coverage=trace\-cmp\fR" 4
  14050. .IX Item "-fsanitize-coverage=trace-cmp"
  14051. Enable dataflow guided fuzzing code instrumentation.
  14052. Inserts a call to \f(CW\*(C`_\|_sanitizer_cov_trace_cmp1\*(C'\fR,
  14053. \&\f(CW\*(C`_\|_sanitizer_cov_trace_cmp2\*(C'\fR, \f(CW\*(C`_\|_sanitizer_cov_trace_cmp4\*(C'\fR or
  14054. \&\f(CW\*(C`_\|_sanitizer_cov_trace_cmp8\*(C'\fR for integral comparison with both operands
  14055. variable or \f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp1\*(C'\fR,
  14056. \&\f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp2\*(C'\fR,
  14057. \&\f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp4\*(C'\fR or
  14058. \&\f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp8\*(C'\fR for integral comparison with one
  14059. operand constant, \f(CW\*(C`_\|_sanitizer_cov_trace_cmpf\*(C'\fR or
  14060. \&\f(CW\*(C`_\|_sanitizer_cov_trace_cmpd\*(C'\fR for float or double comparisons and
  14061. \&\f(CW\*(C`_\|_sanitizer_cov_trace_switch\*(C'\fR for switch statements.
  14062. .IP "\fB\-fcf\-protection=\fR[\fBfull\fR|\fBbranch\fR|\fBreturn\fR|\fBnone\fR|\fBcheck\fR]" 4
  14063. .IX Item "-fcf-protection=[full|branch|return|none|check]"
  14064. Enable code instrumentation of control-flow transfers to increase
  14065. program security by checking that target addresses of control-flow
  14066. transfer instructions (such as indirect function call, function return,
  14067. indirect jump) are valid. This prevents diverting the flow of control
  14068. to an unexpected target. This is intended to protect against such
  14069. threats as Return-oriented Programming (\s-1ROP\s0), and similarly
  14070. call/jmp\-oriented programming (\s-1COP/JOP\s0).
  14071. .Sp
  14072. The value \f(CW\*(C`branch\*(C'\fR tells the compiler to implement checking of
  14073. validity of control-flow transfer at the point of indirect branch
  14074. instructions, i.e. call/jmp instructions. The value \f(CW\*(C`return\*(C'\fR
  14075. implements checking of validity at the point of returning from a
  14076. function. The value \f(CW\*(C`full\*(C'\fR is an alias for specifying both
  14077. \&\f(CW\*(C`branch\*(C'\fR and \f(CW\*(C`return\*(C'\fR. The value \f(CW\*(C`none\*(C'\fR turns off
  14078. instrumentation.
  14079. .Sp
  14080. The value \f(CW\*(C`check\*(C'\fR is used for the final link with link-time
  14081. optimization (\s-1LTO\s0). An error is issued if \s-1LTO\s0 object files are
  14082. compiled with different \fB\-fcf\-protection\fR values. The
  14083. value \f(CW\*(C`check\*(C'\fR is ignored at the compile time.
  14084. .Sp
  14085. The macro \f(CW\*(C`_\|_CET_\|_\*(C'\fR is defined when \fB\-fcf\-protection\fR is
  14086. used. The first bit of \f(CW\*(C`_\|_CET_\|_\*(C'\fR is set to 1 for the value
  14087. \&\f(CW\*(C`branch\*(C'\fR and the second bit of \f(CW\*(C`_\|_CET_\|_\*(C'\fR is set to 1 for
  14088. the \f(CW\*(C`return\*(C'\fR.
  14089. .Sp
  14090. You can also use the \f(CW\*(C`nocf_check\*(C'\fR attribute to identify
  14091. which functions and calls should be skipped from instrumentation.
  14092. .Sp
  14093. Currently the x86 GNU/Linux target provides an implementation based
  14094. on Intel Control-flow Enforcement Technology (\s-1CET\s0).
  14095. .IP "\fB\-fstack\-protector\fR" 4
  14096. .IX Item "-fstack-protector"
  14097. Emit extra code to check for buffer overflows, such as stack smashing
  14098. attacks. This is done by adding a guard variable to functions with
  14099. vulnerable objects. This includes functions that call \f(CW\*(C`alloca\*(C'\fR, and
  14100. functions with buffers larger than or equal to 8 bytes. The guards are
  14101. initialized when a function is entered and then checked when the function
  14102. exits. If a guard check fails, an error message is printed and the program
  14103. exits. Only variables that are actually allocated on the stack are
  14104. considered, optimized away variables or variables allocated in registers
  14105. don't count.
  14106. .IP "\fB\-fstack\-protector\-all\fR" 4
  14107. .IX Item "-fstack-protector-all"
  14108. Like \fB\-fstack\-protector\fR except that all functions are protected.
  14109. .IP "\fB\-fstack\-protector\-strong\fR" 4
  14110. .IX Item "-fstack-protector-strong"
  14111. Like \fB\-fstack\-protector\fR but includes additional functions to
  14112. be protected \-\-\- those that have local array definitions, or have
  14113. references to local frame addresses. Only variables that are actually
  14114. allocated on the stack are considered, optimized away variables or variables
  14115. allocated in registers don't count.
  14116. .IP "\fB\-fstack\-protector\-explicit\fR" 4
  14117. .IX Item "-fstack-protector-explicit"
  14118. Like \fB\-fstack\-protector\fR but only protects those functions which
  14119. have the \f(CW\*(C`stack_protect\*(C'\fR attribute.
  14120. .IP "\fB\-fstack\-check\fR" 4
  14121. .IX Item "-fstack-check"
  14122. Generate code to verify that you do not go beyond the boundary of the
  14123. stack. You should specify this flag if you are running in an
  14124. environment with multiple threads, but you only rarely need to specify it in
  14125. a single-threaded environment since stack overflow is automatically
  14126. detected on nearly all systems if there is only one stack.
  14127. .Sp
  14128. Note that this switch does not actually cause checking to be done; the
  14129. operating system or the language runtime must do that. The switch causes
  14130. generation of code to ensure that they see the stack being extended.
  14131. .Sp
  14132. You can additionally specify a string parameter: \fBno\fR means no
  14133. checking, \fBgeneric\fR means force the use of old-style checking,
  14134. \&\fBspecific\fR means use the best checking method and is equivalent
  14135. to bare \fB\-fstack\-check\fR.
  14136. .Sp
  14137. Old-style checking is a generic mechanism that requires no specific
  14138. target support in the compiler but comes with the following drawbacks:
  14139. .RS 4
  14140. .IP "1." 4
  14141. .IX Item "1."
  14142. Modified allocation strategy for large objects: they are always
  14143. allocated dynamically if their size exceeds a fixed threshold. Note this
  14144. may change the semantics of some code.
  14145. .IP "2." 4
  14146. .IX Item "2."
  14147. Fixed limit on the size of the static frame of functions: when it is
  14148. topped by a particular function, stack checking is not reliable and
  14149. a warning is issued by the compiler.
  14150. .IP "3." 4
  14151. .IX Item "3."
  14152. Inefficiency: because of both the modified allocation strategy and the
  14153. generic implementation, code performance is hampered.
  14154. .RE
  14155. .RS 4
  14156. .Sp
  14157. Note that old-style stack checking is also the fallback method for
  14158. \&\fBspecific\fR if no target support has been added in the compiler.
  14159. .Sp
  14160. \&\fB\-fstack\-check=\fR is designed for Ada's needs to detect infinite recursion
  14161. and stack overflows. \fBspecific\fR is an excellent choice when compiling
  14162. Ada code. It is not generally sufficient to protect against stack-clash
  14163. attacks. To protect against those you want \fB\-fstack\-clash\-protection\fR.
  14164. .RE
  14165. .IP "\fB\-fstack\-clash\-protection\fR" 4
  14166. .IX Item "-fstack-clash-protection"
  14167. Generate code to prevent stack clash style attacks. When this option is
  14168. enabled, the compiler will only allocate one page of stack space at a time
  14169. and each page is accessed immediately after allocation. Thus, it prevents
  14170. allocations from jumping over any stack guard page provided by the
  14171. operating system.
  14172. .Sp
  14173. Most targets do not fully support stack clash protection. However, on
  14174. those targets \fB\-fstack\-clash\-protection\fR will protect dynamic stack
  14175. allocations. \fB\-fstack\-clash\-protection\fR may also provide limited
  14176. protection for static stack allocations if the target supports
  14177. \&\fB\-fstack\-check=specific\fR.
  14178. .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
  14179. .IX Item "-fstack-limit-register=reg"
  14180. .PD 0
  14181. .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
  14182. .IX Item "-fstack-limit-symbol=sym"
  14183. .IP "\fB\-fno\-stack\-limit\fR" 4
  14184. .IX Item "-fno-stack-limit"
  14185. .PD
  14186. Generate code to ensure that the stack does not grow beyond a certain value,
  14187. either the value of a register or the address of a symbol. If a larger
  14188. stack is required, a signal is raised at run time. For most targets,
  14189. the signal is raised before the stack overruns the boundary, so
  14190. it is possible to catch the signal without taking special precautions.
  14191. .Sp
  14192. For instance, if the stack starts at absolute address \fB0x80000000\fR
  14193. and grows downwards, you can use the flags
  14194. \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
  14195. \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
  14196. of 128KB. Note that this may only work with the \s-1GNU\s0 linker.
  14197. .Sp
  14198. You can locally override stack limit checking by using the
  14199. \&\f(CW\*(C`no_stack_limit\*(C'\fR function attribute.
  14200. .IP "\fB\-fsplit\-stack\fR" 4
  14201. .IX Item "-fsplit-stack"
  14202. Generate code to automatically split the stack before it overflows.
  14203. The resulting program has a discontiguous stack which can only
  14204. overflow if the program is unable to allocate any more memory. This
  14205. is most useful when running threaded programs, as it is no longer
  14206. necessary to calculate a good stack size to use for each thread. This
  14207. is currently only implemented for the x86 targets running
  14208. GNU/Linux.
  14209. .Sp
  14210. When code compiled with \fB\-fsplit\-stack\fR calls code compiled
  14211. without \fB\-fsplit\-stack\fR, there may not be much stack space
  14212. available for the latter code to run. If compiling all code,
  14213. including library code, with \fB\-fsplit\-stack\fR is not an option,
  14214. then the linker can fix up these calls so that the code compiled
  14215. without \fB\-fsplit\-stack\fR always has a large stack. Support for
  14216. this is implemented in the gold linker in \s-1GNU\s0 binutils release 2.21
  14217. and later.
  14218. .IP "\fB\-fvtable\-verify=\fR[\fBstd\fR|\fBpreinit\fR|\fBnone\fR]" 4
  14219. .IX Item "-fvtable-verify=[std|preinit|none]"
  14220. This option is only available when compiling \*(C+ code.
  14221. It turns on (or off, if using \fB\-fvtable\-verify=none\fR) the security
  14222. feature that verifies at run time, for every virtual call, that
  14223. the vtable pointer through which the call is made is valid for the type of
  14224. the object, and has not been corrupted or overwritten. If an invalid vtable
  14225. pointer is detected at run time, an error is reported and execution of the
  14226. program is immediately halted.
  14227. .Sp
  14228. This option causes run-time data structures to be built at program startup,
  14229. which are used for verifying the vtable pointers.
  14230. The options \fBstd\fR and \fBpreinit\fR
  14231. control the timing of when these data structures are built. In both cases the
  14232. data structures are built before execution reaches \f(CW\*(C`main\*(C'\fR. Using
  14233. \&\fB\-fvtable\-verify=std\fR causes the data structures to be built after
  14234. shared libraries have been loaded and initialized.
  14235. \&\fB\-fvtable\-verify=preinit\fR causes them to be built before shared
  14236. libraries have been loaded and initialized.
  14237. .Sp
  14238. If this option appears multiple times in the command line with different
  14239. values specified, \fBnone\fR takes highest priority over both \fBstd\fR and
  14240. \&\fBpreinit\fR; \fBpreinit\fR takes priority over \fBstd\fR.
  14241. .IP "\fB\-fvtv\-debug\fR" 4
  14242. .IX Item "-fvtv-debug"
  14243. When used in conjunction with \fB\-fvtable\-verify=std\fR or
  14244. \&\fB\-fvtable\-verify=preinit\fR, causes debug versions of the
  14245. runtime functions for the vtable verification feature to be called.
  14246. This flag also causes the compiler to log information about which
  14247. vtable pointers it finds for each class.
  14248. This information is written to a file named \fIvtv_set_ptr_data.log\fR
  14249. in the directory named by the environment variable \fB\s-1VTV_LOGS_DIR\s0\fR
  14250. if that is defined or the current working directory otherwise.
  14251. .Sp
  14252. Note: This feature \fIappends\fR data to the log file. If you want a fresh log
  14253. file, be sure to delete any existing one.
  14254. .IP "\fB\-fvtv\-counts\fR" 4
  14255. .IX Item "-fvtv-counts"
  14256. This is a debugging flag. When used in conjunction with
  14257. \&\fB\-fvtable\-verify=std\fR or \fB\-fvtable\-verify=preinit\fR, this
  14258. causes the compiler to keep track of the total number of virtual calls
  14259. it encounters and the number of verifications it inserts. It also
  14260. counts the number of calls to certain run-time library functions
  14261. that it inserts and logs this information for each compilation unit.
  14262. The compiler writes this information to a file named
  14263. \&\fIvtv_count_data.log\fR in the directory named by the environment
  14264. variable \fB\s-1VTV_LOGS_DIR\s0\fR if that is defined or the current working
  14265. directory otherwise. It also counts the size of the vtable pointer sets
  14266. for each class, and writes this information to \fIvtv_class_set_sizes.log\fR
  14267. in the same directory.
  14268. .Sp
  14269. Note: This feature \fIappends\fR data to the log files. To get fresh log
  14270. files, be sure to delete any existing ones.
  14271. .IP "\fB\-finstrument\-functions\fR" 4
  14272. .IX Item "-finstrument-functions"
  14273. Generate instrumentation calls for entry and exit to functions. Just
  14274. after function entry and just before function exit, the following
  14275. profiling functions are called with the address of the current
  14276. function and its call site. (On some platforms,
  14277. \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
  14278. function, so the call site information may not be available to the
  14279. profiling functions otherwise.)
  14280. .Sp
  14281. .Vb 4
  14282. \& void _\|_cyg_profile_func_enter (void *this_fn,
  14283. \& void *call_site);
  14284. \& void _\|_cyg_profile_func_exit (void *this_fn,
  14285. \& void *call_site);
  14286. .Ve
  14287. .Sp
  14288. The first argument is the address of the start of the current function,
  14289. which may be looked up exactly in the symbol table.
  14290. .Sp
  14291. This instrumentation is also done for functions expanded inline in other
  14292. functions. The profiling calls indicate where, conceptually, the
  14293. inline function is entered and exited. This means that addressable
  14294. versions of such functions must be available. If all your uses of a
  14295. function are expanded inline, this may mean an additional expansion of
  14296. code size. If you use \f(CW\*(C`extern inline\*(C'\fR in your C code, an
  14297. addressable version of such functions must be provided. (This is
  14298. normally the case anyway, but if you get lucky and the optimizer always
  14299. expands the functions inline, you might have gotten away without
  14300. providing static copies.)
  14301. .Sp
  14302. A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
  14303. which case this instrumentation is not done. This can be used, for
  14304. example, for the profiling functions listed above, high-priority
  14305. interrupt routines, and any functions from which the profiling functions
  14306. cannot safely be called (perhaps signal handlers, if the profiling
  14307. routines generate output or allocate memory).
  14308. .IP "\fB\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR" 4
  14309. .IX Item "-finstrument-functions-exclude-file-list=file,file,..."
  14310. Set the list of functions that are excluded from instrumentation (see
  14311. the description of \fB\-finstrument\-functions\fR). If the file that
  14312. contains a function definition matches with one of \fIfile\fR, then
  14313. that function is not instrumented. The match is done on substrings:
  14314. if the \fIfile\fR parameter is a substring of the file name, it is
  14315. considered to be a match.
  14316. .Sp
  14317. For example:
  14318. .Sp
  14319. .Vb 1
  14320. \& \-finstrument\-functions\-exclude\-file\-list=/bits/stl,include/sys
  14321. .Ve
  14322. .Sp
  14323. excludes any inline function defined in files whose pathnames
  14324. contain \fI/bits/stl\fR or \fIinclude/sys\fR.
  14325. .Sp
  14326. If, for some reason, you want to include letter \fB,\fR in one of
  14327. \&\fIsym\fR, write \fB,\fR. For example,
  14328. \&\fB\-finstrument\-functions\-exclude\-file\-list=',,tmp'\fR
  14329. (note the single quote surrounding the option).
  14330. .IP "\fB\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,...\fR" 4
  14331. .IX Item "-finstrument-functions-exclude-function-list=sym,sym,..."
  14332. This is similar to \fB\-finstrument\-functions\-exclude\-file\-list\fR,
  14333. but this option sets the list of function names to be excluded from
  14334. instrumentation. The function name to be matched is its user-visible
  14335. name, such as \f(CW\*(C`vector<int> blah(const vector<int> &)\*(C'\fR, not the
  14336. internal mangled name (e.g., \f(CW\*(C`_Z4blahRSt6vectorIiSaIiEE\*(C'\fR). The
  14337. match is done on substrings: if the \fIsym\fR parameter is a substring
  14338. of the function name, it is considered to be a match. For C99 and \*(C+
  14339. extended identifiers, the function name must be given in \s-1UTF\-8,\s0 not
  14340. using universal character names.
  14341. .IP "\fB\-fpatchable\-function\-entry=\fR\fIN\fR\fB[,\fR\fIM\fR\fB]\fR" 4
  14342. .IX Item "-fpatchable-function-entry=N[,M]"
  14343. Generate \fIN\fR NOPs right at the beginning
  14344. of each function, with the function entry point before the \fIM\fRth \s-1NOP.\s0
  14345. If \fIM\fR is omitted, it defaults to \f(CW0\fR so the
  14346. function entry points to the address just at the first \s-1NOP.\s0
  14347. The \s-1NOP\s0 instructions reserve extra space which can be used to patch in
  14348. any desired instrumentation at run time, provided that the code segment
  14349. is writable. The amount of space is controllable indirectly via
  14350. the number of NOPs; the \s-1NOP\s0 instruction used corresponds to the instruction
  14351. emitted by the internal \s-1GCC\s0 back-end interface \f(CW\*(C`gen_nop\*(C'\fR. This behavior
  14352. is target-specific and may also depend on the architecture variant and/or
  14353. other compilation options.
  14354. .Sp
  14355. For run-time identification, the starting addresses of these areas,
  14356. which correspond to their respective function entries minus \fIM\fR,
  14357. are additionally collected in the \f(CW\*(C`_\|_patchable_function_entries\*(C'\fR
  14358. section of the resulting binary.
  14359. .Sp
  14360. Note that the value of \f(CW\*(C`_\|_attribute_\|_ ((patchable_function_entry
  14361. (N,M)))\*(C'\fR takes precedence over command-line option
  14362. \&\fB\-fpatchable\-function\-entry=N,M\fR. This can be used to increase
  14363. the area size or to remove it completely on a single function.
  14364. If \f(CW\*(C`N=0\*(C'\fR, no pad location is recorded.
  14365. .Sp
  14366. The \s-1NOP\s0 instructions are inserted at\-\-\-and maybe before, depending on
  14367. \&\fIM\fR\-\-\-the function entry address, even before the prologue.
  14368. .Sp
  14369. The maximum value of \fIN\fR and \fIM\fR is 65535.
  14370. .SS "Options Controlling the Preprocessor"
  14371. .IX Subsection "Options Controlling the Preprocessor"
  14372. These options control the C preprocessor, which is run on each C source
  14373. file before actual compilation.
  14374. .PP
  14375. If you use the \fB\-E\fR option, nothing is done except preprocessing.
  14376. Some of these options make sense only together with \fB\-E\fR because
  14377. they cause the preprocessor output to be unsuitable for actual
  14378. compilation.
  14379. .PP
  14380. In addition to the options listed here, there are a number of options
  14381. to control search paths for include files documented in
  14382. \&\fBDirectory Options\fR.
  14383. Options to control preprocessor diagnostics are listed in
  14384. \&\fBWarning Options\fR.
  14385. .IP "\fB\-D\fR \fIname\fR" 4
  14386. .IX Item "-D name"
  14387. Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
  14388. .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
  14389. .IX Item "-D name=definition"
  14390. The contents of \fIdefinition\fR are tokenized and processed as if
  14391. they appeared during translation phase three in a \fB#define\fR
  14392. directive. In particular, the definition is truncated by
  14393. embedded newline characters.
  14394. .Sp
  14395. If you are invoking the preprocessor from a shell or shell-like
  14396. program you may need to use the shell's quoting syntax to protect
  14397. characters such as spaces that have a meaning in the shell syntax.
  14398. .Sp
  14399. If you wish to define a function-like macro on the command line, write
  14400. its argument list with surrounding parentheses before the equals sign
  14401. (if any). Parentheses are meaningful to most shells, so you should
  14402. quote the option. With \fBsh\fR and \fBcsh\fR,
  14403. \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
  14404. .Sp
  14405. \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
  14406. are given on the command line. All \fB\-imacros\fR \fIfile\fR and
  14407. \&\fB\-include\fR \fIfile\fR options are processed after all
  14408. \&\fB\-D\fR and \fB\-U\fR options.
  14409. .IP "\fB\-U\fR \fIname\fR" 4
  14410. .IX Item "-U name"
  14411. Cancel any previous definition of \fIname\fR, either built in or
  14412. provided with a \fB\-D\fR option.
  14413. .IP "\fB\-include\fR \fIfile\fR" 4
  14414. .IX Item "-include file"
  14415. Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
  14416. line of the primary source file. However, the first directory searched
  14417. for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
  14418. the directory containing the main source file. If not found there, it
  14419. is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
  14420. chain as normal.
  14421. .Sp
  14422. If multiple \fB\-include\fR options are given, the files are included
  14423. in the order they appear on the command line.
  14424. .IP "\fB\-imacros\fR \fIfile\fR" 4
  14425. .IX Item "-imacros file"
  14426. Exactly like \fB\-include\fR, except that any output produced by
  14427. scanning \fIfile\fR is thrown away. Macros it defines remain defined.
  14428. This allows you to acquire all the macros from a header without also
  14429. processing its declarations.
  14430. .Sp
  14431. All files specified by \fB\-imacros\fR are processed before all files
  14432. specified by \fB\-include\fR.
  14433. .IP "\fB\-undef\fR" 4
  14434. .IX Item "-undef"
  14435. Do not predefine any system-specific or GCC-specific macros. The
  14436. standard predefined macros remain defined.
  14437. .IP "\fB\-pthread\fR" 4
  14438. .IX Item "-pthread"
  14439. Define additional macros required for using the \s-1POSIX\s0 threads library.
  14440. You should use this option consistently for both compilation and linking.
  14441. This option is supported on GNU/Linux targets, most other Unix derivatives,
  14442. and also on x86 Cygwin and MinGW targets.
  14443. .IP "\fB\-M\fR" 4
  14444. .IX Item "-M"
  14445. Instead of outputting the result of preprocessing, output a rule
  14446. suitable for \fBmake\fR describing the dependencies of the main
  14447. source file. The preprocessor outputs one \fBmake\fR rule containing
  14448. the object file name for that source file, a colon, and the names of all
  14449. the included files, including those coming from \fB\-include\fR or
  14450. \&\fB\-imacros\fR command-line options.
  14451. .Sp
  14452. Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
  14453. object file name consists of the name of the source file with any
  14454. suffix replaced with object file suffix and with any leading directory
  14455. parts removed. If there are many included files then the rule is
  14456. split into several lines using \fB\e\fR\-newline. The rule has no
  14457. commands.
  14458. .Sp
  14459. This option does not suppress the preprocessor's debug output, such as
  14460. \&\fB\-dM\fR. To avoid mixing such debug output with the dependency
  14461. rules you should explicitly specify the dependency output file with
  14462. \&\fB\-MF\fR, or use an environment variable like
  14463. \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR. Debug output
  14464. is still sent to the regular output stream as normal.
  14465. .Sp
  14466. Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
  14467. warnings with an implicit \fB\-w\fR.
  14468. .IP "\fB\-MM\fR" 4
  14469. .IX Item "-MM"
  14470. Like \fB\-M\fR but do not mention header files that are found in
  14471. system header directories, nor header files that are included,
  14472. directly or indirectly, from such a header.
  14473. .Sp
  14474. This implies that the choice of angle brackets or double quotes in an
  14475. \&\fB#include\fR directive does not in itself determine whether that
  14476. header appears in \fB\-MM\fR dependency output.
  14477. .IP "\fB\-MF\fR \fIfile\fR" 4
  14478. .IX Item "-MF file"
  14479. When used with \fB\-M\fR or \fB\-MM\fR, specifies a
  14480. file to write the dependencies to. If no \fB\-MF\fR switch is given
  14481. the preprocessor sends the rules to the same place it would send
  14482. preprocessed output.
  14483. .Sp
  14484. When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
  14485. \&\fB\-MF\fR overrides the default dependency output file.
  14486. .Sp
  14487. If \fIfile\fR is \fI\-\fR, then the dependencies are written to \fIstdout\fR.
  14488. .IP "\fB\-MG\fR" 4
  14489. .IX Item "-MG"
  14490. In conjunction with an option such as \fB\-M\fR requesting
  14491. dependency generation, \fB\-MG\fR assumes missing header files are
  14492. generated files and adds them to the dependency list without raising
  14493. an error. The dependency filename is taken directly from the
  14494. \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path. \fB\-MG\fR
  14495. also suppresses preprocessed output, as a missing header file renders
  14496. this useless.
  14497. .Sp
  14498. This feature is used in automatic updating of makefiles.
  14499. .IP "\fB\-Mno\-modules\fR" 4
  14500. .IX Item "-Mno-modules"
  14501. Disable dependency generation for compiled module interfaces.
  14502. .IP "\fB\-MP\fR" 4
  14503. .IX Item "-MP"
  14504. This option instructs \s-1CPP\s0 to add a phony target for each dependency
  14505. other than the main file, causing each to depend on nothing. These
  14506. dummy rules work around errors \fBmake\fR gives if you remove header
  14507. files without updating the \fIMakefile\fR to match.
  14508. .Sp
  14509. This is typical output:
  14510. .Sp
  14511. .Vb 1
  14512. \& test.o: test.c test.h
  14513. \&
  14514. \& test.h:
  14515. .Ve
  14516. .IP "\fB\-MT\fR \fItarget\fR" 4
  14517. .IX Item "-MT target"
  14518. Change the target of the rule emitted by dependency generation. By
  14519. default \s-1CPP\s0 takes the name of the main input file, deletes any
  14520. directory components and any file suffix such as \fB.c\fR, and
  14521. appends the platform's usual object suffix. The result is the target.
  14522. .Sp
  14523. An \fB\-MT\fR option sets the target to be exactly the string you
  14524. specify. If you want multiple targets, you can specify them as a single
  14525. argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
  14526. .Sp
  14527. For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
  14528. .Sp
  14529. .Vb 1
  14530. \& $(objpfx)foo.o: foo.c
  14531. .Ve
  14532. .IP "\fB\-MQ\fR \fItarget\fR" 4
  14533. .IX Item "-MQ target"
  14534. Same as \fB\-MT\fR, but it quotes any characters which are special to
  14535. Make. \fB\-MQ\ '$(objpfx)foo.o'\fR gives
  14536. .Sp
  14537. .Vb 1
  14538. \& $$(objpfx)foo.o: foo.c
  14539. .Ve
  14540. .Sp
  14541. The default target is automatically quoted, as if it were given with
  14542. \&\fB\-MQ\fR.
  14543. .IP "\fB\-MD\fR" 4
  14544. .IX Item "-MD"
  14545. \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
  14546. \&\fB\-E\fR is not implied. The driver determines \fIfile\fR based on
  14547. whether an \fB\-o\fR option is given. If it is, the driver uses its
  14548. argument but with a suffix of \fI.d\fR, otherwise it takes the name
  14549. of the input file, removes any directory components and suffix, and
  14550. applies a \fI.d\fR suffix.
  14551. .Sp
  14552. If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
  14553. \&\fB\-o\fR switch is understood to specify the dependency output file, but if used without \fB\-E\fR, each \fB\-o\fR
  14554. is understood to specify a target object file.
  14555. .Sp
  14556. Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
  14557. a dependency output file as a side effect of the compilation process.
  14558. .IP "\fB\-MMD\fR" 4
  14559. .IX Item "-MMD"
  14560. Like \fB\-MD\fR except mention only user header files, not system
  14561. header files.
  14562. .IP "\fB\-fpreprocessed\fR" 4
  14563. .IX Item "-fpreprocessed"
  14564. Indicate to the preprocessor that the input file has already been
  14565. preprocessed. This suppresses things like macro expansion, trigraph
  14566. conversion, escaped newline splicing, and processing of most directives.
  14567. The preprocessor still recognizes and removes comments, so that you can
  14568. pass a file preprocessed with \fB\-C\fR to the compiler without
  14569. problems. In this mode the integrated preprocessor is little more than
  14570. a tokenizer for the front ends.
  14571. .Sp
  14572. \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
  14573. extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR. These are the
  14574. extensions that \s-1GCC\s0 uses for preprocessed files created by
  14575. \&\fB\-save\-temps\fR.
  14576. .IP "\fB\-fdirectives\-only\fR" 4
  14577. .IX Item "-fdirectives-only"
  14578. When preprocessing, handle directives, but do not expand macros.
  14579. .Sp
  14580. The option's behavior depends on the \fB\-E\fR and \fB\-fpreprocessed\fR
  14581. options.
  14582. .Sp
  14583. With \fB\-E\fR, preprocessing is limited to the handling of directives
  14584. such as \f(CW\*(C`#define\*(C'\fR, \f(CW\*(C`#ifdef\*(C'\fR, and \f(CW\*(C`#error\*(C'\fR. Other
  14585. preprocessor operations, such as macro expansion and trigraph
  14586. conversion are not performed. In addition, the \fB\-dD\fR option is
  14587. implicitly enabled.
  14588. .Sp
  14589. With \fB\-fpreprocessed\fR, predefinition of command line and most
  14590. builtin macros is disabled. Macros such as \f(CW\*(C`_\|_LINE_\|_\*(C'\fR, which are
  14591. contextually dependent, are handled normally. This enables compilation of
  14592. files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
  14593. .Sp
  14594. With both \fB\-E\fR and \fB\-fpreprocessed\fR, the rules for
  14595. \&\fB\-fpreprocessed\fR take precedence. This enables full preprocessing of
  14596. files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
  14597. .IP "\fB\-fdollars\-in\-identifiers\fR" 4
  14598. .IX Item "-fdollars-in-identifiers"
  14599. Accept \fB$\fR in identifiers.
  14600. .IP "\fB\-fextended\-identifiers\fR" 4
  14601. .IX Item "-fextended-identifiers"
  14602. Accept universal character names and extended characters in
  14603. identifiers. This option is enabled by default for C99 (and later C
  14604. standard versions) and \*(C+.
  14605. .IP "\fB\-fno\-canonical\-system\-headers\fR" 4
  14606. .IX Item "-fno-canonical-system-headers"
  14607. When preprocessing, do not shorten system header paths with canonicalization.
  14608. .IP "\fB\-fmax\-include\-depth=\fR\fIdepth\fR" 4
  14609. .IX Item "-fmax-include-depth=depth"
  14610. Set the maximum depth of the nested #include. The default is 200.
  14611. .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
  14612. .IX Item "-ftabstop=width"
  14613. Set the distance between tab stops. This helps the preprocessor report
  14614. correct column numbers in warnings or errors, even if tabs appear on the
  14615. line. If the value is less than 1 or greater than 100, the option is
  14616. ignored. The default is 8.
  14617. .IP "\fB\-ftrack\-macro\-expansion\fR[\fB=\fR\fIlevel\fR]" 4
  14618. .IX Item "-ftrack-macro-expansion[=level]"
  14619. Track locations of tokens across macro expansions. This allows the
  14620. compiler to emit diagnostic about the current macro expansion stack
  14621. when a compilation error occurs in a macro expansion. Using this
  14622. option makes the preprocessor and the compiler consume more
  14623. memory. The \fIlevel\fR parameter can be used to choose the level of
  14624. precision of token location tracking thus decreasing the memory
  14625. consumption if necessary. Value \fB0\fR of \fIlevel\fR de-activates
  14626. this option. Value \fB1\fR tracks tokens locations in a
  14627. degraded mode for the sake of minimal memory overhead. In this mode
  14628. all tokens resulting from the expansion of an argument of a
  14629. function-like macro have the same location. Value \fB2\fR tracks
  14630. tokens locations completely. This value is the most memory hungry.
  14631. When this option is given no argument, the default parameter value is
  14632. \&\fB2\fR.
  14633. .Sp
  14634. Note that \f(CW\*(C`\-ftrack\-macro\-expansion=2\*(C'\fR is activated by default.
  14635. .IP "\fB\-fmacro\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
  14636. .IX Item "-fmacro-prefix-map=old=new"
  14637. When preprocessing files residing in directory \fI\fIold\fI\fR,
  14638. expand the \f(CW\*(C`_\|_FILE_\|_\*(C'\fR and \f(CW\*(C`_\|_BASE_FILE_\|_\*(C'\fR macros as if the
  14639. files resided in directory \fI\fInew\fI\fR instead. This can be used
  14640. to change an absolute path to a relative path by using \fI.\fR for
  14641. \&\fInew\fR which can result in more reproducible builds that are
  14642. location independent. This option also affects
  14643. \&\f(CW\*(C`_\|_builtin_FILE()\*(C'\fR during compilation. See also
  14644. \&\fB\-ffile\-prefix\-map\fR.
  14645. .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
  14646. .IX Item "-fexec-charset=charset"
  14647. Set the execution character set, used for string and character
  14648. constants. The default is \s-1UTF\-8.\s0 \fIcharset\fR can be any encoding
  14649. supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
  14650. .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
  14651. .IX Item "-fwide-exec-charset=charset"
  14652. Set the wide execution character set, used for wide string and
  14653. character constants. The default is \s-1UTF\-32\s0 or \s-1UTF\-16,\s0 whichever
  14654. corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR. As with
  14655. \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
  14656. by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
  14657. problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
  14658. .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
  14659. .IX Item "-finput-charset=charset"
  14660. Set the input character set, used for translation from the character
  14661. set of the input file to the source character set used by \s-1GCC.\s0 If the
  14662. locale does not specify, or \s-1GCC\s0 cannot get this information from the
  14663. locale, the default is \s-1UTF\-8.\s0 This can be overridden by either the locale
  14664. or this command-line option. Currently the command-line option takes
  14665. precedence if there's a conflict. \fIcharset\fR can be any encoding
  14666. supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
  14667. .IP "\fB\-fpch\-deps\fR" 4
  14668. .IX Item "-fpch-deps"
  14669. When using precompiled headers, this flag
  14670. causes the dependency-output flags to also list the files from the
  14671. precompiled header's dependencies. If not specified, only the
  14672. precompiled header are listed and not the files that were used to
  14673. create it, because those files are not consulted when a precompiled
  14674. header is used.
  14675. .IP "\fB\-fpch\-preprocess\fR" 4
  14676. .IX Item "-fpch-preprocess"
  14677. This option allows use of a precompiled header together with \fB\-E\fR. It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
  14678. \&\f(CW\*(C`#pragma GCC pch_preprocess "\f(CIfilename\f(CW"\*(C'\fR in the output to mark
  14679. the place where the precompiled header was found, and its \fIfilename\fR.
  14680. When \fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR
  14681. and loads the \s-1PCH.\s0
  14682. .Sp
  14683. This option is off by default, because the resulting preprocessed output
  14684. is only really suitable as input to \s-1GCC.\s0 It is switched on by
  14685. \&\fB\-save\-temps\fR.
  14686. .Sp
  14687. You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
  14688. safe to edit the filename if the \s-1PCH\s0 file is available in a different
  14689. location. The filename may be absolute or it may be relative to \s-1GCC\s0's
  14690. current directory.
  14691. .IP "\fB\-fworking\-directory\fR" 4
  14692. .IX Item "-fworking-directory"
  14693. Enable generation of linemarkers in the preprocessor output that
  14694. let the compiler know the current working directory at the time of
  14695. preprocessing. When this option is enabled, the preprocessor
  14696. emits, after the initial linemarker, a second linemarker with the
  14697. current working directory followed by two slashes. \s-1GCC\s0 uses this
  14698. directory, when it's present in the preprocessed input, as the
  14699. directory emitted as the current working directory in some debugging
  14700. information formats. This option is implicitly enabled if debugging
  14701. information is enabled, but this can be inhibited with the negated
  14702. form \fB\-fno\-working\-directory\fR. If the \fB\-P\fR flag is
  14703. present in the command line, this option has no effect, since no
  14704. \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
  14705. .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
  14706. .IX Item "-A predicate=answer"
  14707. Make an assertion with the predicate \fIpredicate\fR and answer
  14708. \&\fIanswer\fR. This form is preferred to the older form \fB\-A\fR
  14709. \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
  14710. it does not use shell special characters.
  14711. .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
  14712. .IX Item "-A -predicate=answer"
  14713. Cancel an assertion with the predicate \fIpredicate\fR and answer
  14714. \&\fIanswer\fR.
  14715. .IP "\fB\-C\fR" 4
  14716. .IX Item "-C"
  14717. Do not discard comments. All comments are passed through to the output
  14718. file, except for comments in processed directives, which are deleted
  14719. along with the directive.
  14720. .Sp
  14721. You should be prepared for side effects when using \fB\-C\fR; it
  14722. causes the preprocessor to treat comments as tokens in their own right.
  14723. For example, comments appearing at the start of what would be a
  14724. directive line have the effect of turning that line into an ordinary
  14725. source line, since the first token on the line is no longer a \fB#\fR.
  14726. .IP "\fB\-CC\fR" 4
  14727. .IX Item "-CC"
  14728. Do not discard comments, including during macro expansion. This is
  14729. like \fB\-C\fR, except that comments contained within macros are
  14730. also passed through to the output file where the macro is expanded.
  14731. .Sp
  14732. In addition to the side effects of the \fB\-C\fR option, the
  14733. \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
  14734. to be converted to C\-style comments. This is to prevent later use
  14735. of that macro from inadvertently commenting out the remainder of
  14736. the source line.
  14737. .Sp
  14738. The \fB\-CC\fR option is generally used to support lint comments.
  14739. .IP "\fB\-P\fR" 4
  14740. .IX Item "-P"
  14741. Inhibit generation of linemarkers in the output from the preprocessor.
  14742. This might be useful when running the preprocessor on something that is
  14743. not C code, and will be sent to a program which might be confused by the
  14744. linemarkers.
  14745. .IP "\fB\-traditional\fR" 4
  14746. .IX Item "-traditional"
  14747. .PD 0
  14748. .IP "\fB\-traditional\-cpp\fR" 4
  14749. .IX Item "-traditional-cpp"
  14750. .PD
  14751. Try to imitate the behavior of pre-standard C preprocessors, as
  14752. opposed to \s-1ISO C\s0 preprocessors.
  14753. See the \s-1GNU CPP\s0 manual for details.
  14754. .Sp
  14755. Note that \s-1GCC\s0 does not otherwise attempt to emulate a pre-standard
  14756. C compiler, and these options are only supported with the \fB\-E\fR
  14757. switch, or when invoking \s-1CPP\s0 explicitly.
  14758. .IP "\fB\-trigraphs\fR" 4
  14759. .IX Item "-trigraphs"
  14760. Support \s-1ISO C\s0 trigraphs.
  14761. These are three-character sequences, all starting with \fB??\fR, that
  14762. are defined by \s-1ISO C\s0 to stand for single characters. For example,
  14763. \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
  14764. constant for a newline.
  14765. .Sp
  14766. The nine trigraphs and their replacements are
  14767. .Sp
  14768. .Vb 2
  14769. \& Trigraph: ??( ??) ??< ??> ??= ??/ ??\*(Aq ??! ??\-
  14770. \& Replacement: [ ] { } # \e ^ | ~
  14771. .Ve
  14772. .Sp
  14773. By default, \s-1GCC\s0 ignores trigraphs, but in
  14774. standard-conforming modes it converts them. See the \fB\-std\fR and
  14775. \&\fB\-ansi\fR options.
  14776. .IP "\fB\-remap\fR" 4
  14777. .IX Item "-remap"
  14778. Enable special code to work around file systems which only permit very
  14779. short file names, such as MS-DOS.
  14780. .IP "\fB\-H\fR" 4
  14781. .IX Item "-H"
  14782. Print the name of each header file used, in addition to other normal
  14783. activities. Each name is indented to show how deep in the
  14784. \&\fB#include\fR stack it is. Precompiled header files are also
  14785. printed, even if they are found to be invalid; an invalid precompiled
  14786. header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
  14787. .IP "\fB\-d\fR\fIletters\fR" 4
  14788. .IX Item "-dletters"
  14789. Says to make debugging dumps during compilation as specified by
  14790. \&\fIletters\fR. The flags documented here are those relevant to the
  14791. preprocessor. Other \fIletters\fR are interpreted
  14792. by the compiler proper, or reserved for future versions of \s-1GCC,\s0 and so
  14793. are silently ignored. If you specify \fIletters\fR whose behavior
  14794. conflicts, the result is undefined.
  14795. .RS 4
  14796. .IP "\fB\-dM\fR" 4
  14797. .IX Item "-dM"
  14798. Instead of the normal output, generate a list of \fB#define\fR
  14799. directives for all the macros defined during the execution of the
  14800. preprocessor, including predefined macros. This gives you a way of
  14801. finding out what is predefined in your version of the preprocessor.
  14802. Assuming you have no file \fIfoo.h\fR, the command
  14803. .Sp
  14804. .Vb 1
  14805. \& touch foo.h; cpp \-dM foo.h
  14806. .Ve
  14807. .Sp
  14808. shows all the predefined macros.
  14809. .Sp
  14810. If you use \fB\-dM\fR without the \fB\-E\fR option, \fB\-dM\fR is
  14811. interpreted as a synonym for \fB\-fdump\-rtl\-mach\fR.
  14812. .IP "\fB\-dD\fR" 4
  14813. .IX Item "-dD"
  14814. Like \fB\-dM\fR except in two respects: it does \fInot\fR include the
  14815. predefined macros, and it outputs \fIboth\fR the \fB#define\fR
  14816. directives and the result of preprocessing. Both kinds of output go to
  14817. the standard output file.
  14818. .IP "\fB\-dN\fR" 4
  14819. .IX Item "-dN"
  14820. Like \fB\-dD\fR, but emit only the macro names, not their expansions.
  14821. .IP "\fB\-dI\fR" 4
  14822. .IX Item "-dI"
  14823. Output \fB#include\fR directives in addition to the result of
  14824. preprocessing.
  14825. .IP "\fB\-dU\fR" 4
  14826. .IX Item "-dU"
  14827. Like \fB\-dD\fR except that only macros that are expanded, or whose
  14828. definedness is tested in preprocessor directives, are output; the
  14829. output is delayed until the use or test of the macro; and
  14830. \&\fB#undef\fR directives are also output for macros tested but
  14831. undefined at the time.
  14832. .RE
  14833. .RS 4
  14834. .RE
  14835. .IP "\fB\-fdebug\-cpp\fR" 4
  14836. .IX Item "-fdebug-cpp"
  14837. This option is only useful for debugging \s-1GCC.\s0 When used from \s-1CPP\s0 or with
  14838. \&\fB\-E\fR, it dumps debugging information about location maps. Every
  14839. token in the output is preceded by the dump of the map its location
  14840. belongs to.
  14841. .Sp
  14842. When used from \s-1GCC\s0 without \fB\-E\fR, this option has no effect.
  14843. .IP "\fB\-Wp,\fR\fIoption\fR" 4
  14844. .IX Item "-Wp,option"
  14845. You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
  14846. and pass \fIoption\fR directly through to the preprocessor. If
  14847. \&\fIoption\fR contains commas, it is split into multiple options at the
  14848. commas. However, many options are modified, translated or interpreted
  14849. by the compiler driver before being passed to the preprocessor, and
  14850. \&\fB\-Wp\fR forcibly bypasses this phase. The preprocessor's direct
  14851. interface is undocumented and subject to change, so whenever possible
  14852. you should avoid using \fB\-Wp\fR and let the driver handle the
  14853. options instead.
  14854. .IP "\fB\-Xpreprocessor\fR \fIoption\fR" 4
  14855. .IX Item "-Xpreprocessor option"
  14856. Pass \fIoption\fR as an option to the preprocessor. You can use this to
  14857. supply system-specific preprocessor options that \s-1GCC\s0 does not
  14858. recognize.
  14859. .Sp
  14860. If you want to pass an option that takes an argument, you must use
  14861. \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
  14862. .IP "\fB\-no\-integrated\-cpp\fR" 4
  14863. .IX Item "-no-integrated-cpp"
  14864. Perform preprocessing as a separate pass before compilation.
  14865. By default, \s-1GCC\s0 performs preprocessing as an integrated part of
  14866. input tokenization and parsing.
  14867. If this option is provided, the appropriate language front end
  14868. (\fBcc1\fR, \fBcc1plus\fR, or \fBcc1obj\fR for C, \*(C+,
  14869. and Objective-C, respectively) is instead invoked twice,
  14870. once for preprocessing only and once for actual compilation
  14871. of the preprocessed input.
  14872. This option may be useful in conjunction with the \fB\-B\fR or
  14873. \&\fB\-wrapper\fR options to specify an alternate preprocessor or
  14874. perform additional processing of the program source between
  14875. normal preprocessing and compilation.
  14876. .IP "\fB\-flarge\-source\-files\fR" 4
  14877. .IX Item "-flarge-source-files"
  14878. Adjust \s-1GCC\s0 to expect large source files, at the expense of slower
  14879. compilation and higher memory usage.
  14880. .Sp
  14881. Specifically, \s-1GCC\s0 normally tracks both column numbers and line numbers
  14882. within source files and it normally prints both of these numbers in
  14883. diagnostics. However, once it has processed a certain number of source
  14884. lines, it stops tracking column numbers and only tracks line numbers.
  14885. This means that diagnostics for later lines do not include column numbers.
  14886. It also means that options like \fB\-Wmisleading\-indentation\fR cease to work
  14887. at that point, although the compiler prints a note if this happens.
  14888. Passing \fB\-flarge\-source\-files\fR significantly increases the number
  14889. of source lines that \s-1GCC\s0 can process before it stops tracking columns.
  14890. .SS "Passing Options to the Assembler"
  14891. .IX Subsection "Passing Options to the Assembler"
  14892. You can pass options to the assembler.
  14893. .IP "\fB\-Wa,\fR\fIoption\fR" 4
  14894. .IX Item "-Wa,option"
  14895. Pass \fIoption\fR as an option to the assembler. If \fIoption\fR
  14896. contains commas, it is split into multiple options at the commas.
  14897. .IP "\fB\-Xassembler\fR \fIoption\fR" 4
  14898. .IX Item "-Xassembler option"
  14899. Pass \fIoption\fR as an option to the assembler. You can use this to
  14900. supply system-specific assembler options that \s-1GCC\s0 does not
  14901. recognize.
  14902. .Sp
  14903. If you want to pass an option that takes an argument, you must use
  14904. \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
  14905. .SS "Options for Linking"
  14906. .IX Subsection "Options for Linking"
  14907. These options come into play when the compiler links object files into
  14908. an executable output file. They are meaningless if the compiler is
  14909. not doing a link step.
  14910. .IP "\fIobject-file-name\fR" 4
  14911. .IX Item "object-file-name"
  14912. A file name that does not end in a special recognized suffix is
  14913. considered to name an object file or library. (Object files are
  14914. distinguished from libraries by the linker according to the file
  14915. contents.) If linking is done, these object files are used as input
  14916. to the linker.
  14917. .IP "\fB\-c\fR" 4
  14918. .IX Item "-c"
  14919. .PD 0
  14920. .IP "\fB\-S\fR" 4
  14921. .IX Item "-S"
  14922. .IP "\fB\-E\fR" 4
  14923. .IX Item "-E"
  14924. .PD
  14925. If any of these options is used, then the linker is not run, and
  14926. object file names should not be used as arguments.
  14927. .IP "\fB\-flinker\-output=\fR\fItype\fR" 4
  14928. .IX Item "-flinker-output=type"
  14929. This option controls code generation of the link-time optimizer. By
  14930. default the linker output is automatically determined by the linker
  14931. plugin. For debugging the compiler and if incremental linking with a
  14932. non-LTO object file is desired, it may be useful to control the type
  14933. manually.
  14934. .Sp
  14935. If \fItype\fR is \fBexec\fR, code generation produces a static
  14936. binary. In this case \fB\-fpic\fR and \fB\-fpie\fR are both
  14937. disabled.
  14938. .Sp
  14939. If \fItype\fR is \fBdyn\fR, code generation produces a shared
  14940. library. In this case \fB\-fpic\fR or \fB\-fPIC\fR is preserved,
  14941. but not enabled automatically. This allows to build shared libraries
  14942. without position-independent code on architectures where this is
  14943. possible, i.e. on x86.
  14944. .Sp
  14945. If \fItype\fR is \fBpie\fR, code generation produces an \fB\-fpie\fR
  14946. executable. This results in similar optimizations as \fBexec\fR
  14947. except that \fB\-fpie\fR is not disabled if specified at compilation
  14948. time.
  14949. .Sp
  14950. If \fItype\fR is \fBrel\fR, the compiler assumes that incremental linking is
  14951. done. The sections containing intermediate code for link-time optimization are
  14952. merged, pre-optimized, and output to the resulting object file. In addition, if
  14953. \&\fB\-ffat\-lto\-objects\fR is specified, binary code is produced for future
  14954. non-LTO linking. The object file produced by incremental linking is smaller
  14955. than a static library produced from the same object files. At link time the
  14956. result of incremental linking also loads faster than a static
  14957. library assuming that the majority of objects in the library are used.
  14958. .Sp
  14959. Finally \fBnolto-rel\fR configures the compiler for incremental linking where
  14960. code generation is forced, a final binary is produced, and the intermediate
  14961. code for later link-time optimization is stripped. When multiple object files
  14962. are linked together the resulting code is better optimized than with
  14963. link-time optimizations disabled (for example, cross-module inlining
  14964. happens), but most of benefits of whole program optimizations are lost.
  14965. .Sp
  14966. During the incremental link (by \fB\-r\fR) the linker plugin defaults to
  14967. \&\fBrel\fR. With current interfaces to \s-1GNU\s0 Binutils it is however not
  14968. possible to incrementally link \s-1LTO\s0 objects and non-LTO objects into a single
  14969. mixed object file. If any of object files in incremental link cannot
  14970. be used for link-time optimization, the linker plugin issues a warning and
  14971. uses \fBnolto-rel\fR. To maintain whole program optimization, it is
  14972. recommended to link such objects into static library instead. Alternatively it
  14973. is possible to use H.J. Lu's binutils with support for mixed objects.
  14974. .IP "\fB\-fuse\-ld=bfd\fR" 4
  14975. .IX Item "-fuse-ld=bfd"
  14976. Use the \fBbfd\fR linker instead of the default linker.
  14977. .IP "\fB\-fuse\-ld=gold\fR" 4
  14978. .IX Item "-fuse-ld=gold"
  14979. Use the \fBgold\fR linker instead of the default linker.
  14980. .IP "\fB\-fuse\-ld=lld\fR" 4
  14981. .IX Item "-fuse-ld=lld"
  14982. Use the \s-1LLVM\s0 \fBlld\fR linker instead of the default linker.
  14983. .IP "\fB\-l\fR\fIlibrary\fR" 4
  14984. .IX Item "-llibrary"
  14985. .PD 0
  14986. .IP "\fB\-l\fR \fIlibrary\fR" 4
  14987. .IX Item "-l library"
  14988. .PD
  14989. Search the library named \fIlibrary\fR when linking. (The second
  14990. alternative with the library as a separate argument is only for
  14991. \&\s-1POSIX\s0 compliance and is not recommended.)
  14992. .Sp
  14993. The \fB\-l\fR option is passed directly to the linker by \s-1GCC.\s0 Refer
  14994. to your linker documentation for exact details. The general
  14995. description below applies to the \s-1GNU\s0 linker.
  14996. .Sp
  14997. The linker searches a standard list of directories for the library.
  14998. The directories searched include several standard system directories
  14999. plus any that you specify with \fB\-L\fR.
  15000. .Sp
  15001. Static libraries are archives of object files, and have file names
  15002. like \fIlib\fIlibrary\fI.a\fR. Some targets also support shared
  15003. libraries, which typically have names like \fIlib\fIlibrary\fI.so\fR.
  15004. If both static and shared libraries are found, the linker gives
  15005. preference to linking with the shared library unless the
  15006. \&\fB\-static\fR option is used.
  15007. .Sp
  15008. It makes a difference where in the command you write this option; the
  15009. linker searches and processes libraries and object files in the order they
  15010. are specified. Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
  15011. after file \fIfoo.o\fR but before \fIbar.o\fR. If \fIbar.o\fR refers
  15012. to functions in \fBz\fR, those functions may not be loaded.
  15013. .IP "\fB\-lobjc\fR" 4
  15014. .IX Item "-lobjc"
  15015. You need this special case of the \fB\-l\fR option in order to
  15016. link an Objective-C or Objective\-\*(C+ program.
  15017. .IP "\fB\-nostartfiles\fR" 4
  15018. .IX Item "-nostartfiles"
  15019. Do not use the standard system startup files when linking.
  15020. The standard system libraries are used normally, unless \fB\-nostdlib\fR,
  15021. \&\fB\-nolibc\fR, or \fB\-nodefaultlibs\fR is used.
  15022. .IP "\fB\-nodefaultlibs\fR" 4
  15023. .IX Item "-nodefaultlibs"
  15024. Do not use the standard system libraries when linking.
  15025. Only the libraries you specify are passed to the linker, and options
  15026. specifying linkage of the system libraries, such as \fB\-static\-libgcc\fR
  15027. or \fB\-shared\-libgcc\fR, are ignored.
  15028. The standard startup files are used normally, unless \fB\-nostartfiles\fR
  15029. is used.
  15030. .Sp
  15031. The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
  15032. \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
  15033. These entries are usually resolved by entries in
  15034. libc. These entry points should be supplied through some other
  15035. mechanism when this option is specified.
  15036. .IP "\fB\-nolibc\fR" 4
  15037. .IX Item "-nolibc"
  15038. Do not use the C library or system libraries tightly coupled with it when
  15039. linking. Still link with the startup files, \fIlibgcc\fR or toolchain
  15040. provided language support libraries such as \fIlibgnat\fR, \fIlibgfortran\fR
  15041. or \fIlibstdc++\fR unless options preventing their inclusion are used as
  15042. well. This typically removes \fB\-lc\fR from the link command line, as well
  15043. as system libraries that normally go with it and become meaningless when
  15044. absence of a C library is assumed, for example \fB\-lpthread\fR or
  15045. \&\fB\-lm\fR in some configurations. This is intended for bare-board
  15046. targets when there is indeed no C library available.
  15047. .IP "\fB\-nostdlib\fR" 4
  15048. .IX Item "-nostdlib"
  15049. Do not use the standard system startup files or libraries when linking.
  15050. No startup files and only the libraries you specify are passed to
  15051. the linker, and options specifying linkage of the system libraries, such as
  15052. \&\fB\-static\-libgcc\fR or \fB\-shared\-libgcc\fR, are ignored.
  15053. .Sp
  15054. The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
  15055. \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
  15056. These entries are usually resolved by entries in
  15057. libc. These entry points should be supplied through some other
  15058. mechanism when this option is specified.
  15059. .Sp
  15060. One of the standard libraries bypassed by \fB\-nostdlib\fR and
  15061. \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
  15062. which \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
  15063. needs for some languages.
  15064. .Sp
  15065. In most cases, you need \fIlibgcc.a\fR even when you want to avoid
  15066. other standard libraries. In other words, when you specify \fB\-nostdlib\fR
  15067. or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
  15068. This ensures that you have no unresolved references to internal \s-1GCC\s0
  15069. library subroutines.
  15070. (An example of such an internal subroutine is \f(CW\*(C`_\|_main\*(C'\fR, used to ensure \*(C+
  15071. constructors are called.)
  15072. .IP "\fB\-e\fR \fIentry\fR" 4
  15073. .IX Item "-e entry"
  15074. .PD 0
  15075. .IP "\fB\-\-entry=\fR\fIentry\fR" 4
  15076. .IX Item "--entry=entry"
  15077. .PD
  15078. Specify that the program entry point is \fIentry\fR. The argument is
  15079. interpreted by the linker; the \s-1GNU\s0 linker accepts either a symbol name
  15080. or an address.
  15081. .IP "\fB\-pie\fR" 4
  15082. .IX Item "-pie"
  15083. Produce a dynamically linked position independent executable on targets
  15084. that support it. For predictable results, you must also specify the same
  15085. set of options used for compilation (\fB\-fpie\fR, \fB\-fPIE\fR,
  15086. or model suboptions) when you specify this linker option.
  15087. .IP "\fB\-no\-pie\fR" 4
  15088. .IX Item "-no-pie"
  15089. Don't produce a dynamically linked position independent executable.
  15090. .IP "\fB\-static\-pie\fR" 4
  15091. .IX Item "-static-pie"
  15092. Produce a static position independent executable on targets that support
  15093. it. A static position independent executable is similar to a static
  15094. executable, but can be loaded at any address without a dynamic linker.
  15095. For predictable results, you must also specify the same set of options
  15096. used for compilation (\fB\-fpie\fR, \fB\-fPIE\fR, or model
  15097. suboptions) when you specify this linker option.
  15098. .IP "\fB\-pthread\fR" 4
  15099. .IX Item "-pthread"
  15100. Link with the \s-1POSIX\s0 threads library. This option is supported on
  15101. GNU/Linux targets, most other Unix derivatives, and also on
  15102. x86 Cygwin and MinGW targets. On some targets this option also sets
  15103. flags for the preprocessor, so it should be used consistently for both
  15104. compilation and linking.
  15105. .IP "\fB\-r\fR" 4
  15106. .IX Item "-r"
  15107. Produce a relocatable object as output. This is also known as partial
  15108. linking.
  15109. .IP "\fB\-rdynamic\fR" 4
  15110. .IX Item "-rdynamic"
  15111. Pass the flag \fB\-export\-dynamic\fR to the \s-1ELF\s0 linker, on targets
  15112. that support it. This instructs the linker to add all symbols, not
  15113. only used ones, to the dynamic symbol table. This option is needed
  15114. for some uses of \f(CW\*(C`dlopen\*(C'\fR or to allow obtaining backtraces
  15115. from within a program.
  15116. .IP "\fB\-s\fR" 4
  15117. .IX Item "-s"
  15118. Remove all symbol table and relocation information from the executable.
  15119. .IP "\fB\-static\fR" 4
  15120. .IX Item "-static"
  15121. On systems that support dynamic linking, this overrides \fB\-pie\fR
  15122. and prevents linking with the shared libraries. On other systems, this
  15123. option has no effect.
  15124. .IP "\fB\-shared\fR" 4
  15125. .IX Item "-shared"
  15126. Produce a shared object which can then be linked with other objects to
  15127. form an executable. Not all systems support this option. For predictable
  15128. results, you must also specify the same set of options used for compilation
  15129. (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions) when
  15130. you specify this linker option.[1]
  15131. .IP "\fB\-shared\-libgcc\fR" 4
  15132. .IX Item "-shared-libgcc"
  15133. .PD 0
  15134. .IP "\fB\-static\-libgcc\fR" 4
  15135. .IX Item "-static-libgcc"
  15136. .PD
  15137. On systems that provide \fIlibgcc\fR as a shared library, these options
  15138. force the use of either the shared or static version, respectively.
  15139. If no shared version of \fIlibgcc\fR was built when the compiler was
  15140. configured, these options have no effect.
  15141. .Sp
  15142. There are several situations in which an application should use the
  15143. shared \fIlibgcc\fR instead of the static version. The most common
  15144. of these is when the application wishes to throw and catch exceptions
  15145. across different shared libraries. In that case, each of the libraries
  15146. as well as the application itself should use the shared \fIlibgcc\fR.
  15147. .Sp
  15148. Therefore, the G++ driver automatically adds \fB\-shared\-libgcc\fR
  15149. whenever you build a shared library or a main executable, because \*(C+
  15150. programs typically use exceptions, so this is the right thing to do.
  15151. .Sp
  15152. If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
  15153. find that they are not always linked with the shared \fIlibgcc\fR.
  15154. If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
  15155. or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
  15156. it links the shared version of \fIlibgcc\fR into shared libraries
  15157. by default. Otherwise, it takes advantage of the linker and optimizes
  15158. away the linking with the shared version of \fIlibgcc\fR, linking with
  15159. the static version of libgcc by default. This allows exceptions to
  15160. propagate through such shared libraries, without incurring relocation
  15161. costs at library load time.
  15162. .Sp
  15163. However, if a library or main executable is supposed to throw or catch
  15164. exceptions, you must link it using the G++ driver, or using the option
  15165. \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
  15166. \&\fIlibgcc\fR.
  15167. .IP "\fB\-static\-libasan\fR" 4
  15168. .IX Item "-static-libasan"
  15169. When the \fB\-fsanitize=address\fR option is used to link a program,
  15170. the \s-1GCC\s0 driver automatically links against \fBlibasan\fR. If
  15171. \&\fIlibasan\fR is available as a shared library, and the \fB\-static\fR
  15172. option is not used, then this links against the shared version of
  15173. \&\fIlibasan\fR. The \fB\-static\-libasan\fR option directs the \s-1GCC\s0
  15174. driver to link \fIlibasan\fR statically, without necessarily linking
  15175. other libraries statically.
  15176. .IP "\fB\-static\-libtsan\fR" 4
  15177. .IX Item "-static-libtsan"
  15178. When the \fB\-fsanitize=thread\fR option is used to link a program,
  15179. the \s-1GCC\s0 driver automatically links against \fBlibtsan\fR. If
  15180. \&\fIlibtsan\fR is available as a shared library, and the \fB\-static\fR
  15181. option is not used, then this links against the shared version of
  15182. \&\fIlibtsan\fR. The \fB\-static\-libtsan\fR option directs the \s-1GCC\s0
  15183. driver to link \fIlibtsan\fR statically, without necessarily linking
  15184. other libraries statically.
  15185. .IP "\fB\-static\-liblsan\fR" 4
  15186. .IX Item "-static-liblsan"
  15187. When the \fB\-fsanitize=leak\fR option is used to link a program,
  15188. the \s-1GCC\s0 driver automatically links against \fBliblsan\fR. If
  15189. \&\fIliblsan\fR is available as a shared library, and the \fB\-static\fR
  15190. option is not used, then this links against the shared version of
  15191. \&\fIliblsan\fR. The \fB\-static\-liblsan\fR option directs the \s-1GCC\s0
  15192. driver to link \fIliblsan\fR statically, without necessarily linking
  15193. other libraries statically.
  15194. .IP "\fB\-static\-libubsan\fR" 4
  15195. .IX Item "-static-libubsan"
  15196. When the \fB\-fsanitize=undefined\fR option is used to link a program,
  15197. the \s-1GCC\s0 driver automatically links against \fBlibubsan\fR. If
  15198. \&\fIlibubsan\fR is available as a shared library, and the \fB\-static\fR
  15199. option is not used, then this links against the shared version of
  15200. \&\fIlibubsan\fR. The \fB\-static\-libubsan\fR option directs the \s-1GCC\s0
  15201. driver to link \fIlibubsan\fR statically, without necessarily linking
  15202. other libraries statically.
  15203. .IP "\fB\-static\-libstdc++\fR" 4
  15204. .IX Item "-static-libstdc++"
  15205. When the \fBg++\fR program is used to link a \*(C+ program, it
  15206. normally automatically links against \fBlibstdc++\fR. If
  15207. \&\fIlibstdc++\fR is available as a shared library, and the
  15208. \&\fB\-static\fR option is not used, then this links against the
  15209. shared version of \fIlibstdc++\fR. That is normally fine. However, it
  15210. is sometimes useful to freeze the version of \fIlibstdc++\fR used by
  15211. the program without going all the way to a fully static link. The
  15212. \&\fB\-static\-libstdc++\fR option directs the \fBg++\fR driver to
  15213. link \fIlibstdc++\fR statically, without necessarily linking other
  15214. libraries statically.
  15215. .IP "\fB\-symbolic\fR" 4
  15216. .IX Item "-symbolic"
  15217. Bind references to global symbols when building a shared object. Warn
  15218. about any unresolved references (unless overridden by the link editor
  15219. option \fB\-Xlinker \-z \-Xlinker defs\fR). Only a few systems support
  15220. this option.
  15221. .IP "\fB\-T\fR \fIscript\fR" 4
  15222. .IX Item "-T script"
  15223. Use \fIscript\fR as the linker script. This option is supported by most
  15224. systems using the \s-1GNU\s0 linker. On some targets, such as bare-board
  15225. targets without an operating system, the \fB\-T\fR option may be required
  15226. when linking to avoid references to undefined symbols.
  15227. .IP "\fB\-Xlinker\fR \fIoption\fR" 4
  15228. .IX Item "-Xlinker option"
  15229. Pass \fIoption\fR as an option to the linker. You can use this to
  15230. supply system-specific linker options that \s-1GCC\s0 does not recognize.
  15231. .Sp
  15232. If you want to pass an option that takes a separate argument, you must use
  15233. \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
  15234. For example, to pass \fB\-assert definitions\fR, you must write
  15235. \&\fB\-Xlinker \-assert \-Xlinker definitions\fR. It does not work to write
  15236. \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
  15237. string as a single argument, which is not what the linker expects.
  15238. .Sp
  15239. When using the \s-1GNU\s0 linker, it is usually more convenient to pass
  15240. arguments to linker options using the \fIoption\fR\fB=\fR\fIvalue\fR
  15241. syntax than as separate arguments. For example, you can specify
  15242. \&\fB\-Xlinker \-Map=output.map\fR rather than
  15243. \&\fB\-Xlinker \-Map \-Xlinker output.map\fR. Other linkers may not support
  15244. this syntax for command-line options.
  15245. .IP "\fB\-Wl,\fR\fIoption\fR" 4
  15246. .IX Item "-Wl,option"
  15247. Pass \fIoption\fR as an option to the linker. If \fIoption\fR contains
  15248. commas, it is split into multiple options at the commas. You can use this
  15249. syntax to pass an argument to the option.
  15250. For example, \fB\-Wl,\-Map,output.map\fR passes \fB\-Map output.map\fR to the
  15251. linker. When using the \s-1GNU\s0 linker, you can also get the same effect with
  15252. \&\fB\-Wl,\-Map=output.map\fR.
  15253. .IP "\fB\-u\fR \fIsymbol\fR" 4
  15254. .IX Item "-u symbol"
  15255. Pretend the symbol \fIsymbol\fR is undefined, to force linking of
  15256. library modules to define it. You can use \fB\-u\fR multiple times with
  15257. different symbols to force loading of additional library modules.
  15258. .IP "\fB\-z\fR \fIkeyword\fR" 4
  15259. .IX Item "-z keyword"
  15260. \&\fB\-z\fR is passed directly on to the linker along with the keyword
  15261. \&\fIkeyword\fR. See the section in the documentation of your linker for
  15262. permitted values and their meanings.
  15263. .SS "Options for Directory Search"
  15264. .IX Subsection "Options for Directory Search"
  15265. These options specify directories to search for header files, for
  15266. libraries and for parts of the compiler:
  15267. .IP "\fB\-I\fR \fIdir\fR" 4
  15268. .IX Item "-I dir"
  15269. .PD 0
  15270. .IP "\fB\-iquote\fR \fIdir\fR" 4
  15271. .IX Item "-iquote dir"
  15272. .IP "\fB\-isystem\fR \fIdir\fR" 4
  15273. .IX Item "-isystem dir"
  15274. .IP "\fB\-idirafter\fR \fIdir\fR" 4
  15275. .IX Item "-idirafter dir"
  15276. .PD
  15277. Add the directory \fIdir\fR to the list of directories to be searched
  15278. for header files during preprocessing.
  15279. If \fIdir\fR begins with \fB=\fR or \f(CW$SYSROOT\fR, then the \fB=\fR
  15280. or \f(CW$SYSROOT\fR is replaced by the sysroot prefix; see
  15281. \&\fB\-\-sysroot\fR and \fB\-isysroot\fR.
  15282. .Sp
  15283. Directories specified with \fB\-iquote\fR apply only to the quote
  15284. form of the directive, \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
  15285. Directories specified with \fB\-I\fR, \fB\-isystem\fR,
  15286. or \fB\-idirafter\fR apply to lookup for both the
  15287. \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR and
  15288. \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR directives.
  15289. .Sp
  15290. You can specify any number or combination of these options on the
  15291. command line to search for header files in several directories.
  15292. The lookup order is as follows:
  15293. .RS 4
  15294. .IP "1." 4
  15295. .IX Item "1."
  15296. For the quote form of the include directive, the directory of the current
  15297. file is searched first.
  15298. .IP "2." 4
  15299. .IX Item "2."
  15300. For the quote form of the include directive, the directories specified
  15301. by \fB\-iquote\fR options are searched in left-to-right order,
  15302. as they appear on the command line.
  15303. .IP "3." 4
  15304. .IX Item "3."
  15305. Directories specified with \fB\-I\fR options are scanned in
  15306. left-to-right order.
  15307. .IP "4." 4
  15308. .IX Item "4."
  15309. Directories specified with \fB\-isystem\fR options are scanned in
  15310. left-to-right order.
  15311. .IP "5." 4
  15312. .IX Item "5."
  15313. Standard system directories are scanned.
  15314. .IP "6." 4
  15315. .IX Item "6."
  15316. Directories specified with \fB\-idirafter\fR options are scanned in
  15317. left-to-right order.
  15318. .RE
  15319. .RS 4
  15320. .Sp
  15321. You can use \fB\-I\fR to override a system header
  15322. file, substituting your own version, since these directories are
  15323. searched before the standard system header file directories.
  15324. However, you should
  15325. not use this option to add directories that contain vendor-supplied
  15326. system header files; use \fB\-isystem\fR for that.
  15327. .Sp
  15328. The \fB\-isystem\fR and \fB\-idirafter\fR options also mark the directory
  15329. as a system directory, so that it gets the same special treatment that
  15330. is applied to the standard system directories.
  15331. .Sp
  15332. If a standard system include directory, or a directory specified with
  15333. \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
  15334. option is ignored. The directory is still searched but as a
  15335. system directory at its normal position in the system include chain.
  15336. This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
  15337. the ordering for the \f(CW\*(C`#include_next\*(C'\fR directive are not inadvertently
  15338. changed.
  15339. If you really need to change the search order for system directories,
  15340. use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
  15341. .RE
  15342. .IP "\fB\-I\-\fR" 4
  15343. .IX Item "-I-"
  15344. Split the include path.
  15345. This option has been deprecated. Please use \fB\-iquote\fR instead for
  15346. \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR
  15347. option.
  15348. .Sp
  15349. Any directories specified with \fB\-I\fR
  15350. options before \fB\-I\-\fR are searched only for headers requested with
  15351. \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
  15352. \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR. If additional directories are
  15353. specified with \fB\-I\fR options after the \fB\-I\-\fR, those
  15354. directories are searched for all \fB#include\fR directives.
  15355. .Sp
  15356. In addition, \fB\-I\-\fR inhibits the use of the directory of the current
  15357. file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR. There is no way to override this effect of \fB\-I\-\fR.
  15358. .IP "\fB\-iprefix\fR \fIprefix\fR" 4
  15359. .IX Item "-iprefix prefix"
  15360. Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
  15361. options. If the prefix represents a directory, you should include the
  15362. final \fB/\fR.
  15363. .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
  15364. .IX Item "-iwithprefix dir"
  15365. .PD 0
  15366. .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
  15367. .IX Item "-iwithprefixbefore dir"
  15368. .PD
  15369. Append \fIdir\fR to the prefix specified previously with
  15370. \&\fB\-iprefix\fR, and add the resulting directory to the include search
  15371. path. \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
  15372. would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
  15373. .IP "\fB\-isysroot\fR \fIdir\fR" 4
  15374. .IX Item "-isysroot dir"
  15375. This option is like the \fB\-\-sysroot\fR option, but applies only to
  15376. header files (except for Darwin targets, where it applies to both header
  15377. files and libraries). See the \fB\-\-sysroot\fR option for more
  15378. information.
  15379. .IP "\fB\-imultilib\fR \fIdir\fR" 4
  15380. .IX Item "-imultilib dir"
  15381. Use \fIdir\fR as a subdirectory of the directory containing
  15382. target-specific \*(C+ headers.
  15383. .IP "\fB\-nostdinc\fR" 4
  15384. .IX Item "-nostdinc"
  15385. Do not search the standard system directories for header files.
  15386. Only the directories explicitly specified with \fB\-I\fR,
  15387. \&\fB\-iquote\fR, \fB\-isystem\fR, and/or \fB\-idirafter\fR
  15388. options (and the directory of the current file, if appropriate)
  15389. are searched.
  15390. .IP "\fB\-nostdinc++\fR" 4
  15391. .IX Item "-nostdinc++"
  15392. Do not search for header files in the \*(C+\-specific standard directories,
  15393. but do still search the other standard directories. (This option is
  15394. used when building the \*(C+ library.)
  15395. .IP "\fB\-iplugindir=\fR\fIdir\fR" 4
  15396. .IX Item "-iplugindir=dir"
  15397. Set the directory to search for plugins that are passed
  15398. by \fB\-fplugin=\fR\fIname\fR instead of
  15399. \&\fB\-fplugin=\fR\fIpath\fR\fB/\fR\fIname\fR\fB.so\fR. This option is not meant
  15400. to be used by the user, but only passed by the driver.
  15401. .IP "\fB\-L\fR\fIdir\fR" 4
  15402. .IX Item "-Ldir"
  15403. Add directory \fIdir\fR to the list of directories to be searched
  15404. for \fB\-l\fR.
  15405. .IP "\fB\-B\fR\fIprefix\fR" 4
  15406. .IX Item "-Bprefix"
  15407. This option specifies where to find the executables, libraries,
  15408. include files, and data files of the compiler itself.
  15409. .Sp
  15410. The compiler driver program runs one or more of the subprograms
  15411. \&\fBcpp\fR, \fBcc1\fR, \fBas\fR and \fBld\fR. It tries
  15412. \&\fIprefix\fR as a prefix for each program it tries to run, both with and
  15413. without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR for the corresponding target
  15414. machine and compiler version.
  15415. .Sp
  15416. For each subprogram to be run, the compiler driver first tries the
  15417. \&\fB\-B\fR prefix, if any. If that name is not found, or if \fB\-B\fR
  15418. is not specified, the driver tries two standard prefixes,
  15419. \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR. If neither of
  15420. those results in a file name that is found, the unmodified program
  15421. name is searched for using the directories specified in your
  15422. \&\fB\s-1PATH\s0\fR environment variable.
  15423. .Sp
  15424. The compiler checks to see if the path provided by \fB\-B\fR
  15425. refers to a directory, and if necessary it adds a directory
  15426. separator character at the end of the path.
  15427. .Sp
  15428. \&\fB\-B\fR prefixes that effectively specify directory names also apply
  15429. to libraries in the linker, because the compiler translates these
  15430. options into \fB\-L\fR options for the linker. They also apply to
  15431. include files in the preprocessor, because the compiler translates these
  15432. options into \fB\-isystem\fR options for the preprocessor. In this case,
  15433. the compiler appends \fBinclude\fR to the prefix.
  15434. .Sp
  15435. The runtime support file \fIlibgcc.a\fR can also be searched for using
  15436. the \fB\-B\fR prefix, if needed. If it is not found there, the two
  15437. standard prefixes above are tried, and that is all. The file is left
  15438. out of the link if it is not found by those means.
  15439. .Sp
  15440. Another way to specify a prefix much like the \fB\-B\fR prefix is to use
  15441. the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.
  15442. .Sp
  15443. As a special kludge, if the path provided by \fB\-B\fR is
  15444. \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
  15445. 9, then it is replaced by \fI[dir/]include\fR. This is to help
  15446. with boot-strapping the compiler.
  15447. .IP "\fB\-no\-canonical\-prefixes\fR" 4
  15448. .IX Item "-no-canonical-prefixes"
  15449. Do not expand any symbolic links, resolve references to \fB/../\fR
  15450. or \fB/./\fR, or make the path absolute when generating a relative
  15451. prefix.
  15452. .IP "\fB\-\-sysroot=\fR\fIdir\fR" 4
  15453. .IX Item "--sysroot=dir"
  15454. Use \fIdir\fR as the logical root directory for headers and libraries.
  15455. For example, if the compiler normally searches for headers in
  15456. \&\fI/usr/include\fR and libraries in \fI/usr/lib\fR, it instead
  15457. searches \fI\fIdir\fI/usr/include\fR and \fI\fIdir\fI/usr/lib\fR.
  15458. .Sp
  15459. If you use both this option and the \fB\-isysroot\fR option, then
  15460. the \fB\-\-sysroot\fR option applies to libraries, but the
  15461. \&\fB\-isysroot\fR option applies to header files.
  15462. .Sp
  15463. The \s-1GNU\s0 linker (beginning with version 2.16) has the necessary support
  15464. for this option. If your linker does not support this option, the
  15465. header file aspect of \fB\-\-sysroot\fR still works, but the
  15466. library aspect does not.
  15467. .IP "\fB\-\-no\-sysroot\-suffix\fR" 4
  15468. .IX Item "--no-sysroot-suffix"
  15469. For some targets, a suffix is added to the root directory specified
  15470. with \fB\-\-sysroot\fR, depending on the other options used, so that
  15471. headers may for example be found in
  15472. \&\fI\fIdir\fI/\fIsuffix\fI/usr/include\fR instead of
  15473. \&\fI\fIdir\fI/usr/include\fR. This option disables the addition of
  15474. such a suffix.
  15475. .SS "Options for Code Generation Conventions"
  15476. .IX Subsection "Options for Code Generation Conventions"
  15477. These machine-independent options control the interface conventions
  15478. used in code generation.
  15479. .PP
  15480. Most of them have both positive and negative forms; the negative form
  15481. of \fB\-ffoo\fR is \fB\-fno\-foo\fR. In the table below, only
  15482. one of the forms is listed\-\-\-the one that is not the default. You
  15483. can figure out the other form by either removing \fBno\-\fR or adding
  15484. it.
  15485. .IP "\fB\-fstack\-reuse=\fR\fIreuse-level\fR" 4
  15486. .IX Item "-fstack-reuse=reuse-level"
  15487. This option controls stack space reuse for user declared local/auto variables
  15488. and compiler generated temporaries. \fIreuse_level\fR can be \fBall\fR,
  15489. \&\fBnamed_vars\fR, or \fBnone\fR. \fBall\fR enables stack reuse for all
  15490. local variables and temporaries, \fBnamed_vars\fR enables the reuse only for
  15491. user defined local variables with names, and \fBnone\fR disables stack reuse
  15492. completely. The default value is \fBall\fR. The option is needed when the
  15493. program extends the lifetime of a scoped local variable or a compiler generated
  15494. temporary beyond the end point defined by the language. When a lifetime of
  15495. a variable ends, and if the variable lives in memory, the optimizing compiler
  15496. has the freedom to reuse its stack space with other temporaries or scoped
  15497. local variables whose live range does not overlap with it. Legacy code extending
  15498. local lifetime is likely to break with the stack reuse optimization.
  15499. .Sp
  15500. For example,
  15501. .Sp
  15502. .Vb 3
  15503. \& int *p;
  15504. \& {
  15505. \& int local1;
  15506. \&
  15507. \& p = &local1;
  15508. \& local1 = 10;
  15509. \& ....
  15510. \& }
  15511. \& {
  15512. \& int local2;
  15513. \& local2 = 20;
  15514. \& ...
  15515. \& }
  15516. \&
  15517. \& if (*p == 10) // out of scope use of local1
  15518. \& {
  15519. \&
  15520. \& }
  15521. .Ve
  15522. .Sp
  15523. Another example:
  15524. .Sp
  15525. .Vb 6
  15526. \& struct A
  15527. \& {
  15528. \& A(int k) : i(k), j(k) { }
  15529. \& int i;
  15530. \& int j;
  15531. \& };
  15532. \&
  15533. \& A *ap;
  15534. \&
  15535. \& void foo(const A& ar)
  15536. \& {
  15537. \& ap = &ar;
  15538. \& }
  15539. \&
  15540. \& void bar()
  15541. \& {
  15542. \& foo(A(10)); // temp object\*(Aqs lifetime ends when foo returns
  15543. \&
  15544. \& {
  15545. \& A a(20);
  15546. \& ....
  15547. \& }
  15548. \& ap\->i+= 10; // ap references out of scope temp whose space
  15549. \& // is reused with a. What is the value of ap\->i?
  15550. \& }
  15551. .Ve
  15552. .Sp
  15553. The lifetime of a compiler generated temporary is well defined by the \*(C+
  15554. standard. When a lifetime of a temporary ends, and if the temporary lives
  15555. in memory, the optimizing compiler has the freedom to reuse its stack
  15556. space with other temporaries or scoped local variables whose live range
  15557. does not overlap with it. However some of the legacy code relies on
  15558. the behavior of older compilers in which temporaries' stack space is
  15559. not reused, the aggressive stack reuse can lead to runtime errors. This
  15560. option is used to control the temporary stack reuse optimization.
  15561. .IP "\fB\-ftrapv\fR" 4
  15562. .IX Item "-ftrapv"
  15563. This option generates traps for signed overflow on addition, subtraction,
  15564. multiplication operations.
  15565. The options \fB\-ftrapv\fR and \fB\-fwrapv\fR override each other, so using
  15566. \&\fB\-ftrapv\fR \fB\-fwrapv\fR on the command-line results in
  15567. \&\fB\-fwrapv\fR being effective. Note that only active options override, so
  15568. using \fB\-ftrapv\fR \fB\-fwrapv\fR \fB\-fno\-wrapv\fR on the command-line
  15569. results in \fB\-ftrapv\fR being effective.
  15570. .IP "\fB\-fwrapv\fR" 4
  15571. .IX Item "-fwrapv"
  15572. This option instructs the compiler to assume that signed arithmetic
  15573. overflow of addition, subtraction and multiplication wraps around
  15574. using twos-complement representation. This flag enables some optimizations
  15575. and disables others.
  15576. The options \fB\-ftrapv\fR and \fB\-fwrapv\fR override each other, so using
  15577. \&\fB\-ftrapv\fR \fB\-fwrapv\fR on the command-line results in
  15578. \&\fB\-fwrapv\fR being effective. Note that only active options override, so
  15579. using \fB\-ftrapv\fR \fB\-fwrapv\fR \fB\-fno\-wrapv\fR on the command-line
  15580. results in \fB\-ftrapv\fR being effective.
  15581. .IP "\fB\-fwrapv\-pointer\fR" 4
  15582. .IX Item "-fwrapv-pointer"
  15583. This option instructs the compiler to assume that pointer arithmetic
  15584. overflow on addition and subtraction wraps around using twos-complement
  15585. representation. This flag disables some optimizations which assume
  15586. pointer overflow is invalid.
  15587. .IP "\fB\-fstrict\-overflow\fR" 4
  15588. .IX Item "-fstrict-overflow"
  15589. This option implies \fB\-fno\-wrapv\fR \fB\-fno\-wrapv\-pointer\fR and when
  15590. negated implies \fB\-fwrapv\fR \fB\-fwrapv\-pointer\fR.
  15591. .IP "\fB\-fexceptions\fR" 4
  15592. .IX Item "-fexceptions"
  15593. Enable exception handling. Generates extra code needed to propagate
  15594. exceptions. For some targets, this implies \s-1GCC\s0 generates frame
  15595. unwind information for all functions, which can produce significant data
  15596. size overhead, although it does not affect execution. If you do not
  15597. specify this option, \s-1GCC\s0 enables it by default for languages like
  15598. \&\*(C+ that normally require exception handling, and disables it for
  15599. languages like C that do not normally require it. However, you may need
  15600. to enable this option when compiling C code that needs to interoperate
  15601. properly with exception handlers written in \*(C+. You may also wish to
  15602. disable this option if you are compiling older \*(C+ programs that don't
  15603. use exception handling.
  15604. .IP "\fB\-fnon\-call\-exceptions\fR" 4
  15605. .IX Item "-fnon-call-exceptions"
  15606. Generate code that allows trapping instructions to throw exceptions.
  15607. Note that this requires platform-specific runtime support that does
  15608. not exist everywhere. Moreover, it only allows \fItrapping\fR
  15609. instructions to throw exceptions, i.e. memory references or floating-point
  15610. instructions. It does not allow exceptions to be thrown from
  15611. arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
  15612. .IP "\fB\-fdelete\-dead\-exceptions\fR" 4
  15613. .IX Item "-fdelete-dead-exceptions"
  15614. Consider that instructions that may throw exceptions but don't otherwise
  15615. contribute to the execution of the program can be optimized away.
  15616. This option is enabled by default for the Ada compiler, as permitted by
  15617. the Ada language specification.
  15618. Optimization passes that cause dead exceptions to be removed are enabled independently at different optimization levels.
  15619. .IP "\fB\-funwind\-tables\fR" 4
  15620. .IX Item "-funwind-tables"
  15621. Similar to \fB\-fexceptions\fR, except that it just generates any needed
  15622. static data, but does not affect the generated code in any other way.
  15623. You normally do not need to enable this option; instead, a language processor
  15624. that needs this handling enables it on your behalf.
  15625. .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
  15626. .IX Item "-fasynchronous-unwind-tables"
  15627. Generate unwind table in \s-1DWARF\s0 format, if supported by target machine. The
  15628. table is exact at each instruction boundary, so it can be used for stack
  15629. unwinding from asynchronous events (such as debugger or garbage collector).
  15630. .IP "\fB\-fno\-gnu\-unique\fR" 4
  15631. .IX Item "-fno-gnu-unique"
  15632. On systems with recent \s-1GNU\s0 assembler and C library, the \*(C+ compiler
  15633. uses the \f(CW\*(C`STB_GNU_UNIQUE\*(C'\fR binding to make sure that definitions
  15634. of template static data members and static local variables in inline
  15635. functions are unique even in the presence of \f(CW\*(C`RTLD_LOCAL\*(C'\fR; this
  15636. is necessary to avoid problems with a library used by two different
  15637. \&\f(CW\*(C`RTLD_LOCAL\*(C'\fR plugins depending on a definition in one of them and
  15638. therefore disagreeing with the other one about the binding of the
  15639. symbol. But this causes \f(CW\*(C`dlclose\*(C'\fR to be ignored for affected
  15640. DSOs; if your program relies on reinitialization of a \s-1DSO\s0 via
  15641. \&\f(CW\*(C`dlclose\*(C'\fR and \f(CW\*(C`dlopen\*(C'\fR, you can use
  15642. \&\fB\-fno\-gnu\-unique\fR.
  15643. .IP "\fB\-fpcc\-struct\-return\fR" 4
  15644. .IX Item "-fpcc-struct-return"
  15645. Return \*(L"short\*(R" \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
  15646. longer ones, rather than in registers. This convention is less
  15647. efficient, but it has the advantage of allowing intercallability between
  15648. GCC-compiled files and files compiled with other compilers, particularly
  15649. the Portable C Compiler (pcc).
  15650. .Sp
  15651. The precise convention for returning structures in memory depends
  15652. on the target configuration macros.
  15653. .Sp
  15654. Short structures and unions are those whose size and alignment match
  15655. that of some integer type.
  15656. .Sp
  15657. \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
  15658. switch is not binary compatible with code compiled with the
  15659. \&\fB\-freg\-struct\-return\fR switch.
  15660. Use it to conform to a non-default application binary interface.
  15661. .IP "\fB\-freg\-struct\-return\fR" 4
  15662. .IX Item "-freg-struct-return"
  15663. Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
  15664. This is more efficient for small structures than
  15665. \&\fB\-fpcc\-struct\-return\fR.
  15666. .Sp
  15667. If you specify neither \fB\-fpcc\-struct\-return\fR nor
  15668. \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
  15669. standard for the target. If there is no standard convention, \s-1GCC\s0
  15670. defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
  15671. the principal compiler. In those cases, we can choose the standard, and
  15672. we chose the more efficient register return alternative.
  15673. .Sp
  15674. \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
  15675. switch is not binary compatible with code compiled with the
  15676. \&\fB\-fpcc\-struct\-return\fR switch.
  15677. Use it to conform to a non-default application binary interface.
  15678. .IP "\fB\-fshort\-enums\fR" 4
  15679. .IX Item "-fshort-enums"
  15680. Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
  15681. declared range of possible values. Specifically, the \f(CW\*(C`enum\*(C'\fR type
  15682. is equivalent to the smallest integer type that has enough room.
  15683. .Sp
  15684. \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
  15685. code that is not binary compatible with code generated without that switch.
  15686. Use it to conform to a non-default application binary interface.
  15687. .IP "\fB\-fshort\-wchar\fR" 4
  15688. .IX Item "-fshort-wchar"
  15689. Override the underlying type for \f(CW\*(C`wchar_t\*(C'\fR to be \f(CW\*(C`short
  15690. unsigned int\*(C'\fR instead of the default for the target. This option is
  15691. useful for building programs to run under \s-1WINE.\s0
  15692. .Sp
  15693. \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
  15694. code that is not binary compatible with code generated without that switch.
  15695. Use it to conform to a non-default application binary interface.
  15696. .IP "\fB\-fcommon\fR" 4
  15697. .IX Item "-fcommon"
  15698. In C code, this option controls the placement of global variables
  15699. defined without an initializer, known as \fItentative definitions\fR
  15700. in the C standard. Tentative definitions are distinct from declarations
  15701. of a variable with the \f(CW\*(C`extern\*(C'\fR keyword, which do not allocate storage.
  15702. .Sp
  15703. The default is \fB\-fno\-common\fR, which specifies that the compiler places
  15704. uninitialized global variables in the \s-1BSS\s0 section of the object file.
  15705. This inhibits the merging of tentative definitions by the linker so you get a
  15706. multiple-definition error if the same variable is accidentally defined in more
  15707. than one compilation unit.
  15708. .Sp
  15709. The \fB\-fcommon\fR places uninitialized global variables in a common block.
  15710. This allows the linker to resolve all tentative definitions of the same variable
  15711. in different compilation units to the same object, or to a non-tentative
  15712. definition. This behavior is inconsistent with \*(C+, and on many targets implies
  15713. a speed and code size penalty on global variable references. It is mainly
  15714. useful to enable legacy code to link without errors.
  15715. .IP "\fB\-fno\-ident\fR" 4
  15716. .IX Item "-fno-ident"
  15717. Ignore the \f(CW\*(C`#ident\*(C'\fR directive.
  15718. .IP "\fB\-finhibit\-size\-directive\fR" 4
  15719. .IX Item "-finhibit-size-directive"
  15720. Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
  15721. would cause trouble if the function is split in the middle, and the
  15722. two halves are placed at locations far apart in memory. This option is
  15723. used when compiling \fIcrtstuff.c\fR; you should not need to use it
  15724. for anything else.
  15725. .IP "\fB\-fverbose\-asm\fR" 4
  15726. .IX Item "-fverbose-asm"
  15727. Put extra commentary information in the generated assembly code to
  15728. make it more readable. This option is generally only of use to those
  15729. who actually need to read the generated assembly code (perhaps while
  15730. debugging the compiler itself).
  15731. .Sp
  15732. \&\fB\-fno\-verbose\-asm\fR, the default, causes the
  15733. extra information to be omitted and is useful when comparing two assembler
  15734. files.
  15735. .Sp
  15736. The added comments include:
  15737. .RS 4
  15738. .IP "*" 4
  15739. information on the compiler version and command-line options,
  15740. .IP "*" 4
  15741. the source code lines associated with the assembly instructions,
  15742. in the form \s-1FILENAME:LINENUMBER:CONTENT OF LINE,\s0
  15743. .IP "*" 4
  15744. hints on which high-level expressions correspond to
  15745. the various assembly instruction operands.
  15746. .RE
  15747. .RS 4
  15748. .Sp
  15749. For example, given this C source file:
  15750. .Sp
  15751. .Vb 4
  15752. \& int test (int n)
  15753. \& {
  15754. \& int i;
  15755. \& int total = 0;
  15756. \&
  15757. \& for (i = 0; i < n; i++)
  15758. \& total += i * i;
  15759. \&
  15760. \& return total;
  15761. \& }
  15762. .Ve
  15763. .Sp
  15764. compiling to (x86_64) assembly via \fB\-S\fR and emitting the result
  15765. direct to stdout via \fB\-o\fR \fB\-\fR
  15766. .Sp
  15767. .Vb 1
  15768. \& gcc \-S test.c \-fverbose\-asm \-Os \-o \-
  15769. .Ve
  15770. .Sp
  15771. gives output similar to this:
  15772. .Sp
  15773. .Vb 5
  15774. \& .file "test.c"
  15775. \& # GNU C11 (GCC) version 7.0.0 20160809 (experimental) (x86_64\-pc\-linux\-gnu)
  15776. \& [...snip...]
  15777. \& # options passed:
  15778. \& [...snip...]
  15779. \&
  15780. \& .text
  15781. \& .globl test
  15782. \& .type test, @function
  15783. \& test:
  15784. \& .LFB0:
  15785. \& .cfi_startproc
  15786. \& # test.c:4: int total = 0;
  15787. \& xorl %eax, %eax # <retval>
  15788. \& # test.c:6: for (i = 0; i < n; i++)
  15789. \& xorl %edx, %edx # i
  15790. \& .L2:
  15791. \& # test.c:6: for (i = 0; i < n; i++)
  15792. \& cmpl %edi, %edx # n, i
  15793. \& jge .L5 #,
  15794. \& # test.c:7: total += i * i;
  15795. \& movl %edx, %ecx # i, tmp92
  15796. \& imull %edx, %ecx # i, tmp92
  15797. \& # test.c:6: for (i = 0; i < n; i++)
  15798. \& incl %edx # i
  15799. \& # test.c:7: total += i * i;
  15800. \& addl %ecx, %eax # tmp92, <retval>
  15801. \& jmp .L2 #
  15802. \& .L5:
  15803. \& # test.c:10: }
  15804. \& ret
  15805. \& .cfi_endproc
  15806. \& .LFE0:
  15807. \& .size test, .\-test
  15808. \& .ident "GCC: (GNU) 7.0.0 20160809 (experimental)"
  15809. \& .section .note.GNU\-stack,"",@progbits
  15810. .Ve
  15811. .Sp
  15812. The comments are intended for humans rather than machines and hence the
  15813. precise format of the comments is subject to change.
  15814. .RE
  15815. .IP "\fB\-frecord\-gcc\-switches\fR" 4
  15816. .IX Item "-frecord-gcc-switches"
  15817. This switch causes the command line used to invoke the
  15818. compiler to be recorded into the object file that is being created.
  15819. This switch is only implemented on some targets and the exact format
  15820. of the recording is target and binary file format dependent, but it
  15821. usually takes the form of a section containing \s-1ASCII\s0 text. This
  15822. switch is related to the \fB\-fverbose\-asm\fR switch, but that
  15823. switch only records information in the assembler output file as
  15824. comments, so it never reaches the object file.
  15825. See also \fB\-grecord\-gcc\-switches\fR for another
  15826. way of storing compiler options into the object file.
  15827. .IP "\fB\-fpic\fR" 4
  15828. .IX Item "-fpic"
  15829. Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
  15830. library, if supported for the target machine. Such code accesses all
  15831. constant addresses through a global offset table (\s-1GOT\s0). The dynamic
  15832. loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
  15833. loader is not part of \s-1GCC\s0; it is part of the operating system). If
  15834. the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
  15835. maximum size, you get an error message from the linker indicating that
  15836. \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
  15837. instead. (These maximums are 8k on the \s-1SPARC,\s0 28k on AArch64 and 32k
  15838. on the m68k and \s-1RS/6000.\s0 The x86 has no such limit.)
  15839. .Sp
  15840. Position-independent code requires special support, and therefore works
  15841. only on certain machines. For the x86, \s-1GCC\s0 supports \s-1PIC\s0 for System V
  15842. but not for the Sun 386i. Code generated for the \s-1IBM RS/6000\s0 is always
  15843. position-independent.
  15844. .Sp
  15845. When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
  15846. are defined to 1.
  15847. .IP "\fB\-fPIC\fR" 4
  15848. .IX Item "-fPIC"
  15849. If supported for the target machine, emit position-independent code,
  15850. suitable for dynamic linking and avoiding any limit on the size of the
  15851. global offset table. This option makes a difference on AArch64, m68k,
  15852. PowerPC and \s-1SPARC.\s0
  15853. .Sp
  15854. Position-independent code requires special support, and therefore works
  15855. only on certain machines.
  15856. .Sp
  15857. When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
  15858. are defined to 2.
  15859. .IP "\fB\-fpie\fR" 4
  15860. .IX Item "-fpie"
  15861. .PD 0
  15862. .IP "\fB\-fPIE\fR" 4
  15863. .IX Item "-fPIE"
  15864. .PD
  15865. These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but the
  15866. generated position-independent code can be only linked into executables.
  15867. Usually these options are used to compile code that will be linked using
  15868. the \fB\-pie\fR \s-1GCC\s0 option.
  15869. .Sp
  15870. \&\fB\-fpie\fR and \fB\-fPIE\fR both define the macros
  15871. \&\f(CW\*(C`_\|_pie_\|_\*(C'\fR and \f(CW\*(C`_\|_PIE_\|_\*(C'\fR. The macros have the value 1
  15872. for \fB\-fpie\fR and 2 for \fB\-fPIE\fR.
  15873. .IP "\fB\-fno\-plt\fR" 4
  15874. .IX Item "-fno-plt"
  15875. Do not use the \s-1PLT\s0 for external function calls in position-independent code.
  15876. Instead, load the callee address at call sites from the \s-1GOT\s0 and branch to it.
  15877. This leads to more efficient code by eliminating \s-1PLT\s0 stubs and exposing
  15878. \&\s-1GOT\s0 loads to optimizations. On architectures such as 32\-bit x86 where
  15879. \&\s-1PLT\s0 stubs expect the \s-1GOT\s0 pointer in a specific register, this gives more
  15880. register allocation freedom to the compiler.
  15881. Lazy binding requires use of the \s-1PLT\s0;
  15882. with \fB\-fno\-plt\fR all external symbols are resolved at load time.
  15883. .Sp
  15884. Alternatively, the function attribute \f(CW\*(C`noplt\*(C'\fR can be used to avoid calls
  15885. through the \s-1PLT\s0 for specific external functions.
  15886. .Sp
  15887. In position-dependent code, a few targets also convert calls to
  15888. functions that are marked to not use the \s-1PLT\s0 to use the \s-1GOT\s0 instead.
  15889. .IP "\fB\-fno\-jump\-tables\fR" 4
  15890. .IX Item "-fno-jump-tables"
  15891. Do not use jump tables for switch statements even where it would be
  15892. more efficient than other code generation strategies. This option is
  15893. of use in conjunction with \fB\-fpic\fR or \fB\-fPIC\fR for
  15894. building code that forms part of a dynamic linker and cannot
  15895. reference the address of a jump table. On some targets, jump tables
  15896. do not require a \s-1GOT\s0 and this option is not needed.
  15897. .IP "\fB\-fno\-bit\-tests\fR" 4
  15898. .IX Item "-fno-bit-tests"
  15899. Do not use bit tests for switch statements even where it would be
  15900. more efficient than other code generation strategies.
  15901. .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
  15902. .IX Item "-ffixed-reg"
  15903. Treat the register named \fIreg\fR as a fixed register; generated code
  15904. should never refer to it (except perhaps as a stack pointer, frame
  15905. pointer or in some other fixed role).
  15906. .Sp
  15907. \&\fIreg\fR must be the name of a register. The register names accepted
  15908. are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
  15909. macro in the machine description macro file.
  15910. .Sp
  15911. This flag does not have a negative form, because it specifies a
  15912. three-way choice.
  15913. .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
  15914. .IX Item "-fcall-used-reg"
  15915. Treat the register named \fIreg\fR as an allocable register that is
  15916. clobbered by function calls. It may be allocated for temporaries or
  15917. variables that do not live across a call. Functions compiled this way
  15918. do not save and restore the register \fIreg\fR.
  15919. .Sp
  15920. It is an error to use this flag with the frame pointer or stack pointer.
  15921. Use of this flag for other registers that have fixed pervasive roles in
  15922. the machine's execution model produces disastrous results.
  15923. .Sp
  15924. This flag does not have a negative form, because it specifies a
  15925. three-way choice.
  15926. .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
  15927. .IX Item "-fcall-saved-reg"
  15928. Treat the register named \fIreg\fR as an allocable register saved by
  15929. functions. It may be allocated even for temporaries or variables that
  15930. live across a call. Functions compiled this way save and restore
  15931. the register \fIreg\fR if they use it.
  15932. .Sp
  15933. It is an error to use this flag with the frame pointer or stack pointer.
  15934. Use of this flag for other registers that have fixed pervasive roles in
  15935. the machine's execution model produces disastrous results.
  15936. .Sp
  15937. A different sort of disaster results from the use of this flag for
  15938. a register in which function values may be returned.
  15939. .Sp
  15940. This flag does not have a negative form, because it specifies a
  15941. three-way choice.
  15942. .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
  15943. .IX Item "-fpack-struct[=n]"
  15944. Without a value specified, pack all structure members together without
  15945. holes. When a value is specified (which must be a small power of two), pack
  15946. structure members according to this value, representing the maximum
  15947. alignment (that is, objects with default alignment requirements larger than
  15948. this are output potentially unaligned at the next fitting location.
  15949. .Sp
  15950. \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
  15951. code that is not binary compatible with code generated without that switch.
  15952. Additionally, it makes the code suboptimal.
  15953. Use it to conform to a non-default application binary interface.
  15954. .IP "\fB\-fleading\-underscore\fR" 4
  15955. .IX Item "-fleading-underscore"
  15956. This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
  15957. change the way C symbols are represented in the object file. One use
  15958. is to help link with legacy assembly code.
  15959. .Sp
  15960. \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
  15961. generate code that is not binary compatible with code generated without that
  15962. switch. Use it to conform to a non-default application binary interface.
  15963. Not all targets provide complete support for this switch.
  15964. .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
  15965. .IX Item "-ftls-model=model"
  15966. Alter the thread-local storage model to be used.
  15967. The \fImodel\fR argument should be one of \fBglobal-dynamic\fR,
  15968. \&\fBlocal-dynamic\fR, \fBinitial-exec\fR or \fBlocal-exec\fR.
  15969. Note that the choice is subject to optimization: the compiler may use
  15970. a more efficient model for symbols not visible outside of the translation
  15971. unit, or if \fB\-fpic\fR is not given on the command line.
  15972. .Sp
  15973. The default without \fB\-fpic\fR is \fBinitial-exec\fR; with
  15974. \&\fB\-fpic\fR the default is \fBglobal-dynamic\fR.
  15975. .IP "\fB\-ftrampolines\fR" 4
  15976. .IX Item "-ftrampolines"
  15977. For targets that normally need trampolines for nested functions, always
  15978. generate them instead of using descriptors. Otherwise, for targets that
  15979. do not need them, like for example HP-PA or \s-1IA\-64,\s0 do nothing.
  15980. .Sp
  15981. A trampoline is a small piece of code that is created at run time on the
  15982. stack when the address of a nested function is taken, and is used to call
  15983. the nested function indirectly. Therefore, it requires the stack to be
  15984. made executable in order for the program to work properly.
  15985. .Sp
  15986. \&\fB\-fno\-trampolines\fR is enabled by default on a language by language
  15987. basis to let the compiler avoid generating them, if it computes that this
  15988. is safe, and replace them with descriptors. Descriptors are made up of data
  15989. only, but the generated code must be prepared to deal with them. As of this
  15990. writing, \fB\-fno\-trampolines\fR is enabled by default only for Ada.
  15991. .Sp
  15992. Moreover, code compiled with \fB\-ftrampolines\fR and code compiled with
  15993. \&\fB\-fno\-trampolines\fR are not binary compatible if nested functions are
  15994. present. This option must therefore be used on a program-wide basis and be
  15995. manipulated with extreme care.
  15996. .IP "\fB\-fvisibility=\fR[\fBdefault\fR|\fBinternal\fR|\fBhidden\fR|\fBprotected\fR]" 4
  15997. .IX Item "-fvisibility=[default|internal|hidden|protected]"
  15998. Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
  15999. symbols are marked with this unless overridden within the code.
  16000. Using this feature can very substantially improve linking and
  16001. load times of shared object libraries, produce more optimized
  16002. code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
  16003. It is \fBstrongly\fR recommended that you use this in any shared objects
  16004. you distribute.
  16005. .Sp
  16006. Despite the nomenclature, \fBdefault\fR always means public; i.e.,
  16007. available to be linked against from outside the shared object.
  16008. \&\fBprotected\fR and \fBinternal\fR are pretty useless in real-world
  16009. usage so the only other commonly used option is \fBhidden\fR.
  16010. The default if \fB\-fvisibility\fR isn't specified is
  16011. \&\fBdefault\fR, i.e., make every symbol public.
  16012. .Sp
  16013. A good explanation of the benefits offered by ensuring \s-1ELF\s0
  16014. symbols have the correct visibility is given by \*(L"How To Write
  16015. Shared Libraries\*(R" by Ulrich Drepper (which can be found at
  16016. <\fBhttps://www.akkadia.org/drepper/\fR>)\-\-\-however a superior
  16017. solution made possible by this option to marking things hidden when
  16018. the default is public is to make the default hidden and mark things
  16019. public. This is the norm with DLLs on Windows and with \fB\-fvisibility=hidden\fR
  16020. and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
  16021. \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
  16022. identical syntax. This is a great boon to those working with
  16023. cross-platform projects.
  16024. .Sp
  16025. For those adding visibility support to existing code, you may find
  16026. \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR of use. This works by you enclosing
  16027. the declarations you wish to set visibility for with (for example)
  16028. \&\f(CW\*(C`#pragma GCC visibility push(hidden)\*(C'\fR and
  16029. \&\f(CW\*(C`#pragma GCC visibility pop\*(C'\fR.
  16030. Bear in mind that symbol visibility should be viewed \fBas
  16031. part of the \s-1API\s0 interface contract\fR and thus all new code should
  16032. always specify visibility when it is not the default; i.e., declarations
  16033. only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
  16034. as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
  16035. abundantly clear also aids readability and self-documentation of the code.
  16036. Note that due to \s-1ISO \*(C+\s0 specification requirements, \f(CW\*(C`operator new\*(C'\fR and
  16037. \&\f(CW\*(C`operator delete\*(C'\fR must always be of default visibility.
  16038. .Sp
  16039. Be aware that headers from outside your project, in particular system
  16040. headers and headers from any other library you use, may not be
  16041. expecting to be compiled with visibility other than the default. You
  16042. may need to explicitly say \f(CW\*(C`#pragma GCC visibility push(default)\*(C'\fR
  16043. before including any such headers.
  16044. .Sp
  16045. \&\f(CW\*(C`extern\*(C'\fR declarations are not affected by \fB\-fvisibility\fR, so
  16046. a lot of code can be recompiled with \fB\-fvisibility=hidden\fR with
  16047. no modifications. However, this means that calls to \f(CW\*(C`extern\*(C'\fR
  16048. functions with no explicit visibility use the \s-1PLT,\s0 so it is more
  16049. effective to use \f(CW\*(C`_\|_attribute ((visibility))\*(C'\fR and/or
  16050. \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR to tell the compiler which \f(CW\*(C`extern\*(C'\fR
  16051. declarations should be treated as hidden.
  16052. .Sp
  16053. Note that \fB\-fvisibility\fR does affect \*(C+ vague linkage
  16054. entities. This means that, for instance, an exception class that is
  16055. be thrown between DSOs must be explicitly marked with default
  16056. visibility so that the \fBtype_info\fR nodes are unified between
  16057. the DSOs.
  16058. .Sp
  16059. An overview of these techniques, their benefits and how to use them
  16060. is at <\fBhttp://gcc.gnu.org/wiki/Visibility\fR>.
  16061. .IP "\fB\-fstrict\-volatile\-bitfields\fR" 4
  16062. .IX Item "-fstrict-volatile-bitfields"
  16063. This option should be used if accesses to volatile bit-fields (or other
  16064. structure fields, although the compiler usually honors those types
  16065. anyway) should use a single access of the width of the
  16066. field's type, aligned to a natural alignment if possible. For
  16067. example, targets with memory-mapped peripheral registers might require
  16068. all such accesses to be 16 bits wide; with this flag you can
  16069. declare all peripheral bit-fields as \f(CW\*(C`unsigned short\*(C'\fR (assuming short
  16070. is 16 bits on these targets) to force \s-1GCC\s0 to use 16\-bit accesses
  16071. instead of, perhaps, a more efficient 32\-bit access.
  16072. .Sp
  16073. If this option is disabled, the compiler uses the most efficient
  16074. instruction. In the previous example, that might be a 32\-bit load
  16075. instruction, even though that accesses bytes that do not contain
  16076. any portion of the bit-field, or memory-mapped registers unrelated to
  16077. the one being updated.
  16078. .Sp
  16079. In some cases, such as when the \f(CW\*(C`packed\*(C'\fR attribute is applied to a
  16080. structure field, it may not be possible to access the field with a single
  16081. read or write that is correctly aligned for the target machine. In this
  16082. case \s-1GCC\s0 falls back to generating multiple accesses rather than code that
  16083. will fault or truncate the result at run time.
  16084. .Sp
  16085. Note: Due to restrictions of the C/\*(C+11 memory model, write accesses are
  16086. not allowed to touch non bit-field members. It is therefore recommended
  16087. to define all bits of the field's type as bit-field members.
  16088. .Sp
  16089. The default value of this option is determined by the application binary
  16090. interface for the target processor.
  16091. .IP "\fB\-fsync\-libcalls\fR" 4
  16092. .IX Item "-fsync-libcalls"
  16093. This option controls whether any out-of-line instance of the \f(CW\*(C`_\|_sync\*(C'\fR
  16094. family of functions may be used to implement the \*(C+11 \f(CW\*(C`_\|_atomic\*(C'\fR
  16095. family of functions.
  16096. .Sp
  16097. The default value of this option is enabled, thus the only useful form
  16098. of the option is \fB\-fno\-sync\-libcalls\fR. This option is used in
  16099. the implementation of the \fIlibatomic\fR runtime library.
  16100. .SS "\s-1GCC\s0 Developer Options"
  16101. .IX Subsection "GCC Developer Options"
  16102. This section describes command-line options that are primarily of
  16103. interest to \s-1GCC\s0 developers, including options to support compiler
  16104. testing and investigation of compiler bugs and compile-time
  16105. performance problems. This includes options that produce debug dumps
  16106. at various points in the compilation; that print statistics such as
  16107. memory use and execution time; and that print information about \s-1GCC\s0's
  16108. configuration, such as where it searches for libraries. You should
  16109. rarely need to use any of these options for ordinary compilation and
  16110. linking tasks.
  16111. .PP
  16112. Many developer options that cause \s-1GCC\s0 to dump output to a file take an
  16113. optional \fB=\fR\fIfilename\fR suffix. You can specify \fBstdout\fR
  16114. or \fB\-\fR to dump to standard output, and \fBstderr\fR for standard
  16115. error.
  16116. .PP
  16117. If \fB=\fR\fIfilename\fR is omitted, a default dump file name is
  16118. constructed by concatenating the base dump file name, a pass number,
  16119. phase letter, and pass name. The base dump file name is the name of
  16120. output file produced by the compiler if explicitly specified and not
  16121. an executable; otherwise it is the source file name.
  16122. The pass number is determined by the order passes are registered with
  16123. the compiler's pass manager.
  16124. This is generally the same as the order of execution, but passes
  16125. registered by plugins, target-specific passes, or passes that are
  16126. otherwise registered late are numbered higher than the pass named
  16127. \&\fBfinal\fR, even if they are executed earlier. The phase letter is
  16128. one of \fBi\fR (inter-procedural analysis), \fBl\fR
  16129. (language-specific), \fBr\fR (\s-1RTL\s0), or \fBt\fR (tree).
  16130. The files are created in the directory of the output file.
  16131. .IP "\fB\-fcallgraph\-info\fR" 4
  16132. .IX Item "-fcallgraph-info"
  16133. .PD 0
  16134. .IP "\fB\-fcallgraph\-info=\fR\fI\s-1MARKERS\s0\fR" 4
  16135. .IX Item "-fcallgraph-info=MARKERS"
  16136. .PD
  16137. Makes the compiler output callgraph information for the program, on a
  16138. per-object-file basis. The information is generated in the common \s-1VCG\s0
  16139. format. It can be decorated with additional, per-node and/or per-edge
  16140. information, if a list of comma-separated markers is additionally
  16141. specified. When the \f(CW\*(C`su\*(C'\fR marker is specified, the callgraph is
  16142. decorated with stack usage information; it is equivalent to
  16143. \&\fB\-fstack\-usage\fR. When the \f(CW\*(C`da\*(C'\fR marker is specified, the
  16144. callgraph is decorated with information about dynamically allocated
  16145. objects.
  16146. .Sp
  16147. When compiling with \fB\-flto\fR, no callgraph information is output
  16148. along with the object file. At \s-1LTO\s0 link time, \fB\-fcallgraph\-info\fR
  16149. may generate multiple callgraph information files next to intermediate
  16150. \&\s-1LTO\s0 output files.
  16151. .IP "\fB\-d\fR\fIletters\fR" 4
  16152. .IX Item "-dletters"
  16153. .PD 0
  16154. .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
  16155. .IX Item "-fdump-rtl-pass"
  16156. .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR\fB=\fR\fIfilename\fR" 4
  16157. .IX Item "-fdump-rtl-pass=filename"
  16158. .PD
  16159. Says to make debugging dumps during compilation at times specified by
  16160. \&\fIletters\fR. This is used for debugging the RTL-based passes of the
  16161. compiler.
  16162. .Sp
  16163. Some \fB\-d\fR\fIletters\fR switches have different meaning when
  16164. \&\fB\-E\fR is used for preprocessing.
  16165. .Sp
  16166. Debug dumps can be enabled with a \fB\-fdump\-rtl\fR switch or some
  16167. \&\fB\-d\fR option \fIletters\fR. Here are the possible
  16168. letters for use in \fIpass\fR and \fIletters\fR, and their meanings:
  16169. .RS 4
  16170. .IP "\fB\-fdump\-rtl\-alignments\fR" 4
  16171. .IX Item "-fdump-rtl-alignments"
  16172. Dump after branch alignments have been computed.
  16173. .IP "\fB\-fdump\-rtl\-asmcons\fR" 4
  16174. .IX Item "-fdump-rtl-asmcons"
  16175. Dump after fixing rtl statements that have unsatisfied in/out constraints.
  16176. .IP "\fB\-fdump\-rtl\-auto_inc_dec\fR" 4
  16177. .IX Item "-fdump-rtl-auto_inc_dec"
  16178. Dump after auto-inc-dec discovery. This pass is only run on
  16179. architectures that have auto inc or auto dec instructions.
  16180. .IP "\fB\-fdump\-rtl\-barriers\fR" 4
  16181. .IX Item "-fdump-rtl-barriers"
  16182. Dump after cleaning up the barrier instructions.
  16183. .IP "\fB\-fdump\-rtl\-bbpart\fR" 4
  16184. .IX Item "-fdump-rtl-bbpart"
  16185. Dump after partitioning hot and cold basic blocks.
  16186. .IP "\fB\-fdump\-rtl\-bbro\fR" 4
  16187. .IX Item "-fdump-rtl-bbro"
  16188. Dump after block reordering.
  16189. .IP "\fB\-fdump\-rtl\-btl1\fR" 4
  16190. .IX Item "-fdump-rtl-btl1"
  16191. .PD 0
  16192. .IP "\fB\-fdump\-rtl\-btl2\fR" 4
  16193. .IX Item "-fdump-rtl-btl2"
  16194. .PD
  16195. \&\fB\-fdump\-rtl\-btl1\fR and \fB\-fdump\-rtl\-btl2\fR enable dumping
  16196. after the two branch
  16197. target load optimization passes.
  16198. .IP "\fB\-fdump\-rtl\-bypass\fR" 4
  16199. .IX Item "-fdump-rtl-bypass"
  16200. Dump after jump bypassing and control flow optimizations.
  16201. .IP "\fB\-fdump\-rtl\-combine\fR" 4
  16202. .IX Item "-fdump-rtl-combine"
  16203. Dump after the \s-1RTL\s0 instruction combination pass.
  16204. .IP "\fB\-fdump\-rtl\-compgotos\fR" 4
  16205. .IX Item "-fdump-rtl-compgotos"
  16206. Dump after duplicating the computed gotos.
  16207. .IP "\fB\-fdump\-rtl\-ce1\fR" 4
  16208. .IX Item "-fdump-rtl-ce1"
  16209. .PD 0
  16210. .IP "\fB\-fdump\-rtl\-ce2\fR" 4
  16211. .IX Item "-fdump-rtl-ce2"
  16212. .IP "\fB\-fdump\-rtl\-ce3\fR" 4
  16213. .IX Item "-fdump-rtl-ce3"
  16214. .PD
  16215. \&\fB\-fdump\-rtl\-ce1\fR, \fB\-fdump\-rtl\-ce2\fR, and
  16216. \&\fB\-fdump\-rtl\-ce3\fR enable dumping after the three
  16217. if conversion passes.
  16218. .IP "\fB\-fdump\-rtl\-cprop_hardreg\fR" 4
  16219. .IX Item "-fdump-rtl-cprop_hardreg"
  16220. Dump after hard register copy propagation.
  16221. .IP "\fB\-fdump\-rtl\-csa\fR" 4
  16222. .IX Item "-fdump-rtl-csa"
  16223. Dump after combining stack adjustments.
  16224. .IP "\fB\-fdump\-rtl\-cse1\fR" 4
  16225. .IX Item "-fdump-rtl-cse1"
  16226. .PD 0
  16227. .IP "\fB\-fdump\-rtl\-cse2\fR" 4
  16228. .IX Item "-fdump-rtl-cse2"
  16229. .PD
  16230. \&\fB\-fdump\-rtl\-cse1\fR and \fB\-fdump\-rtl\-cse2\fR enable dumping after
  16231. the two common subexpression elimination passes.
  16232. .IP "\fB\-fdump\-rtl\-dce\fR" 4
  16233. .IX Item "-fdump-rtl-dce"
  16234. Dump after the standalone dead code elimination passes.
  16235. .IP "\fB\-fdump\-rtl\-dbr\fR" 4
  16236. .IX Item "-fdump-rtl-dbr"
  16237. Dump after delayed branch scheduling.
  16238. .IP "\fB\-fdump\-rtl\-dce1\fR" 4
  16239. .IX Item "-fdump-rtl-dce1"
  16240. .PD 0
  16241. .IP "\fB\-fdump\-rtl\-dce2\fR" 4
  16242. .IX Item "-fdump-rtl-dce2"
  16243. .PD
  16244. \&\fB\-fdump\-rtl\-dce1\fR and \fB\-fdump\-rtl\-dce2\fR enable dumping after
  16245. the two dead store elimination passes.
  16246. .IP "\fB\-fdump\-rtl\-eh\fR" 4
  16247. .IX Item "-fdump-rtl-eh"
  16248. Dump after finalization of \s-1EH\s0 handling code.
  16249. .IP "\fB\-fdump\-rtl\-eh_ranges\fR" 4
  16250. .IX Item "-fdump-rtl-eh_ranges"
  16251. Dump after conversion of \s-1EH\s0 handling range regions.
  16252. .IP "\fB\-fdump\-rtl\-expand\fR" 4
  16253. .IX Item "-fdump-rtl-expand"
  16254. Dump after \s-1RTL\s0 generation.
  16255. .IP "\fB\-fdump\-rtl\-fwprop1\fR" 4
  16256. .IX Item "-fdump-rtl-fwprop1"
  16257. .PD 0
  16258. .IP "\fB\-fdump\-rtl\-fwprop2\fR" 4
  16259. .IX Item "-fdump-rtl-fwprop2"
  16260. .PD
  16261. \&\fB\-fdump\-rtl\-fwprop1\fR and \fB\-fdump\-rtl\-fwprop2\fR enable
  16262. dumping after the two forward propagation passes.
  16263. .IP "\fB\-fdump\-rtl\-gcse1\fR" 4
  16264. .IX Item "-fdump-rtl-gcse1"
  16265. .PD 0
  16266. .IP "\fB\-fdump\-rtl\-gcse2\fR" 4
  16267. .IX Item "-fdump-rtl-gcse2"
  16268. .PD
  16269. \&\fB\-fdump\-rtl\-gcse1\fR and \fB\-fdump\-rtl\-gcse2\fR enable dumping
  16270. after global common subexpression elimination.
  16271. .IP "\fB\-fdump\-rtl\-init\-regs\fR" 4
  16272. .IX Item "-fdump-rtl-init-regs"
  16273. Dump after the initialization of the registers.
  16274. .IP "\fB\-fdump\-rtl\-initvals\fR" 4
  16275. .IX Item "-fdump-rtl-initvals"
  16276. Dump after the computation of the initial value sets.
  16277. .IP "\fB\-fdump\-rtl\-into_cfglayout\fR" 4
  16278. .IX Item "-fdump-rtl-into_cfglayout"
  16279. Dump after converting to cfglayout mode.
  16280. .IP "\fB\-fdump\-rtl\-ira\fR" 4
  16281. .IX Item "-fdump-rtl-ira"
  16282. Dump after iterated register allocation.
  16283. .IP "\fB\-fdump\-rtl\-jump\fR" 4
  16284. .IX Item "-fdump-rtl-jump"
  16285. Dump after the second jump optimization.
  16286. .IP "\fB\-fdump\-rtl\-loop2\fR" 4
  16287. .IX Item "-fdump-rtl-loop2"
  16288. \&\fB\-fdump\-rtl\-loop2\fR enables dumping after the rtl
  16289. loop optimization passes.
  16290. .IP "\fB\-fdump\-rtl\-mach\fR" 4
  16291. .IX Item "-fdump-rtl-mach"
  16292. Dump after performing the machine dependent reorganization pass, if that
  16293. pass exists.
  16294. .IP "\fB\-fdump\-rtl\-mode_sw\fR" 4
  16295. .IX Item "-fdump-rtl-mode_sw"
  16296. Dump after removing redundant mode switches.
  16297. .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
  16298. .IX Item "-fdump-rtl-rnreg"
  16299. Dump after register renumbering.
  16300. .IP "\fB\-fdump\-rtl\-outof_cfglayout\fR" 4
  16301. .IX Item "-fdump-rtl-outof_cfglayout"
  16302. Dump after converting from cfglayout mode.
  16303. .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
  16304. .IX Item "-fdump-rtl-peephole2"
  16305. Dump after the peephole pass.
  16306. .IP "\fB\-fdump\-rtl\-postreload\fR" 4
  16307. .IX Item "-fdump-rtl-postreload"
  16308. Dump after post-reload optimizations.
  16309. .IP "\fB\-fdump\-rtl\-pro_and_epilogue\fR" 4
  16310. .IX Item "-fdump-rtl-pro_and_epilogue"
  16311. Dump after generating the function prologues and epilogues.
  16312. .IP "\fB\-fdump\-rtl\-sched1\fR" 4
  16313. .IX Item "-fdump-rtl-sched1"
  16314. .PD 0
  16315. .IP "\fB\-fdump\-rtl\-sched2\fR" 4
  16316. .IX Item "-fdump-rtl-sched2"
  16317. .PD
  16318. \&\fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR enable dumping
  16319. after the basic block scheduling passes.
  16320. .IP "\fB\-fdump\-rtl\-ree\fR" 4
  16321. .IX Item "-fdump-rtl-ree"
  16322. Dump after sign/zero extension elimination.
  16323. .IP "\fB\-fdump\-rtl\-seqabstr\fR" 4
  16324. .IX Item "-fdump-rtl-seqabstr"
  16325. Dump after common sequence discovery.
  16326. .IP "\fB\-fdump\-rtl\-shorten\fR" 4
  16327. .IX Item "-fdump-rtl-shorten"
  16328. Dump after shortening branches.
  16329. .IP "\fB\-fdump\-rtl\-sibling\fR" 4
  16330. .IX Item "-fdump-rtl-sibling"
  16331. Dump after sibling call optimizations.
  16332. .IP "\fB\-fdump\-rtl\-split1\fR" 4
  16333. .IX Item "-fdump-rtl-split1"
  16334. .PD 0
  16335. .IP "\fB\-fdump\-rtl\-split2\fR" 4
  16336. .IX Item "-fdump-rtl-split2"
  16337. .IP "\fB\-fdump\-rtl\-split3\fR" 4
  16338. .IX Item "-fdump-rtl-split3"
  16339. .IP "\fB\-fdump\-rtl\-split4\fR" 4
  16340. .IX Item "-fdump-rtl-split4"
  16341. .IP "\fB\-fdump\-rtl\-split5\fR" 4
  16342. .IX Item "-fdump-rtl-split5"
  16343. .PD
  16344. These options enable dumping after five rounds of
  16345. instruction splitting.
  16346. .IP "\fB\-fdump\-rtl\-sms\fR" 4
  16347. .IX Item "-fdump-rtl-sms"
  16348. Dump after modulo scheduling. This pass is only run on some
  16349. architectures.
  16350. .IP "\fB\-fdump\-rtl\-stack\fR" 4
  16351. .IX Item "-fdump-rtl-stack"
  16352. Dump after conversion from \s-1GCC\s0's \*(L"flat register file\*(R" registers to the
  16353. x87's stack-like registers. This pass is only run on x86 variants.
  16354. .IP "\fB\-fdump\-rtl\-subreg1\fR" 4
  16355. .IX Item "-fdump-rtl-subreg1"
  16356. .PD 0
  16357. .IP "\fB\-fdump\-rtl\-subreg2\fR" 4
  16358. .IX Item "-fdump-rtl-subreg2"
  16359. .PD
  16360. \&\fB\-fdump\-rtl\-subreg1\fR and \fB\-fdump\-rtl\-subreg2\fR enable dumping after
  16361. the two subreg expansion passes.
  16362. .IP "\fB\-fdump\-rtl\-unshare\fR" 4
  16363. .IX Item "-fdump-rtl-unshare"
  16364. Dump after all rtl has been unshared.
  16365. .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
  16366. .IX Item "-fdump-rtl-vartrack"
  16367. Dump after variable tracking.
  16368. .IP "\fB\-fdump\-rtl\-vregs\fR" 4
  16369. .IX Item "-fdump-rtl-vregs"
  16370. Dump after converting virtual registers to hard registers.
  16371. .IP "\fB\-fdump\-rtl\-web\fR" 4
  16372. .IX Item "-fdump-rtl-web"
  16373. Dump after live range splitting.
  16374. .IP "\fB\-fdump\-rtl\-regclass\fR" 4
  16375. .IX Item "-fdump-rtl-regclass"
  16376. .PD 0
  16377. .IP "\fB\-fdump\-rtl\-subregs_of_mode_init\fR" 4
  16378. .IX Item "-fdump-rtl-subregs_of_mode_init"
  16379. .IP "\fB\-fdump\-rtl\-subregs_of_mode_finish\fR" 4
  16380. .IX Item "-fdump-rtl-subregs_of_mode_finish"
  16381. .IP "\fB\-fdump\-rtl\-dfinit\fR" 4
  16382. .IX Item "-fdump-rtl-dfinit"
  16383. .IP "\fB\-fdump\-rtl\-dfinish\fR" 4
  16384. .IX Item "-fdump-rtl-dfinish"
  16385. .PD
  16386. These dumps are defined but always produce empty files.
  16387. .IP "\fB\-da\fR" 4
  16388. .IX Item "-da"
  16389. .PD 0
  16390. .IP "\fB\-fdump\-rtl\-all\fR" 4
  16391. .IX Item "-fdump-rtl-all"
  16392. .PD
  16393. Produce all the dumps listed above.
  16394. .IP "\fB\-dA\fR" 4
  16395. .IX Item "-dA"
  16396. Annotate the assembler output with miscellaneous debugging information.
  16397. .IP "\fB\-dD\fR" 4
  16398. .IX Item "-dD"
  16399. Dump all macro definitions, at the end of preprocessing, in addition to
  16400. normal output.
  16401. .IP "\fB\-dH\fR" 4
  16402. .IX Item "-dH"
  16403. Produce a core dump whenever an error occurs.
  16404. .IP "\fB\-dp\fR" 4
  16405. .IX Item "-dp"
  16406. Annotate the assembler output with a comment indicating which
  16407. pattern and alternative is used. The length and cost of each instruction are
  16408. also printed.
  16409. .IP "\fB\-dP\fR" 4
  16410. .IX Item "-dP"
  16411. Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
  16412. Also turns on \fB\-dp\fR annotation.
  16413. .IP "\fB\-dx\fR" 4
  16414. .IX Item "-dx"
  16415. Just generate \s-1RTL\s0 for a function instead of compiling it. Usually used
  16416. with \fB\-fdump\-rtl\-expand\fR.
  16417. .RE
  16418. .RS 4
  16419. .RE
  16420. .IP "\fB\-fdump\-debug\fR" 4
  16421. .IX Item "-fdump-debug"
  16422. Dump debugging information generated during the debug
  16423. generation phase.
  16424. .IP "\fB\-fdump\-earlydebug\fR" 4
  16425. .IX Item "-fdump-earlydebug"
  16426. Dump debugging information generated during the early debug
  16427. generation phase.
  16428. .IP "\fB\-fdump\-noaddr\fR" 4
  16429. .IX Item "-fdump-noaddr"
  16430. When doing debugging dumps, suppress address output. This makes it more
  16431. feasible to use diff on debugging dumps for compiler invocations with
  16432. different compiler binaries and/or different
  16433. text / bss / data / heap / stack / dso start locations.
  16434. .IP "\fB\-freport\-bug\fR" 4
  16435. .IX Item "-freport-bug"
  16436. Collect and dump debug information into a temporary file if an
  16437. internal compiler error (\s-1ICE\s0) occurs.
  16438. .IP "\fB\-fdump\-unnumbered\fR" 4
  16439. .IX Item "-fdump-unnumbered"
  16440. When doing debugging dumps, suppress instruction numbers and address output.
  16441. This makes it more feasible to use diff on debugging dumps for compiler
  16442. invocations with different options, in particular with and without
  16443. \&\fB\-g\fR.
  16444. .IP "\fB\-fdump\-unnumbered\-links\fR" 4
  16445. .IX Item "-fdump-unnumbered-links"
  16446. When doing debugging dumps (see \fB\-d\fR option above), suppress
  16447. instruction numbers for the links to the previous and next instructions
  16448. in a sequence.
  16449. .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
  16450. .IX Item "-fdump-ipa-switch"
  16451. .PD 0
  16452. .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
  16453. .IX Item "-fdump-ipa-switch-options"
  16454. .PD
  16455. Control the dumping at various stages of inter-procedural analysis
  16456. language tree to a file. The file name is generated by appending a
  16457. switch specific suffix to the source file name, and the file is created
  16458. in the same directory as the output file. The following dumps are
  16459. possible:
  16460. .RS 4
  16461. .IP "\fBall\fR" 4
  16462. .IX Item "all"
  16463. Enables all inter-procedural analysis dumps.
  16464. .IP "\fBcgraph\fR" 4
  16465. .IX Item "cgraph"
  16466. Dumps information about call-graph optimization, unused function removal,
  16467. and inlining decisions.
  16468. .IP "\fBinline\fR" 4
  16469. .IX Item "inline"
  16470. Dump after function inlining.
  16471. .RE
  16472. .RS 4
  16473. .Sp
  16474. Additionally, the options \fB\-optimized\fR, \fB\-missed\fR,
  16475. \&\fB\-note\fR, and \fB\-all\fR can be provided, with the same meaning
  16476. as for \fB\-fopt\-info\fR, defaulting to \fB\-optimized\fR.
  16477. .Sp
  16478. For example, \fB\-fdump\-ipa\-inline\-optimized\-missed\fR will emit
  16479. information on callsites that were inlined, along with callsites
  16480. that were not inlined.
  16481. .Sp
  16482. By default, the dump will contain messages about successful
  16483. optimizations (equivalent to \fB\-optimized\fR) together with
  16484. low-level details about the analysis.
  16485. .RE
  16486. .IP "\fB\-fdump\-lang\fR" 4
  16487. .IX Item "-fdump-lang"
  16488. Dump language-specific information. The file name is made by appending
  16489. \&\fI.lang\fR to the source file name.
  16490. .IP "\fB\-fdump\-lang\-all\fR" 4
  16491. .IX Item "-fdump-lang-all"
  16492. .PD 0
  16493. .IP "\fB\-fdump\-lang\-\fR\fIswitch\fR" 4
  16494. .IX Item "-fdump-lang-switch"
  16495. .IP "\fB\-fdump\-lang\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
  16496. .IX Item "-fdump-lang-switch-options"
  16497. .IP "\fB\-fdump\-lang\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
  16498. .IX Item "-fdump-lang-switch-options=filename"
  16499. .PD
  16500. Control the dumping of language-specific information. The \fIoptions\fR
  16501. and \fIfilename\fR portions behave as described in the
  16502. \&\fB\-fdump\-tree\fR option. The following \fIswitch\fR values are
  16503. accepted:
  16504. .RS 4
  16505. .IP "\fBall\fR" 4
  16506. .IX Item "all"
  16507. Enable all language-specific dumps.
  16508. .IP "\fBclass\fR" 4
  16509. .IX Item "class"
  16510. Dump class hierarchy information. Virtual table information is emitted
  16511. unless '\fBslim\fR' is specified. This option is applicable to \*(C+ only.
  16512. .IP "\fBmodule\fR" 4
  16513. .IX Item "module"
  16514. Dump module information. Options \fBlineno\fR (locations),
  16515. \&\fBgraph\fR (reachability), \fBblocks\fR (clusters),
  16516. \&\fBuid\fR (serialization), \fBalias\fR (mergeable),
  16517. \&\fBasmname\fR (Elrond), \fBeh\fR (mapper) & \fBvops\fR
  16518. (macros) may provide additional information. This option is
  16519. applicable to \*(C+ only.
  16520. .IP "\fBraw\fR" 4
  16521. .IX Item "raw"
  16522. Dump the raw internal tree data. This option is applicable to \*(C+ only.
  16523. .RE
  16524. .RS 4
  16525. .RE
  16526. .IP "\fB\-fdump\-passes\fR" 4
  16527. .IX Item "-fdump-passes"
  16528. Print on \fIstderr\fR the list of optimization passes that are turned
  16529. on and off by the current command-line options.
  16530. .IP "\fB\-fdump\-statistics\-\fR\fIoption\fR" 4
  16531. .IX Item "-fdump-statistics-option"
  16532. Enable and control dumping of pass statistics in a separate file. The
  16533. file name is generated by appending a suffix ending in
  16534. \&\fB.statistics\fR to the source file name, and the file is created in
  16535. the same directory as the output file. If the \fB\-\fR\fIoption\fR
  16536. form is used, \fB\-stats\fR causes counters to be summed over the
  16537. whole compilation unit while \fB\-details\fR dumps every event as
  16538. the passes generate them. The default with no option is to sum
  16539. counters for each function compiled.
  16540. .IP "\fB\-fdump\-tree\-all\fR" 4
  16541. .IX Item "-fdump-tree-all"
  16542. .PD 0
  16543. .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR" 4
  16544. .IX Item "-fdump-tree-switch"
  16545. .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
  16546. .IX Item "-fdump-tree-switch-options"
  16547. .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
  16548. .IX Item "-fdump-tree-switch-options=filename"
  16549. .PD
  16550. Control the dumping at various stages of processing the intermediate
  16551. language tree to a file. If the \fB\-\fR\fIoptions\fR
  16552. form is used, \fIoptions\fR is a list of \fB\-\fR separated options
  16553. which control the details of the dump. Not all options are applicable
  16554. to all dumps; those that are not meaningful are ignored. The
  16555. following options are available
  16556. .RS 4
  16557. .IP "\fBaddress\fR" 4
  16558. .IX Item "address"
  16559. Print the address of each node. Usually this is not meaningful as it
  16560. changes according to the environment and source file. Its primary use
  16561. is for tying up a dump file with a debug environment.
  16562. .IP "\fBasmname\fR" 4
  16563. .IX Item "asmname"
  16564. If \f(CW\*(C`DECL_ASSEMBLER_NAME\*(C'\fR has been set for a given decl, use that
  16565. in the dump instead of \f(CW\*(C`DECL_NAME\*(C'\fR. Its primary use is ease of
  16566. use working backward from mangled names in the assembly file.
  16567. .IP "\fBslim\fR" 4
  16568. .IX Item "slim"
  16569. When dumping front-end intermediate representations, inhibit dumping
  16570. of members of a scope or body of a function merely because that scope
  16571. has been reached. Only dump such items when they are directly reachable
  16572. by some other path.
  16573. .Sp
  16574. When dumping pretty-printed trees, this option inhibits dumping the
  16575. bodies of control structures.
  16576. .Sp
  16577. When dumping \s-1RTL,\s0 print the \s-1RTL\s0 in slim (condensed) form instead of
  16578. the default LISP-like representation.
  16579. .IP "\fBraw\fR" 4
  16580. .IX Item "raw"
  16581. Print a raw representation of the tree. By default, trees are
  16582. pretty-printed into a C\-like representation.
  16583. .IP "\fBdetails\fR" 4
  16584. .IX Item "details"
  16585. Enable more detailed dumps (not honored by every dump option). Also
  16586. include information from the optimization passes.
  16587. .IP "\fBstats\fR" 4
  16588. .IX Item "stats"
  16589. Enable dumping various statistics about the pass (not honored by every dump
  16590. option).
  16591. .IP "\fBblocks\fR" 4
  16592. .IX Item "blocks"
  16593. Enable showing basic block boundaries (disabled in raw dumps).
  16594. .IP "\fBgraph\fR" 4
  16595. .IX Item "graph"
  16596. For each of the other indicated dump files (\fB\-fdump\-rtl\-\fR\fIpass\fR),
  16597. dump a representation of the control flow graph suitable for viewing with
  16598. GraphViz to \fI\fIfile\fI.\fIpassid\fI.\fIpass\fI.dot\fR. Each function in
  16599. the file is pretty-printed as a subgraph, so that GraphViz can render them
  16600. all in a single plot.
  16601. .Sp
  16602. This option currently only works for \s-1RTL\s0 dumps, and the \s-1RTL\s0 is always
  16603. dumped in slim form.
  16604. .IP "\fBvops\fR" 4
  16605. .IX Item "vops"
  16606. Enable showing virtual operands for every statement.
  16607. .IP "\fBlineno\fR" 4
  16608. .IX Item "lineno"
  16609. Enable showing line numbers for statements.
  16610. .IP "\fBuid\fR" 4
  16611. .IX Item "uid"
  16612. Enable showing the unique \s-1ID\s0 (\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
  16613. .IP "\fBverbose\fR" 4
  16614. .IX Item "verbose"
  16615. Enable showing the tree dump for each statement.
  16616. .IP "\fBeh\fR" 4
  16617. .IX Item "eh"
  16618. Enable showing the \s-1EH\s0 region number holding each statement.
  16619. .IP "\fBscev\fR" 4
  16620. .IX Item "scev"
  16621. Enable showing scalar evolution analysis details.
  16622. .IP "\fBoptimized\fR" 4
  16623. .IX Item "optimized"
  16624. Enable showing optimization information (only available in certain
  16625. passes).
  16626. .IP "\fBmissed\fR" 4
  16627. .IX Item "missed"
  16628. Enable showing missed optimization information (only available in certain
  16629. passes).
  16630. .IP "\fBnote\fR" 4
  16631. .IX Item "note"
  16632. Enable other detailed optimization information (only available in
  16633. certain passes).
  16634. .IP "\fBall\fR" 4
  16635. .IX Item "all"
  16636. Turn on all options, except \fBraw\fR, \fBslim\fR, \fBverbose\fR
  16637. and \fBlineno\fR.
  16638. .IP "\fBoptall\fR" 4
  16639. .IX Item "optall"
  16640. Turn on all optimization options, i.e., \fBoptimized\fR,
  16641. \&\fBmissed\fR, and \fBnote\fR.
  16642. .RE
  16643. .RS 4
  16644. .Sp
  16645. To determine what tree dumps are available or find the dump for a pass
  16646. of interest follow the steps below.
  16647. .IP "1." 4
  16648. .IX Item "1."
  16649. Invoke \s-1GCC\s0 with \fB\-fdump\-passes\fR and in the \fIstderr\fR output
  16650. look for a code that corresponds to the pass you are interested in.
  16651. For example, the codes \f(CW\*(C`tree\-evrp\*(C'\fR, \f(CW\*(C`tree\-vrp1\*(C'\fR, and
  16652. \&\f(CW\*(C`tree\-vrp2\*(C'\fR correspond to the three Value Range Propagation passes.
  16653. The number at the end distinguishes distinct invocations of the same pass.
  16654. .IP "2." 4
  16655. .IX Item "2."
  16656. To enable the creation of the dump file, append the pass code to
  16657. the \fB\-fdump\-\fR option prefix and invoke \s-1GCC\s0 with it. For example,
  16658. to enable the dump from the Early Value Range Propagation pass, invoke
  16659. \&\s-1GCC\s0 with the \fB\-fdump\-tree\-evrp\fR option. Optionally, you may
  16660. specify the name of the dump file. If you don't specify one, \s-1GCC\s0
  16661. creates as described below.
  16662. .IP "3." 4
  16663. .IX Item "3."
  16664. Find the pass dump in a file whose name is composed of three components
  16665. separated by a period: the name of the source file \s-1GCC\s0 was invoked to
  16666. compile, a numeric suffix indicating the pass number followed by the
  16667. letter \fBt\fR for tree passes (and the letter \fBr\fR for \s-1RTL\s0 passes),
  16668. and finally the pass code. For example, the Early \s-1VRP\s0 pass dump might
  16669. be in a file named \fImyfile.c.038t.evrp\fR in the current working
  16670. directory. Note that the numeric codes are not stable and may change
  16671. from one version of \s-1GCC\s0 to another.
  16672. .RE
  16673. .RS 4
  16674. .RE
  16675. .IP "\fB\-fopt\-info\fR" 4
  16676. .IX Item "-fopt-info"
  16677. .PD 0
  16678. .IP "\fB\-fopt\-info\-\fR\fIoptions\fR" 4
  16679. .IX Item "-fopt-info-options"
  16680. .IP "\fB\-fopt\-info\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
  16681. .IX Item "-fopt-info-options=filename"
  16682. .PD
  16683. Controls optimization dumps from various optimization passes. If the
  16684. \&\fB\-\fR\fIoptions\fR form is used, \fIoptions\fR is a list of
  16685. \&\fB\-\fR separated option keywords to select the dump details and
  16686. optimizations.
  16687. .Sp
  16688. The \fIoptions\fR can be divided into three groups:
  16689. .RS 4
  16690. .IP "1." 4
  16691. .IX Item "1."
  16692. options describing what kinds of messages should be emitted,
  16693. .IP "2." 4
  16694. .IX Item "2."
  16695. options describing the verbosity of the dump, and
  16696. .IP "3." 4
  16697. .IX Item "3."
  16698. options describing which optimizations should be included.
  16699. .RE
  16700. .RS 4
  16701. .Sp
  16702. The options from each group can be freely mixed as they are
  16703. non-overlapping. However, in case of any conflicts,
  16704. the later options override the earlier options on the command
  16705. line.
  16706. .Sp
  16707. The following options control which kinds of messages should be emitted:
  16708. .IP "\fBoptimized\fR" 4
  16709. .IX Item "optimized"
  16710. Print information when an optimization is successfully applied. It is
  16711. up to a pass to decide which information is relevant. For example, the
  16712. vectorizer passes print the source location of loops which are
  16713. successfully vectorized.
  16714. .IP "\fBmissed\fR" 4
  16715. .IX Item "missed"
  16716. Print information about missed optimizations. Individual passes
  16717. control which information to include in the output.
  16718. .IP "\fBnote\fR" 4
  16719. .IX Item "note"
  16720. Print verbose information about optimizations, such as certain
  16721. transformations, more detailed messages about decisions etc.
  16722. .IP "\fBall\fR" 4
  16723. .IX Item "all"
  16724. Print detailed optimization information. This includes
  16725. \&\fBoptimized\fR, \fBmissed\fR, and \fBnote\fR.
  16726. .RE
  16727. .RS 4
  16728. .Sp
  16729. The following option controls the dump verbosity:
  16730. .IP "\fBinternals\fR" 4
  16731. .IX Item "internals"
  16732. By default, only \*(L"high-level\*(R" messages are emitted. This option enables
  16733. additional, more detailed, messages, which are likely to only be of interest
  16734. to \s-1GCC\s0 developers.
  16735. .RE
  16736. .RS 4
  16737. .Sp
  16738. One or more of the following option keywords can be used to describe a
  16739. group of optimizations:
  16740. .IP "\fBipa\fR" 4
  16741. .IX Item "ipa"
  16742. Enable dumps from all interprocedural optimizations.
  16743. .IP "\fBloop\fR" 4
  16744. .IX Item "loop"
  16745. Enable dumps from all loop optimizations.
  16746. .IP "\fBinline\fR" 4
  16747. .IX Item "inline"
  16748. Enable dumps from all inlining optimizations.
  16749. .IP "\fBomp\fR" 4
  16750. .IX Item "omp"
  16751. Enable dumps from all \s-1OMP\s0 (Offloading and Multi Processing) optimizations.
  16752. .IP "\fBvec\fR" 4
  16753. .IX Item "vec"
  16754. Enable dumps from all vectorization optimizations.
  16755. .IP "\fBoptall\fR" 4
  16756. .IX Item "optall"
  16757. Enable dumps from all optimizations. This is a superset of
  16758. the optimization groups listed above.
  16759. .RE
  16760. .RS 4
  16761. .Sp
  16762. If \fIoptions\fR is
  16763. omitted, it defaults to \fBoptimized-optall\fR, which means to dump messages
  16764. about successful optimizations from all the passes, omitting messages
  16765. that are treated as \*(L"internals\*(R".
  16766. .Sp
  16767. If the \fIfilename\fR is provided, then the dumps from all the
  16768. applicable optimizations are concatenated into the \fIfilename\fR.
  16769. Otherwise the dump is output onto \fIstderr\fR. Though multiple
  16770. \&\fB\-fopt\-info\fR options are accepted, only one of them can include
  16771. a \fIfilename\fR. If other filenames are provided then all but the
  16772. first such option are ignored.
  16773. .Sp
  16774. Note that the output \fIfilename\fR is overwritten
  16775. in case of multiple translation units. If a combined output from
  16776. multiple translation units is desired, \fIstderr\fR should be used
  16777. instead.
  16778. .Sp
  16779. In the following example, the optimization info is output to
  16780. \&\fIstderr\fR:
  16781. .Sp
  16782. .Vb 1
  16783. \& gcc \-O3 \-fopt\-info
  16784. .Ve
  16785. .Sp
  16786. This example:
  16787. .Sp
  16788. .Vb 1
  16789. \& gcc \-O3 \-fopt\-info\-missed=missed.all
  16790. .Ve
  16791. .Sp
  16792. outputs missed optimization report from all the passes into
  16793. \&\fImissed.all\fR, and this one:
  16794. .Sp
  16795. .Vb 1
  16796. \& gcc \-O2 \-ftree\-vectorize \-fopt\-info\-vec\-missed
  16797. .Ve
  16798. .Sp
  16799. prints information about missed optimization opportunities from
  16800. vectorization passes on \fIstderr\fR.
  16801. Note that \fB\-fopt\-info\-vec\-missed\fR is equivalent to
  16802. \&\fB\-fopt\-info\-missed\-vec\fR. The order of the optimization group
  16803. names and message types listed after \fB\-fopt\-info\fR does not matter.
  16804. .Sp
  16805. As another example,
  16806. .Sp
  16807. .Vb 1
  16808. \& gcc \-O3 \-fopt\-info\-inline\-optimized\-missed=inline.txt
  16809. .Ve
  16810. .Sp
  16811. outputs information about missed optimizations as well as
  16812. optimized locations from all the inlining passes into
  16813. \&\fIinline.txt\fR.
  16814. .Sp
  16815. Finally, consider:
  16816. .Sp
  16817. .Vb 1
  16818. \& gcc \-fopt\-info\-vec\-missed=vec.miss \-fopt\-info\-loop\-optimized=loop.opt
  16819. .Ve
  16820. .Sp
  16821. Here the two output filenames \fIvec.miss\fR and \fIloop.opt\fR are
  16822. in conflict since only one output file is allowed. In this case, only
  16823. the first option takes effect and the subsequent options are
  16824. ignored. Thus only \fIvec.miss\fR is produced which contains
  16825. dumps from the vectorizer about missed opportunities.
  16826. .RE
  16827. .IP "\fB\-fsave\-optimization\-record\fR" 4
  16828. .IX Item "-fsave-optimization-record"
  16829. Write a \s-1SRCFILE\s0.opt\-record.json.gz file detailing what optimizations
  16830. were performed, for those optimizations that support \fB\-fopt\-info\fR.
  16831. .Sp
  16832. This option is experimental and the format of the data within the
  16833. compressed \s-1JSON\s0 file is subject to change.
  16834. .Sp
  16835. It is roughly equivalent to a machine-readable version of
  16836. \&\fB\-fopt\-info\-all\fR, as a collection of messages with source file,
  16837. line number and column number, with the following additional data for
  16838. each message:
  16839. .RS 4
  16840. .IP "*" 4
  16841. the execution count of the code being optimized, along with metadata about
  16842. whether this was from actual profile data, or just an estimate, allowing
  16843. consumers to prioritize messages by code hotness,
  16844. .IP "*" 4
  16845. the function name of the code being optimized, where applicable,
  16846. .IP "*" 4
  16847. the \*(L"inlining chain\*(R" for the code being optimized, so that when
  16848. a function is inlined into several different places (which might
  16849. themselves be inlined), the reader can distinguish between the copies,
  16850. .IP "*" 4
  16851. objects identifying those parts of the message that refer to expressions,
  16852. statements or symbol-table nodes, which of these categories they are, and,
  16853. when available, their source code location,
  16854. .IP "*" 4
  16855. the \s-1GCC\s0 pass that emitted the message, and
  16856. .IP "*" 4
  16857. the location in \s-1GCC\s0's own code from which the message was emitted
  16858. .RE
  16859. .RS 4
  16860. .Sp
  16861. Additionally, some messages are logically nested within other
  16862. messages, reflecting implementation details of the optimization
  16863. passes.
  16864. .RE
  16865. .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
  16866. .IX Item "-fsched-verbose=n"
  16867. On targets that use instruction scheduling, this option controls the
  16868. amount of debugging output the scheduler prints to the dump files.
  16869. .Sp
  16870. For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
  16871. same information as \fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR.
  16872. For \fIn\fR greater than one, it also output basic block probabilities,
  16873. detailed ready list information and unit/insn info. For \fIn\fR greater
  16874. than two, it includes \s-1RTL\s0 at abort point, control-flow and regions info.
  16875. And for \fIn\fR over four, \fB\-fsched\-verbose\fR also includes
  16876. dependence info.
  16877. .IP "\fB\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR" 4
  16878. .IX Item "-fenable-kind-pass"
  16879. .PD 0
  16880. .IP "\fB\-fdisable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
  16881. .IX Item "-fdisable-kind-pass=range-list"
  16882. .PD
  16883. This is a set of options that are used to explicitly disable/enable
  16884. optimization passes. These options are intended for use for debugging \s-1GCC.\s0
  16885. Compiler users should use regular options for enabling/disabling
  16886. passes instead.
  16887. .RS 4
  16888. .IP "\fB\-fdisable\-ipa\-\fR\fIpass\fR" 4
  16889. .IX Item "-fdisable-ipa-pass"
  16890. Disable \s-1IPA\s0 pass \fIpass\fR. \fIpass\fR is the pass name. If the same pass is
  16891. statically invoked in the compiler multiple times, the pass name should be
  16892. appended with a sequential number starting from 1.
  16893. .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR" 4
  16894. .IX Item "-fdisable-rtl-pass"
  16895. .PD 0
  16896. .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
  16897. .IX Item "-fdisable-rtl-pass=range-list"
  16898. .PD
  16899. Disable \s-1RTL\s0 pass \fIpass\fR. \fIpass\fR is the pass name. If the same pass is
  16900. statically invoked in the compiler multiple times, the pass name should be
  16901. appended with a sequential number starting from 1. \fIrange-list\fR is a
  16902. comma-separated list of function ranges or assembler names. Each range is a number
  16903. pair separated by a colon. The range is inclusive in both ends. If the range
  16904. is trivial, the number pair can be simplified as a single number. If the
  16905. function's call graph node's \fIuid\fR falls within one of the specified ranges,
  16906. the \fIpass\fR is disabled for that function. The \fIuid\fR is shown in the
  16907. function header of a dump file, and the pass names can be dumped by using
  16908. option \fB\-fdump\-passes\fR.
  16909. .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR" 4
  16910. .IX Item "-fdisable-tree-pass"
  16911. .PD 0
  16912. .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
  16913. .IX Item "-fdisable-tree-pass=range-list"
  16914. .PD
  16915. Disable tree pass \fIpass\fR. See \fB\-fdisable\-rtl\fR for the description of
  16916. option arguments.
  16917. .IP "\fB\-fenable\-ipa\-\fR\fIpass\fR" 4
  16918. .IX Item "-fenable-ipa-pass"
  16919. Enable \s-1IPA\s0 pass \fIpass\fR. \fIpass\fR is the pass name. If the same pass is
  16920. statically invoked in the compiler multiple times, the pass name should be
  16921. appended with a sequential number starting from 1.
  16922. .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR" 4
  16923. .IX Item "-fenable-rtl-pass"
  16924. .PD 0
  16925. .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
  16926. .IX Item "-fenable-rtl-pass=range-list"
  16927. .PD
  16928. Enable \s-1RTL\s0 pass \fIpass\fR. See \fB\-fdisable\-rtl\fR for option argument
  16929. description and examples.
  16930. .IP "\fB\-fenable\-tree\-\fR\fIpass\fR" 4
  16931. .IX Item "-fenable-tree-pass"
  16932. .PD 0
  16933. .IP "\fB\-fenable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
  16934. .IX Item "-fenable-tree-pass=range-list"
  16935. .PD
  16936. Enable tree pass \fIpass\fR. See \fB\-fdisable\-rtl\fR for the description
  16937. of option arguments.
  16938. .RE
  16939. .RS 4
  16940. .Sp
  16941. Here are some examples showing uses of these options.
  16942. .Sp
  16943. .Vb 10
  16944. \& # disable ccp1 for all functions
  16945. \& \-fdisable\-tree\-ccp1
  16946. \& # disable complete unroll for function whose cgraph node uid is 1
  16947. \& \-fenable\-tree\-cunroll=1
  16948. \& # disable gcse2 for functions at the following ranges [1,1],
  16949. \& # [300,400], and [400,1000]
  16950. \& # disable gcse2 for functions foo and foo2
  16951. \& \-fdisable\-rtl\-gcse2=foo,foo2
  16952. \& # disable early inlining
  16953. \& \-fdisable\-tree\-einline
  16954. \& # disable ipa inlining
  16955. \& \-fdisable\-ipa\-inline
  16956. \& # enable tree full unroll
  16957. \& \-fenable\-tree\-unroll
  16958. .Ve
  16959. .RE
  16960. .IP "\fB\-fchecking\fR" 4
  16961. .IX Item "-fchecking"
  16962. .PD 0
  16963. .IP "\fB\-fchecking=\fR\fIn\fR" 4
  16964. .IX Item "-fchecking=n"
  16965. .PD
  16966. Enable internal consistency checking. The default depends on
  16967. the compiler configuration. \fB\-fchecking=2\fR enables further
  16968. internal consistency checking that might affect code generation.
  16969. .IP "\fB\-frandom\-seed=\fR\fIstring\fR" 4
  16970. .IX Item "-frandom-seed=string"
  16971. This option provides a seed that \s-1GCC\s0 uses in place of
  16972. random numbers in generating certain symbol names
  16973. that have to be different in every compiled file. It is also used to
  16974. place unique stamps in coverage data files and the object files that
  16975. produce them. You can use the \fB\-frandom\-seed\fR option to produce
  16976. reproducibly identical object files.
  16977. .Sp
  16978. The \fIstring\fR can either be a number (decimal, octal or hex) or an
  16979. arbitrary string (in which case it's converted to a number by
  16980. computing \s-1CRC32\s0).
  16981. .Sp
  16982. The \fIstring\fR should be different for every file you compile.
  16983. .IP "\fB\-save\-temps\fR" 4
  16984. .IX Item "-save-temps"
  16985. Store the usual \*(L"temporary\*(R" intermediate files permanently; name them
  16986. as auxiliary output files, as specified described under
  16987. \&\fB\-dumpbase\fR and \fB\-dumpdir\fR.
  16988. .Sp
  16989. When used in combination with the \fB\-x\fR command-line option,
  16990. \&\fB\-save\-temps\fR is sensible enough to avoid overwriting an
  16991. input source file with the same extension as an intermediate file.
  16992. The corresponding intermediate file may be obtained by renaming the
  16993. source file before using \fB\-save\-temps\fR.
  16994. .IP "\fB\-save\-temps=cwd\fR" 4
  16995. .IX Item "-save-temps=cwd"
  16996. Equivalent to \fB\-save\-temps \-dumpdir ./\fR.
  16997. .IP "\fB\-save\-temps=obj\fR" 4
  16998. .IX Item "-save-temps=obj"
  16999. Equivalent to \fB\-save\-temps \-dumpdir \f(BIoutdir/\fB\fR, where
  17000. \&\fIoutdir/\fR is the directory of the output file specified after the
  17001. \&\fB\-o\fR option, including any directory separators. If the
  17002. \&\fB\-o\fR option is not used, the \fB\-save\-temps=obj\fR switch
  17003. behaves like \fB\-save\-temps=cwd\fR.
  17004. .IP "\fB\-time\fR[\fB=\fR\fIfile\fR]" 4
  17005. .IX Item "-time[=file]"
  17006. Report the \s-1CPU\s0 time taken by each subprocess in the compilation
  17007. sequence. For C source files, this is the compiler proper and assembler
  17008. (plus the linker if linking is done).
  17009. .Sp
  17010. Without the specification of an output file, the output looks like this:
  17011. .Sp
  17012. .Vb 2
  17013. \& # cc1 0.12 0.01
  17014. \& # as 0.00 0.01
  17015. .Ve
  17016. .Sp
  17017. The first number on each line is the \*(L"user time\*(R", that is time spent
  17018. executing the program itself. The second number is \*(L"system time\*(R",
  17019. time spent executing operating system routines on behalf of the program.
  17020. Both numbers are in seconds.
  17021. .Sp
  17022. With the specification of an output file, the output is appended to the
  17023. named file, and it looks like this:
  17024. .Sp
  17025. .Vb 2
  17026. \& 0.12 0.01 cc1 <options>
  17027. \& 0.00 0.01 as <options>
  17028. .Ve
  17029. .Sp
  17030. The \*(L"user time\*(R" and the \*(L"system time\*(R" are moved before the program
  17031. name, and the options passed to the program are displayed, so that one
  17032. can later tell what file was being compiled, and with which options.
  17033. .IP "\fB\-fdump\-final\-insns\fR[\fB=\fR\fIfile\fR]" 4
  17034. .IX Item "-fdump-final-insns[=file]"
  17035. Dump the final internal representation (\s-1RTL\s0) to \fIfile\fR. If the
  17036. optional argument is omitted (or if \fIfile\fR is \f(CW\*(C`.\*(C'\fR), the name
  17037. of the dump file is determined by appending \f(CW\*(C`.gkd\*(C'\fR to the
  17038. dump base name, see \fB\-dumpbase\fR.
  17039. .IP "\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR]" 4
  17040. .IX Item "-fcompare-debug[=opts]"
  17041. If no error occurs during compilation, run the compiler a second time,
  17042. adding \fIopts\fR and \fB\-fcompare\-debug\-second\fR to the arguments
  17043. passed to the second compilation. Dump the final internal
  17044. representation in both compilations, and print an error if they differ.
  17045. .Sp
  17046. If the equal sign is omitted, the default \fB\-gtoggle\fR is used.
  17047. .Sp
  17048. The environment variable \fB\s-1GCC_COMPARE_DEBUG\s0\fR, if defined, non-empty
  17049. and nonzero, implicitly enables \fB\-fcompare\-debug\fR. If
  17050. \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR is defined to a string starting with a dash,
  17051. then it is used for \fIopts\fR, otherwise the default \fB\-gtoggle\fR
  17052. is used.
  17053. .Sp
  17054. \&\fB\-fcompare\-debug=\fR, with the equal sign but without \fIopts\fR,
  17055. is equivalent to \fB\-fno\-compare\-debug\fR, which disables the dumping
  17056. of the final representation and the second compilation, preventing even
  17057. \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR from taking effect.
  17058. .Sp
  17059. To verify full coverage during \fB\-fcompare\-debug\fR testing, set
  17060. \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR to say \fB\-fcompare\-debug\-not\-overridden\fR,
  17061. which \s-1GCC\s0 rejects as an invalid option in any actual compilation
  17062. (rather than preprocessing, assembly or linking). To get just a
  17063. warning, setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR to \fB\-w%n\-fcompare\-debug
  17064. not overridden\fR will do.
  17065. .IP "\fB\-fcompare\-debug\-second\fR" 4
  17066. .IX Item "-fcompare-debug-second"
  17067. This option is implicitly passed to the compiler for the second
  17068. compilation requested by \fB\-fcompare\-debug\fR, along with options to
  17069. silence warnings, and omitting other options that would cause the compiler
  17070. to produce output to files or to standard output as a side effect. Dump
  17071. files and preserved temporary files are renamed so as to contain the
  17072. \&\f(CW\*(C`.gk\*(C'\fR additional extension during the second compilation, to avoid
  17073. overwriting those generated by the first.
  17074. .Sp
  17075. When this option is passed to the compiler driver, it causes the
  17076. \&\fIfirst\fR compilation to be skipped, which makes it useful for little
  17077. other than debugging the compiler proper.
  17078. .IP "\fB\-gtoggle\fR" 4
  17079. .IX Item "-gtoggle"
  17080. Turn off generation of debug info, if leaving out this option
  17081. generates it, or turn it on at level 2 otherwise. The position of this
  17082. argument in the command line does not matter; it takes effect after all
  17083. other options are processed, and it does so only once, no matter how
  17084. many times it is given. This is mainly intended to be used with
  17085. \&\fB\-fcompare\-debug\fR.
  17086. .IP "\fB\-fvar\-tracking\-assignments\-toggle\fR" 4
  17087. .IX Item "-fvar-tracking-assignments-toggle"
  17088. Toggle \fB\-fvar\-tracking\-assignments\fR, in the same way that
  17089. \&\fB\-gtoggle\fR toggles \fB\-g\fR.
  17090. .IP "\fB\-Q\fR" 4
  17091. .IX Item "-Q"
  17092. Makes the compiler print out each function name as it is compiled, and
  17093. print some statistics about each pass when it finishes.
  17094. .IP "\fB\-ftime\-report\fR" 4
  17095. .IX Item "-ftime-report"
  17096. Makes the compiler print some statistics about the time consumed by each
  17097. pass when it finishes.
  17098. .IP "\fB\-ftime\-report\-details\fR" 4
  17099. .IX Item "-ftime-report-details"
  17100. Record the time consumed by infrastructure parts separately for each pass.
  17101. .IP "\fB\-fira\-verbose=\fR\fIn\fR" 4
  17102. .IX Item "-fira-verbose=n"
  17103. Control the verbosity of the dump file for the integrated register allocator.
  17104. The default value is 5. If the value \fIn\fR is greater or equal to 10,
  17105. the dump output is sent to stderr using the same format as \fIn\fR minus 10.
  17106. .IP "\fB\-flto\-report\fR" 4
  17107. .IX Item "-flto-report"
  17108. Prints a report with internal details on the workings of the link-time
  17109. optimizer. The contents of this report vary from version to version.
  17110. It is meant to be useful to \s-1GCC\s0 developers when processing object
  17111. files in \s-1LTO\s0 mode (via \fB\-flto\fR).
  17112. .Sp
  17113. Disabled by default.
  17114. .IP "\fB\-flto\-report\-wpa\fR" 4
  17115. .IX Item "-flto-report-wpa"
  17116. Like \fB\-flto\-report\fR, but only print for the \s-1WPA\s0 phase of link-time
  17117. optimization.
  17118. .IP "\fB\-fmem\-report\fR" 4
  17119. .IX Item "-fmem-report"
  17120. Makes the compiler print some statistics about permanent memory
  17121. allocation when it finishes.
  17122. .IP "\fB\-fmem\-report\-wpa\fR" 4
  17123. .IX Item "-fmem-report-wpa"
  17124. Makes the compiler print some statistics about permanent memory
  17125. allocation for the \s-1WPA\s0 phase only.
  17126. .IP "\fB\-fpre\-ipa\-mem\-report\fR" 4
  17127. .IX Item "-fpre-ipa-mem-report"
  17128. .PD 0
  17129. .IP "\fB\-fpost\-ipa\-mem\-report\fR" 4
  17130. .IX Item "-fpost-ipa-mem-report"
  17131. .PD
  17132. Makes the compiler print some statistics about permanent memory
  17133. allocation before or after interprocedural optimization.
  17134. .IP "\fB\-fprofile\-report\fR" 4
  17135. .IX Item "-fprofile-report"
  17136. Makes the compiler print some statistics about consistency of the
  17137. (estimated) profile and effect of individual passes.
  17138. .IP "\fB\-fstack\-usage\fR" 4
  17139. .IX Item "-fstack-usage"
  17140. Makes the compiler output stack usage information for the program, on a
  17141. per-function basis. The filename for the dump is made by appending
  17142. \&\fI.su\fR to the \fIauxname\fR. \fIauxname\fR is generated from the name of
  17143. the output file, if explicitly specified and it is not an executable,
  17144. otherwise it is the basename of the source file. An entry is made up
  17145. of three fields:
  17146. .RS 4
  17147. .IP "*" 4
  17148. The name of the function.
  17149. .IP "*" 4
  17150. A number of bytes.
  17151. .IP "*" 4
  17152. One or more qualifiers: \f(CW\*(C`static\*(C'\fR, \f(CW\*(C`dynamic\*(C'\fR, \f(CW\*(C`bounded\*(C'\fR.
  17153. .RE
  17154. .RS 4
  17155. .Sp
  17156. The qualifier \f(CW\*(C`static\*(C'\fR means that the function manipulates the stack
  17157. statically: a fixed number of bytes are allocated for the frame on function
  17158. entry and released on function exit; no stack adjustments are otherwise made
  17159. in the function. The second field is this fixed number of bytes.
  17160. .Sp
  17161. The qualifier \f(CW\*(C`dynamic\*(C'\fR means that the function manipulates the stack
  17162. dynamically: in addition to the static allocation described above, stack
  17163. adjustments are made in the body of the function, for example to push/pop
  17164. arguments around function calls. If the qualifier \f(CW\*(C`bounded\*(C'\fR is also
  17165. present, the amount of these adjustments is bounded at compile time and
  17166. the second field is an upper bound of the total amount of stack used by
  17167. the function. If it is not present, the amount of these adjustments is
  17168. not bounded at compile time and the second field only represents the
  17169. bounded part.
  17170. .RE
  17171. .IP "\fB\-fstats\fR" 4
  17172. .IX Item "-fstats"
  17173. Emit statistics about front-end processing at the end of the compilation.
  17174. This option is supported only by the \*(C+ front end, and
  17175. the information is generally only useful to the G++ development team.
  17176. .IP "\fB\-fdbg\-cnt\-list\fR" 4
  17177. .IX Item "-fdbg-cnt-list"
  17178. Print the name and the counter upper bound for all debug counters.
  17179. .IP "\fB\-fdbg\-cnt=\fR\fIcounter-value-list\fR" 4
  17180. .IX Item "-fdbg-cnt=counter-value-list"
  17181. Set the internal debug counter lower and upper bound. \fIcounter-value-list\fR
  17182. is a comma-separated list of \fIname\fR:\fIlower_bound1\fR\-\fIupper_bound1\fR
  17183. [:\fIlower_bound2\fR\-\fIupper_bound2\fR...] tuples which sets
  17184. the name of the counter and list of closed intervals.
  17185. The \fIlower_bound\fR is optional and is zero
  17186. initialized if not set.
  17187. For example, with \fB\-fdbg\-cnt=dce:2\-4:10\-11,tail_call:10\fR,
  17188. \&\f(CW\*(C`dbg_cnt(dce)\*(C'\fR returns true only for second, third, fourth, tenth and
  17189. eleventh invocation.
  17190. For \f(CW\*(C`dbg_cnt(tail_call)\*(C'\fR true is returned for first 10 invocations.
  17191. .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
  17192. .IX Item "-print-file-name=library"
  17193. Print the full absolute name of the library file \fIlibrary\fR that
  17194. would be used when linking\-\-\-and don't do anything else. With this
  17195. option, \s-1GCC\s0 does not compile or link anything; it just prints the
  17196. file name.
  17197. .IP "\fB\-print\-multi\-directory\fR" 4
  17198. .IX Item "-print-multi-directory"
  17199. Print the directory name corresponding to the multilib selected by any
  17200. other switches present in the command line. This directory is supposed
  17201. to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
  17202. .IP "\fB\-print\-multi\-lib\fR" 4
  17203. .IX Item "-print-multi-lib"
  17204. Print the mapping from multilib directory names to compiler switches
  17205. that enable them. The directory name is separated from the switches by
  17206. \&\fB;\fR, and each switch starts with an \fB@\fR instead of the
  17207. \&\fB\-\fR, without spaces between multiple switches. This is supposed to
  17208. ease shell processing.
  17209. .IP "\fB\-print\-multi\-os\-directory\fR" 4
  17210. .IX Item "-print-multi-os-directory"
  17211. Print the path to \s-1OS\s0 libraries for the selected
  17212. multilib, relative to some \fIlib\fR subdirectory. If \s-1OS\s0 libraries are
  17213. present in the \fIlib\fR subdirectory and no multilibs are used, this is
  17214. usually just \fI.\fR, if \s-1OS\s0 libraries are present in \fIlib\fIsuffix\fI\fR
  17215. sibling directories this prints e.g. \fI../lib64\fR, \fI../lib\fR or
  17216. \&\fI../lib32\fR, or if \s-1OS\s0 libraries are present in \fIlib/\fIsubdir\fI\fR
  17217. subdirectories it prints e.g. \fIamd64\fR, \fIsparcv9\fR or \fIev6\fR.
  17218. .IP "\fB\-print\-multiarch\fR" 4
  17219. .IX Item "-print-multiarch"
  17220. Print the path to \s-1OS\s0 libraries for the selected multiarch,
  17221. relative to some \fIlib\fR subdirectory.
  17222. .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
  17223. .IX Item "-print-prog-name=program"
  17224. Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
  17225. .IP "\fB\-print\-libgcc\-file\-name\fR" 4
  17226. .IX Item "-print-libgcc-file-name"
  17227. Same as \fB\-print\-file\-name=libgcc.a\fR.
  17228. .Sp
  17229. This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
  17230. but you do want to link with \fIlibgcc.a\fR. You can do:
  17231. .Sp
  17232. .Vb 1
  17233. \& gcc \-nostdlib <files>... \`gcc \-print\-libgcc\-file\-name\`
  17234. .Ve
  17235. .IP "\fB\-print\-search\-dirs\fR" 4
  17236. .IX Item "-print-search-dirs"
  17237. Print the name of the configured installation directory and a list of
  17238. program and library directories \fBgcc\fR searches\-\-\-and don't do anything else.
  17239. .Sp
  17240. This is useful when \fBgcc\fR prints the error message
  17241. \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
  17242. To resolve this you either need to put \fIcpp0\fR and the other compiler
  17243. components where \fBgcc\fR expects to find them, or you can set the environment
  17244. variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
  17245. Don't forget the trailing \fB/\fR.
  17246. .IP "\fB\-print\-sysroot\fR" 4
  17247. .IX Item "-print-sysroot"
  17248. Print the target sysroot directory that is used during
  17249. compilation. This is the target sysroot specified either at configure
  17250. time or using the \fB\-\-sysroot\fR option, possibly with an extra
  17251. suffix that depends on compilation options. If no target sysroot is
  17252. specified, the option prints nothing.
  17253. .IP "\fB\-print\-sysroot\-headers\-suffix\fR" 4
  17254. .IX Item "-print-sysroot-headers-suffix"
  17255. Print the suffix added to the target sysroot when searching for
  17256. headers, or give an error if the compiler is not configured with such
  17257. a suffix\-\-\-and don't do anything else.
  17258. .IP "\fB\-dumpmachine\fR" 4
  17259. .IX Item "-dumpmachine"
  17260. Print the compiler's target machine (for example,
  17261. \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
  17262. .IP "\fB\-dumpversion\fR" 4
  17263. .IX Item "-dumpversion"
  17264. Print the compiler version (for example, \f(CW3.0\fR, \f(CW6.3.0\fR or \f(CW7\fR)\-\-\-and don't do
  17265. anything else. This is the compiler version used in filesystem paths and
  17266. specs. Depending on how the compiler has been configured it can be just
  17267. a single number (major version), two numbers separated by a dot (major and
  17268. minor version) or three numbers separated by dots (major, minor and patchlevel
  17269. version).
  17270. .IP "\fB\-dumpfullversion\fR" 4
  17271. .IX Item "-dumpfullversion"
  17272. Print the full compiler version\-\-\-and don't do anything else. The output is
  17273. always three numbers separated by dots, major, minor and patchlevel version.
  17274. .IP "\fB\-dumpspecs\fR" 4
  17275. .IX Item "-dumpspecs"
  17276. Print the compiler's built-in specs\-\-\-and don't do anything else. (This
  17277. is used when \s-1GCC\s0 itself is being built.)
  17278. .SS "Machine-Dependent Options"
  17279. .IX Subsection "Machine-Dependent Options"
  17280. Each target machine supported by \s-1GCC\s0 can have its own options\-\-\-for
  17281. example, to allow you to compile for a particular processor variant or
  17282. \&\s-1ABI,\s0 or to control optimizations specific to that machine. By
  17283. convention, the names of machine-specific options start with
  17284. \&\fB\-m\fR.
  17285. .PP
  17286. Some configurations of the compiler also support additional target-specific
  17287. options, usually for compatibility with other compilers on the same
  17288. platform.
  17289. .PP
  17290. \fIAArch64 Options\fR
  17291. .IX Subsection "AArch64 Options"
  17292. .PP
  17293. These options are defined for AArch64 implementations:
  17294. .IP "\fB\-mabi=\fR\fIname\fR" 4
  17295. .IX Item "-mabi=name"
  17296. Generate code for the specified data model. Permissible values
  17297. are \fBilp32\fR for SysV-like data model where int, long int and pointers
  17298. are 32 bits, and \fBlp64\fR for SysV-like data model where int is 32 bits,
  17299. but long int and pointers are 64 bits.
  17300. .Sp
  17301. The default depends on the specific target configuration. Note that
  17302. the \s-1LP64\s0 and \s-1ILP32\s0 ABIs are not link-compatible; you must compile your
  17303. entire program with the same \s-1ABI,\s0 and link with a compatible set of libraries.
  17304. .IP "\fB\-mbig\-endian\fR" 4
  17305. .IX Item "-mbig-endian"
  17306. Generate big-endian code. This is the default when \s-1GCC\s0 is configured for an
  17307. \&\fBaarch64_be\-*\-*\fR target.
  17308. .IP "\fB\-mgeneral\-regs\-only\fR" 4
  17309. .IX Item "-mgeneral-regs-only"
  17310. Generate code which uses only the general-purpose registers. This will prevent
  17311. the compiler from using floating-point and Advanced \s-1SIMD\s0 registers but will not
  17312. impose any restrictions on the assembler.
  17313. .IP "\fB\-mlittle\-endian\fR" 4
  17314. .IX Item "-mlittle-endian"
  17315. Generate little-endian code. This is the default when \s-1GCC\s0 is configured for an
  17316. \&\fBaarch64\-*\-*\fR but not an \fBaarch64_be\-*\-*\fR target.
  17317. .IP "\fB\-mcmodel=tiny\fR" 4
  17318. .IX Item "-mcmodel=tiny"
  17319. Generate code for the tiny code model. The program and its statically defined
  17320. symbols must be within 1MB of each other. Programs can be statically or
  17321. dynamically linked.
  17322. .IP "\fB\-mcmodel=small\fR" 4
  17323. .IX Item "-mcmodel=small"
  17324. Generate code for the small code model. The program and its statically defined
  17325. symbols must be within 4GB of each other. Programs can be statically or
  17326. dynamically linked. This is the default code model.
  17327. .IP "\fB\-mcmodel=large\fR" 4
  17328. .IX Item "-mcmodel=large"
  17329. Generate code for the large code model. This makes no assumptions about
  17330. addresses and sizes of sections. Programs can be statically linked only. The
  17331. \&\fB\-mcmodel=large\fR option is incompatible with \fB\-mabi=ilp32\fR,
  17332. \&\fB\-fpic\fR and \fB\-fPIC\fR.
  17333. .IP "\fB\-mstrict\-align\fR" 4
  17334. .IX Item "-mstrict-align"
  17335. .PD 0
  17336. .IP "\fB\-mno\-strict\-align\fR" 4
  17337. .IX Item "-mno-strict-align"
  17338. .PD
  17339. Avoid or allow generating memory accesses that may not be aligned on a natural
  17340. object boundary as described in the architecture specification.
  17341. .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
  17342. .IX Item "-momit-leaf-frame-pointer"
  17343. .PD 0
  17344. .IP "\fB\-mno\-omit\-leaf\-frame\-pointer\fR" 4
  17345. .IX Item "-mno-omit-leaf-frame-pointer"
  17346. .PD
  17347. Omit or keep the frame pointer in leaf functions. The former behavior is the
  17348. default.
  17349. .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
  17350. .IX Item "-mstack-protector-guard=guard"
  17351. .PD 0
  17352. .IP "\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR" 4
  17353. .IX Item "-mstack-protector-guard-reg=reg"
  17354. .IP "\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR" 4
  17355. .IX Item "-mstack-protector-guard-offset=offset"
  17356. .PD
  17357. Generate stack protection code using canary at \fIguard\fR. Supported
  17358. locations are \fBglobal\fR for a global canary or \fBsysreg\fR for a
  17359. canary in an appropriate system register.
  17360. .Sp
  17361. With the latter choice the options
  17362. \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR and
  17363. \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR furthermore specify
  17364. which system register to use as base register for reading the canary,
  17365. and from what offset from that base register. There is no default
  17366. register or offset as this is entirely for use within the Linux
  17367. kernel.
  17368. .IP "\fB\-mtls\-dialect=desc\fR" 4
  17369. .IX Item "-mtls-dialect=desc"
  17370. Use \s-1TLS\s0 descriptors as the thread-local storage mechanism for dynamic accesses
  17371. of \s-1TLS\s0 variables. This is the default.
  17372. .IP "\fB\-mtls\-dialect=traditional\fR" 4
  17373. .IX Item "-mtls-dialect=traditional"
  17374. Use traditional \s-1TLS\s0 as the thread-local storage mechanism for dynamic accesses
  17375. of \s-1TLS\s0 variables.
  17376. .IP "\fB\-mtls\-size=\fR\fIsize\fR" 4
  17377. .IX Item "-mtls-size=size"
  17378. Specify bit size of immediate \s-1TLS\s0 offsets. Valid values are 12, 24, 32, 48.
  17379. This option requires binutils 2.26 or newer.
  17380. .IP "\fB\-mfix\-cortex\-a53\-835769\fR" 4
  17381. .IX Item "-mfix-cortex-a53-835769"
  17382. .PD 0
  17383. .IP "\fB\-mno\-fix\-cortex\-a53\-835769\fR" 4
  17384. .IX Item "-mno-fix-cortex-a53-835769"
  17385. .PD
  17386. Enable or disable the workaround for the \s-1ARM\s0 Cortex\-A53 erratum number 835769.
  17387. This involves inserting a \s-1NOP\s0 instruction between memory instructions and
  17388. 64\-bit integer multiply-accumulate instructions.
  17389. .IP "\fB\-mfix\-cortex\-a53\-843419\fR" 4
  17390. .IX Item "-mfix-cortex-a53-843419"
  17391. .PD 0
  17392. .IP "\fB\-mno\-fix\-cortex\-a53\-843419\fR" 4
  17393. .IX Item "-mno-fix-cortex-a53-843419"
  17394. .PD
  17395. Enable or disable the workaround for the \s-1ARM\s0 Cortex\-A53 erratum number 843419.
  17396. This erratum workaround is made at link time and this will only pass the
  17397. corresponding flag to the linker.
  17398. .IP "\fB\-mlow\-precision\-recip\-sqrt\fR" 4
  17399. .IX Item "-mlow-precision-recip-sqrt"
  17400. .PD 0
  17401. .IP "\fB\-mno\-low\-precision\-recip\-sqrt\fR" 4
  17402. .IX Item "-mno-low-precision-recip-sqrt"
  17403. .PD
  17404. Enable or disable the reciprocal square root approximation.
  17405. This option only has an effect if \fB\-ffast\-math\fR or
  17406. \&\fB\-funsafe\-math\-optimizations\fR is used as well. Enabling this reduces
  17407. precision of reciprocal square root results to about 16 bits for
  17408. single precision and to 32 bits for double precision.
  17409. .IP "\fB\-mlow\-precision\-sqrt\fR" 4
  17410. .IX Item "-mlow-precision-sqrt"
  17411. .PD 0
  17412. .IP "\fB\-mno\-low\-precision\-sqrt\fR" 4
  17413. .IX Item "-mno-low-precision-sqrt"
  17414. .PD
  17415. Enable or disable the square root approximation.
  17416. This option only has an effect if \fB\-ffast\-math\fR or
  17417. \&\fB\-funsafe\-math\-optimizations\fR is used as well. Enabling this reduces
  17418. precision of square root results to about 16 bits for
  17419. single precision and to 32 bits for double precision.
  17420. If enabled, it implies \fB\-mlow\-precision\-recip\-sqrt\fR.
  17421. .IP "\fB\-mlow\-precision\-div\fR" 4
  17422. .IX Item "-mlow-precision-div"
  17423. .PD 0
  17424. .IP "\fB\-mno\-low\-precision\-div\fR" 4
  17425. .IX Item "-mno-low-precision-div"
  17426. .PD
  17427. Enable or disable the division approximation.
  17428. This option only has an effect if \fB\-ffast\-math\fR or
  17429. \&\fB\-funsafe\-math\-optimizations\fR is used as well. Enabling this reduces
  17430. precision of division results to about 16 bits for
  17431. single precision and to 32 bits for double precision.
  17432. .IP "\fB\-mtrack\-speculation\fR" 4
  17433. .IX Item "-mtrack-speculation"
  17434. .PD 0
  17435. .IP "\fB\-mno\-track\-speculation\fR" 4
  17436. .IX Item "-mno-track-speculation"
  17437. .PD
  17438. Enable or disable generation of additional code to track speculative
  17439. execution through conditional branches. The tracking state can then
  17440. be used by the compiler when expanding calls to
  17441. \&\f(CW\*(C`_\|_builtin_speculation_safe_copy\*(C'\fR to permit a more efficient code
  17442. sequence to be generated.
  17443. .IP "\fB\-moutline\-atomics\fR" 4
  17444. .IX Item "-moutline-atomics"
  17445. .PD 0
  17446. .IP "\fB\-mno\-outline\-atomics\fR" 4
  17447. .IX Item "-mno-outline-atomics"
  17448. .PD
  17449. Enable or disable calls to out-of-line helpers to implement atomic operations.
  17450. These helpers will, at runtime, determine if the \s-1LSE\s0 instructions from
  17451. ARMv8.1\-A can be used; if not, they will use the load/store\-exclusive
  17452. instructions that are present in the base ARMv8.0 \s-1ISA.\s0
  17453. .Sp
  17454. This option is only applicable when compiling for the base ARMv8.0
  17455. instruction set. If using a later revision, e.g. \fB\-march=armv8.1\-a\fR
  17456. or \fB\-march=armv8\-a+lse\fR, the ARMv8.1\-Atomics instructions will be
  17457. used directly. The same applies when using \fB\-mcpu=\fR when the
  17458. selected cpu supports the \fBlse\fR feature.
  17459. This option is on by default.
  17460. .IP "\fB\-march=\fR\fIname\fR" 4
  17461. .IX Item "-march=name"
  17462. Specify the name of the target architecture and, optionally, one or
  17463. more feature modifiers. This option has the form
  17464. \&\fB\-march=\fR\fIarch\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*.
  17465. .Sp
  17466. The table below summarizes the permissible values for \fIarch\fR
  17467. and the features that they enable by default:
  17468. .RS 4
  17469. .IP "\fIarch\fR \fIvalue\fR : \fIArchitecture\fR : \fIIncludes by default\fR" 4
  17470. .IX Item "arch value : Architecture : Includes by default"
  17471. .PD 0
  17472. .IP "\fBarmv8\-a\fR : Armv8\-A : \fB+fp\fR, \fB+simd\fR" 4
  17473. .IX Item "armv8-a : Armv8-A : +fp, +simd"
  17474. .IP "\fBarmv8.1\-a\fR : Armv8.1\-A : \fBarmv8\-a\fR, \fB+crc\fR, \fB+lse\fR, \fB+rdma\fR" 4
  17475. .IX Item "armv8.1-a : Armv8.1-A : armv8-a, +crc, +lse, +rdma"
  17476. .IP "\fBarmv8.2\-a\fR : Armv8.2\-A : \fBarmv8.1\-a\fR" 4
  17477. .IX Item "armv8.2-a : Armv8.2-A : armv8.1-a"
  17478. .IP "\fBarmv8.3\-a\fR : Armv8.3\-A : \fBarmv8.2\-a\fR, \fB+pauth\fR" 4
  17479. .IX Item "armv8.3-a : Armv8.3-A : armv8.2-a, +pauth"
  17480. .IP "\fBarmv8.4\-a\fR : Armv8.4\-A : \fBarmv8.3\-a\fR, \fB+flagm\fR, \fB+fp16fml\fR, \fB+dotprod\fR" 4
  17481. .IX Item "armv8.4-a : Armv8.4-A : armv8.3-a, +flagm, +fp16fml, +dotprod"
  17482. .IP "\fBarmv8.5\-a\fR : Armv8.5\-A : \fBarmv8.4\-a\fR, \fB+sb\fR, \fB+ssbs\fR, \fB+predres\fR" 4
  17483. .IX Item "armv8.5-a : Armv8.5-A : armv8.4-a, +sb, +ssbs, +predres"
  17484. .IP "\fBarmv8.6\-a\fR : Armv8.6\-A : \fBarmv8.5\-a\fR, \fB+bf16\fR, \fB+i8mm\fR" 4
  17485. .IX Item "armv8.6-a : Armv8.6-A : armv8.5-a, +bf16, +i8mm"
  17486. .IP "\fBarmv8\-r\fR : Armv8\-R : \fBarmv8\-r\fR" 4
  17487. .IX Item "armv8-r : Armv8-R : armv8-r"
  17488. .RE
  17489. .RS 4
  17490. .PD
  17491. .Sp
  17492. The value \fBnative\fR is available on native AArch64 GNU/Linux and
  17493. causes the compiler to pick the architecture of the host system. This
  17494. option has no effect if the compiler is unable to recognize the
  17495. architecture of the host system,
  17496. .Sp
  17497. The permissible values for \fIfeature\fR are listed in the sub-section
  17498. on \fBaarch64\-feature\-modifiers,,\fR\fB\-march\fR \fBand\fR \fB\-mcpu\fR
  17499. \&\fBFeature Modifiers\fR. Where conflicting feature modifiers are
  17500. specified, the right-most feature is used.
  17501. .Sp
  17502. \&\s-1GCC\s0 uses \fIname\fR to determine what kind of instructions it can emit
  17503. when generating assembly code. If \fB\-march\fR is specified
  17504. without either of \fB\-mtune\fR or \fB\-mcpu\fR also being
  17505. specified, the code is tuned to perform well across a range of target
  17506. processors implementing the target architecture.
  17507. .RE
  17508. .IP "\fB\-mtune=\fR\fIname\fR" 4
  17509. .IX Item "-mtune=name"
  17510. Specify the name of the target processor for which \s-1GCC\s0 should tune the
  17511. performance of the code. Permissible values for this option are:
  17512. \&\fBgeneric\fR, \fBcortex\-a35\fR, \fBcortex\-a53\fR, \fBcortex\-a55\fR,
  17513. \&\fBcortex\-a57\fR, \fBcortex\-a72\fR, \fBcortex\-a73\fR, \fBcortex\-a75\fR,
  17514. \&\fBcortex\-a76\fR, \fBcortex\-a76ae\fR, \fBcortex\-a77\fR,
  17515. \&\fBcortex\-a65\fR, \fBcortex\-a65ae\fR, \fBcortex\-a34\fR,
  17516. \&\fBcortex\-a78\fR, \fBcortex\-a78ae\fR, \fBcortex\-a78c\fR,
  17517. \&\fBares\fR, \fBexynos\-m1\fR, \fBemag\fR, \fBfalkor\fR,
  17518. \&\fBneoverse\-e1\fR, \fBneoverse\-n1\fR, \fBneoverse\-n2\fR,
  17519. \&\fBneoverse\-v1\fR, \fBqdf24xx\fR, \fBsaphira\fR,
  17520. \&\fBphecda\fR, \fBxgene1\fR, \fBvulcan\fR, \fBocteontx\fR,
  17521. \&\fBocteontx81\fR, \fBocteontx83\fR,
  17522. \&\fBocteontx2\fR, \fBocteontx2t98\fR, \fBocteontx2t96\fR
  17523. \&\fBocteontx2t93\fR, \fBocteontx2f95\fR, \fBocteontx2f95n\fR,
  17524. \&\fBocteontx2f95mm\fR,
  17525. \&\fBa64fx\fR,
  17526. \&\fBthunderx\fR, \fBthunderxt88\fR,
  17527. \&\fBthunderxt88p1\fR, \fBthunderxt81\fR, \fBtsv110\fR,
  17528. \&\fBthunderxt83\fR, \fBthunderx2t99\fR, \fBthunderx3t110\fR, \fBzeus\fR,
  17529. \&\fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR,
  17530. \&\fBcortex\-a73.cortex\-a35\fR, \fBcortex\-a73.cortex\-a53\fR,
  17531. \&\fBcortex\-a75.cortex\-a55\fR, \fBcortex\-a76.cortex\-a55\fR,
  17532. \&\fBcortex\-r82\fR, \fBcortex\-x1\fR, \fBnative\fR.
  17533. .Sp
  17534. The values \fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR,
  17535. \&\fBcortex\-a73.cortex\-a35\fR, \fBcortex\-a73.cortex\-a53\fR,
  17536. \&\fBcortex\-a75.cortex\-a55\fR, \fBcortex\-a76.cortex\-a55\fR specify that \s-1GCC\s0
  17537. should tune for a big.LITTLE system.
  17538. .Sp
  17539. Additionally on native AArch64 GNU/Linux systems the value
  17540. \&\fBnative\fR tunes performance to the host system. This option has no effect
  17541. if the compiler is unable to recognize the processor of the host system.
  17542. .Sp
  17543. Where none of \fB\-mtune=\fR, \fB\-mcpu=\fR or \fB\-march=\fR
  17544. are specified, the code is tuned to perform well across a range
  17545. of target processors.
  17546. .Sp
  17547. This option cannot be suffixed by feature modifiers.
  17548. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  17549. .IX Item "-mcpu=name"
  17550. Specify the name of the target processor, optionally suffixed by one
  17551. or more feature modifiers. This option has the form
  17552. \&\fB\-mcpu=\fR\fIcpu\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*, where
  17553. the permissible values for \fIcpu\fR are the same as those available
  17554. for \fB\-mtune\fR. The permissible values for \fIfeature\fR are
  17555. documented in the sub-section on
  17556. \&\fBaarch64\-feature\-modifiers,,\fR\fB\-march\fR \fBand\fR \fB\-mcpu\fR
  17557. \&\fBFeature Modifiers\fR. Where conflicting feature modifiers are
  17558. specified, the right-most feature is used.
  17559. .Sp
  17560. \&\s-1GCC\s0 uses \fIname\fR to determine what kind of instructions it can emit when
  17561. generating assembly code (as if by \fB\-march\fR) and to determine
  17562. the target processor for which to tune for performance (as if
  17563. by \fB\-mtune\fR). Where this option is used in conjunction
  17564. with \fB\-march\fR or \fB\-mtune\fR, those options take precedence
  17565. over the appropriate part of this option.
  17566. .IP "\fB\-moverride=\fR\fIstring\fR" 4
  17567. .IX Item "-moverride=string"
  17568. Override tuning decisions made by the back-end in response to a
  17569. \&\fB\-mtune=\fR switch. The syntax, semantics, and accepted values
  17570. for \fIstring\fR in this option are not guaranteed to be consistent
  17571. across releases.
  17572. .Sp
  17573. This option is only intended to be useful when developing \s-1GCC.\s0
  17574. .IP "\fB\-mverbose\-cost\-dump\fR" 4
  17575. .IX Item "-mverbose-cost-dump"
  17576. Enable verbose cost model dumping in the debug dump files. This option is
  17577. provided for use in debugging the compiler.
  17578. .IP "\fB\-mpc\-relative\-literal\-loads\fR" 4
  17579. .IX Item "-mpc-relative-literal-loads"
  17580. .PD 0
  17581. .IP "\fB\-mno\-pc\-relative\-literal\-loads\fR" 4
  17582. .IX Item "-mno-pc-relative-literal-loads"
  17583. .PD
  17584. Enable or disable PC-relative literal loads. With this option literal pools are
  17585. accessed using a single instruction and emitted after each function. This
  17586. limits the maximum size of functions to 1MB. This is enabled by default for
  17587. \&\fB\-mcmodel=tiny\fR.
  17588. .IP "\fB\-msign\-return\-address=\fR\fIscope\fR" 4
  17589. .IX Item "-msign-return-address=scope"
  17590. Select the function scope on which return address signing will be applied.
  17591. Permissible values are \fBnone\fR, which disables return address signing,
  17592. \&\fBnon-leaf\fR, which enables pointer signing for functions which are not leaf
  17593. functions, and \fBall\fR, which enables pointer signing for all functions. The
  17594. default value is \fBnone\fR. This option has been deprecated by
  17595. \&\-mbranch\-protection.
  17596. .IP "\fB\-mbranch\-protection=\fR\fInone\fR\fB|\fR\fIstandard\fR\fB|\fR\fIpac-ret\fR\fB[+\fR\fIleaf\fR\fB+\fR\fIb\-key\fR\fB]|\fR\fIbti\fR" 4
  17597. .IX Item "-mbranch-protection=none|standard|pac-ret[+leaf+b-key]|bti"
  17598. Select the branch protection features to use.
  17599. \&\fBnone\fR is the default and turns off all types of branch protection.
  17600. \&\fBstandard\fR turns on all types of branch protection features. If a feature
  17601. has additional tuning options, then \fBstandard\fR sets it to its standard
  17602. level.
  17603. \&\fBpac\-ret[+\fR\fIleaf\fR\fB]\fR turns on return address signing to its standard
  17604. level: signing functions that save the return address to memory (non-leaf
  17605. functions will practically always do this) using the a\-key. The optional
  17606. argument \fBleaf\fR can be used to extend the signing to include leaf
  17607. functions. The optional argument \fBb\-key\fR can be used to sign the functions
  17608. with the B\-key instead of the A\-key.
  17609. \&\fBbti\fR turns on branch target identification mechanism.
  17610. .IP "\fB\-mharden\-sls=\fR\fIopts\fR" 4
  17611. .IX Item "-mharden-sls=opts"
  17612. Enable compiler hardening against straight line speculation (\s-1SLS\s0).
  17613. \&\fIopts\fR is a comma-separated list of the following options:
  17614. .RS 4
  17615. .IP "\fBretbr\fR" 4
  17616. .IX Item "retbr"
  17617. .PD 0
  17618. .IP "\fBblr\fR" 4
  17619. .IX Item "blr"
  17620. .RE
  17621. .RS 4
  17622. .PD
  17623. .Sp
  17624. In addition, \fB\-mharden\-sls=all\fR enables all \s-1SLS\s0 hardening while
  17625. \&\fB\-mharden\-sls=none\fR disables all \s-1SLS\s0 hardening.
  17626. .RE
  17627. .IP "\fB\-msve\-vector\-bits=\fR\fIbits\fR" 4
  17628. .IX Item "-msve-vector-bits=bits"
  17629. Specify the number of bits in an \s-1SVE\s0 vector register. This option only has
  17630. an effect when \s-1SVE\s0 is enabled.
  17631. .Sp
  17632. \&\s-1GCC\s0 supports two forms of \s-1SVE\s0 code generation: \*(L"vector-length
  17633. agnostic\*(R" output that works with any size of vector register and
  17634. \&\*(L"vector-length specific\*(R" output that allows \s-1GCC\s0 to make assumptions
  17635. about the vector length when it is useful for optimization reasons.
  17636. The possible values of \fBbits\fR are: \fBscalable\fR, \fB128\fR,
  17637. \&\fB256\fR, \fB512\fR, \fB1024\fR and \fB2048\fR.
  17638. Specifying \fBscalable\fR selects vector-length agnostic
  17639. output. At present \fB\-msve\-vector\-bits=128\fR also generates vector-length
  17640. agnostic output for big-endian targets. All other values generate
  17641. vector-length specific code. The behavior of these values may change
  17642. in future releases and no value except \fBscalable\fR should be
  17643. relied on for producing code that is portable across different
  17644. hardware \s-1SVE\s0 vector lengths.
  17645. .Sp
  17646. The default is \fB\-msve\-vector\-bits=scalable\fR, which produces
  17647. vector-length agnostic code.
  17648. .PP
  17649. \fB\-march\fR and \fB\-mcpu\fR Feature Modifiers
  17650. .IX Subsection "-march and -mcpu Feature Modifiers"
  17651. .PP
  17652. Feature modifiers used with \fB\-march\fR and \fB\-mcpu\fR can be any of
  17653. the following and their inverses \fBno\fR\fIfeature\fR:
  17654. .IP "\fBcrc\fR" 4
  17655. .IX Item "crc"
  17656. Enable \s-1CRC\s0 extension. This is on by default for
  17657. \&\fB\-march=armv8.1\-a\fR.
  17658. .IP "\fBcrypto\fR" 4
  17659. .IX Item "crypto"
  17660. Enable Crypto extension. This also enables Advanced \s-1SIMD\s0 and floating-point
  17661. instructions.
  17662. .IP "\fBfp\fR" 4
  17663. .IX Item "fp"
  17664. Enable floating-point instructions. This is on by default for all possible
  17665. values for options \fB\-march\fR and \fB\-mcpu\fR.
  17666. .IP "\fBsimd\fR" 4
  17667. .IX Item "simd"
  17668. Enable Advanced \s-1SIMD\s0 instructions. This also enables floating-point
  17669. instructions. This is on by default for all possible values for options
  17670. \&\fB\-march\fR and \fB\-mcpu\fR.
  17671. .IP "\fBsve\fR" 4
  17672. .IX Item "sve"
  17673. Enable Scalable Vector Extension instructions. This also enables Advanced
  17674. \&\s-1SIMD\s0 and floating-point instructions.
  17675. .IP "\fBlse\fR" 4
  17676. .IX Item "lse"
  17677. Enable Large System Extension instructions. This is on by default for
  17678. \&\fB\-march=armv8.1\-a\fR.
  17679. .IP "\fBrdma\fR" 4
  17680. .IX Item "rdma"
  17681. Enable Round Double Multiply Accumulate instructions. This is on by default
  17682. for \fB\-march=armv8.1\-a\fR.
  17683. .IP "\fBfp16\fR" 4
  17684. .IX Item "fp16"
  17685. Enable \s-1FP16\s0 extension. This also enables floating-point instructions.
  17686. .IP "\fBfp16fml\fR" 4
  17687. .IX Item "fp16fml"
  17688. Enable \s-1FP16\s0 fmla extension. This also enables \s-1FP16\s0 extensions and
  17689. floating-point instructions. This option is enabled by default for \fB\-march=armv8.4\-a\fR. Use of this option with architectures prior to Armv8.2\-A is not supported.
  17690. .IP "\fBrcpc\fR" 4
  17691. .IX Item "rcpc"
  17692. Enable the RcPc extension. This does not change code generation from \s-1GCC,\s0
  17693. but is passed on to the assembler, enabling inline asm statements to use
  17694. instructions from the RcPc extension.
  17695. .IP "\fBdotprod\fR" 4
  17696. .IX Item "dotprod"
  17697. Enable the Dot Product extension. This also enables Advanced \s-1SIMD\s0 instructions.
  17698. .IP "\fBaes\fR" 4
  17699. .IX Item "aes"
  17700. Enable the Armv8\-a aes and pmull crypto extension. This also enables Advanced
  17701. \&\s-1SIMD\s0 instructions.
  17702. .IP "\fBsha2\fR" 4
  17703. .IX Item "sha2"
  17704. Enable the Armv8\-a sha2 crypto extension. This also enables Advanced \s-1SIMD\s0 instructions.
  17705. .IP "\fBsha3\fR" 4
  17706. .IX Item "sha3"
  17707. Enable the sha512 and sha3 crypto extension. This also enables Advanced \s-1SIMD\s0
  17708. instructions. Use of this option with architectures prior to Armv8.2\-A is not supported.
  17709. .IP "\fBsm4\fR" 4
  17710. .IX Item "sm4"
  17711. Enable the sm3 and sm4 crypto extension. This also enables Advanced \s-1SIMD\s0 instructions.
  17712. Use of this option with architectures prior to Armv8.2\-A is not supported.
  17713. .IP "\fBprofile\fR" 4
  17714. .IX Item "profile"
  17715. Enable the Statistical Profiling extension. This option is only to enable the
  17716. extension at the assembler level and does not affect code generation.
  17717. .IP "\fBrng\fR" 4
  17718. .IX Item "rng"
  17719. Enable the Armv8.5\-a Random Number instructions. This option is only to
  17720. enable the extension at the assembler level and does not affect code
  17721. generation.
  17722. .IP "\fBmemtag\fR" 4
  17723. .IX Item "memtag"
  17724. Enable the Armv8.5\-a Memory Tagging Extensions.
  17725. Use of this option with architectures prior to Armv8.5\-A is not supported.
  17726. .IP "\fBsb\fR" 4
  17727. .IX Item "sb"
  17728. Enable the Armv8\-a Speculation Barrier instruction. This option is only to
  17729. enable the extension at the assembler level and does not affect code
  17730. generation. This option is enabled by default for \fB\-march=armv8.5\-a\fR.
  17731. .IP "\fBssbs\fR" 4
  17732. .IX Item "ssbs"
  17733. Enable the Armv8\-a Speculative Store Bypass Safe instruction. This option
  17734. is only to enable the extension at the assembler level and does not affect code
  17735. generation. This option is enabled by default for \fB\-march=armv8.5\-a\fR.
  17736. .IP "\fBpredres\fR" 4
  17737. .IX Item "predres"
  17738. Enable the Armv8\-a Execution and Data Prediction Restriction instructions.
  17739. This option is only to enable the extension at the assembler level and does
  17740. not affect code generation. This option is enabled by default for
  17741. \&\fB\-march=armv8.5\-a\fR.
  17742. .IP "\fBsve2\fR" 4
  17743. .IX Item "sve2"
  17744. Enable the Armv8\-a Scalable Vector Extension 2. This also enables \s-1SVE\s0
  17745. instructions.
  17746. .IP "\fBsve2\-bitperm\fR" 4
  17747. .IX Item "sve2-bitperm"
  17748. Enable \s-1SVE2\s0 bitperm instructions. This also enables \s-1SVE2\s0 instructions.
  17749. .IP "\fBsve2\-sm4\fR" 4
  17750. .IX Item "sve2-sm4"
  17751. Enable \s-1SVE2\s0 sm4 instructions. This also enables \s-1SVE2\s0 instructions.
  17752. .IP "\fBsve2\-aes\fR" 4
  17753. .IX Item "sve2-aes"
  17754. Enable \s-1SVE2\s0 aes instructions. This also enables \s-1SVE2\s0 instructions.
  17755. .IP "\fBsve2\-sha3\fR" 4
  17756. .IX Item "sve2-sha3"
  17757. Enable \s-1SVE2\s0 sha3 instructions. This also enables \s-1SVE2\s0 instructions.
  17758. .IP "\fBtme\fR" 4
  17759. .IX Item "tme"
  17760. Enable the Transactional Memory Extension.
  17761. .IP "\fBi8mm\fR" 4
  17762. .IX Item "i8mm"
  17763. Enable 8\-bit Integer Matrix Multiply instructions. This also enables
  17764. Advanced \s-1SIMD\s0 and floating-point instructions. This option is enabled by
  17765. default for \fB\-march=armv8.6\-a\fR. Use of this option with architectures
  17766. prior to Armv8.2\-A is not supported.
  17767. .IP "\fBf32mm\fR" 4
  17768. .IX Item "f32mm"
  17769. Enable 32\-bit Floating point Matrix Multiply instructions. This also enables
  17770. \&\s-1SVE\s0 instructions. Use of this option with architectures prior to Armv8.2\-A is
  17771. not supported.
  17772. .IP "\fBf64mm\fR" 4
  17773. .IX Item "f64mm"
  17774. Enable 64\-bit Floating point Matrix Multiply instructions. This also enables
  17775. \&\s-1SVE\s0 instructions. Use of this option with architectures prior to Armv8.2\-A is
  17776. not supported.
  17777. .IP "\fBbf16\fR" 4
  17778. .IX Item "bf16"
  17779. Enable brain half-precision floating-point instructions. This also enables
  17780. Advanced \s-1SIMD\s0 and floating-point instructions. This option is enabled by
  17781. default for \fB\-march=armv8.6\-a\fR. Use of this option with architectures
  17782. prior to Armv8.2\-A is not supported.
  17783. .IP "\fBflagm\fR" 4
  17784. .IX Item "flagm"
  17785. Enable the Flag Manipulation instructions Extension.
  17786. .IP "\fBpauth\fR" 4
  17787. .IX Item "pauth"
  17788. Enable the Pointer Authentication Extension.
  17789. .PP
  17790. Feature \fBcrypto\fR implies \fBaes\fR, \fBsha2\fR, and \fBsimd\fR,
  17791. which implies \fBfp\fR.
  17792. Conversely, \fBnofp\fR implies \fBnosimd\fR, which implies
  17793. \&\fBnocrypto\fR, \fBnoaes\fR and \fBnosha2\fR.
  17794. .PP
  17795. \fIAdapteva Epiphany Options\fR
  17796. .IX Subsection "Adapteva Epiphany Options"
  17797. .PP
  17798. These \fB\-m\fR options are defined for Adapteva Epiphany:
  17799. .IP "\fB\-mhalf\-reg\-file\fR" 4
  17800. .IX Item "-mhalf-reg-file"
  17801. Don't allocate any register in the range \f(CW\*(C`r32\*(C'\fR...\f(CW\*(C`r63\*(C'\fR.
  17802. That allows code to run on hardware variants that lack these registers.
  17803. .IP "\fB\-mprefer\-short\-insn\-regs\fR" 4
  17804. .IX Item "-mprefer-short-insn-regs"
  17805. Preferentially allocate registers that allow short instruction generation.
  17806. This can result in increased instruction count, so this may either reduce or
  17807. increase overall code size.
  17808. .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
  17809. .IX Item "-mbranch-cost=num"
  17810. Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
  17811. This cost is only a heuristic and is not guaranteed to produce
  17812. consistent results across releases.
  17813. .IP "\fB\-mcmove\fR" 4
  17814. .IX Item "-mcmove"
  17815. Enable the generation of conditional moves.
  17816. .IP "\fB\-mnops=\fR\fInum\fR" 4
  17817. .IX Item "-mnops=num"
  17818. Emit \fInum\fR NOPs before every other generated instruction.
  17819. .IP "\fB\-mno\-soft\-cmpsf\fR" 4
  17820. .IX Item "-mno-soft-cmpsf"
  17821. For single-precision floating-point comparisons, emit an \f(CW\*(C`fsub\*(C'\fR instruction
  17822. and test the flags. This is faster than a software comparison, but can
  17823. get incorrect results in the presence of NaNs, or when two different small
  17824. numbers are compared such that their difference is calculated as zero.
  17825. The default is \fB\-msoft\-cmpsf\fR, which uses slower, but IEEE-compliant,
  17826. software comparisons.
  17827. .IP "\fB\-mstack\-offset=\fR\fInum\fR" 4
  17828. .IX Item "-mstack-offset=num"
  17829. Set the offset between the top of the stack and the stack pointer.
  17830. E.g., a value of 8 means that the eight bytes in the range \f(CW\*(C`sp+0...sp+7\*(C'\fR
  17831. can be used by leaf functions without stack allocation.
  17832. Values other than \fB8\fR or \fB16\fR are untested and unlikely to work.
  17833. Note also that this option changes the \s-1ABI\s0; compiling a program with a
  17834. different stack offset than the libraries have been compiled with
  17835. generally does not work.
  17836. This option can be useful if you want to evaluate if a different stack
  17837. offset would give you better code, but to actually use a different stack
  17838. offset to build working programs, it is recommended to configure the
  17839. toolchain with the appropriate \fB\-\-with\-stack\-offset=\fR\fInum\fR option.
  17840. .IP "\fB\-mno\-round\-nearest\fR" 4
  17841. .IX Item "-mno-round-nearest"
  17842. Make the scheduler assume that the rounding mode has been set to
  17843. truncating. The default is \fB\-mround\-nearest\fR.
  17844. .IP "\fB\-mlong\-calls\fR" 4
  17845. .IX Item "-mlong-calls"
  17846. If not otherwise specified by an attribute, assume all calls might be beyond
  17847. the offset range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, and therefore load the
  17848. function address into a register before performing a (otherwise direct) call.
  17849. This is the default.
  17850. .IP "\fB\-mshort\-calls\fR" 4
  17851. .IX Item "-mshort-calls"
  17852. If not otherwise specified by an attribute, assume all direct calls are
  17853. in the range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, so use these instructions
  17854. for direct calls. The default is \fB\-mlong\-calls\fR.
  17855. .IP "\fB\-msmall16\fR" 4
  17856. .IX Item "-msmall16"
  17857. Assume addresses can be loaded as 16\-bit unsigned values. This does not
  17858. apply to function addresses for which \fB\-mlong\-calls\fR semantics
  17859. are in effect.
  17860. .IP "\fB\-mfp\-mode=\fR\fImode\fR" 4
  17861. .IX Item "-mfp-mode=mode"
  17862. Set the prevailing mode of the floating-point unit.
  17863. This determines the floating-point mode that is provided and expected
  17864. at function call and return time. Making this mode match the mode you
  17865. predominantly need at function start can make your programs smaller and
  17866. faster by avoiding unnecessary mode switches.
  17867. .Sp
  17868. \&\fImode\fR can be set to one the following values:
  17869. .RS 4
  17870. .IP "\fBcaller\fR" 4
  17871. .IX Item "caller"
  17872. Any mode at function entry is valid, and retained or restored when
  17873. the function returns, and when it calls other functions.
  17874. This mode is useful for compiling libraries or other compilation units
  17875. you might want to incorporate into different programs with different
  17876. prevailing \s-1FPU\s0 modes, and the convenience of being able to use a single
  17877. object file outweighs the size and speed overhead for any extra
  17878. mode switching that might be needed, compared with what would be needed
  17879. with a more specific choice of prevailing \s-1FPU\s0 mode.
  17880. .IP "\fBtruncate\fR" 4
  17881. .IX Item "truncate"
  17882. This is the mode used for floating-point calculations with
  17883. truncating (i.e. round towards zero) rounding mode. That includes
  17884. conversion from floating point to integer.
  17885. .IP "\fBround-nearest\fR" 4
  17886. .IX Item "round-nearest"
  17887. This is the mode used for floating-point calculations with
  17888. round-to-nearest-or-even rounding mode.
  17889. .IP "\fBint\fR" 4
  17890. .IX Item "int"
  17891. This is the mode used to perform integer calculations in the \s-1FPU,\s0 e.g.
  17892. integer multiply, or integer multiply-and-accumulate.
  17893. .RE
  17894. .RS 4
  17895. .Sp
  17896. The default is \fB\-mfp\-mode=caller\fR
  17897. .RE
  17898. .IP "\fB\-mno\-split\-lohi\fR" 4
  17899. .IX Item "-mno-split-lohi"
  17900. .PD 0
  17901. .IP "\fB\-mno\-postinc\fR" 4
  17902. .IX Item "-mno-postinc"
  17903. .IP "\fB\-mno\-postmodify\fR" 4
  17904. .IX Item "-mno-postmodify"
  17905. .PD
  17906. Code generation tweaks that disable, respectively, splitting of 32\-bit
  17907. loads, generation of post-increment addresses, and generation of
  17908. post-modify addresses. The defaults are \fBmsplit-lohi\fR,
  17909. \&\fB\-mpost\-inc\fR, and \fB\-mpost\-modify\fR.
  17910. .IP "\fB\-mnovect\-double\fR" 4
  17911. .IX Item "-mnovect-double"
  17912. Change the preferred \s-1SIMD\s0 mode to SImode. The default is
  17913. \&\fB\-mvect\-double\fR, which uses DImode as preferred \s-1SIMD\s0 mode.
  17914. .IP "\fB\-max\-vect\-align=\fR\fInum\fR" 4
  17915. .IX Item "-max-vect-align=num"
  17916. The maximum alignment for \s-1SIMD\s0 vector mode types.
  17917. \&\fInum\fR may be 4 or 8. The default is 8.
  17918. Note that this is an \s-1ABI\s0 change, even though many library function
  17919. interfaces are unaffected if they don't use \s-1SIMD\s0 vector modes
  17920. in places that affect size and/or alignment of relevant types.
  17921. .IP "\fB\-msplit\-vecmove\-early\fR" 4
  17922. .IX Item "-msplit-vecmove-early"
  17923. Split vector moves into single word moves before reload. In theory this
  17924. can give better register allocation, but so far the reverse seems to be
  17925. generally the case.
  17926. .IP "\fB\-m1reg\-\fR\fIreg\fR" 4
  17927. .IX Item "-m1reg-reg"
  17928. Specify a register to hold the constant \-1, which makes loading small negative
  17929. constants and certain bitmasks faster.
  17930. Allowable values for \fIreg\fR are \fBr43\fR and \fBr63\fR,
  17931. which specify use of that register as a fixed register,
  17932. and \fBnone\fR, which means that no register is used for this
  17933. purpose. The default is \fB\-m1reg\-none\fR.
  17934. .PP
  17935. \fI\s-1AMD GCN\s0 Options\fR
  17936. .IX Subsection "AMD GCN Options"
  17937. .PP
  17938. These options are defined specifically for the \s-1AMD GCN\s0 port.
  17939. .IP "\fB\-march=\fR\fIgpu\fR" 4
  17940. .IX Item "-march=gpu"
  17941. .PD 0
  17942. .IP "\fB\-mtune=\fR\fIgpu\fR" 4
  17943. .IX Item "-mtune=gpu"
  17944. .PD
  17945. Set architecture type or tuning for \fIgpu\fR. Supported values for \fIgpu\fR
  17946. are
  17947. .RS 4
  17948. .IP "\fBfiji\fR" 4
  17949. .IX Item "fiji"
  17950. Compile for \s-1GCN3\s0 Fiji devices (gfx803).
  17951. .IP "\fBgfx900\fR" 4
  17952. .IX Item "gfx900"
  17953. Compile for \s-1GCN5\s0 Vega 10 devices (gfx900).
  17954. .IP "\fBgfx906\fR" 4
  17955. .IX Item "gfx906"
  17956. Compile for \s-1GCN5\s0 Vega 20 devices (gfx906).
  17957. .RE
  17958. .RS 4
  17959. .RE
  17960. .IP "\fB\-mstack\-size=\fR\fIbytes\fR" 4
  17961. .IX Item "-mstack-size=bytes"
  17962. Specify how many \fIbytes\fR of stack space will be requested for each \s-1GPU\s0
  17963. thread (wave-front). Beware that there may be many threads and limited memory
  17964. available. The size of the stack allocation may also have an impact on
  17965. run-time performance. The default is 32KB when using OpenACC or OpenMP, and
  17966. 1MB otherwise.
  17967. .PP
  17968. \fI\s-1ARC\s0 Options\fR
  17969. .IX Subsection "ARC Options"
  17970. .PP
  17971. The following options control the architecture variant for which code
  17972. is being compiled:
  17973. .IP "\fB\-mbarrel\-shifter\fR" 4
  17974. .IX Item "-mbarrel-shifter"
  17975. Generate instructions supported by barrel shifter. This is the default
  17976. unless \fB\-mcpu=ARC601\fR or \fB\-mcpu=ARCEM\fR is in effect.
  17977. .IP "\fB\-mjli\-always\fR" 4
  17978. .IX Item "-mjli-always"
  17979. Force to call a function using jli_s instruction. This option is
  17980. valid only for ARCv2 architecture.
  17981. .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
  17982. .IX Item "-mcpu=cpu"
  17983. Set architecture type, register usage, and instruction scheduling
  17984. parameters for \fIcpu\fR. There are also shortcut alias options
  17985. available for backward compatibility and convenience. Supported
  17986. values for \fIcpu\fR are
  17987. .RS 4
  17988. .IP "\fBarc600\fR" 4
  17989. .IX Item "arc600"
  17990. Compile for \s-1ARC600.\s0 Aliases: \fB\-mA6\fR, \fB\-mARC600\fR.
  17991. .IP "\fBarc601\fR" 4
  17992. .IX Item "arc601"
  17993. Compile for \s-1ARC601.\s0 Alias: \fB\-mARC601\fR.
  17994. .IP "\fBarc700\fR" 4
  17995. .IX Item "arc700"
  17996. Compile for \s-1ARC700.\s0 Aliases: \fB\-mA7\fR, \fB\-mARC700\fR.
  17997. This is the default when configured with \fB\-\-with\-cpu=arc700\fR.
  17998. .IP "\fBarcem\fR" 4
  17999. .IX Item "arcem"
  18000. Compile for \s-1ARC EM.\s0
  18001. .IP "\fBarchs\fR" 4
  18002. .IX Item "archs"
  18003. Compile for \s-1ARC HS.\s0
  18004. .IP "\fBem\fR" 4
  18005. .IX Item "em"
  18006. Compile for \s-1ARC EM CPU\s0 with no hardware extensions.
  18007. .IP "\fBem4\fR" 4
  18008. .IX Item "em4"
  18009. Compile for \s-1ARC EM4 CPU.\s0
  18010. .IP "\fBem4_dmips\fR" 4
  18011. .IX Item "em4_dmips"
  18012. Compile for \s-1ARC EM4 DMIPS CPU.\s0
  18013. .IP "\fBem4_fpus\fR" 4
  18014. .IX Item "em4_fpus"
  18015. Compile for \s-1ARC EM4 DMIPS CPU\s0 with the single-precision floating-point
  18016. extension.
  18017. .IP "\fBem4_fpuda\fR" 4
  18018. .IX Item "em4_fpuda"
  18019. Compile for \s-1ARC EM4 DMIPS CPU\s0 with single-precision floating-point and
  18020. double assist instructions.
  18021. .IP "\fBhs\fR" 4
  18022. .IX Item "hs"
  18023. Compile for \s-1ARC HS CPU\s0 with no hardware extensions except the atomic
  18024. instructions.
  18025. .IP "\fBhs34\fR" 4
  18026. .IX Item "hs34"
  18027. Compile for \s-1ARC HS34 CPU.\s0
  18028. .IP "\fBhs38\fR" 4
  18029. .IX Item "hs38"
  18030. Compile for \s-1ARC HS38 CPU.\s0
  18031. .IP "\fBhs38_linux\fR" 4
  18032. .IX Item "hs38_linux"
  18033. Compile for \s-1ARC HS38 CPU\s0 with all hardware extensions on.
  18034. .IP "\fBarc600_norm\fR" 4
  18035. .IX Item "arc600_norm"
  18036. Compile for \s-1ARC 600 CPU\s0 with \f(CW\*(C`norm\*(C'\fR instructions enabled.
  18037. .IP "\fBarc600_mul32x16\fR" 4
  18038. .IX Item "arc600_mul32x16"
  18039. Compile for \s-1ARC 600 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and 32x16\-bit multiply
  18040. instructions enabled.
  18041. .IP "\fBarc600_mul64\fR" 4
  18042. .IX Item "arc600_mul64"
  18043. Compile for \s-1ARC 600 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and \f(CW\*(C`mul64\*(C'\fR\-family
  18044. instructions enabled.
  18045. .IP "\fBarc601_norm\fR" 4
  18046. .IX Item "arc601_norm"
  18047. Compile for \s-1ARC 601 CPU\s0 with \f(CW\*(C`norm\*(C'\fR instructions enabled.
  18048. .IP "\fBarc601_mul32x16\fR" 4
  18049. .IX Item "arc601_mul32x16"
  18050. Compile for \s-1ARC 601 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and 32x16\-bit multiply
  18051. instructions enabled.
  18052. .IP "\fBarc601_mul64\fR" 4
  18053. .IX Item "arc601_mul64"
  18054. Compile for \s-1ARC 601 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and \f(CW\*(C`mul64\*(C'\fR\-family
  18055. instructions enabled.
  18056. .IP "\fBnps400\fR" 4
  18057. .IX Item "nps400"
  18058. Compile for \s-1ARC 700\s0 on \s-1NPS400\s0 chip.
  18059. .IP "\fBem_mini\fR" 4
  18060. .IX Item "em_mini"
  18061. Compile for \s-1ARC EM\s0 minimalist configuration featuring reduced register
  18062. set.
  18063. .RE
  18064. .RS 4
  18065. .RE
  18066. .IP "\fB\-mdpfp\fR" 4
  18067. .IX Item "-mdpfp"
  18068. .PD 0
  18069. .IP "\fB\-mdpfp\-compact\fR" 4
  18070. .IX Item "-mdpfp-compact"
  18071. .PD
  18072. Generate double-precision \s-1FPX\s0 instructions, tuned for the compact
  18073. implementation.
  18074. .IP "\fB\-mdpfp\-fast\fR" 4
  18075. .IX Item "-mdpfp-fast"
  18076. Generate double-precision \s-1FPX\s0 instructions, tuned for the fast
  18077. implementation.
  18078. .IP "\fB\-mno\-dpfp\-lrsr\fR" 4
  18079. .IX Item "-mno-dpfp-lrsr"
  18080. Disable \f(CW\*(C`lr\*(C'\fR and \f(CW\*(C`sr\*(C'\fR instructions from using \s-1FPX\s0 extension
  18081. aux registers.
  18082. .IP "\fB\-mea\fR" 4
  18083. .IX Item "-mea"
  18084. Generate extended arithmetic instructions. Currently only
  18085. \&\f(CW\*(C`divaw\*(C'\fR, \f(CW\*(C`adds\*(C'\fR, \f(CW\*(C`subs\*(C'\fR, and \f(CW\*(C`sat16\*(C'\fR are
  18086. supported. Only valid for \fB\-mcpu=ARC700\fR.
  18087. .IP "\fB\-mno\-mpy\fR" 4
  18088. .IX Item "-mno-mpy"
  18089. Do not generate \f(CW\*(C`mpy\*(C'\fR\-family instructions for \s-1ARC700.\s0 This option is
  18090. deprecated.
  18091. .IP "\fB\-mmul32x16\fR" 4
  18092. .IX Item "-mmul32x16"
  18093. Generate 32x16\-bit multiply and multiply-accumulate instructions.
  18094. .IP "\fB\-mmul64\fR" 4
  18095. .IX Item "-mmul64"
  18096. Generate \f(CW\*(C`mul64\*(C'\fR and \f(CW\*(C`mulu64\*(C'\fR instructions.
  18097. Only valid for \fB\-mcpu=ARC600\fR.
  18098. .IP "\fB\-mnorm\fR" 4
  18099. .IX Item "-mnorm"
  18100. Generate \f(CW\*(C`norm\*(C'\fR instructions. This is the default if \fB\-mcpu=ARC700\fR
  18101. is in effect.
  18102. .IP "\fB\-mspfp\fR" 4
  18103. .IX Item "-mspfp"
  18104. .PD 0
  18105. .IP "\fB\-mspfp\-compact\fR" 4
  18106. .IX Item "-mspfp-compact"
  18107. .PD
  18108. Generate single-precision \s-1FPX\s0 instructions, tuned for the compact
  18109. implementation.
  18110. .IP "\fB\-mspfp\-fast\fR" 4
  18111. .IX Item "-mspfp-fast"
  18112. Generate single-precision \s-1FPX\s0 instructions, tuned for the fast
  18113. implementation.
  18114. .IP "\fB\-msimd\fR" 4
  18115. .IX Item "-msimd"
  18116. Enable generation of \s-1ARC SIMD\s0 instructions via target-specific
  18117. builtins. Only valid for \fB\-mcpu=ARC700\fR.
  18118. .IP "\fB\-msoft\-float\fR" 4
  18119. .IX Item "-msoft-float"
  18120. This option ignored; it is provided for compatibility purposes only.
  18121. Software floating-point code is emitted by default, and this default
  18122. can overridden by \s-1FPX\s0 options; \fB\-mspfp\fR, \fB\-mspfp\-compact\fR, or
  18123. \&\fB\-mspfp\-fast\fR for single precision, and \fB\-mdpfp\fR,
  18124. \&\fB\-mdpfp\-compact\fR, or \fB\-mdpfp\-fast\fR for double precision.
  18125. .IP "\fB\-mswap\fR" 4
  18126. .IX Item "-mswap"
  18127. Generate \f(CW\*(C`swap\*(C'\fR instructions.
  18128. .IP "\fB\-matomic\fR" 4
  18129. .IX Item "-matomic"
  18130. This enables use of the locked load/store conditional extension to implement
  18131. atomic memory built-in functions. Not available for \s-1ARC\s0 6xx or \s-1ARC
  18132. EM\s0 cores.
  18133. .IP "\fB\-mdiv\-rem\fR" 4
  18134. .IX Item "-mdiv-rem"
  18135. Enable \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`rem\*(C'\fR instructions for ARCv2 cores.
  18136. .IP "\fB\-mcode\-density\fR" 4
  18137. .IX Item "-mcode-density"
  18138. Enable code density instructions for \s-1ARC EM.\s0
  18139. This option is on by default for \s-1ARC HS.\s0
  18140. .IP "\fB\-mll64\fR" 4
  18141. .IX Item "-mll64"
  18142. Enable double load/store operations for \s-1ARC HS\s0 cores.
  18143. .IP "\fB\-mtp\-regno=\fR\fIregno\fR" 4
  18144. .IX Item "-mtp-regno=regno"
  18145. Specify thread pointer register number.
  18146. .IP "\fB\-mmpy\-option=\fR\fImulto\fR" 4
  18147. .IX Item "-mmpy-option=multo"
  18148. Compile ARCv2 code with a multiplier design option. You can specify
  18149. the option using either a string or numeric value for \fImulto\fR.
  18150. \&\fBwlh1\fR is the default value. The recognized values are:
  18151. .RS 4
  18152. .IP "\fB0\fR" 4
  18153. .IX Item "0"
  18154. .PD 0
  18155. .IP "\fBnone\fR" 4
  18156. .IX Item "none"
  18157. .PD
  18158. No multiplier available.
  18159. .IP "\fB1\fR" 4
  18160. .IX Item "1"
  18161. .PD 0
  18162. .IP "\fBw\fR" 4
  18163. .IX Item "w"
  18164. .PD
  18165. 16x16 multiplier, fully pipelined.
  18166. The following instructions are enabled: \f(CW\*(C`mpyw\*(C'\fR and \f(CW\*(C`mpyuw\*(C'\fR.
  18167. .IP "\fB2\fR" 4
  18168. .IX Item "2"
  18169. .PD 0
  18170. .IP "\fBwlh1\fR" 4
  18171. .IX Item "wlh1"
  18172. .PD
  18173. 32x32 multiplier, fully
  18174. pipelined (1 stage). The following instructions are additionally
  18175. enabled: \f(CW\*(C`mpy\*(C'\fR, \f(CW\*(C`mpyu\*(C'\fR, \f(CW\*(C`mpym\*(C'\fR, \f(CW\*(C`mpymu\*(C'\fR, and \f(CW\*(C`mpy_s\*(C'\fR.
  18176. .IP "\fB3\fR" 4
  18177. .IX Item "3"
  18178. .PD 0
  18179. .IP "\fBwlh2\fR" 4
  18180. .IX Item "wlh2"
  18181. .PD
  18182. 32x32 multiplier, fully pipelined
  18183. (2 stages). The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
  18184. \&\f(CW\*(C`mpyu\*(C'\fR, \f(CW\*(C`mpym\*(C'\fR, \f(CW\*(C`mpymu\*(C'\fR, and \f(CW\*(C`mpy_s\*(C'\fR.
  18185. .IP "\fB4\fR" 4
  18186. .IX Item "4"
  18187. .PD 0
  18188. .IP "\fBwlh3\fR" 4
  18189. .IX Item "wlh3"
  18190. .PD
  18191. Two 16x16 multipliers, blocking,
  18192. sequential. The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
  18193. \&\f(CW\*(C`mpyu\*(C'\fR, \f(CW\*(C`mpym\*(C'\fR, \f(CW\*(C`mpymu\*(C'\fR, and \f(CW\*(C`mpy_s\*(C'\fR.
  18194. .IP "\fB5\fR" 4
  18195. .IX Item "5"
  18196. .PD 0
  18197. .IP "\fBwlh4\fR" 4
  18198. .IX Item "wlh4"
  18199. .PD
  18200. One 16x16 multiplier, blocking,
  18201. sequential. The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
  18202. \&\f(CW\*(C`mpyu\*(C'\fR, \f(CW\*(C`mpym\*(C'\fR, \f(CW\*(C`mpymu\*(C'\fR, and \f(CW\*(C`mpy_s\*(C'\fR.
  18203. .IP "\fB6\fR" 4
  18204. .IX Item "6"
  18205. .PD 0
  18206. .IP "\fBwlh5\fR" 4
  18207. .IX Item "wlh5"
  18208. .PD
  18209. One 32x4 multiplier, blocking,
  18210. sequential. The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
  18211. \&\f(CW\*(C`mpyu\*(C'\fR, \f(CW\*(C`mpym\*(C'\fR, \f(CW\*(C`mpymu\*(C'\fR, and \f(CW\*(C`mpy_s\*(C'\fR.
  18212. .IP "\fB7\fR" 4
  18213. .IX Item "7"
  18214. .PD 0
  18215. .IP "\fBplus_dmpy\fR" 4
  18216. .IX Item "plus_dmpy"
  18217. .PD
  18218. \&\s-1ARC HS SIMD\s0 support.
  18219. .IP "\fB8\fR" 4
  18220. .IX Item "8"
  18221. .PD 0
  18222. .IP "\fBplus_macd\fR" 4
  18223. .IX Item "plus_macd"
  18224. .PD
  18225. \&\s-1ARC HS SIMD\s0 support.
  18226. .IP "\fB9\fR" 4
  18227. .IX Item "9"
  18228. .PD 0
  18229. .IP "\fBplus_qmacw\fR" 4
  18230. .IX Item "plus_qmacw"
  18231. .PD
  18232. \&\s-1ARC HS SIMD\s0 support.
  18233. .RE
  18234. .RS 4
  18235. .Sp
  18236. This option is only available for ARCv2 cores.
  18237. .RE
  18238. .IP "\fB\-mfpu=\fR\fIfpu\fR" 4
  18239. .IX Item "-mfpu=fpu"
  18240. Enables support for specific floating-point hardware extensions for ARCv2
  18241. cores. Supported values for \fIfpu\fR are:
  18242. .RS 4
  18243. .IP "\fBfpus\fR" 4
  18244. .IX Item "fpus"
  18245. Enables support for single-precision floating-point hardware
  18246. extensions.
  18247. .IP "\fBfpud\fR" 4
  18248. .IX Item "fpud"
  18249. Enables support for double-precision floating-point hardware
  18250. extensions. The single-precision floating-point extension is also
  18251. enabled. Not available for \s-1ARC EM.\s0
  18252. .IP "\fBfpuda\fR" 4
  18253. .IX Item "fpuda"
  18254. Enables support for double-precision floating-point hardware
  18255. extensions using double-precision assist instructions. The single-precision
  18256. floating-point extension is also enabled. This option is
  18257. only available for \s-1ARC EM.\s0
  18258. .IP "\fBfpuda_div\fR" 4
  18259. .IX Item "fpuda_div"
  18260. Enables support for double-precision floating-point hardware
  18261. extensions using double-precision assist instructions.
  18262. The single-precision floating-point, square-root, and divide
  18263. extensions are also enabled. This option is
  18264. only available for \s-1ARC EM.\s0
  18265. .IP "\fBfpuda_fma\fR" 4
  18266. .IX Item "fpuda_fma"
  18267. Enables support for double-precision floating-point hardware
  18268. extensions using double-precision assist instructions.
  18269. The single-precision floating-point and fused multiply and add
  18270. hardware extensions are also enabled. This option is
  18271. only available for \s-1ARC EM.\s0
  18272. .IP "\fBfpuda_all\fR" 4
  18273. .IX Item "fpuda_all"
  18274. Enables support for double-precision floating-point hardware
  18275. extensions using double-precision assist instructions.
  18276. All single-precision floating-point hardware extensions are also
  18277. enabled. This option is only available for \s-1ARC EM.\s0
  18278. .IP "\fBfpus_div\fR" 4
  18279. .IX Item "fpus_div"
  18280. Enables support for single-precision floating-point, square-root and divide
  18281. hardware extensions.
  18282. .IP "\fBfpud_div\fR" 4
  18283. .IX Item "fpud_div"
  18284. Enables support for double-precision floating-point, square-root and divide
  18285. hardware extensions. This option
  18286. includes option \fBfpus_div\fR. Not available for \s-1ARC EM.\s0
  18287. .IP "\fBfpus_fma\fR" 4
  18288. .IX Item "fpus_fma"
  18289. Enables support for single-precision floating-point and
  18290. fused multiply and add hardware extensions.
  18291. .IP "\fBfpud_fma\fR" 4
  18292. .IX Item "fpud_fma"
  18293. Enables support for double-precision floating-point and
  18294. fused multiply and add hardware extensions. This option
  18295. includes option \fBfpus_fma\fR. Not available for \s-1ARC EM.\s0
  18296. .IP "\fBfpus_all\fR" 4
  18297. .IX Item "fpus_all"
  18298. Enables support for all single-precision floating-point hardware
  18299. extensions.
  18300. .IP "\fBfpud_all\fR" 4
  18301. .IX Item "fpud_all"
  18302. Enables support for all single\- and double-precision floating-point
  18303. hardware extensions. Not available for \s-1ARC EM.\s0
  18304. .RE
  18305. .RS 4
  18306. .RE
  18307. .IP "\fB\-mirq\-ctrl\-saved=\fR\fIregister-range\fR\fB,\fR \fIblink\fR\fB,\fR \fIlp_count\fR" 4
  18308. .IX Item "-mirq-ctrl-saved=register-range, blink, lp_count"
  18309. Specifies general-purposes registers that the processor automatically
  18310. saves/restores on interrupt entry and exit. \fIregister-range\fR is
  18311. specified as two registers separated by a dash. The register range
  18312. always starts with \f(CW\*(C`r0\*(C'\fR, the upper limit is \f(CW\*(C`fp\*(C'\fR register.
  18313. \&\fIblink\fR and \fIlp_count\fR are optional. This option is only
  18314. valid for \s-1ARC EM\s0 and \s-1ARC HS\s0 cores.
  18315. .IP "\fB\-mrgf\-banked\-regs=\fR\fInumber\fR" 4
  18316. .IX Item "-mrgf-banked-regs=number"
  18317. Specifies the number of registers replicated in second register bank
  18318. on entry to fast interrupt. Fast interrupts are interrupts with the
  18319. highest priority level P0. These interrupts save only \s-1PC\s0 and \s-1STATUS32\s0
  18320. registers to avoid memory transactions during interrupt entry and exit
  18321. sequences. Use this option when you are using fast interrupts in an
  18322. \&\s-1ARC V2\s0 family processor. Permitted values are 4, 8, 16, and 32.
  18323. .IP "\fB\-mlpc\-width=\fR\fIwidth\fR" 4
  18324. .IX Item "-mlpc-width=width"
  18325. Specify the width of the \f(CW\*(C`lp_count\*(C'\fR register. Valid values for
  18326. \&\fIwidth\fR are 8, 16, 20, 24, 28 and 32 bits. The default width is
  18327. fixed to 32 bits. If the width is less than 32, the compiler does not
  18328. attempt to transform loops in your program to use the zero-delay loop
  18329. mechanism unless it is known that the \f(CW\*(C`lp_count\*(C'\fR register can
  18330. hold the required loop-counter value. Depending on the width
  18331. specified, the compiler and run-time library might continue to use the
  18332. loop mechanism for various needs. This option defines macro
  18333. \&\f(CW\*(C`_\|_ARC_LPC_WIDTH_\|_\*(C'\fR with the value of \fIwidth\fR.
  18334. .IP "\fB\-mrf16\fR" 4
  18335. .IX Item "-mrf16"
  18336. This option instructs the compiler to generate code for a 16\-entry
  18337. register file. This option defines the \f(CW\*(C`_\|_ARC_RF16_\|_\*(C'\fR
  18338. preprocessor macro.
  18339. .IP "\fB\-mbranch\-index\fR" 4
  18340. .IX Item "-mbranch-index"
  18341. Enable use of \f(CW\*(C`bi\*(C'\fR or \f(CW\*(C`bih\*(C'\fR instructions to implement jump
  18342. tables.
  18343. .PP
  18344. The following options are passed through to the assembler, and also
  18345. define preprocessor macro symbols.
  18346. .IP "\fB\-mdsp\-packa\fR" 4
  18347. .IX Item "-mdsp-packa"
  18348. Passed down to the assembler to enable the \s-1DSP\s0 Pack A extensions.
  18349. Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdsp_packa\*(C'\fR. This option is
  18350. deprecated.
  18351. .IP "\fB\-mdvbf\fR" 4
  18352. .IX Item "-mdvbf"
  18353. Passed down to the assembler to enable the dual Viterbi butterfly
  18354. extension. Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdvbf\*(C'\fR. This
  18355. option is deprecated.
  18356. .IP "\fB\-mlock\fR" 4
  18357. .IX Item "-mlock"
  18358. Passed down to the assembler to enable the locked load/store
  18359. conditional extension. Also sets the preprocessor symbol
  18360. \&\f(CW\*(C`_\|_Xlock\*(C'\fR.
  18361. .IP "\fB\-mmac\-d16\fR" 4
  18362. .IX Item "-mmac-d16"
  18363. Passed down to the assembler. Also sets the preprocessor symbol
  18364. \&\f(CW\*(C`_\|_Xxmac_d16\*(C'\fR. This option is deprecated.
  18365. .IP "\fB\-mmac\-24\fR" 4
  18366. .IX Item "-mmac-24"
  18367. Passed down to the assembler. Also sets the preprocessor symbol
  18368. \&\f(CW\*(C`_\|_Xxmac_24\*(C'\fR. This option is deprecated.
  18369. .IP "\fB\-mrtsc\fR" 4
  18370. .IX Item "-mrtsc"
  18371. Passed down to the assembler to enable the 64\-bit time-stamp counter
  18372. extension instruction. Also sets the preprocessor symbol
  18373. \&\f(CW\*(C`_\|_Xrtsc\*(C'\fR. This option is deprecated.
  18374. .IP "\fB\-mswape\fR" 4
  18375. .IX Item "-mswape"
  18376. Passed down to the assembler to enable the swap byte ordering
  18377. extension instruction. Also sets the preprocessor symbol
  18378. \&\f(CW\*(C`_\|_Xswape\*(C'\fR.
  18379. .IP "\fB\-mtelephony\fR" 4
  18380. .IX Item "-mtelephony"
  18381. Passed down to the assembler to enable dual\- and single-operand
  18382. instructions for telephony. Also sets the preprocessor symbol
  18383. \&\f(CW\*(C`_\|_Xtelephony\*(C'\fR. This option is deprecated.
  18384. .IP "\fB\-mxy\fR" 4
  18385. .IX Item "-mxy"
  18386. Passed down to the assembler to enable the \s-1XY\s0 memory extension. Also
  18387. sets the preprocessor symbol \f(CW\*(C`_\|_Xxy\*(C'\fR.
  18388. .PP
  18389. The following options control how the assembly code is annotated:
  18390. .IP "\fB\-misize\fR" 4
  18391. .IX Item "-misize"
  18392. Annotate assembler instructions with estimated addresses.
  18393. .IP "\fB\-mannotate\-align\fR" 4
  18394. .IX Item "-mannotate-align"
  18395. Explain what alignment considerations lead to the decision to make an
  18396. instruction short or long.
  18397. .PP
  18398. The following options are passed through to the linker:
  18399. .IP "\fB\-marclinux\fR" 4
  18400. .IX Item "-marclinux"
  18401. Passed through to the linker, to specify use of the \f(CW\*(C`arclinux\*(C'\fR emulation.
  18402. This option is enabled by default in tool chains built for
  18403. \&\f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets
  18404. when profiling is not requested.
  18405. .IP "\fB\-marclinux_prof\fR" 4
  18406. .IX Item "-marclinux_prof"
  18407. Passed through to the linker, to specify use of the
  18408. \&\f(CW\*(C`arclinux_prof\*(C'\fR emulation. This option is enabled by default in
  18409. tool chains built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and
  18410. \&\f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets when profiling is requested.
  18411. .PP
  18412. The following options control the semantics of generated code:
  18413. .IP "\fB\-mlong\-calls\fR" 4
  18414. .IX Item "-mlong-calls"
  18415. Generate calls as register indirect calls, thus providing access
  18416. to the full 32\-bit address range.
  18417. .IP "\fB\-mmedium\-calls\fR" 4
  18418. .IX Item "-mmedium-calls"
  18419. Don't use less than 25\-bit addressing range for calls, which is the
  18420. offset available for an unconditional branch-and-link
  18421. instruction. Conditional execution of function calls is suppressed, to
  18422. allow use of the 25\-bit range, rather than the 21\-bit range with
  18423. conditional branch-and-link. This is the default for tool chains built
  18424. for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets.
  18425. .IP "\fB\-G\fR \fInum\fR" 4
  18426. .IX Item "-G num"
  18427. Put definitions of externally-visible data in a small data section if
  18428. that data is no bigger than \fInum\fR bytes. The default value of
  18429. \&\fInum\fR is 4 for any \s-1ARC\s0 configuration, or 8 when we have double
  18430. load/store operations.
  18431. .IP "\fB\-mno\-sdata\fR" 4
  18432. .IX Item "-mno-sdata"
  18433. Do not generate sdata references. This is the default for tool chains
  18434. built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR
  18435. targets.
  18436. .IP "\fB\-mvolatile\-cache\fR" 4
  18437. .IX Item "-mvolatile-cache"
  18438. Use ordinarily cached memory accesses for volatile references. This is the
  18439. default.
  18440. .IP "\fB\-mno\-volatile\-cache\fR" 4
  18441. .IX Item "-mno-volatile-cache"
  18442. Enable cache bypass for volatile references.
  18443. .PP
  18444. The following options fine tune code generation:
  18445. .IP "\fB\-malign\-call\fR" 4
  18446. .IX Item "-malign-call"
  18447. Do alignment optimizations for call instructions.
  18448. .IP "\fB\-mauto\-modify\-reg\fR" 4
  18449. .IX Item "-mauto-modify-reg"
  18450. Enable the use of pre/post modify with register displacement.
  18451. .IP "\fB\-mbbit\-peephole\fR" 4
  18452. .IX Item "-mbbit-peephole"
  18453. Enable bbit peephole2.
  18454. .IP "\fB\-mno\-brcc\fR" 4
  18455. .IX Item "-mno-brcc"
  18456. This option disables a target-specific pass in \fIarc_reorg\fR to
  18457. generate compare-and-branch (\f(CW\*(C`br\f(CIcc\f(CW\*(C'\fR) instructions.
  18458. It has no effect on
  18459. generation of these instructions driven by the combiner pass.
  18460. .IP "\fB\-mcase\-vector\-pcrel\fR" 4
  18461. .IX Item "-mcase-vector-pcrel"
  18462. Use PC-relative switch case tables to enable case table shortening.
  18463. This is the default for \fB\-Os\fR.
  18464. .IP "\fB\-mcompact\-casesi\fR" 4
  18465. .IX Item "-mcompact-casesi"
  18466. Enable compact \f(CW\*(C`casesi\*(C'\fR pattern. This is the default for \fB\-Os\fR,
  18467. and only available for ARCv1 cores. This option is deprecated.
  18468. .IP "\fB\-mno\-cond\-exec\fR" 4
  18469. .IX Item "-mno-cond-exec"
  18470. Disable the ARCompact-specific pass to generate conditional
  18471. execution instructions.
  18472. .Sp
  18473. Due to delay slot scheduling and interactions between operand numbers,
  18474. literal sizes, instruction lengths, and the support for conditional execution,
  18475. the target-independent pass to generate conditional execution is often lacking,
  18476. so the \s-1ARC\s0 port has kept a special pass around that tries to find more
  18477. conditional execution generation opportunities after register allocation,
  18478. branch shortening, and delay slot scheduling have been done. This pass
  18479. generally, but not always, improves performance and code size, at the cost of
  18480. extra compilation time, which is why there is an option to switch it off.
  18481. If you have a problem with call instructions exceeding their allowable
  18482. offset range because they are conditionalized, you should consider using
  18483. \&\fB\-mmedium\-calls\fR instead.
  18484. .IP "\fB\-mearly\-cbranchsi\fR" 4
  18485. .IX Item "-mearly-cbranchsi"
  18486. Enable pre-reload use of the \f(CW\*(C`cbranchsi\*(C'\fR pattern.
  18487. .IP "\fB\-mexpand\-adddi\fR" 4
  18488. .IX Item "-mexpand-adddi"
  18489. Expand \f(CW\*(C`adddi3\*(C'\fR and \f(CW\*(C`subdi3\*(C'\fR at \s-1RTL\s0 generation time into
  18490. \&\f(CW\*(C`add.f\*(C'\fR, \f(CW\*(C`adc\*(C'\fR etc. This option is deprecated.
  18491. .IP "\fB\-mindexed\-loads\fR" 4
  18492. .IX Item "-mindexed-loads"
  18493. Enable the use of indexed loads. This can be problematic because some
  18494. optimizers then assume that indexed stores exist, which is not
  18495. the case.
  18496. .IP "\fB\-mlra\fR" 4
  18497. .IX Item "-mlra"
  18498. Enable Local Register Allocation. This is still experimental for \s-1ARC,\s0
  18499. so by default the compiler uses standard reload
  18500. (i.e. \fB\-mno\-lra\fR).
  18501. .IP "\fB\-mlra\-priority\-none\fR" 4
  18502. .IX Item "-mlra-priority-none"
  18503. Don't indicate any priority for target registers.
  18504. .IP "\fB\-mlra\-priority\-compact\fR" 4
  18505. .IX Item "-mlra-priority-compact"
  18506. Indicate target register priority for r0..r3 / r12..r15.
  18507. .IP "\fB\-mlra\-priority\-noncompact\fR" 4
  18508. .IX Item "-mlra-priority-noncompact"
  18509. Reduce target register priority for r0..r3 / r12..r15.
  18510. .IP "\fB\-mmillicode\fR" 4
  18511. .IX Item "-mmillicode"
  18512. When optimizing for size (using \fB\-Os\fR), prologues and epilogues
  18513. that have to save or restore a large number of registers are often
  18514. shortened by using call to a special function in libgcc; this is
  18515. referred to as a \fImillicode\fR call. As these calls can pose
  18516. performance issues, and/or cause linking issues when linking in a
  18517. nonstandard way, this option is provided to turn on or off millicode
  18518. call generation.
  18519. .IP "\fB\-mcode\-density\-frame\fR" 4
  18520. .IX Item "-mcode-density-frame"
  18521. This option enable the compiler to emit \f(CW\*(C`enter\*(C'\fR and \f(CW\*(C`leave\*(C'\fR
  18522. instructions. These instructions are only valid for CPUs with
  18523. code-density feature.
  18524. .IP "\fB\-mmixed\-code\fR" 4
  18525. .IX Item "-mmixed-code"
  18526. Tweak register allocation to help 16\-bit instruction generation.
  18527. This generally has the effect of decreasing the average instruction size
  18528. while increasing the instruction count.
  18529. .IP "\fB\-mq\-class\fR" 4
  18530. .IX Item "-mq-class"
  18531. Ths option is deprecated. Enable \fBq\fR instruction alternatives.
  18532. This is the default for \fB\-Os\fR.
  18533. .IP "\fB\-mRcq\fR" 4
  18534. .IX Item "-mRcq"
  18535. Enable \fBRcq\fR constraint handling.
  18536. Most short code generation depends on this.
  18537. This is the default.
  18538. .IP "\fB\-mRcw\fR" 4
  18539. .IX Item "-mRcw"
  18540. Enable \fBRcw\fR constraint handling.
  18541. Most ccfsm condexec mostly depends on this.
  18542. This is the default.
  18543. .IP "\fB\-msize\-level=\fR\fIlevel\fR" 4
  18544. .IX Item "-msize-level=level"
  18545. Fine-tune size optimization with regards to instruction lengths and alignment.
  18546. The recognized values for \fIlevel\fR are:
  18547. .RS 4
  18548. .IP "\fB0\fR" 4
  18549. .IX Item "0"
  18550. No size optimization. This level is deprecated and treated like \fB1\fR.
  18551. .IP "\fB1\fR" 4
  18552. .IX Item "1"
  18553. Short instructions are used opportunistically.
  18554. .IP "\fB2\fR" 4
  18555. .IX Item "2"
  18556. In addition, alignment of loops and of code after barriers are dropped.
  18557. .IP "\fB3\fR" 4
  18558. .IX Item "3"
  18559. In addition, optional data alignment is dropped, and the option \fBOs\fR is enabled.
  18560. .RE
  18561. .RS 4
  18562. .Sp
  18563. This defaults to \fB3\fR when \fB\-Os\fR is in effect. Otherwise,
  18564. the behavior when this is not set is equivalent to level \fB1\fR.
  18565. .RE
  18566. .IP "\fB\-mtune=\fR\fIcpu\fR" 4
  18567. .IX Item "-mtune=cpu"
  18568. Set instruction scheduling parameters for \fIcpu\fR, overriding any implied
  18569. by \fB\-mcpu=\fR.
  18570. .Sp
  18571. Supported values for \fIcpu\fR are
  18572. .RS 4
  18573. .IP "\fB\s-1ARC600\s0\fR" 4
  18574. .IX Item "ARC600"
  18575. Tune for \s-1ARC600 CPU.\s0
  18576. .IP "\fB\s-1ARC601\s0\fR" 4
  18577. .IX Item "ARC601"
  18578. Tune for \s-1ARC601 CPU.\s0
  18579. .IP "\fB\s-1ARC700\s0\fR" 4
  18580. .IX Item "ARC700"
  18581. Tune for \s-1ARC700 CPU\s0 with standard multiplier block.
  18582. .IP "\fBARC700\-xmac\fR" 4
  18583. .IX Item "ARC700-xmac"
  18584. Tune for \s-1ARC700 CPU\s0 with \s-1XMAC\s0 block.
  18585. .IP "\fB\s-1ARC725D\s0\fR" 4
  18586. .IX Item "ARC725D"
  18587. Tune for \s-1ARC725D CPU.\s0
  18588. .IP "\fB\s-1ARC750D\s0\fR" 4
  18589. .IX Item "ARC750D"
  18590. Tune for \s-1ARC750D CPU.\s0
  18591. .RE
  18592. .RS 4
  18593. .RE
  18594. .IP "\fB\-mmultcost=\fR\fInum\fR" 4
  18595. .IX Item "-mmultcost=num"
  18596. Cost to assume for a multiply instruction, with \fB4\fR being equal to a
  18597. normal instruction.
  18598. .IP "\fB\-munalign\-prob\-threshold=\fR\fIprobability\fR" 4
  18599. .IX Item "-munalign-prob-threshold=probability"
  18600. Set probability threshold for unaligning branches.
  18601. When tuning for \fB\s-1ARC700\s0\fR and optimizing for speed, branches without
  18602. filled delay slot are preferably emitted unaligned and long, unless
  18603. profiling indicates that the probability for the branch to be taken
  18604. is below \fIprobability\fR.
  18605. The default is (\s-1REG_BR_PROB_BASE/2\s0), i.e. 5000.
  18606. .PP
  18607. The following options are maintained for backward compatibility, but
  18608. are now deprecated and will be removed in a future release:
  18609. .IP "\fB\-margonaut\fR" 4
  18610. .IX Item "-margonaut"
  18611. Obsolete \s-1FPX.\s0
  18612. .IP "\fB\-mbig\-endian\fR" 4
  18613. .IX Item "-mbig-endian"
  18614. .PD 0
  18615. .IP "\fB\-EB\fR" 4
  18616. .IX Item "-EB"
  18617. .PD
  18618. Compile code for big-endian targets. Use of these options is now
  18619. deprecated. Big-endian code is supported by configuring \s-1GCC\s0 to build
  18620. \&\f(CW\*(C`arceb\-elf32\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets,
  18621. for which big endian is the default.
  18622. .IP "\fB\-mlittle\-endian\fR" 4
  18623. .IX Item "-mlittle-endian"
  18624. .PD 0
  18625. .IP "\fB\-EL\fR" 4
  18626. .IX Item "-EL"
  18627. .PD
  18628. Compile code for little-endian targets. Use of these options is now
  18629. deprecated. Little-endian code is supported by configuring \s-1GCC\s0 to build
  18630. \&\f(CW\*(C`arc\-elf32\*(C'\fR and \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR targets,
  18631. for which little endian is the default.
  18632. .IP "\fB\-mbarrel_shifter\fR" 4
  18633. .IX Item "-mbarrel_shifter"
  18634. Replaced by \fB\-mbarrel\-shifter\fR.
  18635. .IP "\fB\-mdpfp_compact\fR" 4
  18636. .IX Item "-mdpfp_compact"
  18637. Replaced by \fB\-mdpfp\-compact\fR.
  18638. .IP "\fB\-mdpfp_fast\fR" 4
  18639. .IX Item "-mdpfp_fast"
  18640. Replaced by \fB\-mdpfp\-fast\fR.
  18641. .IP "\fB\-mdsp_packa\fR" 4
  18642. .IX Item "-mdsp_packa"
  18643. Replaced by \fB\-mdsp\-packa\fR.
  18644. .IP "\fB\-mEA\fR" 4
  18645. .IX Item "-mEA"
  18646. Replaced by \fB\-mea\fR.
  18647. .IP "\fB\-mmac_24\fR" 4
  18648. .IX Item "-mmac_24"
  18649. Replaced by \fB\-mmac\-24\fR.
  18650. .IP "\fB\-mmac_d16\fR" 4
  18651. .IX Item "-mmac_d16"
  18652. Replaced by \fB\-mmac\-d16\fR.
  18653. .IP "\fB\-mspfp_compact\fR" 4
  18654. .IX Item "-mspfp_compact"
  18655. Replaced by \fB\-mspfp\-compact\fR.
  18656. .IP "\fB\-mspfp_fast\fR" 4
  18657. .IX Item "-mspfp_fast"
  18658. Replaced by \fB\-mspfp\-fast\fR.
  18659. .IP "\fB\-mtune=\fR\fIcpu\fR" 4
  18660. .IX Item "-mtune=cpu"
  18661. Values \fBarc600\fR, \fBarc601\fR, \fBarc700\fR and
  18662. \&\fBarc700\-xmac\fR for \fIcpu\fR are replaced by \fB\s-1ARC600\s0\fR,
  18663. \&\fB\s-1ARC601\s0\fR, \fB\s-1ARC700\s0\fR and \fBARC700\-xmac\fR respectively.
  18664. .IP "\fB\-multcost=\fR\fInum\fR" 4
  18665. .IX Item "-multcost=num"
  18666. Replaced by \fB\-mmultcost\fR.
  18667. .PP
  18668. \fI\s-1ARM\s0 Options\fR
  18669. .IX Subsection "ARM Options"
  18670. .PP
  18671. These \fB\-m\fR options are defined for the \s-1ARM\s0 port:
  18672. .IP "\fB\-mabi=\fR\fIname\fR" 4
  18673. .IX Item "-mabi=name"
  18674. Generate code for the specified \s-1ABI.\s0 Permissible values are: \fBapcs-gnu\fR,
  18675. \&\fBatpcs\fR, \fBaapcs\fR, \fBaapcs-linux\fR and \fBiwmmxt\fR.
  18676. .IP "\fB\-mapcs\-frame\fR" 4
  18677. .IX Item "-mapcs-frame"
  18678. Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
  18679. Standard for all functions, even if this is not strictly necessary for
  18680. correct execution of the code. Specifying \fB\-fomit\-frame\-pointer\fR
  18681. with this option causes the stack frames not to be generated for
  18682. leaf functions. The default is \fB\-mno\-apcs\-frame\fR.
  18683. This option is deprecated.
  18684. .IP "\fB\-mapcs\fR" 4
  18685. .IX Item "-mapcs"
  18686. This is a synonym for \fB\-mapcs\-frame\fR and is deprecated.
  18687. .IP "\fB\-mthumb\-interwork\fR" 4
  18688. .IX Item "-mthumb-interwork"
  18689. Generate code that supports calling between the \s-1ARM\s0 and Thumb
  18690. instruction sets. Without this option, on pre\-v5 architectures, the
  18691. two instruction sets cannot be reliably used inside one program. The
  18692. default is \fB\-mno\-thumb\-interwork\fR, since slightly larger code
  18693. is generated when \fB\-mthumb\-interwork\fR is specified. In \s-1AAPCS\s0
  18694. configurations this option is meaningless.
  18695. .IP "\fB\-mno\-sched\-prolog\fR" 4
  18696. .IX Item "-mno-sched-prolog"
  18697. Prevent the reordering of instructions in the function prologue, or the
  18698. merging of those instruction with the instructions in the function's
  18699. body. This means that all functions start with a recognizable set
  18700. of instructions (or in fact one of a choice from a small set of
  18701. different function prologues), and this information can be used to
  18702. locate the start of functions inside an executable piece of code. The
  18703. default is \fB\-msched\-prolog\fR.
  18704. .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
  18705. .IX Item "-mfloat-abi=name"
  18706. Specifies which floating-point \s-1ABI\s0 to use. Permissible values
  18707. are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
  18708. .Sp
  18709. Specifying \fBsoft\fR causes \s-1GCC\s0 to generate output containing
  18710. library calls for floating-point operations.
  18711. \&\fBsoftfp\fR allows the generation of code using hardware floating-point
  18712. instructions, but still uses the soft-float calling conventions.
  18713. \&\fBhard\fR allows generation of floating-point instructions
  18714. and uses FPU-specific calling conventions.
  18715. .Sp
  18716. The default depends on the specific target configuration. Note that
  18717. the hard-float and soft-float ABIs are not link-compatible; you must
  18718. compile your entire program with the same \s-1ABI,\s0 and link with a
  18719. compatible set of libraries.
  18720. .IP "\fB\-mgeneral\-regs\-only\fR" 4
  18721. .IX Item "-mgeneral-regs-only"
  18722. Generate code which uses only the general-purpose registers. This will prevent
  18723. the compiler from using floating-point and Advanced \s-1SIMD\s0 registers but will not
  18724. impose any restrictions on the assembler.
  18725. .IP "\fB\-mlittle\-endian\fR" 4
  18726. .IX Item "-mlittle-endian"
  18727. Generate code for a processor running in little-endian mode. This is
  18728. the default for all standard configurations.
  18729. .IP "\fB\-mbig\-endian\fR" 4
  18730. .IX Item "-mbig-endian"
  18731. Generate code for a processor running in big-endian mode; the default is
  18732. to compile code for a little-endian processor.
  18733. .IP "\fB\-mbe8\fR" 4
  18734. .IX Item "-mbe8"
  18735. .PD 0
  18736. .IP "\fB\-mbe32\fR" 4
  18737. .IX Item "-mbe32"
  18738. .PD
  18739. When linking a big-endian image select between \s-1BE8\s0 and \s-1BE32\s0 formats.
  18740. The option has no effect for little-endian images and is ignored. The
  18741. default is dependent on the selected target architecture. For ARMv6
  18742. and later architectures the default is \s-1BE8,\s0 for older architectures
  18743. the default is \s-1BE32.\s0 \s-1BE32\s0 format has been deprecated by \s-1ARM.\s0
  18744. .IP "\fB\-march=\fR\fIname\fR[\fB+extension...\fR]" 4
  18745. .IX Item "-march=name[+extension...]"
  18746. This specifies the name of the target \s-1ARM\s0 architecture. \s-1GCC\s0 uses this
  18747. name to determine what kind of instructions it can emit when generating
  18748. assembly code. This option can be used in conjunction with or instead
  18749. of the \fB\-mcpu=\fR option.
  18750. .Sp
  18751. Permissible names are:
  18752. \&\fBarmv4t\fR,
  18753. \&\fBarmv5t\fR, \fBarmv5te\fR,
  18754. \&\fBarmv6\fR, \fBarmv6j\fR, \fBarmv6k\fR, \fBarmv6kz\fR, \fBarmv6t2\fR,
  18755. \&\fBarmv6z\fR, \fBarmv6zk\fR,
  18756. \&\fBarmv7\fR, \fBarmv7\-a\fR, \fBarmv7ve\fR,
  18757. \&\fBarmv8\-a\fR, \fBarmv8.1\-a\fR, \fBarmv8.2\-a\fR, \fBarmv8.3\-a\fR,
  18758. \&\fBarmv8.4\-a\fR,
  18759. \&\fBarmv8.5\-a\fR,
  18760. \&\fBarmv8.6\-a\fR,
  18761. \&\fBarmv7\-r\fR,
  18762. \&\fBarmv8\-r\fR,
  18763. \&\fBarmv6\-m\fR, \fBarmv6s\-m\fR,
  18764. \&\fBarmv7\-m\fR, \fBarmv7e\-m\fR,
  18765. \&\fBarmv8\-m.base\fR, \fBarmv8\-m.main\fR,
  18766. \&\fBarmv8.1\-m.main\fR,
  18767. \&\fBiwmmxt\fR and \fBiwmmxt2\fR.
  18768. .Sp
  18769. Additionally, the following architectures, which lack support for the
  18770. Thumb execution state, are recognized but support is deprecated: \fBarmv4\fR.
  18771. .Sp
  18772. Many of the architectures support extensions. These can be added by
  18773. appending \fB+\fR\fIextension\fR to the architecture name. Extension
  18774. options are processed in order and capabilities accumulate. An extension
  18775. will also enable any necessary base extensions
  18776. upon which it depends. For example, the \fB+crypto\fR extension
  18777. will always enable the \fB+simd\fR extension. The exception to the
  18778. additive construction is for extensions that are prefixed with
  18779. \&\fB+no...\fR: these extensions disable the specified option and
  18780. any other extensions that may depend on the presence of that
  18781. extension.
  18782. .Sp
  18783. For example, \fB\-march=armv7\-a+simd+nofp+vfpv4\fR is equivalent to
  18784. writing \fB\-march=armv7\-a+vfpv4\fR since the \fB+simd\fR option is
  18785. entirely disabled by the \fB+nofp\fR option that follows it.
  18786. .Sp
  18787. Most extension names are generically named, but have an effect that is
  18788. dependent upon the architecture to which it is applied. For example,
  18789. the \fB+simd\fR option can be applied to both \fBarmv7\-a\fR and
  18790. \&\fBarmv8\-a\fR architectures, but will enable the original ARMv7\-A
  18791. Advanced \s-1SIMD\s0 (Neon) extensions for \fBarmv7\-a\fR and the ARMv8\-A
  18792. variant for \fBarmv8\-a\fR.
  18793. .Sp
  18794. The table below lists the supported extensions for each architecture.
  18795. Architectures not mentioned do not support any extensions.
  18796. .RS 4
  18797. .IP "\fBarmv5te\fR" 4
  18798. .IX Item "armv5te"
  18799. .PD 0
  18800. .IP "\fBarmv6\fR" 4
  18801. .IX Item "armv6"
  18802. .IP "\fBarmv6j\fR" 4
  18803. .IX Item "armv6j"
  18804. .IP "\fBarmv6k\fR" 4
  18805. .IX Item "armv6k"
  18806. .IP "\fBarmv6kz\fR" 4
  18807. .IX Item "armv6kz"
  18808. .IP "\fBarmv6t2\fR" 4
  18809. .IX Item "armv6t2"
  18810. .IP "\fBarmv6z\fR" 4
  18811. .IX Item "armv6z"
  18812. .IP "\fBarmv6zk\fR" 4
  18813. .IX Item "armv6zk"
  18814. .RS 4
  18815. .IP "\fB+fp\fR" 4
  18816. .IX Item "+fp"
  18817. .PD
  18818. The VFPv2 floating-point instructions. The extension \fB+vfpv2\fR can be
  18819. used as an alias for this extension.
  18820. .IP "\fB+nofp\fR" 4
  18821. .IX Item "+nofp"
  18822. Disable the floating-point instructions.
  18823. .RE
  18824. .RS 4
  18825. .RE
  18826. .IP "\fBarmv7\fR" 4
  18827. .IX Item "armv7"
  18828. The common subset of the ARMv7\-A, ARMv7\-R and ARMv7\-M architectures.
  18829. .RS 4
  18830. .IP "\fB+fp\fR" 4
  18831. .IX Item "+fp"
  18832. The VFPv3 floating-point instructions, with 16 double-precision
  18833. registers. The extension \fB+vfpv3\-d16\fR can be used as an alias
  18834. for this extension. Note that floating-point is not supported by the
  18835. base ARMv7\-M architecture, but is compatible with both the ARMv7\-A and
  18836. ARMv7\-R architectures.
  18837. .IP "\fB+nofp\fR" 4
  18838. .IX Item "+nofp"
  18839. Disable the floating-point instructions.
  18840. .RE
  18841. .RS 4
  18842. .RE
  18843. .IP "\fBarmv7\-a\fR" 4
  18844. .IX Item "armv7-a"
  18845. .RS 4
  18846. .PD 0
  18847. .IP "\fB+mp\fR" 4
  18848. .IX Item "+mp"
  18849. .PD
  18850. The multiprocessing extension.
  18851. .IP "\fB+sec\fR" 4
  18852. .IX Item "+sec"
  18853. The security extension.
  18854. .IP "\fB+fp\fR" 4
  18855. .IX Item "+fp"
  18856. The VFPv3 floating-point instructions, with 16 double-precision
  18857. registers. The extension \fB+vfpv3\-d16\fR can be used as an alias
  18858. for this extension.
  18859. .IP "\fB+simd\fR" 4
  18860. .IX Item "+simd"
  18861. The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions.
  18862. The extensions \fB+neon\fR and \fB+neon\-vfpv3\fR can be used as aliases
  18863. for this extension.
  18864. .IP "\fB+vfpv3\fR" 4
  18865. .IX Item "+vfpv3"
  18866. The VFPv3 floating-point instructions, with 32 double-precision
  18867. registers.
  18868. .IP "\fB+vfpv3\-d16\-fp16\fR" 4
  18869. .IX Item "+vfpv3-d16-fp16"
  18870. The VFPv3 floating-point instructions, with 16 double-precision
  18871. registers and the half-precision floating-point conversion operations.
  18872. .IP "\fB+vfpv3\-fp16\fR" 4
  18873. .IX Item "+vfpv3-fp16"
  18874. The VFPv3 floating-point instructions, with 32 double-precision
  18875. registers and the half-precision floating-point conversion operations.
  18876. .IP "\fB+vfpv4\-d16\fR" 4
  18877. .IX Item "+vfpv4-d16"
  18878. The VFPv4 floating-point instructions, with 16 double-precision
  18879. registers.
  18880. .IP "\fB+vfpv4\fR" 4
  18881. .IX Item "+vfpv4"
  18882. The VFPv4 floating-point instructions, with 32 double-precision
  18883. registers.
  18884. .IP "\fB+neon\-fp16\fR" 4
  18885. .IX Item "+neon-fp16"
  18886. The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions, with
  18887. the half-precision floating-point conversion operations.
  18888. .IP "\fB+neon\-vfpv4\fR" 4
  18889. .IX Item "+neon-vfpv4"
  18890. The Advanced \s-1SIMD\s0 (Neon) v2 and the VFPv4 floating-point instructions.
  18891. .IP "\fB+nosimd\fR" 4
  18892. .IX Item "+nosimd"
  18893. Disable the Advanced \s-1SIMD\s0 instructions (does not disable floating point).
  18894. .IP "\fB+nofp\fR" 4
  18895. .IX Item "+nofp"
  18896. Disable the floating-point and Advanced \s-1SIMD\s0 instructions.
  18897. .RE
  18898. .RS 4
  18899. .RE
  18900. .IP "\fBarmv7ve\fR" 4
  18901. .IX Item "armv7ve"
  18902. The extended version of the ARMv7\-A architecture with support for
  18903. virtualization.
  18904. .RS 4
  18905. .IP "\fB+fp\fR" 4
  18906. .IX Item "+fp"
  18907. The VFPv4 floating-point instructions, with 16 double-precision registers.
  18908. The extension \fB+vfpv4\-d16\fR can be used as an alias for this extension.
  18909. .IP "\fB+simd\fR" 4
  18910. .IX Item "+simd"
  18911. The Advanced \s-1SIMD\s0 (Neon) v2 and the VFPv4 floating-point instructions. The
  18912. extension \fB+neon\-vfpv4\fR can be used as an alias for this extension.
  18913. .IP "\fB+vfpv3\-d16\fR" 4
  18914. .IX Item "+vfpv3-d16"
  18915. The VFPv3 floating-point instructions, with 16 double-precision
  18916. registers.
  18917. .IP "\fB+vfpv3\fR" 4
  18918. .IX Item "+vfpv3"
  18919. The VFPv3 floating-point instructions, with 32 double-precision
  18920. registers.
  18921. .IP "\fB+vfpv3\-d16\-fp16\fR" 4
  18922. .IX Item "+vfpv3-d16-fp16"
  18923. The VFPv3 floating-point instructions, with 16 double-precision
  18924. registers and the half-precision floating-point conversion operations.
  18925. .IP "\fB+vfpv3\-fp16\fR" 4
  18926. .IX Item "+vfpv3-fp16"
  18927. The VFPv3 floating-point instructions, with 32 double-precision
  18928. registers and the half-precision floating-point conversion operations.
  18929. .IP "\fB+vfpv4\-d16\fR" 4
  18930. .IX Item "+vfpv4-d16"
  18931. The VFPv4 floating-point instructions, with 16 double-precision
  18932. registers.
  18933. .IP "\fB+vfpv4\fR" 4
  18934. .IX Item "+vfpv4"
  18935. The VFPv4 floating-point instructions, with 32 double-precision
  18936. registers.
  18937. .IP "\fB+neon\fR" 4
  18938. .IX Item "+neon"
  18939. The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions.
  18940. The extension \fB+neon\-vfpv3\fR can be used as an alias for this extension.
  18941. .IP "\fB+neon\-fp16\fR" 4
  18942. .IX Item "+neon-fp16"
  18943. The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions, with
  18944. the half-precision floating-point conversion operations.
  18945. .IP "\fB+nosimd\fR" 4
  18946. .IX Item "+nosimd"
  18947. Disable the Advanced \s-1SIMD\s0 instructions (does not disable floating point).
  18948. .IP "\fB+nofp\fR" 4
  18949. .IX Item "+nofp"
  18950. Disable the floating-point and Advanced \s-1SIMD\s0 instructions.
  18951. .RE
  18952. .RS 4
  18953. .RE
  18954. .IP "\fBarmv8\-a\fR" 4
  18955. .IX Item "armv8-a"
  18956. .RS 4
  18957. .PD 0
  18958. .IP "\fB+crc\fR" 4
  18959. .IX Item "+crc"
  18960. .PD
  18961. The Cyclic Redundancy Check (\s-1CRC\s0) instructions.
  18962. .IP "\fB+simd\fR" 4
  18963. .IX Item "+simd"
  18964. The ARMv8\-A Advanced \s-1SIMD\s0 and floating-point instructions.
  18965. .IP "\fB+crypto\fR" 4
  18966. .IX Item "+crypto"
  18967. The cryptographic instructions.
  18968. .IP "\fB+nocrypto\fR" 4
  18969. .IX Item "+nocrypto"
  18970. Disable the cryptographic instructions.
  18971. .IP "\fB+nofp\fR" 4
  18972. .IX Item "+nofp"
  18973. Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
  18974. .IP "\fB+sb\fR" 4
  18975. .IX Item "+sb"
  18976. Speculation Barrier Instruction.
  18977. .IP "\fB+predres\fR" 4
  18978. .IX Item "+predres"
  18979. Execution and Data Prediction Restriction Instructions.
  18980. .RE
  18981. .RS 4
  18982. .RE
  18983. .IP "\fBarmv8.1\-a\fR" 4
  18984. .IX Item "armv8.1-a"
  18985. .RS 4
  18986. .PD 0
  18987. .IP "\fB+simd\fR" 4
  18988. .IX Item "+simd"
  18989. .PD
  18990. The ARMv8.1\-A Advanced \s-1SIMD\s0 and floating-point instructions.
  18991. .IP "\fB+crypto\fR" 4
  18992. .IX Item "+crypto"
  18993. The cryptographic instructions. This also enables the Advanced \s-1SIMD\s0 and
  18994. floating-point instructions.
  18995. .IP "\fB+nocrypto\fR" 4
  18996. .IX Item "+nocrypto"
  18997. Disable the cryptographic instructions.
  18998. .IP "\fB+nofp\fR" 4
  18999. .IX Item "+nofp"
  19000. Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
  19001. .IP "\fB+sb\fR" 4
  19002. .IX Item "+sb"
  19003. Speculation Barrier Instruction.
  19004. .IP "\fB+predres\fR" 4
  19005. .IX Item "+predres"
  19006. Execution and Data Prediction Restriction Instructions.
  19007. .RE
  19008. .RS 4
  19009. .RE
  19010. .IP "\fBarmv8.2\-a\fR" 4
  19011. .IX Item "armv8.2-a"
  19012. .PD 0
  19013. .IP "\fBarmv8.3\-a\fR" 4
  19014. .IX Item "armv8.3-a"
  19015. .RS 4
  19016. .IP "\fB+fp16\fR" 4
  19017. .IX Item "+fp16"
  19018. .PD
  19019. The half-precision floating-point data processing instructions.
  19020. This also enables the Advanced \s-1SIMD\s0 and floating-point instructions.
  19021. .IP "\fB+fp16fml\fR" 4
  19022. .IX Item "+fp16fml"
  19023. The half-precision floating-point fmla extension. This also enables
  19024. the half-precision floating-point extension and Advanced \s-1SIMD\s0 and
  19025. floating-point instructions.
  19026. .IP "\fB+simd\fR" 4
  19027. .IX Item "+simd"
  19028. The ARMv8.1\-A Advanced \s-1SIMD\s0 and floating-point instructions.
  19029. .IP "\fB+crypto\fR" 4
  19030. .IX Item "+crypto"
  19031. The cryptographic instructions. This also enables the Advanced \s-1SIMD\s0 and
  19032. floating-point instructions.
  19033. .IP "\fB+dotprod\fR" 4
  19034. .IX Item "+dotprod"
  19035. Enable the Dot Product extension. This also enables Advanced \s-1SIMD\s0 instructions.
  19036. .IP "\fB+nocrypto\fR" 4
  19037. .IX Item "+nocrypto"
  19038. Disable the cryptographic extension.
  19039. .IP "\fB+nofp\fR" 4
  19040. .IX Item "+nofp"
  19041. Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
  19042. .IP "\fB+sb\fR" 4
  19043. .IX Item "+sb"
  19044. Speculation Barrier Instruction.
  19045. .IP "\fB+predres\fR" 4
  19046. .IX Item "+predres"
  19047. Execution and Data Prediction Restriction Instructions.
  19048. .IP "\fB+i8mm\fR" 4
  19049. .IX Item "+i8mm"
  19050. 8\-bit Integer Matrix Multiply instructions.
  19051. This also enables Advanced \s-1SIMD\s0 and floating-point instructions.
  19052. .IP "\fB+bf16\fR" 4
  19053. .IX Item "+bf16"
  19054. Brain half-precision floating-point instructions.
  19055. This also enables Advanced \s-1SIMD\s0 and floating-point instructions.
  19056. .RE
  19057. .RS 4
  19058. .RE
  19059. .IP "\fBarmv8.4\-a\fR" 4
  19060. .IX Item "armv8.4-a"
  19061. .RS 4
  19062. .PD 0
  19063. .IP "\fB+fp16\fR" 4
  19064. .IX Item "+fp16"
  19065. .PD
  19066. The half-precision floating-point data processing instructions.
  19067. This also enables the Advanced \s-1SIMD\s0 and floating-point instructions as well
  19068. as the Dot Product extension and the half-precision floating-point fmla
  19069. extension.
  19070. .IP "\fB+simd\fR" 4
  19071. .IX Item "+simd"
  19072. The ARMv8.3\-A Advanced \s-1SIMD\s0 and floating-point instructions as well as the
  19073. Dot Product extension.
  19074. .IP "\fB+crypto\fR" 4
  19075. .IX Item "+crypto"
  19076. The cryptographic instructions. This also enables the Advanced \s-1SIMD\s0 and
  19077. floating-point instructions as well as the Dot Product extension.
  19078. .IP "\fB+nocrypto\fR" 4
  19079. .IX Item "+nocrypto"
  19080. Disable the cryptographic extension.
  19081. .IP "\fB+nofp\fR" 4
  19082. .IX Item "+nofp"
  19083. Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
  19084. .IP "\fB+sb\fR" 4
  19085. .IX Item "+sb"
  19086. Speculation Barrier Instruction.
  19087. .IP "\fB+predres\fR" 4
  19088. .IX Item "+predres"
  19089. Execution and Data Prediction Restriction Instructions.
  19090. .IP "\fB+i8mm\fR" 4
  19091. .IX Item "+i8mm"
  19092. 8\-bit Integer Matrix Multiply instructions.
  19093. This also enables Advanced \s-1SIMD\s0 and floating-point instructions.
  19094. .IP "\fB+bf16\fR" 4
  19095. .IX Item "+bf16"
  19096. Brain half-precision floating-point instructions.
  19097. This also enables Advanced \s-1SIMD\s0 and floating-point instructions.
  19098. .RE
  19099. .RS 4
  19100. .RE
  19101. .IP "\fBarmv8.5\-a\fR" 4
  19102. .IX Item "armv8.5-a"
  19103. .RS 4
  19104. .PD 0
  19105. .IP "\fB+fp16\fR" 4
  19106. .IX Item "+fp16"
  19107. .PD
  19108. The half-precision floating-point data processing instructions.
  19109. This also enables the Advanced \s-1SIMD\s0 and floating-point instructions as well
  19110. as the Dot Product extension and the half-precision floating-point fmla
  19111. extension.
  19112. .IP "\fB+simd\fR" 4
  19113. .IX Item "+simd"
  19114. The ARMv8.3\-A Advanced \s-1SIMD\s0 and floating-point instructions as well as the
  19115. Dot Product extension.
  19116. .IP "\fB+crypto\fR" 4
  19117. .IX Item "+crypto"
  19118. The cryptographic instructions. This also enables the Advanced \s-1SIMD\s0 and
  19119. floating-point instructions as well as the Dot Product extension.
  19120. .IP "\fB+nocrypto\fR" 4
  19121. .IX Item "+nocrypto"
  19122. Disable the cryptographic extension.
  19123. .IP "\fB+nofp\fR" 4
  19124. .IX Item "+nofp"
  19125. Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
  19126. .IP "\fB+i8mm\fR" 4
  19127. .IX Item "+i8mm"
  19128. 8\-bit Integer Matrix Multiply instructions.
  19129. This also enables Advanced \s-1SIMD\s0 and floating-point instructions.
  19130. .IP "\fB+bf16\fR" 4
  19131. .IX Item "+bf16"
  19132. Brain half-precision floating-point instructions.
  19133. This also enables Advanced \s-1SIMD\s0 and floating-point instructions.
  19134. .RE
  19135. .RS 4
  19136. .RE
  19137. .IP "\fBarmv8.6\-a\fR" 4
  19138. .IX Item "armv8.6-a"
  19139. .RS 4
  19140. .PD 0
  19141. .IP "\fB+fp16\fR" 4
  19142. .IX Item "+fp16"
  19143. .PD
  19144. The half-precision floating-point data processing instructions.
  19145. This also enables the Advanced \s-1SIMD\s0 and floating-point instructions as well
  19146. as the Dot Product extension and the half-precision floating-point fmla
  19147. extension.
  19148. .IP "\fB+simd\fR" 4
  19149. .IX Item "+simd"
  19150. The ARMv8.3\-A Advanced \s-1SIMD\s0 and floating-point instructions as well as the
  19151. Dot Product extension.
  19152. .IP "\fB+crypto\fR" 4
  19153. .IX Item "+crypto"
  19154. The cryptographic instructions. This also enables the Advanced \s-1SIMD\s0 and
  19155. floating-point instructions as well as the Dot Product extension.
  19156. .IP "\fB+nocrypto\fR" 4
  19157. .IX Item "+nocrypto"
  19158. Disable the cryptographic extension.
  19159. .IP "\fB+nofp\fR" 4
  19160. .IX Item "+nofp"
  19161. Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
  19162. .IP "\fB+i8mm\fR" 4
  19163. .IX Item "+i8mm"
  19164. 8\-bit Integer Matrix Multiply instructions.
  19165. This also enables Advanced \s-1SIMD\s0 and floating-point instructions.
  19166. .IP "\fB+bf16\fR" 4
  19167. .IX Item "+bf16"
  19168. Brain half-precision floating-point instructions.
  19169. This also enables Advanced \s-1SIMD\s0 and floating-point instructions.
  19170. .RE
  19171. .RS 4
  19172. .RE
  19173. .IP "\fBarmv7\-r\fR" 4
  19174. .IX Item "armv7-r"
  19175. .RS 4
  19176. .PD 0
  19177. .IP "\fB+fp.sp\fR" 4
  19178. .IX Item "+fp.sp"
  19179. .PD
  19180. The single-precision VFPv3 floating-point instructions. The extension
  19181. \&\fB+vfpv3xd\fR can be used as an alias for this extension.
  19182. .IP "\fB+fp\fR" 4
  19183. .IX Item "+fp"
  19184. The VFPv3 floating-point instructions with 16 double-precision registers.
  19185. The extension +vfpv3\-d16 can be used as an alias for this extension.
  19186. .IP "\fB+vfpv3xd\-d16\-fp16\fR" 4
  19187. .IX Item "+vfpv3xd-d16-fp16"
  19188. The single-precision VFPv3 floating-point instructions with 16 double-precision
  19189. registers and the half-precision floating-point conversion operations.
  19190. .IP "\fB+vfpv3\-d16\-fp16\fR" 4
  19191. .IX Item "+vfpv3-d16-fp16"
  19192. The VFPv3 floating-point instructions with 16 double-precision
  19193. registers and the half-precision floating-point conversion operations.
  19194. .IP "\fB+nofp\fR" 4
  19195. .IX Item "+nofp"
  19196. Disable the floating-point extension.
  19197. .IP "\fB+idiv\fR" 4
  19198. .IX Item "+idiv"
  19199. The ARM-state integer division instructions.
  19200. .IP "\fB+noidiv\fR" 4
  19201. .IX Item "+noidiv"
  19202. Disable the ARM-state integer division extension.
  19203. .RE
  19204. .RS 4
  19205. .RE
  19206. .IP "\fBarmv7e\-m\fR" 4
  19207. .IX Item "armv7e-m"
  19208. .RS 4
  19209. .PD 0
  19210. .IP "\fB+fp\fR" 4
  19211. .IX Item "+fp"
  19212. .PD
  19213. The single-precision VFPv4 floating-point instructions.
  19214. .IP "\fB+fpv5\fR" 4
  19215. .IX Item "+fpv5"
  19216. The single-precision FPv5 floating-point instructions.
  19217. .IP "\fB+fp.dp\fR" 4
  19218. .IX Item "+fp.dp"
  19219. The single\- and double-precision FPv5 floating-point instructions.
  19220. .IP "\fB+nofp\fR" 4
  19221. .IX Item "+nofp"
  19222. Disable the floating-point extensions.
  19223. .RE
  19224. .RS 4
  19225. .RE
  19226. .IP "\fBarmv8.1\-m.main\fR" 4
  19227. .IX Item "armv8.1-m.main"
  19228. .RS 4
  19229. .PD 0
  19230. .IP "\fB+dsp\fR" 4
  19231. .IX Item "+dsp"
  19232. .PD
  19233. The \s-1DSP\s0 instructions.
  19234. .IP "\fB+mve\fR" 4
  19235. .IX Item "+mve"
  19236. The M\-Profile Vector Extension (\s-1MVE\s0) integer instructions.
  19237. .IP "\fB+mve.fp\fR" 4
  19238. .IX Item "+mve.fp"
  19239. The M\-Profile Vector Extension (\s-1MVE\s0) integer and single precision
  19240. floating-point instructions.
  19241. .IP "\fB+fp\fR" 4
  19242. .IX Item "+fp"
  19243. The single-precision floating-point instructions.
  19244. .IP "\fB+fp.dp\fR" 4
  19245. .IX Item "+fp.dp"
  19246. The single\- and double-precision floating-point instructions.
  19247. .IP "\fB+nofp\fR" 4
  19248. .IX Item "+nofp"
  19249. Disable the floating-point extension.
  19250. .IP "\fB+cdecp0, +cdecp1, ... , +cdecp7\fR" 4
  19251. .IX Item "+cdecp0, +cdecp1, ... , +cdecp7"
  19252. Enable the Custom Datapath Extension (\s-1CDE\s0) on selected coprocessors according
  19253. to the numbers given in the options in the range 0 to 7.
  19254. .RE
  19255. .RS 4
  19256. .RE
  19257. .IP "\fBarmv8\-m.main\fR" 4
  19258. .IX Item "armv8-m.main"
  19259. .RS 4
  19260. .PD 0
  19261. .IP "\fB+dsp\fR" 4
  19262. .IX Item "+dsp"
  19263. .PD
  19264. The \s-1DSP\s0 instructions.
  19265. .IP "\fB+nodsp\fR" 4
  19266. .IX Item "+nodsp"
  19267. Disable the \s-1DSP\s0 extension.
  19268. .IP "\fB+fp\fR" 4
  19269. .IX Item "+fp"
  19270. The single-precision floating-point instructions.
  19271. .IP "\fB+fp.dp\fR" 4
  19272. .IX Item "+fp.dp"
  19273. The single\- and double-precision floating-point instructions.
  19274. .IP "\fB+nofp\fR" 4
  19275. .IX Item "+nofp"
  19276. Disable the floating-point extension.
  19277. .IP "\fB+cdecp0, +cdecp1, ... , +cdecp7\fR" 4
  19278. .IX Item "+cdecp0, +cdecp1, ... , +cdecp7"
  19279. Enable the Custom Datapath Extension (\s-1CDE\s0) on selected coprocessors according
  19280. to the numbers given in the options in the range 0 to 7.
  19281. .RE
  19282. .RS 4
  19283. .RE
  19284. .IP "\fBarmv8\-r\fR" 4
  19285. .IX Item "armv8-r"
  19286. .RS 4
  19287. .PD 0
  19288. .IP "\fB+crc\fR" 4
  19289. .IX Item "+crc"
  19290. .PD
  19291. The Cyclic Redundancy Check (\s-1CRC\s0) instructions.
  19292. .IP "\fB+fp.sp\fR" 4
  19293. .IX Item "+fp.sp"
  19294. The single-precision FPv5 floating-point instructions.
  19295. .IP "\fB+simd\fR" 4
  19296. .IX Item "+simd"
  19297. The ARMv8\-A Advanced \s-1SIMD\s0 and floating-point instructions.
  19298. .IP "\fB+crypto\fR" 4
  19299. .IX Item "+crypto"
  19300. The cryptographic instructions.
  19301. .IP "\fB+nocrypto\fR" 4
  19302. .IX Item "+nocrypto"
  19303. Disable the cryptographic instructions.
  19304. .IP "\fB+nofp\fR" 4
  19305. .IX Item "+nofp"
  19306. Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
  19307. .RE
  19308. .RS 4
  19309. .RE
  19310. .RE
  19311. .RS 4
  19312. .Sp
  19313. \&\fB\-march=native\fR causes the compiler to auto-detect the architecture
  19314. of the build computer. At present, this feature is only supported on
  19315. GNU/Linux, and not all architectures are recognized. If the auto-detect
  19316. is unsuccessful the option has no effect.
  19317. .RE
  19318. .IP "\fB\-mtune=\fR\fIname\fR" 4
  19319. .IX Item "-mtune=name"
  19320. This option specifies the name of the target \s-1ARM\s0 processor for
  19321. which \s-1GCC\s0 should tune the performance of the code.
  19322. For some \s-1ARM\s0 implementations better performance can be obtained by using
  19323. this option.
  19324. Permissible names are: \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR, \fBarm710t\fR,
  19325. \&\fBarm720t\fR, \fBarm740t\fR, \fBstrongarm\fR, \fBstrongarm110\fR,
  19326. \&\fBstrongarm1100\fR, 0\fBstrongarm1110\fR, \fBarm8\fR, \fBarm810\fR,
  19327. \&\fBarm9\fR, \fBarm9e\fR, \fBarm920\fR, \fBarm920t\fR, \fBarm922t\fR,
  19328. \&\fBarm946e\-s\fR, \fBarm966e\-s\fR, \fBarm968e\-s\fR, \fBarm926ej\-s\fR,
  19329. \&\fBarm940t\fR, \fBarm9tdmi\fR, \fBarm10tdmi\fR, \fBarm1020t\fR,
  19330. \&\fBarm1026ej\-s\fR, \fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
  19331. \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
  19332. \&\fBarm1156t2\-s\fR, \fBarm1156t2f\-s\fR, \fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR,
  19333. \&\fBgeneric\-armv7\-a\fR, \fBcortex\-a5\fR, \fBcortex\-a7\fR, \fBcortex\-a8\fR,
  19334. \&\fBcortex\-a9\fR, \fBcortex\-a12\fR, \fBcortex\-a15\fR, \fBcortex\-a17\fR,
  19335. \&\fBcortex\-a32\fR, \fBcortex\-a35\fR, \fBcortex\-a53\fR, \fBcortex\-a55\fR,
  19336. \&\fBcortex\-a57\fR, \fBcortex\-a72\fR, \fBcortex\-a73\fR, \fBcortex\-a75\fR,
  19337. \&\fBcortex\-a76\fR, \fBcortex\-a76ae\fR, \fBcortex\-a77\fR,
  19338. \&\fBcortex\-a78\fR, \fBcortex\-a78ae\fR, \fBcortex\-a78c\fR,
  19339. \&\fBares\fR, \fBcortex\-r4\fR, \fBcortex\-r4f\fR,
  19340. \&\fBcortex\-r5\fR, \fBcortex\-r7\fR, \fBcortex\-r8\fR, \fBcortex\-r52\fR,
  19341. \&\fBcortex\-m0\fR, \fBcortex\-m0plus\fR, \fBcortex\-m1\fR, \fBcortex\-m3\fR,
  19342. \&\fBcortex\-m4\fR, \fBcortex\-m7\fR, \fBcortex\-m23\fR, \fBcortex\-m33\fR,
  19343. \&\fBcortex\-m35p\fR, \fBcortex\-m55\fR, \fBcortex\-x1\fR,
  19344. \&\fBcortex\-m1.small\-multiply\fR, \fBcortex\-m0.small\-multiply\fR,
  19345. \&\fBcortex\-m0plus.small\-multiply\fR, \fBexynos\-m1\fR, \fBmarvell\-pj4\fR,
  19346. \&\fBneoverse\-n1\fR, \fBneoverse\-n2\fR, \fBneoverse\-v1\fR, \fBxscale\fR,
  19347. \&\fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR, \fBfa526\fR, \fBfa626\fR,
  19348. \&\fBfa606te\fR, \fBfa626te\fR, \fBfmp626\fR, \fBfa726te\fR, \fBxgene1\fR.
  19349. .Sp
  19350. Additionally, this option can specify that \s-1GCC\s0 should tune the performance
  19351. of the code for a big.LITTLE system. Permissible names are:
  19352. \&\fBcortex\-a15.cortex\-a7\fR, \fBcortex\-a17.cortex\-a7\fR,
  19353. \&\fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR,
  19354. \&\fBcortex\-a72.cortex\-a35\fR, \fBcortex\-a73.cortex\-a53\fR,
  19355. \&\fBcortex\-a75.cortex\-a55\fR, \fBcortex\-a76.cortex\-a55\fR.
  19356. .Sp
  19357. \&\fB\-mtune=generic\-\fR\fIarch\fR specifies that \s-1GCC\s0 should tune the
  19358. performance for a blend of processors within architecture \fIarch\fR.
  19359. The aim is to generate code that run well on the current most popular
  19360. processors, balancing between optimizations that benefit some CPUs in the
  19361. range, and avoiding performance pitfalls of other CPUs. The effects of
  19362. this option may change in future \s-1GCC\s0 versions as \s-1CPU\s0 models come and go.
  19363. .Sp
  19364. \&\fB\-mtune\fR permits the same extension options as \fB\-mcpu\fR, but
  19365. the extension options do not affect the tuning of the generated code.
  19366. .Sp
  19367. \&\fB\-mtune=native\fR causes the compiler to auto-detect the \s-1CPU\s0
  19368. of the build computer. At present, this feature is only supported on
  19369. GNU/Linux, and not all architectures are recognized. If the auto-detect is
  19370. unsuccessful the option has no effect.
  19371. .IP "\fB\-mcpu=\fR\fIname\fR[\fB+extension...\fR]" 4
  19372. .IX Item "-mcpu=name[+extension...]"
  19373. This specifies the name of the target \s-1ARM\s0 processor. \s-1GCC\s0 uses this name
  19374. to derive the name of the target \s-1ARM\s0 architecture (as if specified
  19375. by \fB\-march\fR) and the \s-1ARM\s0 processor type for which to tune for
  19376. performance (as if specified by \fB\-mtune\fR). Where this option
  19377. is used in conjunction with \fB\-march\fR or \fB\-mtune\fR,
  19378. those options take precedence over the appropriate part of this option.
  19379. .Sp
  19380. Many of the supported CPUs implement optional architectural
  19381. extensions. Where this is so the architectural extensions are
  19382. normally enabled by default. If implementations that lack the
  19383. extension exist, then the extension syntax can be used to disable
  19384. those extensions that have been omitted. For floating-point and
  19385. Advanced \s-1SIMD\s0 (Neon) instructions, the settings of the options
  19386. \&\fB\-mfloat\-abi\fR and \fB\-mfpu\fR must also be considered:
  19387. floating-point and Advanced \s-1SIMD\s0 instructions will only be used if
  19388. \&\fB\-mfloat\-abi\fR is not set to \fBsoft\fR; and any setting of
  19389. \&\fB\-mfpu\fR other than \fBauto\fR will override the available
  19390. floating-point and \s-1SIMD\s0 extension instructions.
  19391. .Sp
  19392. For example, \fBcortex\-a9\fR can be found in three major
  19393. configurations: integer only, with just a floating-point unit or with
  19394. floating-point and Advanced \s-1SIMD.\s0 The default is to enable all the
  19395. instructions, but the extensions \fB+nosimd\fR and \fB+nofp\fR can
  19396. be used to disable just the \s-1SIMD\s0 or both the \s-1SIMD\s0 and floating-point
  19397. instructions respectively.
  19398. .Sp
  19399. Permissible names for this option are the same as those for
  19400. \&\fB\-mtune\fR.
  19401. .Sp
  19402. The following extension options are common to the listed CPUs:
  19403. .RS 4
  19404. .IP "\fB+nodsp\fR" 4
  19405. .IX Item "+nodsp"
  19406. Disable the \s-1DSP\s0 instructions on \fBcortex\-m33\fR, \fBcortex\-m35p\fR.
  19407. .IP "\fB+nofp\fR" 4
  19408. .IX Item "+nofp"
  19409. Disables the floating-point instructions on \fBarm9e\fR,
  19410. \&\fBarm946e\-s\fR, \fBarm966e\-s\fR, \fBarm968e\-s\fR, \fBarm10e\fR,
  19411. \&\fBarm1020e\fR, \fBarm1022e\fR, \fBarm926ej\-s\fR,
  19412. \&\fBarm1026ej\-s\fR, \fBcortex\-r5\fR, \fBcortex\-r7\fR, \fBcortex\-r8\fR,
  19413. \&\fBcortex\-m4\fR, \fBcortex\-m7\fR, \fBcortex\-m33\fR and \fBcortex\-m35p\fR.
  19414. Disables the floating-point and \s-1SIMD\s0 instructions on
  19415. \&\fBgeneric\-armv7\-a\fR, \fBcortex\-a5\fR, \fBcortex\-a7\fR,
  19416. \&\fBcortex\-a8\fR, \fBcortex\-a9\fR, \fBcortex\-a12\fR,
  19417. \&\fBcortex\-a15\fR, \fBcortex\-a17\fR, \fBcortex\-a15.cortex\-a7\fR,
  19418. \&\fBcortex\-a17.cortex\-a7\fR, \fBcortex\-a32\fR, \fBcortex\-a35\fR,
  19419. \&\fBcortex\-a53\fR and \fBcortex\-a55\fR.
  19420. .IP "\fB+nofp.dp\fR" 4
  19421. .IX Item "+nofp.dp"
  19422. Disables the double-precision component of the floating-point instructions
  19423. on \fBcortex\-r5\fR, \fBcortex\-r7\fR, \fBcortex\-r8\fR, \fBcortex\-r52\fR and
  19424. \&\fBcortex\-m7\fR.
  19425. .IP "\fB+nosimd\fR" 4
  19426. .IX Item "+nosimd"
  19427. Disables the \s-1SIMD\s0 (but not floating-point) instructions on
  19428. \&\fBgeneric\-armv7\-a\fR, \fBcortex\-a5\fR, \fBcortex\-a7\fR
  19429. and \fBcortex\-a9\fR.
  19430. .IP "\fB+crypto\fR" 4
  19431. .IX Item "+crypto"
  19432. Enables the cryptographic instructions on \fBcortex\-a32\fR,
  19433. \&\fBcortex\-a35\fR, \fBcortex\-a53\fR, \fBcortex\-a55\fR, \fBcortex\-a57\fR,
  19434. \&\fBcortex\-a72\fR, \fBcortex\-a73\fR, \fBcortex\-a75\fR, \fBexynos\-m1\fR,
  19435. \&\fBxgene1\fR, \fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR,
  19436. \&\fBcortex\-a73.cortex\-a35\fR, \fBcortex\-a73.cortex\-a53\fR and
  19437. \&\fBcortex\-a75.cortex\-a55\fR.
  19438. .RE
  19439. .RS 4
  19440. .Sp
  19441. Additionally the \fBgeneric\-armv7\-a\fR pseudo target defaults to
  19442. VFPv3 with 16 double-precision registers. It supports the following
  19443. extension options: \fBmp\fR, \fBsec\fR, \fBvfpv3\-d16\fR,
  19444. \&\fBvfpv3\fR, \fBvfpv3\-d16\-fp16\fR, \fBvfpv3\-fp16\fR,
  19445. \&\fBvfpv4\-d16\fR, \fBvfpv4\fR, \fBneon\fR, \fBneon\-vfpv3\fR,
  19446. \&\fBneon\-fp16\fR, \fBneon\-vfpv4\fR. The meanings are the same as for
  19447. the extensions to \fB\-march=armv7\-a\fR.
  19448. .Sp
  19449. \&\fB\-mcpu=generic\-\fR\fIarch\fR is also permissible, and is
  19450. equivalent to \fB\-march=\fR\fIarch\fR \fB\-mtune=generic\-\fR\fIarch\fR.
  19451. See \fB\-mtune\fR for more information.
  19452. .Sp
  19453. \&\fB\-mcpu=native\fR causes the compiler to auto-detect the \s-1CPU\s0
  19454. of the build computer. At present, this feature is only supported on
  19455. GNU/Linux, and not all architectures are recognized. If the auto-detect
  19456. is unsuccessful the option has no effect.
  19457. .RE
  19458. .IP "\fB\-mfpu=\fR\fIname\fR" 4
  19459. .IX Item "-mfpu=name"
  19460. This specifies what floating-point hardware (or hardware emulation) is
  19461. available on the target. Permissible names are: \fBauto\fR, \fBvfpv2\fR,
  19462. \&\fBvfpv3\fR,
  19463. \&\fBvfpv3\-fp16\fR, \fBvfpv3\-d16\fR, \fBvfpv3\-d16\-fp16\fR, \fBvfpv3xd\fR,
  19464. \&\fBvfpv3xd\-fp16\fR, \fBneon\-vfpv3\fR, \fBneon\-fp16\fR, \fBvfpv4\fR,
  19465. \&\fBvfpv4\-d16\fR, \fBfpv4\-sp\-d16\fR, \fBneon\-vfpv4\fR,
  19466. \&\fBfpv5\-d16\fR, \fBfpv5\-sp\-d16\fR,
  19467. \&\fBfp\-armv8\fR, \fBneon\-fp\-armv8\fR and \fBcrypto\-neon\-fp\-armv8\fR.
  19468. Note that \fBneon\fR is an alias for \fBneon\-vfpv3\fR and \fBvfp\fR
  19469. is an alias for \fBvfpv2\fR.
  19470. .Sp
  19471. The setting \fBauto\fR is the default and is special. It causes the
  19472. compiler to select the floating-point and Advanced \s-1SIMD\s0 instructions
  19473. based on the settings of \fB\-mcpu\fR and \fB\-march\fR.
  19474. .Sp
  19475. If the selected floating-point hardware includes the \s-1NEON\s0 extension
  19476. (e.g. \fB\-mfpu=neon\fR), note that floating-point
  19477. operations are not generated by \s-1GCC\s0's auto-vectorization pass unless
  19478. \&\fB\-funsafe\-math\-optimizations\fR is also specified. This is
  19479. because \s-1NEON\s0 hardware does not fully implement the \s-1IEEE 754\s0 standard for
  19480. floating-point arithmetic (in particular denormal values are treated as
  19481. zero), so the use of \s-1NEON\s0 instructions may lead to a loss of precision.
  19482. .Sp
  19483. You can also set the fpu name at function level by using the \f(CW\*(C`target("fpu=")\*(C'\fR function attributes or pragmas.
  19484. .IP "\fB\-mfp16\-format=\fR\fIname\fR" 4
  19485. .IX Item "-mfp16-format=name"
  19486. Specify the format of the \f(CW\*(C`_\|_fp16\*(C'\fR half-precision floating-point type.
  19487. Permissible names are \fBnone\fR, \fBieee\fR, and \fBalternative\fR;
  19488. the default is \fBnone\fR, in which case the \f(CW\*(C`_\|_fp16\*(C'\fR type is not
  19489. defined.
  19490. .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
  19491. .IX Item "-mstructure-size-boundary=n"
  19492. The sizes of all structures and unions are rounded up to a multiple
  19493. of the number of bits set by this option. Permissible values are 8, 32
  19494. and 64. The default value varies for different toolchains. For the \s-1COFF\s0
  19495. targeted toolchain the default value is 8. A value of 64 is only allowed
  19496. if the underlying \s-1ABI\s0 supports it.
  19497. .Sp
  19498. Specifying a larger number can produce faster, more efficient code, but
  19499. can also increase the size of the program. Different values are potentially
  19500. incompatible. Code compiled with one value cannot necessarily expect to
  19501. work with code or libraries compiled with another value, if they exchange
  19502. information using structures or unions.
  19503. .Sp
  19504. This option is deprecated.
  19505. .IP "\fB\-mabort\-on\-noreturn\fR" 4
  19506. .IX Item "-mabort-on-noreturn"
  19507. Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
  19508. \&\f(CW\*(C`noreturn\*(C'\fR function. It is executed if the function tries to
  19509. return.
  19510. .IP "\fB\-mlong\-calls\fR" 4
  19511. .IX Item "-mlong-calls"
  19512. .PD 0
  19513. .IP "\fB\-mno\-long\-calls\fR" 4
  19514. .IX Item "-mno-long-calls"
  19515. .PD
  19516. Tells the compiler to perform function calls by first loading the
  19517. address of the function into a register and then performing a subroutine
  19518. call on this register. This switch is needed if the target function
  19519. lies outside of the 64\-megabyte addressing range of the offset-based
  19520. version of subroutine call instruction.
  19521. .Sp
  19522. Even if this switch is enabled, not all function calls are turned
  19523. into long calls. The heuristic is that static functions, functions
  19524. that have the \f(CW\*(C`short_call\*(C'\fR attribute, functions that are inside
  19525. the scope of a \f(CW\*(C`#pragma no_long_calls\*(C'\fR directive, and functions whose
  19526. definitions have already been compiled within the current compilation
  19527. unit are not turned into long calls. The exceptions to this rule are
  19528. that weak function definitions, functions with the \f(CW\*(C`long_call\*(C'\fR
  19529. attribute or the \f(CW\*(C`section\*(C'\fR attribute, and functions that are within
  19530. the scope of a \f(CW\*(C`#pragma long_calls\*(C'\fR directive are always
  19531. turned into long calls.
  19532. .Sp
  19533. This feature is not enabled by default. Specifying
  19534. \&\fB\-mno\-long\-calls\fR restores the default behavior, as does
  19535. placing the function calls within the scope of a \f(CW\*(C`#pragma
  19536. long_calls_off\*(C'\fR directive. Note these switches have no effect on how
  19537. the compiler generates code to handle function calls via function
  19538. pointers.
  19539. .IP "\fB\-msingle\-pic\-base\fR" 4
  19540. .IX Item "-msingle-pic-base"
  19541. Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
  19542. loading it in the prologue for each function. The runtime system is
  19543. responsible for initializing this register with an appropriate value
  19544. before execution begins.
  19545. .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
  19546. .IX Item "-mpic-register=reg"
  19547. Specify the register to be used for \s-1PIC\s0 addressing.
  19548. For standard \s-1PIC\s0 base case, the default is any suitable register
  19549. determined by compiler. For single \s-1PIC\s0 base case, the default is
  19550. \&\fBR9\fR if target is \s-1EABI\s0 based or stack-checking is enabled,
  19551. otherwise the default is \fBR10\fR.
  19552. .IP "\fB\-mpic\-data\-is\-text\-relative\fR" 4
  19553. .IX Item "-mpic-data-is-text-relative"
  19554. Assume that the displacement between the text and data segments is fixed
  19555. at static link time. This permits using PC-relative addressing
  19556. operations to access data known to be in the data segment. For
  19557. non-VxWorks \s-1RTP\s0 targets, this option is enabled by default. When
  19558. disabled on such targets, it will enable \fB\-msingle\-pic\-base\fR by
  19559. default.
  19560. .IP "\fB\-mpoke\-function\-name\fR" 4
  19561. .IX Item "-mpoke-function-name"
  19562. Write the name of each function into the text section, directly
  19563. preceding the function prologue. The generated code is similar to this:
  19564. .Sp
  19565. .Vb 9
  19566. \& t0
  19567. \& .ascii "arm_poke_function_name", 0
  19568. \& .align
  19569. \& t1
  19570. \& .word 0xff000000 + (t1 \- t0)
  19571. \& arm_poke_function_name
  19572. \& mov ip, sp
  19573. \& stmfd sp!, {fp, ip, lr, pc}
  19574. \& sub fp, ip, #4
  19575. .Ve
  19576. .Sp
  19577. When performing a stack backtrace, code can inspect the value of
  19578. \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR. If the trace function then looks at
  19579. location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
  19580. there is a function name embedded immediately preceding this location
  19581. and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
  19582. .IP "\fB\-mthumb\fR" 4
  19583. .IX Item "-mthumb"
  19584. .PD 0
  19585. .IP "\fB\-marm\fR" 4
  19586. .IX Item "-marm"
  19587. .PD
  19588. Select between generating code that executes in \s-1ARM\s0 and Thumb
  19589. states. The default for most configurations is to generate code
  19590. that executes in \s-1ARM\s0 state, but the default can be changed by
  19591. configuring \s-1GCC\s0 with the \fB\-\-with\-mode=\fR\fIstate\fR
  19592. configure option.
  19593. .Sp
  19594. You can also override the \s-1ARM\s0 and Thumb mode for each function
  19595. by using the \f(CW\*(C`target("thumb")\*(C'\fR and \f(CW\*(C`target("arm")\*(C'\fR function attributes or pragmas.
  19596. .IP "\fB\-mflip\-thumb\fR" 4
  19597. .IX Item "-mflip-thumb"
  19598. Switch ARM/Thumb modes on alternating functions.
  19599. This option is provided for regression testing of mixed Thumb/ARM code
  19600. generation, and is not intended for ordinary use in compiling code.
  19601. .IP "\fB\-mtpcs\-frame\fR" 4
  19602. .IX Item "-mtpcs-frame"
  19603. Generate a stack frame that is compliant with the Thumb Procedure Call
  19604. Standard for all non-leaf functions. (A leaf function is one that does
  19605. not call any other functions.) The default is \fB\-mno\-tpcs\-frame\fR.
  19606. .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
  19607. .IX Item "-mtpcs-leaf-frame"
  19608. Generate a stack frame that is compliant with the Thumb Procedure Call
  19609. Standard for all leaf functions. (A leaf function is one that does
  19610. not call any other functions.) The default is \fB\-mno\-apcs\-leaf\-frame\fR.
  19611. .IP "\fB\-mcallee\-super\-interworking\fR" 4
  19612. .IX Item "-mcallee-super-interworking"
  19613. Gives all externally visible functions in the file being compiled an \s-1ARM\s0
  19614. instruction set header which switches to Thumb mode before executing the
  19615. rest of the function. This allows these functions to be called from
  19616. non-interworking code. This option is not valid in \s-1AAPCS\s0 configurations
  19617. because interworking is enabled by default.
  19618. .IP "\fB\-mcaller\-super\-interworking\fR" 4
  19619. .IX Item "-mcaller-super-interworking"
  19620. Allows calls via function pointers (including virtual functions) to
  19621. execute correctly regardless of whether the target code has been
  19622. compiled for interworking or not. There is a small overhead in the cost
  19623. of executing a function pointer if this option is enabled. This option
  19624. is not valid in \s-1AAPCS\s0 configurations because interworking is enabled
  19625. by default.
  19626. .IP "\fB\-mtp=\fR\fIname\fR" 4
  19627. .IX Item "-mtp=name"
  19628. Specify the access model for the thread local storage pointer. The valid
  19629. models are \fBsoft\fR, which generates calls to \f(CW\*(C`_\|_aeabi_read_tp\*(C'\fR,
  19630. \&\fBcp15\fR, which fetches the thread pointer from \f(CW\*(C`cp15\*(C'\fR directly
  19631. (supported in the arm6k architecture), and \fBauto\fR, which uses the
  19632. best available method for the selected processor. The default setting is
  19633. \&\fBauto\fR.
  19634. .IP "\fB\-mtls\-dialect=\fR\fIdialect\fR" 4
  19635. .IX Item "-mtls-dialect=dialect"
  19636. Specify the dialect to use for accessing thread local storage. Two
  19637. \&\fIdialect\fRs are supported\-\-\-\fBgnu\fR and \fBgnu2\fR. The
  19638. \&\fBgnu\fR dialect selects the original \s-1GNU\s0 scheme for supporting
  19639. local and global dynamic \s-1TLS\s0 models. The \fBgnu2\fR dialect
  19640. selects the \s-1GNU\s0 descriptor scheme, which provides better performance
  19641. for shared libraries. The \s-1GNU\s0 descriptor scheme is compatible with
  19642. the original scheme, but does require new assembler, linker and
  19643. library support. Initial and local exec \s-1TLS\s0 models are unaffected by
  19644. this option and always use the original scheme.
  19645. .IP "\fB\-mword\-relocations\fR" 4
  19646. .IX Item "-mword-relocations"
  19647. Only generate absolute relocations on word-sized values (i.e. R_ARM_ABS32).
  19648. This is enabled by default on targets (uClinux, SymbianOS) where the runtime
  19649. loader imposes this restriction, and when \fB\-fpic\fR or \fB\-fPIC\fR
  19650. is specified. This option conflicts with \fB\-mslow\-flash\-data\fR.
  19651. .IP "\fB\-mfix\-cortex\-m3\-ldrd\fR" 4
  19652. .IX Item "-mfix-cortex-m3-ldrd"
  19653. Some Cortex\-M3 cores can cause data corruption when \f(CW\*(C`ldrd\*(C'\fR instructions
  19654. with overlapping destination and base registers are used. This option avoids
  19655. generating these instructions. This option is enabled by default when
  19656. \&\fB\-mcpu=cortex\-m3\fR is specified.
  19657. .IP "\fB\-munaligned\-access\fR" 4
  19658. .IX Item "-munaligned-access"
  19659. .PD 0
  19660. .IP "\fB\-mno\-unaligned\-access\fR" 4
  19661. .IX Item "-mno-unaligned-access"
  19662. .PD
  19663. Enables (or disables) reading and writing of 16\- and 32\- bit values
  19664. from addresses that are not 16\- or 32\- bit aligned. By default
  19665. unaligned access is disabled for all pre\-ARMv6, all ARMv6\-M and for
  19666. ARMv8\-M Baseline architectures, and enabled for all other
  19667. architectures. If unaligned access is not enabled then words in packed
  19668. data structures are accessed a byte at a time.
  19669. .Sp
  19670. The \s-1ARM\s0 attribute \f(CW\*(C`Tag_CPU_unaligned_access\*(C'\fR is set in the
  19671. generated object file to either true or false, depending upon the
  19672. setting of this option. If unaligned access is enabled then the
  19673. preprocessor symbol \f(CW\*(C`_\|_ARM_FEATURE_UNALIGNED\*(C'\fR is also
  19674. defined.
  19675. .IP "\fB\-mneon\-for\-64bits\fR" 4
  19676. .IX Item "-mneon-for-64bits"
  19677. This option is deprecated and has no effect.
  19678. .IP "\fB\-mslow\-flash\-data\fR" 4
  19679. .IX Item "-mslow-flash-data"
  19680. Assume loading data from flash is slower than fetching instruction.
  19681. Therefore literal load is minimized for better performance.
  19682. This option is only supported when compiling for ARMv7 M\-profile and
  19683. off by default. It conflicts with \fB\-mword\-relocations\fR.
  19684. .IP "\fB\-masm\-syntax\-unified\fR" 4
  19685. .IX Item "-masm-syntax-unified"
  19686. Assume inline assembler is using unified asm syntax. The default is
  19687. currently off which implies divided syntax. This option has no impact
  19688. on Thumb2. However, this may change in future releases of \s-1GCC.\s0
  19689. Divided syntax should be considered deprecated.
  19690. .IP "\fB\-mrestrict\-it\fR" 4
  19691. .IX Item "-mrestrict-it"
  19692. Restricts generation of \s-1IT\s0 blocks to conform to the rules of ARMv8\-A.
  19693. \&\s-1IT\s0 blocks can only contain a single 16\-bit instruction from a select
  19694. set of instructions. This option is on by default for ARMv8\-A Thumb mode.
  19695. .IP "\fB\-mprint\-tune\-info\fR" 4
  19696. .IX Item "-mprint-tune-info"
  19697. Print \s-1CPU\s0 tuning information as comment in assembler file. This is
  19698. an option used only for regression testing of the compiler and not
  19699. intended for ordinary use in compiling code. This option is disabled
  19700. by default.
  19701. .IP "\fB\-mverbose\-cost\-dump\fR" 4
  19702. .IX Item "-mverbose-cost-dump"
  19703. Enable verbose cost model dumping in the debug dump files. This option is
  19704. provided for use in debugging the compiler.
  19705. .IP "\fB\-mpure\-code\fR" 4
  19706. .IX Item "-mpure-code"
  19707. Do not allow constant data to be placed in code sections.
  19708. Additionally, when compiling for \s-1ELF\s0 object format give all text sections the
  19709. \&\s-1ELF\s0 processor-specific section attribute \f(CW\*(C`SHF_ARM_PURECODE\*(C'\fR. This option
  19710. is only available when generating non-pic code for M\-profile targets.
  19711. .IP "\fB\-mcmse\fR" 4
  19712. .IX Item "-mcmse"
  19713. Generate secure code as per the \*(L"ARMv8\-M Security Extensions: Requirements on
  19714. Development Tools Engineering Specification\*(R", which can be found on
  19715. <\fBhttps://developer.arm.com/documentation/ecm0359818/latest/\fR>.
  19716. .IP "\fB\-mfdpic\fR" 4
  19717. .IX Item "-mfdpic"
  19718. .PD 0
  19719. .IP "\fB\-mno\-fdpic\fR" 4
  19720. .IX Item "-mno-fdpic"
  19721. .PD
  19722. Select the \s-1FDPIC ABI,\s0 which uses 64\-bit function descriptors to
  19723. represent pointers to functions. When the compiler is configured for
  19724. \&\f(CW\*(C`arm\-*\-uclinuxfdpiceabi\*(C'\fR targets, this option is on by default
  19725. and implies \fB\-fPIE\fR if none of the PIC/PIE\-related options is
  19726. provided. On other targets, it only enables the FDPIC-specific code
  19727. generation features, and the user should explicitly provide the
  19728. PIC/PIE\-related options as needed.
  19729. .Sp
  19730. Note that static linking is not supported because it would still
  19731. involve the dynamic linker when the program self-relocates. If such
  19732. behavior is acceptable, use \-static and \-Wl,\-dynamic\-linker options.
  19733. .Sp
  19734. The opposite \fB\-mno\-fdpic\fR option is useful (and required) to
  19735. build the Linux kernel using the same (\f(CW\*(C`arm\-*\-uclinuxfdpiceabi\*(C'\fR)
  19736. toolchain as the one used to build the userland programs.
  19737. .PP
  19738. \fI\s-1AVR\s0 Options\fR
  19739. .IX Subsection "AVR Options"
  19740. .PP
  19741. These options are defined for \s-1AVR\s0 implementations:
  19742. .IP "\fB\-mmcu=\fR\fImcu\fR" 4
  19743. .IX Item "-mmcu=mcu"
  19744. Specify Atmel \s-1AVR\s0 instruction set architectures (\s-1ISA\s0) or \s-1MCU\s0 type.
  19745. .Sp
  19746. The default for this option is \fBavr2\fR.
  19747. .Sp
  19748. \&\s-1GCC\s0 supports the following \s-1AVR\s0 devices and ISAs:
  19749. .RS 4
  19750. .ie n .IP """avr2""" 4
  19751. .el .IP "\f(CWavr2\fR" 4
  19752. .IX Item "avr2"
  19753. \&\*(L"Classic\*(R" devices with up to 8 KiB of program memory.
  19754. \&\fImcu\fR = \f(CW\*(C`attiny22\*(C'\fR, \f(CW\*(C`attiny26\*(C'\fR, \f(CW\*(C`at90s2313\*(C'\fR, \f(CW\*(C`at90s2323\*(C'\fR, \f(CW\*(C`at90s2333\*(C'\fR, \f(CW\*(C`at90s2343\*(C'\fR, \f(CW\*(C`at90s4414\*(C'\fR, \f(CW\*(C`at90s4433\*(C'\fR, \f(CW\*(C`at90s4434\*(C'\fR, \f(CW\*(C`at90c8534\*(C'\fR, \f(CW\*(C`at90s8515\*(C'\fR, \f(CW\*(C`at90s8535\*(C'\fR.
  19755. .ie n .IP """avr25""" 4
  19756. .el .IP "\f(CWavr25\fR" 4
  19757. .IX Item "avr25"
  19758. \&\*(L"Classic\*(R" devices with up to 8 KiB of program memory and with the \f(CW\*(C`MOVW\*(C'\fR instruction.
  19759. \&\fImcu\fR = \f(CW\*(C`attiny13\*(C'\fR, \f(CW\*(C`attiny13a\*(C'\fR, \f(CW\*(C`attiny24\*(C'\fR, \f(CW\*(C`attiny24a\*(C'\fR, \f(CW\*(C`attiny25\*(C'\fR, \f(CW\*(C`attiny261\*(C'\fR, \f(CW\*(C`attiny261a\*(C'\fR, \f(CW\*(C`attiny2313\*(C'\fR, \f(CW\*(C`attiny2313a\*(C'\fR, \f(CW\*(C`attiny43u\*(C'\fR, \f(CW\*(C`attiny44\*(C'\fR, \f(CW\*(C`attiny44a\*(C'\fR, \f(CW\*(C`attiny45\*(C'\fR, \f(CW\*(C`attiny48\*(C'\fR, \f(CW\*(C`attiny441\*(C'\fR, \f(CW\*(C`attiny461\*(C'\fR, \f(CW\*(C`attiny461a\*(C'\fR, \f(CW\*(C`attiny4313\*(C'\fR, \f(CW\*(C`attiny84\*(C'\fR, \f(CW\*(C`attiny84a\*(C'\fR, \f(CW\*(C`attiny85\*(C'\fR, \f(CW\*(C`attiny87\*(C'\fR, \f(CW\*(C`attiny88\*(C'\fR, \f(CW\*(C`attiny828\*(C'\fR, \f(CW\*(C`attiny841\*(C'\fR, \f(CW\*(C`attiny861\*(C'\fR, \f(CW\*(C`attiny861a\*(C'\fR, \f(CW\*(C`ata5272\*(C'\fR, \f(CW\*(C`ata6616c\*(C'\fR, \f(CW\*(C`at86rf401\*(C'\fR.
  19760. .ie n .IP """avr3""" 4
  19761. .el .IP "\f(CWavr3\fR" 4
  19762. .IX Item "avr3"
  19763. \&\*(L"Classic\*(R" devices with 16 KiB up to 64 KiB of program memory.
  19764. \&\fImcu\fR = \f(CW\*(C`at76c711\*(C'\fR, \f(CW\*(C`at43usb355\*(C'\fR.
  19765. .ie n .IP """avr31""" 4
  19766. .el .IP "\f(CWavr31\fR" 4
  19767. .IX Item "avr31"
  19768. \&\*(L"Classic\*(R" devices with 128 KiB of program memory.
  19769. \&\fImcu\fR = \f(CW\*(C`atmega103\*(C'\fR, \f(CW\*(C`at43usb320\*(C'\fR.
  19770. .ie n .IP """avr35""" 4
  19771. .el .IP "\f(CWavr35\fR" 4
  19772. .IX Item "avr35"
  19773. \&\*(L"Classic\*(R" devices with 16 KiB up to 64 KiB of program memory and with the \f(CW\*(C`MOVW\*(C'\fR instruction.
  19774. \&\fImcu\fR = \f(CW\*(C`attiny167\*(C'\fR, \f(CW\*(C`attiny1634\*(C'\fR, \f(CW\*(C`atmega8u2\*(C'\fR, \f(CW\*(C`atmega16u2\*(C'\fR, \f(CW\*(C`atmega32u2\*(C'\fR, \f(CW\*(C`ata5505\*(C'\fR, \f(CW\*(C`ata6617c\*(C'\fR, \f(CW\*(C`ata664251\*(C'\fR, \f(CW\*(C`at90usb82\*(C'\fR, \f(CW\*(C`at90usb162\*(C'\fR.
  19775. .ie n .IP """avr4""" 4
  19776. .el .IP "\f(CWavr4\fR" 4
  19777. .IX Item "avr4"
  19778. \&\*(L"Enhanced\*(R" devices with up to 8 KiB of program memory.
  19779. \&\fImcu\fR = \f(CW\*(C`atmega48\*(C'\fR, \f(CW\*(C`atmega48a\*(C'\fR, \f(CW\*(C`atmega48p\*(C'\fR, \f(CW\*(C`atmega48pa\*(C'\fR, \f(CW\*(C`atmega48pb\*(C'\fR, \f(CW\*(C`atmega8\*(C'\fR, \f(CW\*(C`atmega8a\*(C'\fR, \f(CW\*(C`atmega8hva\*(C'\fR, \f(CW\*(C`atmega88\*(C'\fR, \f(CW\*(C`atmega88a\*(C'\fR, \f(CW\*(C`atmega88p\*(C'\fR, \f(CW\*(C`atmega88pa\*(C'\fR, \f(CW\*(C`atmega88pb\*(C'\fR, \f(CW\*(C`atmega8515\*(C'\fR, \f(CW\*(C`atmega8535\*(C'\fR, \f(CW\*(C`ata6285\*(C'\fR, \f(CW\*(C`ata6286\*(C'\fR, \f(CW\*(C`ata6289\*(C'\fR, \f(CW\*(C`ata6612c\*(C'\fR, \f(CW\*(C`at90pwm1\*(C'\fR, \f(CW\*(C`at90pwm2\*(C'\fR, \f(CW\*(C`at90pwm2b\*(C'\fR, \f(CW\*(C`at90pwm3\*(C'\fR, \f(CW\*(C`at90pwm3b\*(C'\fR, \f(CW\*(C`at90pwm81\*(C'\fR.
  19780. .ie n .IP """avr5""" 4
  19781. .el .IP "\f(CWavr5\fR" 4
  19782. .IX Item "avr5"
  19783. \&\*(L"Enhanced\*(R" devices with 16 KiB up to 64 KiB of program memory.
  19784. \&\fImcu\fR = \f(CW\*(C`atmega16\*(C'\fR, \f(CW\*(C`atmega16a\*(C'\fR, \f(CW\*(C`atmega16hva\*(C'\fR, \f(CW\*(C`atmega16hva2\*(C'\fR, \f(CW\*(C`atmega16hvb\*(C'\fR, \f(CW\*(C`atmega16hvbrevb\*(C'\fR, \f(CW\*(C`atmega16m1\*(C'\fR, \f(CW\*(C`atmega16u4\*(C'\fR, \f(CW\*(C`atmega161\*(C'\fR, \f(CW\*(C`atmega162\*(C'\fR, \f(CW\*(C`atmega163\*(C'\fR, \f(CW\*(C`atmega164a\*(C'\fR, \f(CW\*(C`atmega164p\*(C'\fR, \f(CW\*(C`atmega164pa\*(C'\fR, \f(CW\*(C`atmega165\*(C'\fR, \f(CW\*(C`atmega165a\*(C'\fR, \f(CW\*(C`atmega165p\*(C'\fR, \f(CW\*(C`atmega165pa\*(C'\fR, \f(CW\*(C`atmega168\*(C'\fR, \f(CW\*(C`atmega168a\*(C'\fR, \f(CW\*(C`atmega168p\*(C'\fR, \f(CW\*(C`atmega168pa\*(C'\fR, \f(CW\*(C`atmega168pb\*(C'\fR, \f(CW\*(C`atmega169\*(C'\fR, \f(CW\*(C`atmega169a\*(C'\fR, \f(CW\*(C`atmega169p\*(C'\fR, \f(CW\*(C`atmega169pa\*(C'\fR, \f(CW\*(C`atmega32\*(C'\fR, \f(CW\*(C`atmega32a\*(C'\fR, \f(CW\*(C`atmega32c1\*(C'\fR, \f(CW\*(C`atmega32hvb\*(C'\fR, \f(CW\*(C`atmega32hvbrevb\*(C'\fR, \f(CW\*(C`atmega32m1\*(C'\fR, \f(CW\*(C`atmega32u4\*(C'\fR, \f(CW\*(C`atmega32u6\*(C'\fR, \f(CW\*(C`atmega323\*(C'\fR, \f(CW\*(C`atmega324a\*(C'\fR, \f(CW\*(C`atmega324p\*(C'\fR, \f(CW\*(C`atmega324pa\*(C'\fR, \f(CW\*(C`atmega325\*(C'\fR, \f(CW\*(C`atmega325a\*(C'\fR, \f(CW\*(C`atmega325p\*(C'\fR, \f(CW\*(C`atmega325pa\*(C'\fR, \f(CW\*(C`atmega328\*(C'\fR, \f(CW\*(C`atmega328p\*(C'\fR, \f(CW\*(C`atmega328pb\*(C'\fR, \f(CW\*(C`atmega329\*(C'\fR, \f(CW\*(C`atmega329a\*(C'\fR, \f(CW\*(C`atmega329p\*(C'\fR, \f(CW\*(C`atmega329pa\*(C'\fR, \f(CW\*(C`atmega3250\*(C'\fR, \f(CW\*(C`atmega3250a\*(C'\fR, \f(CW\*(C`atmega3250p\*(C'\fR, \f(CW\*(C`atmega3250pa\*(C'\fR, \f(CW\*(C`atmega3290\*(C'\fR, \f(CW\*(C`atmega3290a\*(C'\fR, \f(CW\*(C`atmega3290p\*(C'\fR, \f(CW\*(C`atmega3290pa\*(C'\fR, \f(CW\*(C`atmega406\*(C'\fR, \f(CW\*(C`atmega64\*(C'\fR, \f(CW\*(C`atmega64a\*(C'\fR, \f(CW\*(C`atmega64c1\*(C'\fR, \f(CW\*(C`atmega64hve\*(C'\fR, \f(CW\*(C`atmega64hve2\*(C'\fR, \f(CW\*(C`atmega64m1\*(C'\fR, \f(CW\*(C`atmega64rfr2\*(C'\fR, \f(CW\*(C`atmega640\*(C'\fR, \f(CW\*(C`atmega644\*(C'\fR, \f(CW\*(C`atmega644a\*(C'\fR, \f(CW\*(C`atmega644p\*(C'\fR, \f(CW\*(C`atmega644pa\*(C'\fR, \f(CW\*(C`atmega644rfr2\*(C'\fR, \f(CW\*(C`atmega645\*(C'\fR, \f(CW\*(C`atmega645a\*(C'\fR, \f(CW\*(C`atmega645p\*(C'\fR, \f(CW\*(C`atmega649\*(C'\fR, \f(CW\*(C`atmega649a\*(C'\fR, \f(CW\*(C`atmega649p\*(C'\fR, \f(CW\*(C`atmega6450\*(C'\fR, \f(CW\*(C`atmega6450a\*(C'\fR, \f(CW\*(C`atmega6450p\*(C'\fR, \f(CW\*(C`atmega6490\*(C'\fR, \f(CW\*(C`atmega6490a\*(C'\fR, \f(CW\*(C`atmega6490p\*(C'\fR, \f(CW\*(C`ata5795\*(C'\fR, \f(CW\*(C`ata5790\*(C'\fR, \f(CW\*(C`ata5790n\*(C'\fR, \f(CW\*(C`ata5791\*(C'\fR, \f(CW\*(C`ata6613c\*(C'\fR, \f(CW\*(C`ata6614q\*(C'\fR, \f(CW\*(C`ata5782\*(C'\fR, \f(CW\*(C`ata5831\*(C'\fR, \f(CW\*(C`ata8210\*(C'\fR, \f(CW\*(C`ata8510\*(C'\fR, \f(CW\*(C`ata5702m322\*(C'\fR, \f(CW\*(C`at90pwm161\*(C'\fR, \f(CW\*(C`at90pwm216\*(C'\fR, \f(CW\*(C`at90pwm316\*(C'\fR, \f(CW\*(C`at90can32\*(C'\fR, \f(CW\*(C`at90can64\*(C'\fR, \f(CW\*(C`at90scr100\*(C'\fR, \f(CW\*(C`at90usb646\*(C'\fR, \f(CW\*(C`at90usb647\*(C'\fR, \f(CW\*(C`at94k\*(C'\fR, \f(CW\*(C`m3000\*(C'\fR.
  19785. .ie n .IP """avr51""" 4
  19786. .el .IP "\f(CWavr51\fR" 4
  19787. .IX Item "avr51"
  19788. \&\*(L"Enhanced\*(R" devices with 128 KiB of program memory.
  19789. \&\fImcu\fR = \f(CW\*(C`atmega128\*(C'\fR, \f(CW\*(C`atmega128a\*(C'\fR, \f(CW\*(C`atmega128rfa1\*(C'\fR, \f(CW\*(C`atmega128rfr2\*(C'\fR, \f(CW\*(C`atmega1280\*(C'\fR, \f(CW\*(C`atmega1281\*(C'\fR, \f(CW\*(C`atmega1284\*(C'\fR, \f(CW\*(C`atmega1284p\*(C'\fR, \f(CW\*(C`atmega1284rfr2\*(C'\fR, \f(CW\*(C`at90can128\*(C'\fR, \f(CW\*(C`at90usb1286\*(C'\fR, \f(CW\*(C`at90usb1287\*(C'\fR.
  19790. .ie n .IP """avr6""" 4
  19791. .el .IP "\f(CWavr6\fR" 4
  19792. .IX Item "avr6"
  19793. \&\*(L"Enhanced\*(R" devices with 3\-byte \s-1PC,\s0 i.e. with more than 128 KiB of program memory.
  19794. \&\fImcu\fR = \f(CW\*(C`atmega256rfr2\*(C'\fR, \f(CW\*(C`atmega2560\*(C'\fR, \f(CW\*(C`atmega2561\*(C'\fR, \f(CW\*(C`atmega2564rfr2\*(C'\fR.
  19795. .ie n .IP """avrxmega2""" 4
  19796. .el .IP "\f(CWavrxmega2\fR" 4
  19797. .IX Item "avrxmega2"
  19798. \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 8 KiB and up to 64 KiB of program memory.
  19799. \&\fImcu\fR = \f(CW\*(C`atxmega8e5\*(C'\fR, \f(CW\*(C`atxmega16a4\*(C'\fR, \f(CW\*(C`atxmega16a4u\*(C'\fR, \f(CW\*(C`atxmega16c4\*(C'\fR, \f(CW\*(C`atxmega16d4\*(C'\fR, \f(CW\*(C`atxmega16e5\*(C'\fR, \f(CW\*(C`atxmega32a4\*(C'\fR, \f(CW\*(C`atxmega32a4u\*(C'\fR, \f(CW\*(C`atxmega32c3\*(C'\fR, \f(CW\*(C`atxmega32c4\*(C'\fR, \f(CW\*(C`atxmega32d3\*(C'\fR, \f(CW\*(C`atxmega32d4\*(C'\fR, \f(CW\*(C`atxmega32e5\*(C'\fR.
  19800. .ie n .IP """avrxmega3""" 4
  19801. .el .IP "\f(CWavrxmega3\fR" 4
  19802. .IX Item "avrxmega3"
  19803. \&\*(L"\s-1XMEGA\*(R"\s0 devices with up to 64 KiB of combined program memory and \s-1RAM,\s0 and with program memory visible in the \s-1RAM\s0 address space.
  19804. \&\fImcu\fR = \f(CW\*(C`attiny202\*(C'\fR, \f(CW\*(C`attiny204\*(C'\fR, \f(CW\*(C`attiny212\*(C'\fR, \f(CW\*(C`attiny214\*(C'\fR, \f(CW\*(C`attiny402\*(C'\fR, \f(CW\*(C`attiny404\*(C'\fR, \f(CW\*(C`attiny406\*(C'\fR, \f(CW\*(C`attiny412\*(C'\fR, \f(CW\*(C`attiny414\*(C'\fR, \f(CW\*(C`attiny416\*(C'\fR, \f(CW\*(C`attiny417\*(C'\fR, \f(CW\*(C`attiny804\*(C'\fR, \f(CW\*(C`attiny806\*(C'\fR, \f(CW\*(C`attiny807\*(C'\fR, \f(CW\*(C`attiny814\*(C'\fR, \f(CW\*(C`attiny816\*(C'\fR, \f(CW\*(C`attiny817\*(C'\fR, \f(CW\*(C`attiny1604\*(C'\fR, \f(CW\*(C`attiny1606\*(C'\fR, \f(CW\*(C`attiny1607\*(C'\fR, \f(CW\*(C`attiny1614\*(C'\fR, \f(CW\*(C`attiny1616\*(C'\fR, \f(CW\*(C`attiny1617\*(C'\fR, \f(CW\*(C`attiny3214\*(C'\fR, \f(CW\*(C`attiny3216\*(C'\fR, \f(CW\*(C`attiny3217\*(C'\fR, \f(CW\*(C`atmega808\*(C'\fR, \f(CW\*(C`atmega809\*(C'\fR, \f(CW\*(C`atmega1608\*(C'\fR, \f(CW\*(C`atmega1609\*(C'\fR, \f(CW\*(C`atmega3208\*(C'\fR, \f(CW\*(C`atmega3209\*(C'\fR, \f(CW\*(C`atmega4808\*(C'\fR, \f(CW\*(C`atmega4809\*(C'\fR.
  19805. .ie n .IP """avrxmega4""" 4
  19806. .el .IP "\f(CWavrxmega4\fR" 4
  19807. .IX Item "avrxmega4"
  19808. \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 64 KiB and up to 128 KiB of program memory.
  19809. \&\fImcu\fR = \f(CW\*(C`atxmega64a3\*(C'\fR, \f(CW\*(C`atxmega64a3u\*(C'\fR, \f(CW\*(C`atxmega64a4u\*(C'\fR, \f(CW\*(C`atxmega64b1\*(C'\fR, \f(CW\*(C`atxmega64b3\*(C'\fR, \f(CW\*(C`atxmega64c3\*(C'\fR, \f(CW\*(C`atxmega64d3\*(C'\fR, \f(CW\*(C`atxmega64d4\*(C'\fR.
  19810. .ie n .IP """avrxmega5""" 4
  19811. .el .IP "\f(CWavrxmega5\fR" 4
  19812. .IX Item "avrxmega5"
  19813. \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 64 KiB and up to 128 KiB of program memory and more than 64 KiB of \s-1RAM.\s0
  19814. \&\fImcu\fR = \f(CW\*(C`atxmega64a1\*(C'\fR, \f(CW\*(C`atxmega64a1u\*(C'\fR.
  19815. .ie n .IP """avrxmega6""" 4
  19816. .el .IP "\f(CWavrxmega6\fR" 4
  19817. .IX Item "avrxmega6"
  19818. \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 128 KiB of program memory.
  19819. \&\fImcu\fR = \f(CW\*(C`atxmega128a3\*(C'\fR, \f(CW\*(C`atxmega128a3u\*(C'\fR, \f(CW\*(C`atxmega128b1\*(C'\fR, \f(CW\*(C`atxmega128b3\*(C'\fR, \f(CW\*(C`atxmega128c3\*(C'\fR, \f(CW\*(C`atxmega128d3\*(C'\fR, \f(CW\*(C`atxmega128d4\*(C'\fR, \f(CW\*(C`atxmega192a3\*(C'\fR, \f(CW\*(C`atxmega192a3u\*(C'\fR, \f(CW\*(C`atxmega192c3\*(C'\fR, \f(CW\*(C`atxmega192d3\*(C'\fR, \f(CW\*(C`atxmega256a3\*(C'\fR, \f(CW\*(C`atxmega256a3b\*(C'\fR, \f(CW\*(C`atxmega256a3bu\*(C'\fR, \f(CW\*(C`atxmega256a3u\*(C'\fR, \f(CW\*(C`atxmega256c3\*(C'\fR, \f(CW\*(C`atxmega256d3\*(C'\fR, \f(CW\*(C`atxmega384c3\*(C'\fR, \f(CW\*(C`atxmega384d3\*(C'\fR.
  19820. .ie n .IP """avrxmega7""" 4
  19821. .el .IP "\f(CWavrxmega7\fR" 4
  19822. .IX Item "avrxmega7"
  19823. \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 128 KiB of program memory and more than 64 KiB of \s-1RAM.\s0
  19824. \&\fImcu\fR = \f(CW\*(C`atxmega128a1\*(C'\fR, \f(CW\*(C`atxmega128a1u\*(C'\fR, \f(CW\*(C`atxmega128a4u\*(C'\fR.
  19825. .ie n .IP """avrtiny""" 4
  19826. .el .IP "\f(CWavrtiny\fR" 4
  19827. .IX Item "avrtiny"
  19828. \&\*(L"\s-1TINY\*(R"\s0 Tiny core devices with 512 B up to 4 KiB of program memory.
  19829. \&\fImcu\fR = \f(CW\*(C`attiny4\*(C'\fR, \f(CW\*(C`attiny5\*(C'\fR, \f(CW\*(C`attiny9\*(C'\fR, \f(CW\*(C`attiny10\*(C'\fR, \f(CW\*(C`attiny20\*(C'\fR, \f(CW\*(C`attiny40\*(C'\fR.
  19830. .ie n .IP """avr1""" 4
  19831. .el .IP "\f(CWavr1\fR" 4
  19832. .IX Item "avr1"
  19833. This \s-1ISA\s0 is implemented by the minimal \s-1AVR\s0 core and supported for assembler only.
  19834. \&\fImcu\fR = \f(CW\*(C`attiny11\*(C'\fR, \f(CW\*(C`attiny12\*(C'\fR, \f(CW\*(C`attiny15\*(C'\fR, \f(CW\*(C`attiny28\*(C'\fR, \f(CW\*(C`at90s1200\*(C'\fR.
  19835. .RE
  19836. .RS 4
  19837. .RE
  19838. .IP "\fB\-mabsdata\fR" 4
  19839. .IX Item "-mabsdata"
  19840. Assume that all data in static storage can be accessed by \s-1LDS / STS\s0
  19841. instructions. This option has only an effect on reduced Tiny devices like
  19842. ATtiny40. See also the \f(CW\*(C`absdata\*(C'\fR
  19843. \&\fB\s-1AVR\s0 Variable Attributes,variable attribute\fR.
  19844. .IP "\fB\-maccumulate\-args\fR" 4
  19845. .IX Item "-maccumulate-args"
  19846. Accumulate outgoing function arguments and acquire/release the needed
  19847. stack space for outgoing function arguments once in function
  19848. prologue/epilogue. Without this option, outgoing arguments are pushed
  19849. before calling a function and popped afterwards.
  19850. .Sp
  19851. Popping the arguments after the function call can be expensive on
  19852. \&\s-1AVR\s0 so that accumulating the stack space might lead to smaller
  19853. executables because arguments need not be removed from the
  19854. stack after such a function call.
  19855. .Sp
  19856. This option can lead to reduced code size for functions that perform
  19857. several calls to functions that get their arguments on the stack like
  19858. calls to printf-like functions.
  19859. .IP "\fB\-mbranch\-cost=\fR\fIcost\fR" 4
  19860. .IX Item "-mbranch-cost=cost"
  19861. Set the branch costs for conditional branch instructions to
  19862. \&\fIcost\fR. Reasonable values for \fIcost\fR are small, non-negative
  19863. integers. The default branch cost is 0.
  19864. .IP "\fB\-mcall\-prologues\fR" 4
  19865. .IX Item "-mcall-prologues"
  19866. Functions prologues/epilogues are expanded as calls to appropriate
  19867. subroutines. Code size is smaller.
  19868. .IP "\fB\-mdouble=\fR\fIbits\fR" 4
  19869. .IX Item "-mdouble=bits"
  19870. .PD 0
  19871. .IP "\fB\-mlong\-double=\fR\fIbits\fR" 4
  19872. .IX Item "-mlong-double=bits"
  19873. .PD
  19874. Set the size (in bits) of the \f(CW\*(C`double\*(C'\fR or \f(CW\*(C`long double\*(C'\fR type,
  19875. respectively. Possible values for \fIbits\fR are 32 and 64.
  19876. Whether or not a specific value for \fIbits\fR is allowed depends on
  19877. the \f(CW\*(C`\-\-with\-double=\*(C'\fR and \f(CW\*(C`\-\-with\-long\-double=\*(C'\fR
  19878. configure\ options (\f(CW\*(C`https://gcc.gnu.org/install/configure.html#avr\*(C'\fR),
  19879. and the same applies for the default values of the options.
  19880. .IP "\fB\-mgas\-isr\-prologues\fR" 4
  19881. .IX Item "-mgas-isr-prologues"
  19882. Interrupt service routines (ISRs) may use the \f(CW\*(C`_\|_gcc_isr\*(C'\fR pseudo
  19883. instruction supported by \s-1GNU\s0 Binutils.
  19884. If this option is on, the feature can still be disabled for individual
  19885. ISRs by means of the \fB\s-1AVR\s0 Function Attributes,,\f(CB\*(C`no_gccisr\*(C'\fB\fR
  19886. function attribute. This feature is activated per default
  19887. if optimization is on (but not with \fB\-Og\fR, \f(CW@pxref\fR{Optimize Options}),
  19888. and if \s-1GNU\s0 Binutils support \s-1PR21683\s0 (\f(CW\*(C`https://sourceware.org/PR21683\*(C'\fR).
  19889. .IP "\fB\-mint8\fR" 4
  19890. .IX Item "-mint8"
  19891. Assume \f(CW\*(C`int\*(C'\fR to be 8\-bit integer. This affects the sizes of all types: a
  19892. \&\f(CW\*(C`char\*(C'\fR is 1 byte, an \f(CW\*(C`int\*(C'\fR is 1 byte, a \f(CW\*(C`long\*(C'\fR is 2 bytes,
  19893. and \f(CW\*(C`long long\*(C'\fR is 4 bytes. Please note that this option does not
  19894. conform to the C standards, but it results in smaller code
  19895. size.
  19896. .IP "\fB\-mmain\-is\-OS_task\fR" 4
  19897. .IX Item "-mmain-is-OS_task"
  19898. Do not save registers in \f(CW\*(C`main\*(C'\fR. The effect is the same like
  19899. attaching attribute \fB\s-1AVR\s0 Function Attributes,,\f(CB\*(C`OS_task\*(C'\fB\fR
  19900. to \f(CW\*(C`main\*(C'\fR. It is activated per default if optimization is on.
  19901. .IP "\fB\-mn\-flash=\fR\fInum\fR" 4
  19902. .IX Item "-mn-flash=num"
  19903. Assume that the flash memory has a size of
  19904. \&\fInum\fR times 64 KiB.
  19905. .IP "\fB\-mno\-interrupts\fR" 4
  19906. .IX Item "-mno-interrupts"
  19907. Generated code is not compatible with hardware interrupts.
  19908. Code size is smaller.
  19909. .IP "\fB\-mrelax\fR" 4
  19910. .IX Item "-mrelax"
  19911. Try to replace \f(CW\*(C`CALL\*(C'\fR resp. \f(CW\*(C`JMP\*(C'\fR instruction by the shorter
  19912. \&\f(CW\*(C`RCALL\*(C'\fR resp. \f(CW\*(C`RJMP\*(C'\fR instruction if applicable.
  19913. Setting \fB\-mrelax\fR just adds the \fB\-\-mlink\-relax\fR option to
  19914. the assembler's command line and the \fB\-\-relax\fR option to the
  19915. linker's command line.
  19916. .Sp
  19917. Jump relaxing is performed by the linker because jump offsets are not
  19918. known before code is located. Therefore, the assembler code generated by the
  19919. compiler is the same, but the instructions in the executable may
  19920. differ from instructions in the assembler code.
  19921. .Sp
  19922. Relaxing must be turned on if linker stubs are needed, see the
  19923. section on \f(CW\*(C`EIND\*(C'\fR and linker stubs below.
  19924. .IP "\fB\-mrmw\fR" 4
  19925. .IX Item "-mrmw"
  19926. Assume that the device supports the Read-Modify-Write
  19927. instructions \f(CW\*(C`XCH\*(C'\fR, \f(CW\*(C`LAC\*(C'\fR, \f(CW\*(C`LAS\*(C'\fR and \f(CW\*(C`LAT\*(C'\fR.
  19928. .IP "\fB\-mshort\-calls\fR" 4
  19929. .IX Item "-mshort-calls"
  19930. Assume that \f(CW\*(C`RJMP\*(C'\fR and \f(CW\*(C`RCALL\*(C'\fR can target the whole
  19931. program memory.
  19932. .Sp
  19933. This option is used internally for multilib selection. It is
  19934. not an optimization option, and you don't need to set it by hand.
  19935. .IP "\fB\-msp8\fR" 4
  19936. .IX Item "-msp8"
  19937. Treat the stack pointer register as an 8\-bit register,
  19938. i.e. assume the high byte of the stack pointer is zero.
  19939. In general, you don't need to set this option by hand.
  19940. .Sp
  19941. This option is used internally by the compiler to select and
  19942. build multilibs for architectures \f(CW\*(C`avr2\*(C'\fR and \f(CW\*(C`avr25\*(C'\fR.
  19943. These architectures mix devices with and without \f(CW\*(C`SPH\*(C'\fR.
  19944. For any setting other than \fB\-mmcu=avr2\fR or \fB\-mmcu=avr25\fR
  19945. the compiler driver adds or removes this option from the compiler
  19946. proper's command line, because the compiler then knows if the device
  19947. or architecture has an 8\-bit stack pointer and thus no \f(CW\*(C`SPH\*(C'\fR
  19948. register or not.
  19949. .IP "\fB\-mstrict\-X\fR" 4
  19950. .IX Item "-mstrict-X"
  19951. Use address register \f(CW\*(C`X\*(C'\fR in a way proposed by the hardware. This means
  19952. that \f(CW\*(C`X\*(C'\fR is only used in indirect, post-increment or
  19953. pre-decrement addressing.
  19954. .Sp
  19955. Without this option, the \f(CW\*(C`X\*(C'\fR register may be used in the same way
  19956. as \f(CW\*(C`Y\*(C'\fR or \f(CW\*(C`Z\*(C'\fR which then is emulated by additional
  19957. instructions.
  19958. For example, loading a value with \f(CW\*(C`X+const\*(C'\fR addressing with a
  19959. small non-negative \f(CW\*(C`const < 64\*(C'\fR to a register \fIRn\fR is
  19960. performed as
  19961. .Sp
  19962. .Vb 3
  19963. \& adiw r26, const ; X += const
  19964. \& ld <Rn>, X ; <Rn> = *X
  19965. \& sbiw r26, const ; X \-= const
  19966. .Ve
  19967. .IP "\fB\-mtiny\-stack\fR" 4
  19968. .IX Item "-mtiny-stack"
  19969. Only change the lower 8 bits of the stack pointer.
  19970. .IP "\fB\-mfract\-convert\-truncate\fR" 4
  19971. .IX Item "-mfract-convert-truncate"
  19972. Allow to use truncation instead of rounding towards zero for fractional fixed-point types.
  19973. .IP "\fB\-nodevicelib\fR" 4
  19974. .IX Item "-nodevicelib"
  19975. Don't link against AVR-LibC's device specific library \f(CW\*(C`lib<mcu>.a\*(C'\fR.
  19976. .IP "\fB\-nodevicespecs\fR" 4
  19977. .IX Item "-nodevicespecs"
  19978. Don't add \fB\-specs=device\-specs/specs\-\fR\fImcu\fR to the compiler driver's
  19979. command line. The user takes responsibility for supplying the sub-processes
  19980. like compiler proper, assembler and linker with appropriate command line
  19981. options. This means that the user has to supply her private device specs
  19982. file by means of \fB\-specs=\fR\fIpath-to-specs-file\fR. There is no
  19983. more need for option \fB\-mmcu=\fR\fImcu\fR.
  19984. .Sp
  19985. This option can also serve as a replacement for the older way of
  19986. specifying custom device-specs files that needed \fB\-B\fR \fIsome-path\fR to point to a directory
  19987. which contains a folder named \f(CW\*(C`device\-specs\*(C'\fR which contains a specs file named
  19988. \&\f(CW\*(C`specs\-\f(CImcu\f(CW\*(C'\fR, where \fImcu\fR was specified by \fB\-mmcu=\fR\fImcu\fR.
  19989. .IP "\fB\-Waddr\-space\-convert\fR" 4
  19990. .IX Item "-Waddr-space-convert"
  19991. Warn about conversions between address spaces in the case where the
  19992. resulting address space is not contained in the incoming address space.
  19993. .IP "\fB\-Wmisspelled\-isr\fR" 4
  19994. .IX Item "-Wmisspelled-isr"
  19995. Warn if the \s-1ISR\s0 is misspelled, i.e. without _\|_vector prefix.
  19996. Enabled by default.
  19997. .PP
  19998. \f(CW\*(C`EIND\*(C'\fR and Devices with More Than 128 Ki Bytes of Flash
  19999. .IX Subsection "EIND and Devices with More Than 128 Ki Bytes of Flash"
  20000. .PP
  20001. Pointers in the implementation are 16 bits wide.
  20002. The address of a function or label is represented as word address so
  20003. that indirect jumps and calls can target any code address in the
  20004. range of 64 Ki words.
  20005. .PP
  20006. In order to facilitate indirect jump on devices with more than 128 Ki
  20007. bytes of program memory space, there is a special function register called
  20008. \&\f(CW\*(C`EIND\*(C'\fR that serves as most significant part of the target address
  20009. when \f(CW\*(C`EICALL\*(C'\fR or \f(CW\*(C`EIJMP\*(C'\fR instructions are used.
  20010. .PP
  20011. Indirect jumps and calls on these devices are handled as follows by
  20012. the compiler and are subject to some limitations:
  20013. .IP "*" 4
  20014. The compiler never sets \f(CW\*(C`EIND\*(C'\fR.
  20015. .IP "*" 4
  20016. The compiler uses \f(CW\*(C`EIND\*(C'\fR implicitly in \f(CW\*(C`EICALL\*(C'\fR/\f(CW\*(C`EIJMP\*(C'\fR
  20017. instructions or might read \f(CW\*(C`EIND\*(C'\fR directly in order to emulate an
  20018. indirect call/jump by means of a \f(CW\*(C`RET\*(C'\fR instruction.
  20019. .IP "*" 4
  20020. The compiler assumes that \f(CW\*(C`EIND\*(C'\fR never changes during the startup
  20021. code or during the application. In particular, \f(CW\*(C`EIND\*(C'\fR is not
  20022. saved/restored in function or interrupt service routine
  20023. prologue/epilogue.
  20024. .IP "*" 4
  20025. For indirect calls to functions and computed goto, the linker
  20026. generates \fIstubs\fR. Stubs are jump pads sometimes also called
  20027. \&\fItrampolines\fR. Thus, the indirect call/jump jumps to such a stub.
  20028. The stub contains a direct jump to the desired address.
  20029. .IP "*" 4
  20030. Linker relaxation must be turned on so that the linker generates
  20031. the stubs correctly in all situations. See the compiler option
  20032. \&\fB\-mrelax\fR and the linker option \fB\-\-relax\fR.
  20033. There are corner cases where the linker is supposed to generate stubs
  20034. but aborts without relaxation and without a helpful error message.
  20035. .IP "*" 4
  20036. The default linker script is arranged for code with \f(CW\*(C`EIND = 0\*(C'\fR.
  20037. If code is supposed to work for a setup with \f(CW\*(C`EIND != 0\*(C'\fR, a custom
  20038. linker script has to be used in order to place the sections whose
  20039. name start with \f(CW\*(C`.trampolines\*(C'\fR into the segment where \f(CW\*(C`EIND\*(C'\fR
  20040. points to.
  20041. .IP "*" 4
  20042. The startup code from libgcc never sets \f(CW\*(C`EIND\*(C'\fR.
  20043. Notice that startup code is a blend of code from libgcc and AVR-LibC.
  20044. For the impact of AVR-LibC on \f(CW\*(C`EIND\*(C'\fR, see the
  20045. AVR-LibC\ user\ manual (\f(CW\*(C`http://nongnu.org/avr\-libc/user\-manual/\*(C'\fR).
  20046. .IP "*" 4
  20047. It is legitimate for user-specific startup code to set up \f(CW\*(C`EIND\*(C'\fR
  20048. early, for example by means of initialization code located in
  20049. section \f(CW\*(C`.init3\*(C'\fR. Such code runs prior to general startup code
  20050. that initializes \s-1RAM\s0 and calls constructors, but after the bit
  20051. of startup code from AVR-LibC that sets \f(CW\*(C`EIND\*(C'\fR to the segment
  20052. where the vector table is located.
  20053. .Sp
  20054. .Vb 1
  20055. \& #include <avr/io.h>
  20056. \&
  20057. \& static void
  20058. \& _\|_attribute_\|_((section(".init3"),naked,used,no_instrument_function))
  20059. \& init3_set_eind (void)
  20060. \& {
  20061. \& _\|_asm volatile ("ldi r24,pm_hh8(_\|_trampolines_start)\en\et"
  20062. \& "out %i0,r24" :: "n" (&EIND) : "r24","memory");
  20063. \& }
  20064. .Ve
  20065. .Sp
  20066. The \f(CW\*(C`_\|_trampolines_start\*(C'\fR symbol is defined in the linker script.
  20067. .IP "*" 4
  20068. Stubs are generated automatically by the linker if
  20069. the following two conditions are met:
  20070. .RS 4
  20071. .ie n .IP "\-<The address of a label is taken by means of the ""gs"" modifier>" 4
  20072. .el .IP "\-<The address of a label is taken by means of the \f(CWgs\fR modifier>" 4
  20073. .IX Item "-<The address of a label is taken by means of the gs modifier>"
  20074. (short for \fIgenerate stubs\fR) like so:
  20075. .Sp
  20076. .Vb 2
  20077. \& LDI r24, lo8(gs(<func>))
  20078. \& LDI r25, hi8(gs(<func>))
  20079. .Ve
  20080. .IP "\-<The final location of that label is in a code segment>" 4
  20081. .IX Item "-<The final location of that label is in a code segment>"
  20082. \&\fIoutside\fR the segment where the stubs are located.
  20083. .RE
  20084. .RS 4
  20085. .RE
  20086. .IP "*" 4
  20087. The compiler emits such \f(CW\*(C`gs\*(C'\fR modifiers for code labels in the
  20088. following situations:
  20089. .RS 4
  20090. .IP "\-<Taking address of a function or code label.>" 4
  20091. .IX Item "-<Taking address of a function or code label.>"
  20092. .PD 0
  20093. .IP "\-<Computed goto.>" 4
  20094. .IX Item "-<Computed goto.>"
  20095. .IP "\-<If prologue-save function is used, see \fB\-mcall\-prologues\fR>" 4
  20096. .IX Item "-<If prologue-save function is used, see -mcall-prologues>"
  20097. .PD
  20098. command-line option.
  20099. .IP "\-<Switch/case dispatch tables. If you do not want such dispatch>" 4
  20100. .IX Item "-<Switch/case dispatch tables. If you do not want such dispatch>"
  20101. tables you can specify the \fB\-fno\-jump\-tables\fR command-line option.
  20102. .IP "\-<C and \*(C+ constructors/destructors called during startup/shutdown.>" 4
  20103. .IX Item "-<C and constructors/destructors called during startup/shutdown.>"
  20104. .PD 0
  20105. .ie n .IP "\-<If the tools hit a ""gs()"" modifier explained above.>" 4
  20106. .el .IP "\-<If the tools hit a \f(CWgs()\fR modifier explained above.>" 4
  20107. .IX Item "-<If the tools hit a gs() modifier explained above.>"
  20108. .RE
  20109. .RS 4
  20110. .RE
  20111. .IP "*" 4
  20112. .PD
  20113. Jumping to non-symbolic addresses like so is \fInot\fR supported:
  20114. .Sp
  20115. .Vb 5
  20116. \& int main (void)
  20117. \& {
  20118. \& /* Call function at word address 0x2 */
  20119. \& return ((int(*)(void)) 0x2)();
  20120. \& }
  20121. .Ve
  20122. .Sp
  20123. Instead, a stub has to be set up, i.e. the function has to be called
  20124. through a symbol (\f(CW\*(C`func_4\*(C'\fR in the example):
  20125. .Sp
  20126. .Vb 3
  20127. \& int main (void)
  20128. \& {
  20129. \& extern int func_4 (void);
  20130. \&
  20131. \& /* Call function at byte address 0x4 */
  20132. \& return func_4();
  20133. \& }
  20134. .Ve
  20135. .Sp
  20136. and the application be linked with \fB\-Wl,\-\-defsym,func_4=0x4\fR.
  20137. Alternatively, \f(CW\*(C`func_4\*(C'\fR can be defined in the linker script.
  20138. .PP
  20139. Handling of the \f(CW\*(C`RAMPD\*(C'\fR, \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR and \f(CW\*(C`RAMPZ\*(C'\fR Special Function Registers
  20140. .IX Subsection "Handling of the RAMPD, RAMPX, RAMPY and RAMPZ Special Function Registers"
  20141. .PP
  20142. Some \s-1AVR\s0 devices support memories larger than the 64 KiB range
  20143. that can be accessed with 16\-bit pointers. To access memory locations
  20144. outside this 64 KiB range, the content of a \f(CW\*(C`RAMP\*(C'\fR
  20145. register is used as high part of the address:
  20146. The \f(CW\*(C`X\*(C'\fR, \f(CW\*(C`Y\*(C'\fR, \f(CW\*(C`Z\*(C'\fR address register is concatenated
  20147. with the \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR, \f(CW\*(C`RAMPZ\*(C'\fR special function
  20148. register, respectively, to get a wide address. Similarly,
  20149. \&\f(CW\*(C`RAMPD\*(C'\fR is used together with direct addressing.
  20150. .IP "*" 4
  20151. The startup code initializes the \f(CW\*(C`RAMP\*(C'\fR special function
  20152. registers with zero.
  20153. .IP "*" 4
  20154. If a \fB\s-1AVR\s0 Named Address Spaces,named address space\fR other than
  20155. generic or \f(CW\*(C`_\|_flash\*(C'\fR is used, then \f(CW\*(C`RAMPZ\*(C'\fR is set
  20156. as needed before the operation.
  20157. .IP "*" 4
  20158. If the device supports \s-1RAM\s0 larger than 64 KiB and the compiler
  20159. needs to change \f(CW\*(C`RAMPZ\*(C'\fR to accomplish an operation, \f(CW\*(C`RAMPZ\*(C'\fR
  20160. is reset to zero after the operation.
  20161. .IP "*" 4
  20162. If the device comes with a specific \f(CW\*(C`RAMP\*(C'\fR register, the \s-1ISR\s0
  20163. prologue/epilogue saves/restores that \s-1SFR\s0 and initializes it with
  20164. zero in case the \s-1ISR\s0 code might (implicitly) use it.
  20165. .IP "*" 4
  20166. \&\s-1RAM\s0 larger than 64 KiB is not supported by \s-1GCC\s0 for \s-1AVR\s0 targets.
  20167. If you use inline assembler to read from locations outside the
  20168. 16\-bit address range and change one of the \f(CW\*(C`RAMP\*(C'\fR registers,
  20169. you must reset it to zero after the access.
  20170. .PP
  20171. \s-1AVR\s0 Built-in Macros
  20172. .IX Subsection "AVR Built-in Macros"
  20173. .PP
  20174. \&\s-1GCC\s0 defines several built-in macros so that the user code can test
  20175. for the presence or absence of features. Almost any of the following
  20176. built-in macros are deduced from device capabilities and thus
  20177. triggered by the \fB\-mmcu=\fR command-line option.
  20178. .PP
  20179. For even more AVR-specific built-in macros see
  20180. \&\fB\s-1AVR\s0 Named Address Spaces\fR and \fB\s-1AVR\s0 Built-in Functions\fR.
  20181. .ie n .IP """_\|_AVR_ARCH_\|_""" 4
  20182. .el .IP "\f(CW_\|_AVR_ARCH_\|_\fR" 4
  20183. .IX Item "__AVR_ARCH__"
  20184. Build-in macro that resolves to a decimal number that identifies the
  20185. architecture and depends on the \fB\-mmcu=\fR\fImcu\fR option.
  20186. Possible values are:
  20187. .Sp
  20188. \&\f(CW2\fR, \f(CW25\fR, \f(CW3\fR, \f(CW31\fR, \f(CW35\fR,
  20189. \&\f(CW4\fR, \f(CW5\fR, \f(CW51\fR, \f(CW6\fR
  20190. .Sp
  20191. for \fImcu\fR=\f(CW\*(C`avr2\*(C'\fR, \f(CW\*(C`avr25\*(C'\fR, \f(CW\*(C`avr3\*(C'\fR, \f(CW\*(C`avr31\*(C'\fR,
  20192. \&\f(CW\*(C`avr35\*(C'\fR, \f(CW\*(C`avr4\*(C'\fR, \f(CW\*(C`avr5\*(C'\fR, \f(CW\*(C`avr51\*(C'\fR, \f(CW\*(C`avr6\*(C'\fR,
  20193. .Sp
  20194. respectively and
  20195. .Sp
  20196. \&\f(CW100\fR,
  20197. \&\f(CW102\fR, \f(CW103\fR, \f(CW104\fR,
  20198. \&\f(CW105\fR, \f(CW106\fR, \f(CW107\fR
  20199. .Sp
  20200. for \fImcu\fR=\f(CW\*(C`avrtiny\*(C'\fR,
  20201. \&\f(CW\*(C`avrxmega2\*(C'\fR, \f(CW\*(C`avrxmega3\*(C'\fR, \f(CW\*(C`avrxmega4\*(C'\fR,
  20202. \&\f(CW\*(C`avrxmega5\*(C'\fR, \f(CW\*(C`avrxmega6\*(C'\fR, \f(CW\*(C`avrxmega7\*(C'\fR, respectively.
  20203. If \fImcu\fR specifies a device, this built-in macro is set
  20204. accordingly. For example, with \fB\-mmcu=atmega8\fR the macro is
  20205. defined to \f(CW4\fR.
  20206. .ie n .IP """_\|_AVR_\fIDevice\fP_\|_""" 4
  20207. .el .IP "\f(CW_\|_AVR_\f(CIDevice\f(CW_\|_\fR" 4
  20208. .IX Item "__AVR_Device__"
  20209. Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro which reflects
  20210. the device's name. For example, \fB\-mmcu=atmega8\fR defines the
  20211. built-in macro \f(CW\*(C`_\|_AVR_ATmega8_\|_\*(C'\fR, \fB\-mmcu=attiny261a\fR defines
  20212. \&\f(CW\*(C`_\|_AVR_ATtiny261A_\|_\*(C'\fR, etc.
  20213. .Sp
  20214. The built-in macros' names follow
  20215. the scheme \f(CW\*(C`_\|_AVR_\f(CIDevice\f(CW_\|_\*(C'\fR where \fIDevice\fR is
  20216. the device name as from the \s-1AVR\s0 user manual. The difference between
  20217. \&\fIDevice\fR in the built-in macro and \fIdevice\fR in
  20218. \&\fB\-mmcu=\fR\fIdevice\fR is that the latter is always lowercase.
  20219. .Sp
  20220. If \fIdevice\fR is not a device but only a core architecture like
  20221. \&\fBavr51\fR, this macro is not defined.
  20222. .ie n .IP """_\|_AVR_DEVICE_NAME_\|_""" 4
  20223. .el .IP "\f(CW_\|_AVR_DEVICE_NAME_\|_\fR" 4
  20224. .IX Item "__AVR_DEVICE_NAME__"
  20225. Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro to
  20226. the device's name. For example, with \fB\-mmcu=atmega8\fR the macro
  20227. is defined to \f(CW\*(C`atmega8\*(C'\fR.
  20228. .Sp
  20229. If \fIdevice\fR is not a device but only a core architecture like
  20230. \&\fBavr51\fR, this macro is not defined.
  20231. .ie n .IP """_\|_AVR_XMEGA_\|_""" 4
  20232. .el .IP "\f(CW_\|_AVR_XMEGA_\|_\fR" 4
  20233. .IX Item "__AVR_XMEGA__"
  20234. The device / architecture belongs to the \s-1XMEGA\s0 family of devices.
  20235. .ie n .IP """_\|_AVR_HAVE_ELPM_\|_""" 4
  20236. .el .IP "\f(CW_\|_AVR_HAVE_ELPM_\|_\fR" 4
  20237. .IX Item "__AVR_HAVE_ELPM__"
  20238. The device has the \f(CW\*(C`ELPM\*(C'\fR instruction.
  20239. .ie n .IP """_\|_AVR_HAVE_ELPMX_\|_""" 4
  20240. .el .IP "\f(CW_\|_AVR_HAVE_ELPMX_\|_\fR" 4
  20241. .IX Item "__AVR_HAVE_ELPMX__"
  20242. The device has the \f(CW\*(C`ELPM R\f(CIn\f(CW,Z\*(C'\fR and \f(CW\*(C`ELPM
  20243. R\f(CIn\f(CW,Z+\*(C'\fR instructions.
  20244. .ie n .IP """_\|_AVR_HAVE_MOVW_\|_""" 4
  20245. .el .IP "\f(CW_\|_AVR_HAVE_MOVW_\|_\fR" 4
  20246. .IX Item "__AVR_HAVE_MOVW__"
  20247. The device has the \f(CW\*(C`MOVW\*(C'\fR instruction to perform 16\-bit
  20248. register-register moves.
  20249. .ie n .IP """_\|_AVR_HAVE_LPMX_\|_""" 4
  20250. .el .IP "\f(CW_\|_AVR_HAVE_LPMX_\|_\fR" 4
  20251. .IX Item "__AVR_HAVE_LPMX__"
  20252. The device has the \f(CW\*(C`LPM R\f(CIn\f(CW,Z\*(C'\fR and
  20253. \&\f(CW\*(C`LPM R\f(CIn\f(CW,Z+\*(C'\fR instructions.
  20254. .ie n .IP """_\|_AVR_HAVE_MUL_\|_""" 4
  20255. .el .IP "\f(CW_\|_AVR_HAVE_MUL_\|_\fR" 4
  20256. .IX Item "__AVR_HAVE_MUL__"
  20257. The device has a hardware multiplier.
  20258. .ie n .IP """_\|_AVR_HAVE_JMP_CALL_\|_""" 4
  20259. .el .IP "\f(CW_\|_AVR_HAVE_JMP_CALL_\|_\fR" 4
  20260. .IX Item "__AVR_HAVE_JMP_CALL__"
  20261. The device has the \f(CW\*(C`JMP\*(C'\fR and \f(CW\*(C`CALL\*(C'\fR instructions.
  20262. This is the case for devices with more than 8 KiB of program
  20263. memory.
  20264. .ie n .IP """_\|_AVR_HAVE_EIJMP_EICALL_\|_""" 4
  20265. .el .IP "\f(CW_\|_AVR_HAVE_EIJMP_EICALL_\|_\fR" 4
  20266. .IX Item "__AVR_HAVE_EIJMP_EICALL__"
  20267. .PD 0
  20268. .ie n .IP """_\|_AVR_3_BYTE_PC_\|_""" 4
  20269. .el .IP "\f(CW_\|_AVR_3_BYTE_PC_\|_\fR" 4
  20270. .IX Item "__AVR_3_BYTE_PC__"
  20271. .PD
  20272. The device has the \f(CW\*(C`EIJMP\*(C'\fR and \f(CW\*(C`EICALL\*(C'\fR instructions.
  20273. This is the case for devices with more than 128 KiB of program memory.
  20274. This also means that the program counter
  20275. (\s-1PC\s0) is 3 bytes wide.
  20276. .ie n .IP """_\|_AVR_2_BYTE_PC_\|_""" 4
  20277. .el .IP "\f(CW_\|_AVR_2_BYTE_PC_\|_\fR" 4
  20278. .IX Item "__AVR_2_BYTE_PC__"
  20279. The program counter (\s-1PC\s0) is 2 bytes wide. This is the case for devices
  20280. with up to 128 KiB of program memory.
  20281. .ie n .IP """_\|_AVR_HAVE_8BIT_SP_\|_""" 4
  20282. .el .IP "\f(CW_\|_AVR_HAVE_8BIT_SP_\|_\fR" 4
  20283. .IX Item "__AVR_HAVE_8BIT_SP__"
  20284. .PD 0
  20285. .ie n .IP """_\|_AVR_HAVE_16BIT_SP_\|_""" 4
  20286. .el .IP "\f(CW_\|_AVR_HAVE_16BIT_SP_\|_\fR" 4
  20287. .IX Item "__AVR_HAVE_16BIT_SP__"
  20288. .PD
  20289. The stack pointer (\s-1SP\s0) register is treated as 8\-bit respectively
  20290. 16\-bit register by the compiler.
  20291. The definition of these macros is affected by \fB\-mtiny\-stack\fR.
  20292. .ie n .IP """_\|_AVR_HAVE_SPH_\|_""" 4
  20293. .el .IP "\f(CW_\|_AVR_HAVE_SPH_\|_\fR" 4
  20294. .IX Item "__AVR_HAVE_SPH__"
  20295. .PD 0
  20296. .ie n .IP """_\|_AVR_SP8_\|_""" 4
  20297. .el .IP "\f(CW_\|_AVR_SP8_\|_\fR" 4
  20298. .IX Item "__AVR_SP8__"
  20299. .PD
  20300. The device has the \s-1SPH\s0 (high part of stack pointer) special function
  20301. register or has an 8\-bit stack pointer, respectively.
  20302. The definition of these macros is affected by \fB\-mmcu=\fR and
  20303. in the cases of \fB\-mmcu=avr2\fR and \fB\-mmcu=avr25\fR also
  20304. by \fB\-msp8\fR.
  20305. .ie n .IP """_\|_AVR_HAVE_RAMPD_\|_""" 4
  20306. .el .IP "\f(CW_\|_AVR_HAVE_RAMPD_\|_\fR" 4
  20307. .IX Item "__AVR_HAVE_RAMPD__"
  20308. .PD 0
  20309. .ie n .IP """_\|_AVR_HAVE_RAMPX_\|_""" 4
  20310. .el .IP "\f(CW_\|_AVR_HAVE_RAMPX_\|_\fR" 4
  20311. .IX Item "__AVR_HAVE_RAMPX__"
  20312. .ie n .IP """_\|_AVR_HAVE_RAMPY_\|_""" 4
  20313. .el .IP "\f(CW_\|_AVR_HAVE_RAMPY_\|_\fR" 4
  20314. .IX Item "__AVR_HAVE_RAMPY__"
  20315. .ie n .IP """_\|_AVR_HAVE_RAMPZ_\|_""" 4
  20316. .el .IP "\f(CW_\|_AVR_HAVE_RAMPZ_\|_\fR" 4
  20317. .IX Item "__AVR_HAVE_RAMPZ__"
  20318. .PD
  20319. The device has the \f(CW\*(C`RAMPD\*(C'\fR, \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR,
  20320. \&\f(CW\*(C`RAMPZ\*(C'\fR special function register, respectively.
  20321. .ie n .IP """_\|_NO_INTERRUPTS_\|_""" 4
  20322. .el .IP "\f(CW_\|_NO_INTERRUPTS_\|_\fR" 4
  20323. .IX Item "__NO_INTERRUPTS__"
  20324. This macro reflects the \fB\-mno\-interrupts\fR command-line option.
  20325. .ie n .IP """_\|_AVR_ERRATA_SKIP_\|_""" 4
  20326. .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_\|_\fR" 4
  20327. .IX Item "__AVR_ERRATA_SKIP__"
  20328. .PD 0
  20329. .ie n .IP """_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_""" 4
  20330. .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_\fR" 4
  20331. .IX Item "__AVR_ERRATA_SKIP_JMP_CALL__"
  20332. .PD
  20333. Some \s-1AVR\s0 devices (\s-1AT90S8515,\s0 ATmega103) must not skip 32\-bit
  20334. instructions because of a hardware erratum. Skip instructions are
  20335. \&\f(CW\*(C`SBRS\*(C'\fR, \f(CW\*(C`SBRC\*(C'\fR, \f(CW\*(C`SBIS\*(C'\fR, \f(CW\*(C`SBIC\*(C'\fR and \f(CW\*(C`CPSE\*(C'\fR.
  20336. The second macro is only defined if \f(CW\*(C`_\|_AVR_HAVE_JMP_CALL_\|_\*(C'\fR is also
  20337. set.
  20338. .ie n .IP """_\|_AVR_ISA_RMW_\|_""" 4
  20339. .el .IP "\f(CW_\|_AVR_ISA_RMW_\|_\fR" 4
  20340. .IX Item "__AVR_ISA_RMW__"
  20341. The device has Read-Modify-Write instructions (\s-1XCH, LAC, LAS\s0 and \s-1LAT\s0).
  20342. .ie n .IP """_\|_AVR_SFR_OFFSET_\|_=\fIoffset\fP""" 4
  20343. .el .IP "\f(CW_\|_AVR_SFR_OFFSET_\|_=\f(CIoffset\f(CW\fR" 4
  20344. .IX Item "__AVR_SFR_OFFSET__=offset"
  20345. Instructions that can address I/O special function registers directly
  20346. like \f(CW\*(C`IN\*(C'\fR, \f(CW\*(C`OUT\*(C'\fR, \f(CW\*(C`SBI\*(C'\fR, etc. may use a different
  20347. address as if addressed by an instruction to access \s-1RAM\s0 like \f(CW\*(C`LD\*(C'\fR
  20348. or \f(CW\*(C`STS\*(C'\fR. This offset depends on the device architecture and has
  20349. to be subtracted from the \s-1RAM\s0 address in order to get the
  20350. respective I/O address.
  20351. .ie n .IP """_\|_AVR_SHORT_CALLS_\|_""" 4
  20352. .el .IP "\f(CW_\|_AVR_SHORT_CALLS_\|_\fR" 4
  20353. .IX Item "__AVR_SHORT_CALLS__"
  20354. The \fB\-mshort\-calls\fR command line option is set.
  20355. .ie n .IP """_\|_AVR_PM_BASE_ADDRESS_\|_=\fIaddr\fP""" 4
  20356. .el .IP "\f(CW_\|_AVR_PM_BASE_ADDRESS_\|_=\f(CIaddr\f(CW\fR" 4
  20357. .IX Item "__AVR_PM_BASE_ADDRESS__=addr"
  20358. Some devices support reading from flash memory by means of \f(CW\*(C`LD*\*(C'\fR
  20359. instructions. The flash memory is seen in the data address space
  20360. at an offset of \f(CW\*(C`_\|_AVR_PM_BASE_ADDRESS_\|_\*(C'\fR. If this macro
  20361. is not defined, this feature is not available. If defined,
  20362. the address space is linear and there is no need to put
  20363. \&\f(CW\*(C`.rodata\*(C'\fR into \s-1RAM.\s0 This is handled by the default linker
  20364. description file, and is currently available for
  20365. \&\f(CW\*(C`avrtiny\*(C'\fR and \f(CW\*(C`avrxmega3\*(C'\fR. Even more convenient,
  20366. there is no need to use address spaces like \f(CW\*(C`_\|_flash\*(C'\fR or
  20367. features like attribute \f(CW\*(C`progmem\*(C'\fR and \f(CW\*(C`pgm_read_*\*(C'\fR.
  20368. .ie n .IP """_\|_WITH_AVRLIBC_\|_""" 4
  20369. .el .IP "\f(CW_\|_WITH_AVRLIBC_\|_\fR" 4
  20370. .IX Item "__WITH_AVRLIBC__"
  20371. The compiler is configured to be used together with AVR-Libc.
  20372. See the \fB\-\-with\-avrlibc\fR configure option.
  20373. .ie n .IP """_\|_HAVE_DOUBLE_MULTILIB_\|_""" 4
  20374. .el .IP "\f(CW_\|_HAVE_DOUBLE_MULTILIB_\|_\fR" 4
  20375. .IX Item "__HAVE_DOUBLE_MULTILIB__"
  20376. Defined if \fB\-mdouble=\fR acts as a multilib option.
  20377. .ie n .IP """_\|_HAVE_DOUBLE32_\|_""" 4
  20378. .el .IP "\f(CW_\|_HAVE_DOUBLE32_\|_\fR" 4
  20379. .IX Item "__HAVE_DOUBLE32__"
  20380. .PD 0
  20381. .ie n .IP """_\|_HAVE_DOUBLE64_\|_""" 4
  20382. .el .IP "\f(CW_\|_HAVE_DOUBLE64_\|_\fR" 4
  20383. .IX Item "__HAVE_DOUBLE64__"
  20384. .PD
  20385. Defined if the compiler supports 32\-bit double resp. 64\-bit double.
  20386. The actual layout is specified by option \fB\-mdouble=\fR.
  20387. .ie n .IP """_\|_DEFAULT_DOUBLE_\|_""" 4
  20388. .el .IP "\f(CW_\|_DEFAULT_DOUBLE_\|_\fR" 4
  20389. .IX Item "__DEFAULT_DOUBLE__"
  20390. The size in bits of \f(CW\*(C`double\*(C'\fR if \fB\-mdouble=\fR is not set.
  20391. To test the layout of \f(CW\*(C`double\*(C'\fR in a program, use the built-in
  20392. macro \f(CW\*(C`_\|_SIZEOF_DOUBLE_\|_\*(C'\fR.
  20393. .ie n .IP """_\|_HAVE_LONG_DOUBLE32_\|_""" 4
  20394. .el .IP "\f(CW_\|_HAVE_LONG_DOUBLE32_\|_\fR" 4
  20395. .IX Item "__HAVE_LONG_DOUBLE32__"
  20396. .PD 0
  20397. .ie n .IP """_\|_HAVE_LONG_DOUBLE64_\|_""" 4
  20398. .el .IP "\f(CW_\|_HAVE_LONG_DOUBLE64_\|_\fR" 4
  20399. .IX Item "__HAVE_LONG_DOUBLE64__"
  20400. .ie n .IP """_\|_HAVE_LONG_DOUBLE_MULTILIB_\|_""" 4
  20401. .el .IP "\f(CW_\|_HAVE_LONG_DOUBLE_MULTILIB_\|_\fR" 4
  20402. .IX Item "__HAVE_LONG_DOUBLE_MULTILIB__"
  20403. .ie n .IP """_\|_DEFAULT_LONG_DOUBLE_\|_""" 4
  20404. .el .IP "\f(CW_\|_DEFAULT_LONG_DOUBLE_\|_\fR" 4
  20405. .IX Item "__DEFAULT_LONG_DOUBLE__"
  20406. .PD
  20407. Same as above, but for \f(CW\*(C`long double\*(C'\fR instead of \f(CW\*(C`double\*(C'\fR.
  20408. .ie n .IP """_\|_WITH_DOUBLE_COMPARISON_\|_""" 4
  20409. .el .IP "\f(CW_\|_WITH_DOUBLE_COMPARISON_\|_\fR" 4
  20410. .IX Item "__WITH_DOUBLE_COMPARISON__"
  20411. Reflects the \f(CW\*(C`\-\-with\-double\-comparison={tristate|bool|libf7}\*(C'\fR
  20412. configure\ option (\f(CW\*(C`https://gcc.gnu.org/install/configure.html#avr\*(C'\fR)
  20413. and is defined to \f(CW2\fR or \f(CW3\fR.
  20414. .ie n .IP """_\|_WITH_LIBF7_LIBGCC_\|_""" 4
  20415. .el .IP "\f(CW_\|_WITH_LIBF7_LIBGCC_\|_\fR" 4
  20416. .IX Item "__WITH_LIBF7_LIBGCC__"
  20417. .PD 0
  20418. .ie n .IP """_\|_WITH_LIBF7_MATH_\|_""" 4
  20419. .el .IP "\f(CW_\|_WITH_LIBF7_MATH_\|_\fR" 4
  20420. .IX Item "__WITH_LIBF7_MATH__"
  20421. .ie n .IP """_\|_WITH_LIBF7_MATH_SYMBOLS_\|_""" 4
  20422. .el .IP "\f(CW_\|_WITH_LIBF7_MATH_SYMBOLS_\|_\fR" 4
  20423. .IX Item "__WITH_LIBF7_MATH_SYMBOLS__"
  20424. .PD
  20425. Reflects the \f(CW\*(C`\-\-with\-libf7={libgcc|math|math\-symbols}\*(C'\fR
  20426. configure\ option (\f(CW\*(C`https://gcc.gnu.org/install/configure.html#avr\*(C'\fR).
  20427. .PP
  20428. \fIBlackfin Options\fR
  20429. .IX Subsection "Blackfin Options"
  20430. .IP "\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR]" 4
  20431. .IX Item "-mcpu=cpu[-sirevision]"
  20432. Specifies the name of the target Blackfin processor. Currently, \fIcpu\fR
  20433. can be one of \fBbf512\fR, \fBbf514\fR, \fBbf516\fR, \fBbf518\fR,
  20434. \&\fBbf522\fR, \fBbf523\fR, \fBbf524\fR, \fBbf525\fR, \fBbf526\fR,
  20435. \&\fBbf527\fR, \fBbf531\fR, \fBbf532\fR, \fBbf533\fR,
  20436. \&\fBbf534\fR, \fBbf536\fR, \fBbf537\fR, \fBbf538\fR, \fBbf539\fR,
  20437. \&\fBbf542\fR, \fBbf544\fR, \fBbf547\fR, \fBbf548\fR, \fBbf549\fR,
  20438. \&\fBbf542m\fR, \fBbf544m\fR, \fBbf547m\fR, \fBbf548m\fR, \fBbf549m\fR,
  20439. \&\fBbf561\fR, \fBbf592\fR.
  20440. .Sp
  20441. The optional \fIsirevision\fR specifies the silicon revision of the target
  20442. Blackfin processor. Any workarounds available for the targeted silicon revision
  20443. are enabled. If \fIsirevision\fR is \fBnone\fR, no workarounds are enabled.
  20444. If \fIsirevision\fR is \fBany\fR, all workarounds for the targeted processor
  20445. are enabled. The \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR macro is defined to two
  20446. hexadecimal digits representing the major and minor numbers in the silicon
  20447. revision. If \fIsirevision\fR is \fBnone\fR, the \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR
  20448. is not defined. If \fIsirevision\fR is \fBany\fR, the
  20449. \&\f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR is defined to be \f(CW0xffff\fR.
  20450. If this optional \fIsirevision\fR is not used, \s-1GCC\s0 assumes the latest known
  20451. silicon revision of the targeted Blackfin processor.
  20452. .Sp
  20453. \&\s-1GCC\s0 defines a preprocessor macro for the specified \fIcpu\fR.
  20454. For the \fBbfin-elf\fR toolchain, this option causes the hardware \s-1BSP\s0
  20455. provided by libgloss to be linked in if \fB\-msim\fR is not given.
  20456. .Sp
  20457. Without this option, \fBbf532\fR is used as the processor by default.
  20458. .Sp
  20459. Note that support for \fBbf561\fR is incomplete. For \fBbf561\fR,
  20460. only the preprocessor macro is defined.
  20461. .IP "\fB\-msim\fR" 4
  20462. .IX Item "-msim"
  20463. Specifies that the program will be run on the simulator. This causes
  20464. the simulator \s-1BSP\s0 provided by libgloss to be linked in. This option
  20465. has effect only for \fBbfin-elf\fR toolchain.
  20466. Certain other options, such as \fB\-mid\-shared\-library\fR and
  20467. \&\fB\-mfdpic\fR, imply \fB\-msim\fR.
  20468. .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
  20469. .IX Item "-momit-leaf-frame-pointer"
  20470. Don't keep the frame pointer in a register for leaf functions. This
  20471. avoids the instructions to save, set up and restore frame pointers and
  20472. makes an extra register available in leaf functions.
  20473. .IP "\fB\-mspecld\-anomaly\fR" 4
  20474. .IX Item "-mspecld-anomaly"
  20475. When enabled, the compiler ensures that the generated code does not
  20476. contain speculative loads after jump instructions. If this option is used,
  20477. \&\f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_LOADS\*(C'\fR is defined.
  20478. .IP "\fB\-mno\-specld\-anomaly\fR" 4
  20479. .IX Item "-mno-specld-anomaly"
  20480. Don't generate extra code to prevent speculative loads from occurring.
  20481. .IP "\fB\-mcsync\-anomaly\fR" 4
  20482. .IX Item "-mcsync-anomaly"
  20483. When enabled, the compiler ensures that the generated code does not
  20484. contain \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions too soon after conditional branches.
  20485. If this option is used, \f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_SYNCS\*(C'\fR is defined.
  20486. .IP "\fB\-mno\-csync\-anomaly\fR" 4
  20487. .IX Item "-mno-csync-anomaly"
  20488. Don't generate extra code to prevent \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions from
  20489. occurring too soon after a conditional branch.
  20490. .IP "\fB\-mlow64k\fR" 4
  20491. .IX Item "-mlow64k"
  20492. When enabled, the compiler is free to take advantage of the knowledge that
  20493. the entire program fits into the low 64k of memory.
  20494. .IP "\fB\-mno\-low64k\fR" 4
  20495. .IX Item "-mno-low64k"
  20496. Assume that the program is arbitrarily large. This is the default.
  20497. .IP "\fB\-mstack\-check\-l1\fR" 4
  20498. .IX Item "-mstack-check-l1"
  20499. Do stack checking using information placed into L1 scratchpad memory by the
  20500. uClinux kernel.
  20501. .IP "\fB\-mid\-shared\-library\fR" 4
  20502. .IX Item "-mid-shared-library"
  20503. Generate code that supports shared libraries via the library \s-1ID\s0 method.
  20504. This allows for execute in place and shared libraries in an environment
  20505. without virtual memory management. This option implies \fB\-fPIC\fR.
  20506. With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
  20507. .IP "\fB\-mno\-id\-shared\-library\fR" 4
  20508. .IX Item "-mno-id-shared-library"
  20509. Generate code that doesn't assume ID-based shared libraries are being used.
  20510. This is the default.
  20511. .IP "\fB\-mleaf\-id\-shared\-library\fR" 4
  20512. .IX Item "-mleaf-id-shared-library"
  20513. Generate code that supports shared libraries via the library \s-1ID\s0 method,
  20514. but assumes that this library or executable won't link against any other
  20515. \&\s-1ID\s0 shared libraries. That allows the compiler to use faster code for jumps
  20516. and calls.
  20517. .IP "\fB\-mno\-leaf\-id\-shared\-library\fR" 4
  20518. .IX Item "-mno-leaf-id-shared-library"
  20519. Do not assume that the code being compiled won't link against any \s-1ID\s0 shared
  20520. libraries. Slower code is generated for jump and call insns.
  20521. .IP "\fB\-mshared\-library\-id=n\fR" 4
  20522. .IX Item "-mshared-library-id=n"
  20523. Specifies the identification number of the ID-based shared library being
  20524. compiled. Specifying a value of 0 generates more compact code; specifying
  20525. other values forces the allocation of that number to the current
  20526. library but is no more space\- or time-efficient than omitting this option.
  20527. .IP "\fB\-msep\-data\fR" 4
  20528. .IX Item "-msep-data"
  20529. Generate code that allows the data segment to be located in a different
  20530. area of memory from the text segment. This allows for execute in place in
  20531. an environment without virtual memory management by eliminating relocations
  20532. against the text section.
  20533. .IP "\fB\-mno\-sep\-data\fR" 4
  20534. .IX Item "-mno-sep-data"
  20535. Generate code that assumes that the data segment follows the text segment.
  20536. This is the default.
  20537. .IP "\fB\-mlong\-calls\fR" 4
  20538. .IX Item "-mlong-calls"
  20539. .PD 0
  20540. .IP "\fB\-mno\-long\-calls\fR" 4
  20541. .IX Item "-mno-long-calls"
  20542. .PD
  20543. Tells the compiler to perform function calls by first loading the
  20544. address of the function into a register and then performing a subroutine
  20545. call on this register. This switch is needed if the target function
  20546. lies outside of the 24\-bit addressing range of the offset-based
  20547. version of subroutine call instruction.
  20548. .Sp
  20549. This feature is not enabled by default. Specifying
  20550. \&\fB\-mno\-long\-calls\fR restores the default behavior. Note these
  20551. switches have no effect on how the compiler generates code to handle
  20552. function calls via function pointers.
  20553. .IP "\fB\-mfast\-fp\fR" 4
  20554. .IX Item "-mfast-fp"
  20555. Link with the fast floating-point library. This library relaxes some of
  20556. the \s-1IEEE\s0 floating-point standard's rules for checking inputs against
  20557. Not-a-Number (\s-1NAN\s0), in the interest of performance.
  20558. .IP "\fB\-minline\-plt\fR" 4
  20559. .IX Item "-minline-plt"
  20560. Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
  20561. not known to bind locally. It has no effect without \fB\-mfdpic\fR.
  20562. .IP "\fB\-mmulticore\fR" 4
  20563. .IX Item "-mmulticore"
  20564. Build a standalone application for multicore Blackfin processors.
  20565. This option causes proper start files and link scripts supporting
  20566. multicore to be used, and defines the macro \f(CW\*(C`_\|_BFIN_MULTICORE\*(C'\fR.
  20567. It can only be used with \fB\-mcpu=bf561\fR[\fB\-\fR\fIsirevision\fR].
  20568. .Sp
  20569. This option can be used with \fB\-mcorea\fR or \fB\-mcoreb\fR, which
  20570. selects the one-application-per-core programming model. Without
  20571. \&\fB\-mcorea\fR or \fB\-mcoreb\fR, the single\-application/dual\-core
  20572. programming model is used. In this model, the main function of Core B
  20573. should be named as \f(CW\*(C`coreb_main\*(C'\fR.
  20574. .Sp
  20575. If this option is not used, the single-core application programming
  20576. model is used.
  20577. .IP "\fB\-mcorea\fR" 4
  20578. .IX Item "-mcorea"
  20579. Build a standalone application for Core A of \s-1BF561\s0 when using
  20580. the one-application-per-core programming model. Proper start files
  20581. and link scripts are used to support Core A, and the macro
  20582. \&\f(CW\*(C`_\|_BFIN_COREA\*(C'\fR is defined.
  20583. This option can only be used in conjunction with \fB\-mmulticore\fR.
  20584. .IP "\fB\-mcoreb\fR" 4
  20585. .IX Item "-mcoreb"
  20586. Build a standalone application for Core B of \s-1BF561\s0 when using
  20587. the one-application-per-core programming model. Proper start files
  20588. and link scripts are used to support Core B, and the macro
  20589. \&\f(CW\*(C`_\|_BFIN_COREB\*(C'\fR is defined. When this option is used, \f(CW\*(C`coreb_main\*(C'\fR
  20590. should be used instead of \f(CW\*(C`main\*(C'\fR.
  20591. This option can only be used in conjunction with \fB\-mmulticore\fR.
  20592. .IP "\fB\-msdram\fR" 4
  20593. .IX Item "-msdram"
  20594. Build a standalone application for \s-1SDRAM.\s0 Proper start files and
  20595. link scripts are used to put the application into \s-1SDRAM,\s0 and the macro
  20596. \&\f(CW\*(C`_\|_BFIN_SDRAM\*(C'\fR is defined.
  20597. The loader should initialize \s-1SDRAM\s0 before loading the application.
  20598. .IP "\fB\-micplb\fR" 4
  20599. .IX Item "-micplb"
  20600. Assume that ICPLBs are enabled at run time. This has an effect on certain
  20601. anomaly workarounds. For Linux targets, the default is to assume ICPLBs
  20602. are enabled; for standalone applications the default is off.
  20603. .PP
  20604. \fIC6X Options\fR
  20605. .IX Subsection "C6X Options"
  20606. .IP "\fB\-march=\fR\fIname\fR" 4
  20607. .IX Item "-march=name"
  20608. This specifies the name of the target architecture. \s-1GCC\s0 uses this
  20609. name to determine what kind of instructions it can emit when generating
  20610. assembly code. Permissible names are: \fBc62x\fR,
  20611. \&\fBc64x\fR, \fBc64x+\fR, \fBc67x\fR, \fBc67x+\fR, \fBc674x\fR.
  20612. .IP "\fB\-mbig\-endian\fR" 4
  20613. .IX Item "-mbig-endian"
  20614. Generate code for a big-endian target.
  20615. .IP "\fB\-mlittle\-endian\fR" 4
  20616. .IX Item "-mlittle-endian"
  20617. Generate code for a little-endian target. This is the default.
  20618. .IP "\fB\-msim\fR" 4
  20619. .IX Item "-msim"
  20620. Choose startup files and linker script suitable for the simulator.
  20621. .IP "\fB\-msdata=default\fR" 4
  20622. .IX Item "-msdata=default"
  20623. Put small global and static data in the \f(CW\*(C`.neardata\*(C'\fR section,
  20624. which is pointed to by register \f(CW\*(C`B14\*(C'\fR. Put small uninitialized
  20625. global and static data in the \f(CW\*(C`.bss\*(C'\fR section, which is adjacent
  20626. to the \f(CW\*(C`.neardata\*(C'\fR section. Put small read-only data into the
  20627. \&\f(CW\*(C`.rodata\*(C'\fR section. The corresponding sections used for large
  20628. pieces of data are \f(CW\*(C`.fardata\*(C'\fR, \f(CW\*(C`.far\*(C'\fR and \f(CW\*(C`.const\*(C'\fR.
  20629. .IP "\fB\-msdata=all\fR" 4
  20630. .IX Item "-msdata=all"
  20631. Put all data, not just small objects, into the sections reserved for
  20632. small data, and use addressing relative to the \f(CW\*(C`B14\*(C'\fR register to
  20633. access them.
  20634. .IP "\fB\-msdata=none\fR" 4
  20635. .IX Item "-msdata=none"
  20636. Make no use of the sections reserved for small data, and use absolute
  20637. addresses to access all data. Put all initialized global and static
  20638. data in the \f(CW\*(C`.fardata\*(C'\fR section, and all uninitialized data in the
  20639. \&\f(CW\*(C`.far\*(C'\fR section. Put all constant data into the \f(CW\*(C`.const\*(C'\fR
  20640. section.
  20641. .PP
  20642. \fI\s-1CRIS\s0 Options\fR
  20643. .IX Subsection "CRIS Options"
  20644. .PP
  20645. These options are defined specifically for the \s-1CRIS\s0 ports.
  20646. .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
  20647. .IX Item "-march=architecture-type"
  20648. .PD 0
  20649. .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
  20650. .IX Item "-mcpu=architecture-type"
  20651. .PD
  20652. Generate code for the specified architecture. The choices for
  20653. \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
  20654. respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX.\s0
  20655. Default is \fBv0\fR except for cris-axis-linux-gnu, where the default is
  20656. \&\fBv10\fR.
  20657. .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
  20658. .IX Item "-mtune=architecture-type"
  20659. Tune to \fIarchitecture-type\fR everything applicable about the generated
  20660. code, except for the \s-1ABI\s0 and the set of available instructions. The
  20661. choices for \fIarchitecture-type\fR are the same as for
  20662. \&\fB\-march=\fR\fIarchitecture-type\fR.
  20663. .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
  20664. .IX Item "-mmax-stack-frame=n"
  20665. Warn when the stack frame of a function exceeds \fIn\fR bytes.
  20666. .IP "\fB\-metrax4\fR" 4
  20667. .IX Item "-metrax4"
  20668. .PD 0
  20669. .IP "\fB\-metrax100\fR" 4
  20670. .IX Item "-metrax100"
  20671. .PD
  20672. The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
  20673. \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
  20674. .IP "\fB\-mmul\-bug\-workaround\fR" 4
  20675. .IX Item "-mmul-bug-workaround"
  20676. .PD 0
  20677. .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
  20678. .IX Item "-mno-mul-bug-workaround"
  20679. .PD
  20680. Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
  20681. models where it applies. This option is active by default.
  20682. .IP "\fB\-mpdebug\fR" 4
  20683. .IX Item "-mpdebug"
  20684. Enable CRIS-specific verbose debug-related information in the assembly
  20685. code. This option also has the effect of turning off the \fB#NO_APP\fR
  20686. formatted-code indicator to the assembler at the beginning of the
  20687. assembly file.
  20688. .IP "\fB\-mcc\-init\fR" 4
  20689. .IX Item "-mcc-init"
  20690. Do not use condition-code results from previous instruction; always emit
  20691. compare and test instructions before use of condition codes.
  20692. .IP "\fB\-mno\-side\-effects\fR" 4
  20693. .IX Item "-mno-side-effects"
  20694. Do not emit instructions with side effects in addressing modes other than
  20695. post-increment.
  20696. .IP "\fB\-mstack\-align\fR" 4
  20697. .IX Item "-mstack-align"
  20698. .PD 0
  20699. .IP "\fB\-mno\-stack\-align\fR" 4
  20700. .IX Item "-mno-stack-align"
  20701. .IP "\fB\-mdata\-align\fR" 4
  20702. .IX Item "-mdata-align"
  20703. .IP "\fB\-mno\-data\-align\fR" 4
  20704. .IX Item "-mno-data-align"
  20705. .IP "\fB\-mconst\-align\fR" 4
  20706. .IX Item "-mconst-align"
  20707. .IP "\fB\-mno\-const\-align\fR" 4
  20708. .IX Item "-mno-const-align"
  20709. .PD
  20710. These options (\fBno\-\fR options) arrange (eliminate arrangements) for the
  20711. stack frame, individual data and constants to be aligned for the maximum
  20712. single data access size for the chosen \s-1CPU\s0 model. The default is to
  20713. arrange for 32\-bit alignment. \s-1ABI\s0 details such as structure layout are
  20714. not affected by these options.
  20715. .IP "\fB\-m32\-bit\fR" 4
  20716. .IX Item "-m32-bit"
  20717. .PD 0
  20718. .IP "\fB\-m16\-bit\fR" 4
  20719. .IX Item "-m16-bit"
  20720. .IP "\fB\-m8\-bit\fR" 4
  20721. .IX Item "-m8-bit"
  20722. .PD
  20723. Similar to the stack\- data\- and const-align options above, these options
  20724. arrange for stack frame, writable data and constants to all be 32\-bit,
  20725. 16\-bit or 8\-bit aligned. The default is 32\-bit alignment.
  20726. .IP "\fB\-mno\-prologue\-epilogue\fR" 4
  20727. .IX Item "-mno-prologue-epilogue"
  20728. .PD 0
  20729. .IP "\fB\-mprologue\-epilogue\fR" 4
  20730. .IX Item "-mprologue-epilogue"
  20731. .PD
  20732. With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
  20733. epilogue which set up the stack frame are omitted and no return
  20734. instructions or return sequences are generated in the code. Use this
  20735. option only together with visual inspection of the compiled code: no
  20736. warnings or errors are generated when call-saved registers must be saved,
  20737. or storage for local variables needs to be allocated.
  20738. .IP "\fB\-mno\-gotplt\fR" 4
  20739. .IX Item "-mno-gotplt"
  20740. .PD 0
  20741. .IP "\fB\-mgotplt\fR" 4
  20742. .IX Item "-mgotplt"
  20743. .PD
  20744. With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
  20745. instruction sequences that load addresses for functions from the \s-1PLT\s0 part
  20746. of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
  20747. \&\s-1PLT.\s0 The default is \fB\-mgotplt\fR.
  20748. .IP "\fB\-melf\fR" 4
  20749. .IX Item "-melf"
  20750. Legacy no-op option only recognized with the cris-axis-elf and
  20751. cris-axis-linux-gnu targets.
  20752. .IP "\fB\-mlinux\fR" 4
  20753. .IX Item "-mlinux"
  20754. Legacy no-op option only recognized with the cris-axis-linux-gnu target.
  20755. .IP "\fB\-sim\fR" 4
  20756. .IX Item "-sim"
  20757. This option, recognized for the cris-axis-elf, arranges
  20758. to link with input-output functions from a simulator library. Code,
  20759. initialized data and zero-initialized data are allocated consecutively.
  20760. .IP "\fB\-sim2\fR" 4
  20761. .IX Item "-sim2"
  20762. Like \fB\-sim\fR, but pass linker options to locate initialized data at
  20763. 0x40000000 and zero-initialized data at 0x80000000.
  20764. .PP
  20765. \fI\s-1CR16\s0 Options\fR
  20766. .IX Subsection "CR16 Options"
  20767. .PP
  20768. These options are defined specifically for the \s-1CR16\s0 ports.
  20769. .IP "\fB\-mmac\fR" 4
  20770. .IX Item "-mmac"
  20771. Enable the use of multiply-accumulate instructions. Disabled by default.
  20772. .IP "\fB\-mcr16cplus\fR" 4
  20773. .IX Item "-mcr16cplus"
  20774. .PD 0
  20775. .IP "\fB\-mcr16c\fR" 4
  20776. .IX Item "-mcr16c"
  20777. .PD
  20778. Generate code for \s-1CR16C\s0 or \s-1CR16C+\s0 architecture. \s-1CR16C+\s0 architecture
  20779. is default.
  20780. .IP "\fB\-msim\fR" 4
  20781. .IX Item "-msim"
  20782. Links the library libsim.a which is in compatible with simulator. Applicable
  20783. to \s-1ELF\s0 compiler only.
  20784. .IP "\fB\-mint32\fR" 4
  20785. .IX Item "-mint32"
  20786. Choose integer type as 32\-bit wide.
  20787. .IP "\fB\-mbit\-ops\fR" 4
  20788. .IX Item "-mbit-ops"
  20789. Generates \f(CW\*(C`sbit\*(C'\fR/\f(CW\*(C`cbit\*(C'\fR instructions for bit manipulations.
  20790. .IP "\fB\-mdata\-model=\fR\fImodel\fR" 4
  20791. .IX Item "-mdata-model=model"
  20792. Choose a data model. The choices for \fImodel\fR are \fBnear\fR,
  20793. \&\fBfar\fR or \fBmedium\fR. \fBmedium\fR is default.
  20794. However, \fBfar\fR is not valid with \fB\-mcr16c\fR, as the
  20795. \&\s-1CR16C\s0 architecture does not support the far data model.
  20796. .PP
  20797. \fIC\-SKY Options\fR
  20798. .IX Subsection "C-SKY Options"
  20799. .PP
  20800. \&\s-1GCC\s0 supports these options when compiling for C\-SKY V2 processors.
  20801. .IP "\fB\-march=\fR\fIarch\fR" 4
  20802. .IX Item "-march=arch"
  20803. Specify the C\-SKY target architecture. Valid values for \fIarch\fR are:
  20804. \&\fBck801\fR, \fBck802\fR, \fBck803\fR, \fBck807\fR, and \fBck810\fR.
  20805. The default is \fBck810\fR.
  20806. .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
  20807. .IX Item "-mcpu=cpu"
  20808. Specify the C\-SKY target processor. Valid values for \fIcpu\fR are:
  20809. \&\fBck801\fR, \fBck801t\fR,
  20810. \&\fBck802\fR, \fBck802t\fR, \fBck802j\fR,
  20811. \&\fBck803\fR, \fBck803h\fR, \fBck803t\fR, \fBck803ht\fR,
  20812. \&\fBck803f\fR, \fBck803fh\fR, \fBck803e\fR, \fBck803eh\fR,
  20813. \&\fBck803et\fR, \fBck803eht\fR, \fBck803ef\fR, \fBck803efh\fR,
  20814. \&\fBck803ft\fR, \fBck803eft\fR, \fBck803efht\fR, \fBck803r1\fR,
  20815. \&\fBck803hr1\fR, \fBck803tr1\fR, \fBck803htr1\fR, \fBck803fr1\fR,
  20816. \&\fBck803fhr1\fR, \fBck803er1\fR, \fBck803ehr1\fR, \fBck803etr1\fR,
  20817. \&\fBck803ehtr1\fR, \fBck803efr1\fR, \fBck803efhr1\fR, \fBck803ftr1\fR,
  20818. \&\fBck803eftr1\fR, \fBck803efhtr1\fR,
  20819. \&\fBck803s\fR, \fBck803st\fR, \fBck803se\fR, \fBck803sf\fR,
  20820. \&\fBck803sef\fR, \fBck803seft\fR,
  20821. \&\fBck807e\fR, \fBck807ef\fR, \fBck807\fR, \fBck807f\fR,
  20822. \&\fBck810e\fR, \fBck810et\fR, \fBck810ef\fR, \fBck810eft\fR,
  20823. \&\fBck810\fR, \fBck810v\fR, \fBck810f\fR, \fBck810t\fR, \fBck810fv\fR,
  20824. \&\fBck810tv\fR, \fBck810ft\fR, and \fBck810ftv\fR.
  20825. .IP "\fB\-mbig\-endian\fR" 4
  20826. .IX Item "-mbig-endian"
  20827. .PD 0
  20828. .IP "\fB\-EB\fR" 4
  20829. .IX Item "-EB"
  20830. .IP "\fB\-mlittle\-endian\fR" 4
  20831. .IX Item "-mlittle-endian"
  20832. .IP "\fB\-EL\fR" 4
  20833. .IX Item "-EL"
  20834. .PD
  20835. Select big\- or little-endian code. The default is little-endian.
  20836. .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
  20837. .IX Item "-mfloat-abi=name"
  20838. Specifies which floating-point \s-1ABI\s0 to use. Permissible values
  20839. are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
  20840. .Sp
  20841. Specifying \fBsoft\fR causes \s-1GCC\s0 to generate output containing
  20842. library calls for floating-point operations.
  20843. \&\fBsoftfp\fR allows the generation of code using hardware floating-point
  20844. instructions, but still uses the soft-float calling conventions.
  20845. \&\fBhard\fR allows generation of floating-point instructions
  20846. and uses FPU-specific calling conventions.
  20847. .Sp
  20848. The default depends on the specific target configuration. Note that
  20849. the hard-float and soft-float ABIs are not link-compatible; you must
  20850. compile your entire program with the same \s-1ABI,\s0 and link with a
  20851. compatible set of libraries.
  20852. .IP "\fB\-mhard\-float\fR" 4
  20853. .IX Item "-mhard-float"
  20854. .PD 0
  20855. .IP "\fB\-msoft\-float\fR" 4
  20856. .IX Item "-msoft-float"
  20857. .PD
  20858. Select hardware or software floating-point implementations.
  20859. The default is soft float.
  20860. .IP "\fB\-mdouble\-float\fR" 4
  20861. .IX Item "-mdouble-float"
  20862. .PD 0
  20863. .IP "\fB\-mno\-double\-float\fR" 4
  20864. .IX Item "-mno-double-float"
  20865. .PD
  20866. When \fB\-mhard\-float\fR is in effect, enable generation of
  20867. double-precision float instructions. This is the default except
  20868. when compiling for \s-1CK803.\s0
  20869. .IP "\fB\-mfdivdu\fR" 4
  20870. .IX Item "-mfdivdu"
  20871. .PD 0
  20872. .IP "\fB\-mno\-fdivdu\fR" 4
  20873. .IX Item "-mno-fdivdu"
  20874. .PD
  20875. When \fB\-mhard\-float\fR is in effect, enable generation of
  20876. \&\f(CW\*(C`frecipd\*(C'\fR, \f(CW\*(C`fsqrtd\*(C'\fR, and \f(CW\*(C`fdivd\*(C'\fR instructions.
  20877. This is the default except when compiling for \s-1CK803.\s0
  20878. .IP "\fB\-mfpu=\fR\fIfpu\fR" 4
  20879. .IX Item "-mfpu=fpu"
  20880. Select the floating-point processor. This option can only be used with
  20881. \&\fB\-mhard\-float\fR.
  20882. Values for \fIfpu\fR are
  20883. \&\fBfpv2_sf\fR (equivalent to \fB\-mno\-double\-float \-mno\-fdivdu\fR),
  20884. \&\fBfpv2\fR (\fB\-mdouble\-float \-mno\-divdu\fR), and
  20885. \&\fBfpv2_divd\fR (\fB\-mdouble\-float \-mdivdu\fR).
  20886. .IP "\fB\-melrw\fR" 4
  20887. .IX Item "-melrw"
  20888. .PD 0
  20889. .IP "\fB\-mno\-elrw\fR" 4
  20890. .IX Item "-mno-elrw"
  20891. .PD
  20892. Enable the extended \f(CW\*(C`lrw\*(C'\fR instruction. This option defaults to on
  20893. for \s-1CK801\s0 and off otherwise.
  20894. .IP "\fB\-mistack\fR" 4
  20895. .IX Item "-mistack"
  20896. .PD 0
  20897. .IP "\fB\-mno\-istack\fR" 4
  20898. .IX Item "-mno-istack"
  20899. .PD
  20900. Enable interrupt stack instructions; the default is off.
  20901. .Sp
  20902. The \fB\-mistack\fR option is required to handle the
  20903. \&\f(CW\*(C`interrupt\*(C'\fR and \f(CW\*(C`isr\*(C'\fR function attributes.
  20904. .IP "\fB\-mmp\fR" 4
  20905. .IX Item "-mmp"
  20906. Enable multiprocessor instructions; the default is off.
  20907. .IP "\fB\-mcp\fR" 4
  20908. .IX Item "-mcp"
  20909. Enable coprocessor instructions; the default is off.
  20910. .IP "\fB\-mcache\fR" 4
  20911. .IX Item "-mcache"
  20912. Enable coprocessor instructions; the default is off.
  20913. .IP "\fB\-msecurity\fR" 4
  20914. .IX Item "-msecurity"
  20915. Enable C\-SKY security instructions; the default is off.
  20916. .IP "\fB\-mtrust\fR" 4
  20917. .IX Item "-mtrust"
  20918. Enable C\-SKY trust instructions; the default is off.
  20919. .IP "\fB\-mdsp\fR" 4
  20920. .IX Item "-mdsp"
  20921. .PD 0
  20922. .IP "\fB\-medsp\fR" 4
  20923. .IX Item "-medsp"
  20924. .IP "\fB\-mvdsp\fR" 4
  20925. .IX Item "-mvdsp"
  20926. .PD
  20927. Enable C\-SKY \s-1DSP,\s0 Enhanced \s-1DSP,\s0 or Vector \s-1DSP\s0 instructions, respectively.
  20928. All of these options default to off.
  20929. .IP "\fB\-mdiv\fR" 4
  20930. .IX Item "-mdiv"
  20931. .PD 0
  20932. .IP "\fB\-mno\-div\fR" 4
  20933. .IX Item "-mno-div"
  20934. .PD
  20935. Generate divide instructions. Default is off.
  20936. .IP "\fB\-msmart\fR" 4
  20937. .IX Item "-msmart"
  20938. .PD 0
  20939. .IP "\fB\-mno\-smart\fR" 4
  20940. .IX Item "-mno-smart"
  20941. .PD
  20942. Generate code for Smart Mode, using only registers numbered 0\-7 to allow
  20943. use of 16\-bit instructions. This option is ignored for \s-1CK801\s0 where this
  20944. is the required behavior, and it defaults to on for \s-1CK802.\s0
  20945. For other targets, the default is off.
  20946. .IP "\fB\-mhigh\-registers\fR" 4
  20947. .IX Item "-mhigh-registers"
  20948. .PD 0
  20949. .IP "\fB\-mno\-high\-registers\fR" 4
  20950. .IX Item "-mno-high-registers"
  20951. .PD
  20952. Generate code using the high registers numbered 16\-31. This option
  20953. is not supported on \s-1CK801, CK802,\s0 or \s-1CK803,\s0 and is enabled by default
  20954. for other processors.
  20955. .IP "\fB\-manchor\fR" 4
  20956. .IX Item "-manchor"
  20957. .PD 0
  20958. .IP "\fB\-mno\-anchor\fR" 4
  20959. .IX Item "-mno-anchor"
  20960. .PD
  20961. Generate code using global anchor symbol addresses.
  20962. .IP "\fB\-mpushpop\fR" 4
  20963. .IX Item "-mpushpop"
  20964. .PD 0
  20965. .IP "\fB\-mno\-pushpop\fR" 4
  20966. .IX Item "-mno-pushpop"
  20967. .PD
  20968. Generate code using \f(CW\*(C`push\*(C'\fR and \f(CW\*(C`pop\*(C'\fR instructions. This option
  20969. defaults to on.
  20970. .IP "\fB\-mmultiple\-stld\fR" 4
  20971. .IX Item "-mmultiple-stld"
  20972. .PD 0
  20973. .IP "\fB\-mstm\fR" 4
  20974. .IX Item "-mstm"
  20975. .IP "\fB\-mno\-multiple\-stld\fR" 4
  20976. .IX Item "-mno-multiple-stld"
  20977. .IP "\fB\-mno\-stm\fR" 4
  20978. .IX Item "-mno-stm"
  20979. .PD
  20980. Generate code using \f(CW\*(C`stm\*(C'\fR and \f(CW\*(C`ldm\*(C'\fR instructions. This option
  20981. isn't supported on \s-1CK801\s0 but is enabled by default on other processors.
  20982. .IP "\fB\-mconstpool\fR" 4
  20983. .IX Item "-mconstpool"
  20984. .PD 0
  20985. .IP "\fB\-mno\-constpool\fR" 4
  20986. .IX Item "-mno-constpool"
  20987. .PD
  20988. Create constant pools in the compiler instead of deferring it to the
  20989. assembler. This option is the default and required for correct code
  20990. generation on \s-1CK801\s0 and \s-1CK802,\s0 and is optional on other processors.
  20991. .IP "\fB\-mstack\-size\fR" 4
  20992. .IX Item "-mstack-size"
  20993. .PD 0
  20994. .IP "\fB\-mno\-stack\-size\fR" 4
  20995. .IX Item "-mno-stack-size"
  20996. .PD
  20997. Emit \f(CW\*(C`.stack_size\*(C'\fR directives for each function in the assembly
  20998. output. This option defaults to off.
  20999. .IP "\fB\-mccrt\fR" 4
  21000. .IX Item "-mccrt"
  21001. .PD 0
  21002. .IP "\fB\-mno\-ccrt\fR" 4
  21003. .IX Item "-mno-ccrt"
  21004. .PD
  21005. Generate code for the C\-SKY compiler runtime instead of libgcc. This
  21006. option defaults to off.
  21007. .IP "\fB\-mbranch\-cost=\fR\fIn\fR" 4
  21008. .IX Item "-mbranch-cost=n"
  21009. Set the branch costs to roughly \f(CW\*(C`n\*(C'\fR instructions. The default is 1.
  21010. .IP "\fB\-msched\-prolog\fR" 4
  21011. .IX Item "-msched-prolog"
  21012. .PD 0
  21013. .IP "\fB\-mno\-sched\-prolog\fR" 4
  21014. .IX Item "-mno-sched-prolog"
  21015. .PD
  21016. Permit scheduling of function prologue and epilogue sequences. Using
  21017. this option can result in code that is not compliant with the C\-SKY V2 \s-1ABI\s0
  21018. prologue requirements and that cannot be debugged or backtraced.
  21019. It is disabled by default.
  21020. .IP "\fB\-msim\fR" 4
  21021. .IX Item "-msim"
  21022. Links the library libsemi.a which is in compatible with simulator. Applicable
  21023. to \s-1ELF\s0 compiler only.
  21024. .PP
  21025. \fIDarwin Options\fR
  21026. .IX Subsection "Darwin Options"
  21027. .PP
  21028. These options are defined for all architectures running the Darwin operating
  21029. system.
  21030. .PP
  21031. \&\s-1FSF GCC\s0 on Darwin does not create \*(L"fat\*(R" object files; it creates
  21032. an object file for the single architecture that \s-1GCC\s0 was built to
  21033. target. Apple's \s-1GCC\s0 on Darwin does create \*(L"fat\*(R" files if multiple
  21034. \&\fB\-arch\fR options are used; it does so by running the compiler or
  21035. linker multiple times and joining the results together with
  21036. \&\fIlipo\fR.
  21037. .PP
  21038. The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
  21039. \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
  21040. that \s-1GCC\s0 is targeting, like \fB\-mcpu\fR or \fB\-march\fR. The
  21041. \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
  21042. .PP
  21043. The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
  21044. mismatch. The assembler, \fIas\fR, only permits instructions to
  21045. be used that are valid for the subtype of the file it is generating,
  21046. so you cannot put 64\-bit instructions in a \fBppc750\fR object file.
  21047. The linker for shared libraries, \fI/usr/bin/libtool\fR, fails
  21048. and prints an error if asked to create a shared library with a less
  21049. restrictive subtype than its input files (for instance, trying to put
  21050. a \fBppc970\fR object file in a \fBppc7400\fR library). The linker
  21051. for executables, \fBld\fR, quietly gives the executable the most
  21052. restrictive subtype of any of its input files.
  21053. .IP "\fB\-F\fR\fIdir\fR" 4
  21054. .IX Item "-Fdir"
  21055. Add the framework directory \fIdir\fR to the head of the list of
  21056. directories to be searched for header files. These directories are
  21057. interleaved with those specified by \fB\-I\fR options and are
  21058. scanned in a left-to-right order.
  21059. .Sp
  21060. A framework directory is a directory with frameworks in it. A
  21061. framework is a directory with a \fIHeaders\fR and/or
  21062. \&\fIPrivateHeaders\fR directory contained directly in it that ends
  21063. in \fI.framework\fR. The name of a framework is the name of this
  21064. directory excluding the \fI.framework\fR. Headers associated with
  21065. the framework are found in one of those two directories, with
  21066. \&\fIHeaders\fR being searched first. A subframework is a framework
  21067. directory that is in a framework's \fIFrameworks\fR directory.
  21068. Includes of subframework headers can only appear in a header of a
  21069. framework that contains the subframework, or in a sibling subframework
  21070. header. Two subframeworks are siblings if they occur in the same
  21071. framework. A subframework should not have the same name as a
  21072. framework; a warning is issued if this is violated. Currently a
  21073. subframework cannot have subframeworks; in the future, the mechanism
  21074. may be extended to support this. The standard frameworks can be found
  21075. in \fI/System/Library/Frameworks\fR and
  21076. \&\fI/Library/Frameworks\fR. An example include looks like
  21077. \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fIFramework\fR denotes
  21078. the name of the framework and \fIheader.h\fR is found in the
  21079. \&\fIPrivateHeaders\fR or \fIHeaders\fR directory.
  21080. .IP "\fB\-iframework\fR\fIdir\fR" 4
  21081. .IX Item "-iframeworkdir"
  21082. Like \fB\-F\fR except the directory is a treated as a system
  21083. directory. The main difference between this \fB\-iframework\fR and
  21084. \&\fB\-F\fR is that with \fB\-iframework\fR the compiler does not
  21085. warn about constructs contained within header files found via
  21086. \&\fIdir\fR. This option is valid only for the C family of languages.
  21087. .IP "\fB\-gused\fR" 4
  21088. .IX Item "-gused"
  21089. Emit debugging information for symbols that are used. For stabs
  21090. debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
  21091. This is by default \s-1ON.\s0
  21092. .IP "\fB\-gfull\fR" 4
  21093. .IX Item "-gfull"
  21094. Emit debugging information for all symbols and types.
  21095. .IP "\fB\-mmacosx\-version\-min=\fR\fIversion\fR" 4
  21096. .IX Item "-mmacosx-version-min=version"
  21097. The earliest version of MacOS X that this executable will run on
  21098. is \fIversion\fR. Typical values of \fIversion\fR include \f(CW10.1\fR,
  21099. \&\f(CW10.2\fR, and \f(CW10.3.9\fR.
  21100. .Sp
  21101. If the compiler was built to use the system's headers by default,
  21102. then the default for this option is the system version on which the
  21103. compiler is running, otherwise the default is to make choices that
  21104. are compatible with as many systems and code bases as possible.
  21105. .IP "\fB\-mkernel\fR" 4
  21106. .IX Item "-mkernel"
  21107. Enable kernel development mode. The \fB\-mkernel\fR option sets
  21108. \&\fB\-static\fR, \fB\-fno\-common\fR, \fB\-fno\-use\-cxa\-atexit\fR,
  21109. \&\fB\-fno\-exceptions\fR, \fB\-fno\-non\-call\-exceptions\fR,
  21110. \&\fB\-fapple\-kext\fR, \fB\-fno\-weak\fR and \fB\-fno\-rtti\fR where
  21111. applicable. This mode also sets \fB\-mno\-altivec\fR,
  21112. \&\fB\-msoft\-float\fR, \fB\-fno\-builtin\fR and
  21113. \&\fB\-mlong\-branch\fR for PowerPC targets.
  21114. .IP "\fB\-mone\-byte\-bool\fR" 4
  21115. .IX Item "-mone-byte-bool"
  21116. Override the defaults for \f(CW\*(C`bool\*(C'\fR so that \f(CW\*(C`sizeof(bool)==1\*(C'\fR.
  21117. By default \f(CW\*(C`sizeof(bool)\*(C'\fR is \f(CW4\fR when compiling for
  21118. Darwin/PowerPC and \f(CW1\fR when compiling for Darwin/x86, so this
  21119. option has no effect on x86.
  21120. .Sp
  21121. \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
  21122. to generate code that is not binary compatible with code generated
  21123. without that switch. Using this switch may require recompiling all
  21124. other modules in a program, including system libraries. Use this
  21125. switch to conform to a non-default data model.
  21126. .IP "\fB\-mfix\-and\-continue\fR" 4
  21127. .IX Item "-mfix-and-continue"
  21128. .PD 0
  21129. .IP "\fB\-ffix\-and\-continue\fR" 4
  21130. .IX Item "-ffix-and-continue"
  21131. .IP "\fB\-findirect\-data\fR" 4
  21132. .IX Item "-findirect-data"
  21133. .PD
  21134. Generate code suitable for fast turnaround development, such as to
  21135. allow \s-1GDB\s0 to dynamically load \fI.o\fR files into already-running
  21136. programs. \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
  21137. are provided for backwards compatibility.
  21138. .IP "\fB\-all_load\fR" 4
  21139. .IX Item "-all_load"
  21140. Loads all members of static archive libraries.
  21141. See man \fBld\fR\|(1) for more information.
  21142. .IP "\fB\-arch_errors_fatal\fR" 4
  21143. .IX Item "-arch_errors_fatal"
  21144. Cause the errors having to do with files that have the wrong architecture
  21145. to be fatal.
  21146. .IP "\fB\-bind_at_load\fR" 4
  21147. .IX Item "-bind_at_load"
  21148. Causes the output file to be marked such that the dynamic linker will
  21149. bind all undefined references when the file is loaded or launched.
  21150. .IP "\fB\-bundle\fR" 4
  21151. .IX Item "-bundle"
  21152. Produce a Mach-o bundle format file.
  21153. See man \fBld\fR\|(1) for more information.
  21154. .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
  21155. .IX Item "-bundle_loader executable"
  21156. This option specifies the \fIexecutable\fR that will load the build
  21157. output file being linked. See man \fBld\fR\|(1) for more information.
  21158. .IP "\fB\-dynamiclib\fR" 4
  21159. .IX Item "-dynamiclib"
  21160. When passed this option, \s-1GCC\s0 produces a dynamic library instead of
  21161. an executable when linking, using the Darwin \fIlibtool\fR command.
  21162. .IP "\fB\-force_cpusubtype_ALL\fR" 4
  21163. .IX Item "-force_cpusubtype_ALL"
  21164. This causes \s-1GCC\s0's output file to have the \fB\s-1ALL\s0\fR subtype, instead of
  21165. one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
  21166. .IP "\fB\-allowable_client\fR \fIclient_name\fR" 4
  21167. .IX Item "-allowable_client client_name"
  21168. .PD 0
  21169. .IP "\fB\-client_name\fR" 4
  21170. .IX Item "-client_name"
  21171. .IP "\fB\-compatibility_version\fR" 4
  21172. .IX Item "-compatibility_version"
  21173. .IP "\fB\-current_version\fR" 4
  21174. .IX Item "-current_version"
  21175. .IP "\fB\-dead_strip\fR" 4
  21176. .IX Item "-dead_strip"
  21177. .IP "\fB\-dependency\-file\fR" 4
  21178. .IX Item "-dependency-file"
  21179. .IP "\fB\-dylib_file\fR" 4
  21180. .IX Item "-dylib_file"
  21181. .IP "\fB\-dylinker_install_name\fR" 4
  21182. .IX Item "-dylinker_install_name"
  21183. .IP "\fB\-dynamic\fR" 4
  21184. .IX Item "-dynamic"
  21185. .IP "\fB\-exported_symbols_list\fR" 4
  21186. .IX Item "-exported_symbols_list"
  21187. .IP "\fB\-filelist\fR" 4
  21188. .IX Item "-filelist"
  21189. .IP "\fB\-flat_namespace\fR" 4
  21190. .IX Item "-flat_namespace"
  21191. .IP "\fB\-force_flat_namespace\fR" 4
  21192. .IX Item "-force_flat_namespace"
  21193. .IP "\fB\-headerpad_max_install_names\fR" 4
  21194. .IX Item "-headerpad_max_install_names"
  21195. .IP "\fB\-image_base\fR" 4
  21196. .IX Item "-image_base"
  21197. .IP "\fB\-init\fR" 4
  21198. .IX Item "-init"
  21199. .IP "\fB\-install_name\fR" 4
  21200. .IX Item "-install_name"
  21201. .IP "\fB\-keep_private_externs\fR" 4
  21202. .IX Item "-keep_private_externs"
  21203. .IP "\fB\-multi_module\fR" 4
  21204. .IX Item "-multi_module"
  21205. .IP "\fB\-multiply_defined\fR" 4
  21206. .IX Item "-multiply_defined"
  21207. .IP "\fB\-multiply_defined_unused\fR" 4
  21208. .IX Item "-multiply_defined_unused"
  21209. .IP "\fB\-noall_load\fR" 4
  21210. .IX Item "-noall_load"
  21211. .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
  21212. .IX Item "-no_dead_strip_inits_and_terms"
  21213. .IP "\fB\-nofixprebinding\fR" 4
  21214. .IX Item "-nofixprebinding"
  21215. .IP "\fB\-nomultidefs\fR" 4
  21216. .IX Item "-nomultidefs"
  21217. .IP "\fB\-noprebind\fR" 4
  21218. .IX Item "-noprebind"
  21219. .IP "\fB\-noseglinkedit\fR" 4
  21220. .IX Item "-noseglinkedit"
  21221. .IP "\fB\-pagezero_size\fR" 4
  21222. .IX Item "-pagezero_size"
  21223. .IP "\fB\-prebind\fR" 4
  21224. .IX Item "-prebind"
  21225. .IP "\fB\-prebind_all_twolevel_modules\fR" 4
  21226. .IX Item "-prebind_all_twolevel_modules"
  21227. .IP "\fB\-private_bundle\fR" 4
  21228. .IX Item "-private_bundle"
  21229. .IP "\fB\-read_only_relocs\fR" 4
  21230. .IX Item "-read_only_relocs"
  21231. .IP "\fB\-sectalign\fR" 4
  21232. .IX Item "-sectalign"
  21233. .IP "\fB\-sectobjectsymbols\fR" 4
  21234. .IX Item "-sectobjectsymbols"
  21235. .IP "\fB\-whyload\fR" 4
  21236. .IX Item "-whyload"
  21237. .IP "\fB\-seg1addr\fR" 4
  21238. .IX Item "-seg1addr"
  21239. .IP "\fB\-sectcreate\fR" 4
  21240. .IX Item "-sectcreate"
  21241. .IP "\fB\-sectobjectsymbols\fR" 4
  21242. .IX Item "-sectobjectsymbols"
  21243. .IP "\fB\-sectorder\fR" 4
  21244. .IX Item "-sectorder"
  21245. .IP "\fB\-segaddr\fR" 4
  21246. .IX Item "-segaddr"
  21247. .IP "\fB\-segs_read_only_addr\fR" 4
  21248. .IX Item "-segs_read_only_addr"
  21249. .IP "\fB\-segs_read_write_addr\fR" 4
  21250. .IX Item "-segs_read_write_addr"
  21251. .IP "\fB\-seg_addr_table\fR" 4
  21252. .IX Item "-seg_addr_table"
  21253. .IP "\fB\-seg_addr_table_filename\fR" 4
  21254. .IX Item "-seg_addr_table_filename"
  21255. .IP "\fB\-seglinkedit\fR" 4
  21256. .IX Item "-seglinkedit"
  21257. .IP "\fB\-segprot\fR" 4
  21258. .IX Item "-segprot"
  21259. .IP "\fB\-segs_read_only_addr\fR" 4
  21260. .IX Item "-segs_read_only_addr"
  21261. .IP "\fB\-segs_read_write_addr\fR" 4
  21262. .IX Item "-segs_read_write_addr"
  21263. .IP "\fB\-single_module\fR" 4
  21264. .IX Item "-single_module"
  21265. .IP "\fB\-static\fR" 4
  21266. .IX Item "-static"
  21267. .IP "\fB\-sub_library\fR" 4
  21268. .IX Item "-sub_library"
  21269. .IP "\fB\-sub_umbrella\fR" 4
  21270. .IX Item "-sub_umbrella"
  21271. .IP "\fB\-twolevel_namespace\fR" 4
  21272. .IX Item "-twolevel_namespace"
  21273. .IP "\fB\-umbrella\fR" 4
  21274. .IX Item "-umbrella"
  21275. .IP "\fB\-undefined\fR" 4
  21276. .IX Item "-undefined"
  21277. .IP "\fB\-unexported_symbols_list\fR" 4
  21278. .IX Item "-unexported_symbols_list"
  21279. .IP "\fB\-weak_reference_mismatches\fR" 4
  21280. .IX Item "-weak_reference_mismatches"
  21281. .IP "\fB\-whatsloaded\fR" 4
  21282. .IX Item "-whatsloaded"
  21283. .PD
  21284. These options are passed to the Darwin linker. The Darwin linker man page
  21285. describes them in detail.
  21286. .PP
  21287. \fI\s-1DEC\s0 Alpha Options\fR
  21288. .IX Subsection "DEC Alpha Options"
  21289. .PP
  21290. These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
  21291. .IP "\fB\-mno\-soft\-float\fR" 4
  21292. .IX Item "-mno-soft-float"
  21293. .PD 0
  21294. .IP "\fB\-msoft\-float\fR" 4
  21295. .IX Item "-msoft-float"
  21296. .PD
  21297. Use (do not use) the hardware floating-point instructions for
  21298. floating-point operations. When \fB\-msoft\-float\fR is specified,
  21299. functions in \fIlibgcc.a\fR are used to perform floating-point
  21300. operations. Unless they are replaced by routines that emulate the
  21301. floating-point operations, or compiled in such a way as to call such
  21302. emulations routines, these routines issue floating-point
  21303. operations. If you are compiling for an Alpha without floating-point
  21304. operations, you must ensure that the library is built so as not to call
  21305. them.
  21306. .Sp
  21307. Note that Alpha implementations without floating-point operations are
  21308. required to have floating-point registers.
  21309. .IP "\fB\-mfp\-reg\fR" 4
  21310. .IX Item "-mfp-reg"
  21311. .PD 0
  21312. .IP "\fB\-mno\-fp\-regs\fR" 4
  21313. .IX Item "-mno-fp-regs"
  21314. .PD
  21315. Generate code that uses (does not use) the floating-point register set.
  21316. \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR. If the floating-point
  21317. register set is not used, floating-point operands are passed in integer
  21318. registers as if they were integers and floating-point results are passed
  21319. in \f(CW$0\fR instead of \f(CW$f0\fR. This is a non-standard calling sequence,
  21320. so any function with a floating-point argument or return value called by code
  21321. compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
  21322. option.
  21323. .Sp
  21324. A typical use of this option is building a kernel that does not use,
  21325. and hence need not save and restore, any floating-point registers.
  21326. .IP "\fB\-mieee\fR" 4
  21327. .IX Item "-mieee"
  21328. The Alpha architecture implements floating-point hardware optimized for
  21329. maximum performance. It is mostly compliant with the \s-1IEEE\s0 floating-point
  21330. standard. However, for full compliance, software assistance is
  21331. required. This option generates code fully IEEE-compliant code
  21332. \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
  21333. If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
  21334. defined during compilation. The resulting code is less efficient but is
  21335. able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
  21336. values such as not-a-number and plus/minus infinity. Other Alpha
  21337. compilers call this option \fB\-ieee_with_no_inexact\fR.
  21338. .IP "\fB\-mieee\-with\-inexact\fR" 4
  21339. .IX Item "-mieee-with-inexact"
  21340. This is like \fB\-mieee\fR except the generated code also maintains
  21341. the \s-1IEEE\s0 \fIinexact-flag\fR. Turning on this option causes the
  21342. generated code to implement fully-compliant \s-1IEEE\s0 math. In addition to
  21343. \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
  21344. macro. On some Alpha implementations the resulting code may execute
  21345. significantly slower than the code generated by default. Since there is
  21346. very little code that depends on the \fIinexact-flag\fR, you should
  21347. normally not specify this option. Other Alpha compilers call this
  21348. option \fB\-ieee_with_inexact\fR.
  21349. .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
  21350. .IX Item "-mfp-trap-mode=trap-mode"
  21351. This option controls what floating-point related traps are enabled.
  21352. Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
  21353. The trap mode can be set to one of four values:
  21354. .RS 4
  21355. .IP "\fBn\fR" 4
  21356. .IX Item "n"
  21357. This is the default (normal) setting. The only traps that are enabled
  21358. are the ones that cannot be disabled in software (e.g., division by zero
  21359. trap).
  21360. .IP "\fBu\fR" 4
  21361. .IX Item "u"
  21362. In addition to the traps enabled by \fBn\fR, underflow traps are enabled
  21363. as well.
  21364. .IP "\fBsu\fR" 4
  21365. .IX Item "su"
  21366. Like \fBu\fR, but the instructions are marked to be safe for software
  21367. completion (see Alpha architecture manual for details).
  21368. .IP "\fBsui\fR" 4
  21369. .IX Item "sui"
  21370. Like \fBsu\fR, but inexact traps are enabled as well.
  21371. .RE
  21372. .RS 4
  21373. .RE
  21374. .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
  21375. .IX Item "-mfp-rounding-mode=rounding-mode"
  21376. Selects the \s-1IEEE\s0 rounding mode. Other Alpha compilers call this option
  21377. \&\fB\-fprm\fR \fIrounding-mode\fR. The \fIrounding-mode\fR can be one
  21378. of:
  21379. .RS 4
  21380. .IP "\fBn\fR" 4
  21381. .IX Item "n"
  21382. Normal \s-1IEEE\s0 rounding mode. Floating-point numbers are rounded towards
  21383. the nearest machine number or towards the even machine number in case
  21384. of a tie.
  21385. .IP "\fBm\fR" 4
  21386. .IX Item "m"
  21387. Round towards minus infinity.
  21388. .IP "\fBc\fR" 4
  21389. .IX Item "c"
  21390. Chopped rounding mode. Floating-point numbers are rounded towards zero.
  21391. .IP "\fBd\fR" 4
  21392. .IX Item "d"
  21393. Dynamic rounding mode. A field in the floating-point control register
  21394. (\fIfpcr\fR, see Alpha architecture reference manual) controls the
  21395. rounding mode in effect. The C library initializes this register for
  21396. rounding towards plus infinity. Thus, unless your program modifies the
  21397. \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
  21398. .RE
  21399. .RS 4
  21400. .RE
  21401. .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
  21402. .IX Item "-mtrap-precision=trap-precision"
  21403. In the Alpha architecture, floating-point traps are imprecise. This
  21404. means without software assistance it is impossible to recover from a
  21405. floating trap and program execution normally needs to be terminated.
  21406. \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
  21407. in determining the exact location that caused a floating-point trap.
  21408. Depending on the requirements of an application, different levels of
  21409. precisions can be selected:
  21410. .RS 4
  21411. .IP "\fBp\fR" 4
  21412. .IX Item "p"
  21413. Program precision. This option is the default and means a trap handler
  21414. can only identify which program caused a floating-point exception.
  21415. .IP "\fBf\fR" 4
  21416. .IX Item "f"
  21417. Function precision. The trap handler can determine the function that
  21418. caused a floating-point exception.
  21419. .IP "\fBi\fR" 4
  21420. .IX Item "i"
  21421. Instruction precision. The trap handler can determine the exact
  21422. instruction that caused a floating-point exception.
  21423. .RE
  21424. .RS 4
  21425. .Sp
  21426. Other Alpha compilers provide the equivalent options called
  21427. \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
  21428. .RE
  21429. .IP "\fB\-mieee\-conformant\fR" 4
  21430. .IX Item "-mieee-conformant"
  21431. This option marks the generated code as \s-1IEEE\s0 conformant. You must not
  21432. use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
  21433. \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR. Its only effect
  21434. is to emit the line \fB.eflag 48\fR in the function prologue of the
  21435. generated assembly file.
  21436. .IP "\fB\-mbuild\-constants\fR" 4
  21437. .IX Item "-mbuild-constants"
  21438. Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
  21439. see if it can construct it from smaller constants in two or three
  21440. instructions. If it cannot, it outputs the constant as a literal and
  21441. generates code to load it from the data segment at run time.
  21442. .Sp
  21443. Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
  21444. using code, even if it takes more instructions (the maximum is six).
  21445. .Sp
  21446. You typically use this option to build a shared library dynamic
  21447. loader. Itself a shared library, it must relocate itself in memory
  21448. before it can find the variables and constants in its own data segment.
  21449. .IP "\fB\-mbwx\fR" 4
  21450. .IX Item "-mbwx"
  21451. .PD 0
  21452. .IP "\fB\-mno\-bwx\fR" 4
  21453. .IX Item "-mno-bwx"
  21454. .IP "\fB\-mcix\fR" 4
  21455. .IX Item "-mcix"
  21456. .IP "\fB\-mno\-cix\fR" 4
  21457. .IX Item "-mno-cix"
  21458. .IP "\fB\-mfix\fR" 4
  21459. .IX Item "-mfix"
  21460. .IP "\fB\-mno\-fix\fR" 4
  21461. .IX Item "-mno-fix"
  21462. .IP "\fB\-mmax\fR" 4
  21463. .IX Item "-mmax"
  21464. .IP "\fB\-mno\-max\fR" 4
  21465. .IX Item "-mno-max"
  21466. .PD
  21467. Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX,
  21468. CIX, FIX\s0 and \s-1MAX\s0 instruction sets. The default is to use the instruction
  21469. sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
  21470. of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none is specified.
  21471. .IP "\fB\-mfloat\-vax\fR" 4
  21472. .IX Item "-mfloat-vax"
  21473. .PD 0
  21474. .IP "\fB\-mfloat\-ieee\fR" 4
  21475. .IX Item "-mfloat-ieee"
  21476. .PD
  21477. Generate code that uses (does not use) \s-1VAX F\s0 and G floating-point
  21478. arithmetic instead of \s-1IEEE\s0 single and double precision.
  21479. .IP "\fB\-mexplicit\-relocs\fR" 4
  21480. .IX Item "-mexplicit-relocs"
  21481. .PD 0
  21482. .IP "\fB\-mno\-explicit\-relocs\fR" 4
  21483. .IX Item "-mno-explicit-relocs"
  21484. .PD
  21485. Older Alpha assemblers provided no way to generate symbol relocations
  21486. except via assembler macros. Use of these macros does not allow
  21487. optimal instruction scheduling. \s-1GNU\s0 binutils as of version 2.12
  21488. supports a new syntax that allows the compiler to explicitly mark
  21489. which relocations should apply to which instructions. This option
  21490. is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
  21491. the assembler when it is built and sets the default accordingly.
  21492. .IP "\fB\-msmall\-data\fR" 4
  21493. .IX Item "-msmall-data"
  21494. .PD 0
  21495. .IP "\fB\-mlarge\-data\fR" 4
  21496. .IX Item "-mlarge-data"
  21497. .PD
  21498. When \fB\-mexplicit\-relocs\fR is in effect, static data is
  21499. accessed via \fIgp-relative\fR relocations. When \fB\-msmall\-data\fR
  21500. is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
  21501. (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
  21502. 16\-bit relocations off of the \f(CW$gp\fR register. This limits the
  21503. size of the small data area to 64KB, but allows the variables to be
  21504. directly accessed via a single instruction.
  21505. .Sp
  21506. The default is \fB\-mlarge\-data\fR. With this option the data area
  21507. is limited to just below 2GB. Programs that require more than 2GB of
  21508. data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
  21509. heap instead of in the program's data segment.
  21510. .Sp
  21511. When generating code for shared libraries, \fB\-fpic\fR implies
  21512. \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
  21513. .IP "\fB\-msmall\-text\fR" 4
  21514. .IX Item "-msmall-text"
  21515. .PD 0
  21516. .IP "\fB\-mlarge\-text\fR" 4
  21517. .IX Item "-mlarge-text"
  21518. .PD
  21519. When \fB\-msmall\-text\fR is used, the compiler assumes that the
  21520. code of the entire program (or shared library) fits in 4MB, and is
  21521. thus reachable with a branch instruction. When \fB\-msmall\-data\fR
  21522. is used, the compiler can assume that all local symbols share the
  21523. same \f(CW$gp\fR value, and thus reduce the number of instructions
  21524. required for a function call from 4 to 1.
  21525. .Sp
  21526. The default is \fB\-mlarge\-text\fR.
  21527. .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
  21528. .IX Item "-mcpu=cpu_type"
  21529. Set the instruction set and instruction scheduling parameters for
  21530. machine type \fIcpu_type\fR. You can specify either the \fB\s-1EV\s0\fR
  21531. style name or the corresponding chip number. \s-1GCC\s0 supports scheduling
  21532. parameters for the \s-1EV4, EV5\s0 and \s-1EV6\s0 family of processors and
  21533. chooses the default values for the instruction set from the processor
  21534. you specify. If you do not specify a processor type, \s-1GCC\s0 defaults
  21535. to the processor on which the compiler was built.
  21536. .Sp
  21537. Supported values for \fIcpu_type\fR are
  21538. .RS 4
  21539. .IP "\fBev4\fR" 4
  21540. .IX Item "ev4"
  21541. .PD 0
  21542. .IP "\fBev45\fR" 4
  21543. .IX Item "ev45"
  21544. .IP "\fB21064\fR" 4
  21545. .IX Item "21064"
  21546. .PD
  21547. Schedules as an \s-1EV4\s0 and has no instruction set extensions.
  21548. .IP "\fBev5\fR" 4
  21549. .IX Item "ev5"
  21550. .PD 0
  21551. .IP "\fB21164\fR" 4
  21552. .IX Item "21164"
  21553. .PD
  21554. Schedules as an \s-1EV5\s0 and has no instruction set extensions.
  21555. .IP "\fBev56\fR" 4
  21556. .IX Item "ev56"
  21557. .PD 0
  21558. .IP "\fB21164a\fR" 4
  21559. .IX Item "21164a"
  21560. .PD
  21561. Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
  21562. .IP "\fBpca56\fR" 4
  21563. .IX Item "pca56"
  21564. .PD 0
  21565. .IP "\fB21164pc\fR" 4
  21566. .IX Item "21164pc"
  21567. .IP "\fB21164PC\fR" 4
  21568. .IX Item "21164PC"
  21569. .PD
  21570. Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
  21571. .IP "\fBev6\fR" 4
  21572. .IX Item "ev6"
  21573. .PD 0
  21574. .IP "\fB21264\fR" 4
  21575. .IX Item "21264"
  21576. .PD
  21577. Schedules as an \s-1EV6\s0 and supports the \s-1BWX, FIX,\s0 and \s-1MAX\s0 extensions.
  21578. .IP "\fBev67\fR" 4
  21579. .IX Item "ev67"
  21580. .PD 0
  21581. .IP "\fB21264a\fR" 4
  21582. .IX Item "21264a"
  21583. .PD
  21584. Schedules as an \s-1EV6\s0 and supports the \s-1BWX, CIX, FIX,\s0 and \s-1MAX\s0 extensions.
  21585. .RE
  21586. .RS 4
  21587. .Sp
  21588. Native toolchains also support the value \fBnative\fR,
  21589. which selects the best architecture option for the host processor.
  21590. \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
  21591. the processor.
  21592. .RE
  21593. .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
  21594. .IX Item "-mtune=cpu_type"
  21595. Set only the instruction scheduling parameters for machine type
  21596. \&\fIcpu_type\fR. The instruction set is not changed.
  21597. .Sp
  21598. Native toolchains also support the value \fBnative\fR,
  21599. which selects the best architecture option for the host processor.
  21600. \&\fB\-mtune=native\fR has no effect if \s-1GCC\s0 does not recognize
  21601. the processor.
  21602. .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
  21603. .IX Item "-mmemory-latency=time"
  21604. Sets the latency the scheduler should assume for typical memory
  21605. references as seen by the application. This number is highly
  21606. dependent on the memory access patterns used by the application
  21607. and the size of the external cache on the machine.
  21608. .Sp
  21609. Valid options for \fItime\fR are
  21610. .RS 4
  21611. .IP "\fInumber\fR" 4
  21612. .IX Item "number"
  21613. A decimal number representing clock cycles.
  21614. .IP "\fBL1\fR" 4
  21615. .IX Item "L1"
  21616. .PD 0
  21617. .IP "\fBL2\fR" 4
  21618. .IX Item "L2"
  21619. .IP "\fBL3\fR" 4
  21620. .IX Item "L3"
  21621. .IP "\fBmain\fR" 4
  21622. .IX Item "main"
  21623. .PD
  21624. The compiler contains estimates of the number of clock cycles for
  21625. \&\*(L"typical\*(R" \s-1EV4 & EV5\s0 hardware for the Level 1, 2 & 3 caches
  21626. (also called Dcache, Scache, and Bcache), as well as to main memory.
  21627. Note that L3 is only valid for \s-1EV5.\s0
  21628. .RE
  21629. .RS 4
  21630. .RE
  21631. .PP
  21632. \fIeBPF Options\fR
  21633. .IX Subsection "eBPF Options"
  21634. .IP "\fB\-mframe\-limit=\fR\fIbytes\fR" 4
  21635. .IX Item "-mframe-limit=bytes"
  21636. This specifies the hard limit for frame sizes, in bytes. Currently,
  21637. the value that can be specified should be less than or equal to
  21638. \&\fB32767\fR. Defaults to whatever limit is imposed by the version of
  21639. the Linux kernel targeted.
  21640. .IP "\fB\-mkernel=\fR\fIversion\fR" 4
  21641. .IX Item "-mkernel=version"
  21642. This specifies the minimum version of the kernel that will run the
  21643. compiled program. \s-1GCC\s0 uses this version to determine which
  21644. instructions to use, what kernel helpers to allow, etc. Currently,
  21645. \&\fIversion\fR can be one of \fB4.0\fR, \fB4.1\fR, \fB4.2\fR,
  21646. \&\fB4.3\fR, \fB4.4\fR, \fB4.5\fR, \fB4.6\fR, \fB4.7\fR,
  21647. \&\fB4.8\fR, \fB4.9\fR, \fB4.10\fR, \fB4.11\fR, \fB4.12\fR,
  21648. \&\fB4.13\fR, \fB4.14\fR, \fB4.15\fR, \fB4.16\fR, \fB4.17\fR,
  21649. \&\fB4.18\fR, \fB4.19\fR, \fB4.20\fR, \fB5.0\fR, \fB5.1\fR,
  21650. \&\fB5.2\fR, \fBlatest\fR and \fBnative\fR.
  21651. .IP "\fB\-mbig\-endian\fR" 4
  21652. .IX Item "-mbig-endian"
  21653. Generate code for a big-endian target.
  21654. .IP "\fB\-mlittle\-endian\fR" 4
  21655. .IX Item "-mlittle-endian"
  21656. Generate code for a little-endian target. This is the default.
  21657. .IP "\fB\-mxbpf\fR" 4
  21658. .IX Item "-mxbpf"
  21659. Generate code for an expanded version of \s-1BPF,\s0 which relaxes some of
  21660. the restrictions imposed by the \s-1BPF\s0 architecture:
  21661. .RS 4
  21662. .IP "\-<Save and restore callee-saved registers at function entry and>" 4
  21663. .IX Item "-<Save and restore callee-saved registers at function entry and>"
  21664. exit, respectively.
  21665. .RE
  21666. .RS 4
  21667. .RE
  21668. .PP
  21669. \fI\s-1FR30\s0 Options\fR
  21670. .IX Subsection "FR30 Options"
  21671. .PP
  21672. These options are defined specifically for the \s-1FR30\s0 port.
  21673. .IP "\fB\-msmall\-model\fR" 4
  21674. .IX Item "-msmall-model"
  21675. Use the small address space model. This can produce smaller code, but
  21676. it does assume that all symbolic values and addresses fit into a
  21677. 20\-bit range.
  21678. .IP "\fB\-mno\-lsim\fR" 4
  21679. .IX Item "-mno-lsim"
  21680. Assume that runtime support has been provided and so there is no need
  21681. to include the simulator library (\fIlibsim.a\fR) on the linker
  21682. command line.
  21683. .PP
  21684. \fI\s-1FT32\s0 Options\fR
  21685. .IX Subsection "FT32 Options"
  21686. .PP
  21687. These options are defined specifically for the \s-1FT32\s0 port.
  21688. .IP "\fB\-msim\fR" 4
  21689. .IX Item "-msim"
  21690. Specifies that the program will be run on the simulator. This causes
  21691. an alternate runtime startup and library to be linked.
  21692. You must not use this option when generating programs that will run on
  21693. real hardware; you must provide your own runtime library for whatever
  21694. I/O functions are needed.
  21695. .IP "\fB\-mlra\fR" 4
  21696. .IX Item "-mlra"
  21697. Enable Local Register Allocation. This is still experimental for \s-1FT32,\s0
  21698. so by default the compiler uses standard reload.
  21699. .IP "\fB\-mnodiv\fR" 4
  21700. .IX Item "-mnodiv"
  21701. Do not use div and mod instructions.
  21702. .IP "\fB\-mft32b\fR" 4
  21703. .IX Item "-mft32b"
  21704. Enable use of the extended instructions of the \s-1FT32B\s0 processor.
  21705. .IP "\fB\-mcompress\fR" 4
  21706. .IX Item "-mcompress"
  21707. Compress all code using the Ft32B code compression scheme.
  21708. .IP "\fB\-mnopm\fR" 4
  21709. .IX Item "-mnopm"
  21710. Do not generate code that reads program memory.
  21711. .PP
  21712. \fI\s-1FRV\s0 Options\fR
  21713. .IX Subsection "FRV Options"
  21714. .IP "\fB\-mgpr\-32\fR" 4
  21715. .IX Item "-mgpr-32"
  21716. Only use the first 32 general-purpose registers.
  21717. .IP "\fB\-mgpr\-64\fR" 4
  21718. .IX Item "-mgpr-64"
  21719. Use all 64 general-purpose registers.
  21720. .IP "\fB\-mfpr\-32\fR" 4
  21721. .IX Item "-mfpr-32"
  21722. Use only the first 32 floating-point registers.
  21723. .IP "\fB\-mfpr\-64\fR" 4
  21724. .IX Item "-mfpr-64"
  21725. Use all 64 floating-point registers.
  21726. .IP "\fB\-mhard\-float\fR" 4
  21727. .IX Item "-mhard-float"
  21728. Use hardware instructions for floating-point operations.
  21729. .IP "\fB\-msoft\-float\fR" 4
  21730. .IX Item "-msoft-float"
  21731. Use library routines for floating-point operations.
  21732. .IP "\fB\-malloc\-cc\fR" 4
  21733. .IX Item "-malloc-cc"
  21734. Dynamically allocate condition code registers.
  21735. .IP "\fB\-mfixed\-cc\fR" 4
  21736. .IX Item "-mfixed-cc"
  21737. Do not try to dynamically allocate condition code registers, only
  21738. use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
  21739. .IP "\fB\-mdword\fR" 4
  21740. .IX Item "-mdword"
  21741. Change \s-1ABI\s0 to use double word insns.
  21742. .IP "\fB\-mno\-dword\fR" 4
  21743. .IX Item "-mno-dword"
  21744. Do not use double word instructions.
  21745. .IP "\fB\-mdouble\fR" 4
  21746. .IX Item "-mdouble"
  21747. Use floating-point double instructions.
  21748. .IP "\fB\-mno\-double\fR" 4
  21749. .IX Item "-mno-double"
  21750. Do not use floating-point double instructions.
  21751. .IP "\fB\-mmedia\fR" 4
  21752. .IX Item "-mmedia"
  21753. Use media instructions.
  21754. .IP "\fB\-mno\-media\fR" 4
  21755. .IX Item "-mno-media"
  21756. Do not use media instructions.
  21757. .IP "\fB\-mmuladd\fR" 4
  21758. .IX Item "-mmuladd"
  21759. Use multiply and add/subtract instructions.
  21760. .IP "\fB\-mno\-muladd\fR" 4
  21761. .IX Item "-mno-muladd"
  21762. Do not use multiply and add/subtract instructions.
  21763. .IP "\fB\-mfdpic\fR" 4
  21764. .IX Item "-mfdpic"
  21765. Select the \s-1FDPIC ABI,\s0 which uses function descriptors to represent
  21766. pointers to functions. Without any PIC/PIE\-related options, it
  21767. implies \fB\-fPIE\fR. With \fB\-fpic\fR or \fB\-fpie\fR, it
  21768. assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
  21769. \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
  21770. are computed with 32 bits.
  21771. With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
  21772. .IP "\fB\-minline\-plt\fR" 4
  21773. .IX Item "-minline-plt"
  21774. Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
  21775. not known to bind locally. It has no effect without \fB\-mfdpic\fR.
  21776. It's enabled by default if optimizing for speed and compiling for
  21777. shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
  21778. optimization option such as \fB\-O3\fR or above is present in the
  21779. command line.
  21780. .IP "\fB\-mTLS\fR" 4
  21781. .IX Item "-mTLS"
  21782. Assume a large \s-1TLS\s0 segment when generating thread-local code.
  21783. .IP "\fB\-mtls\fR" 4
  21784. .IX Item "-mtls"
  21785. Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
  21786. .IP "\fB\-mgprel\-ro\fR" 4
  21787. .IX Item "-mgprel-ro"
  21788. Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC ABI\s0 for data
  21789. that is known to be in read-only sections. It's enabled by default,
  21790. except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
  21791. make the global offset table smaller, it trades 1 instruction for 4.
  21792. With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
  21793. one of which may be shared by multiple symbols, and it avoids the need
  21794. for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
  21795. win. If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
  21796. .IP "\fB\-multilib\-library\-pic\fR" 4
  21797. .IX Item "-multilib-library-pic"
  21798. Link with the (library, not \s-1FD\s0) pic libraries. It's implied by
  21799. \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
  21800. \&\fB\-fpic\fR without \fB\-mfdpic\fR. You should never have to use
  21801. it explicitly.
  21802. .IP "\fB\-mlinked\-fp\fR" 4
  21803. .IX Item "-mlinked-fp"
  21804. Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
  21805. a stack frame is allocated. This option is enabled by default and can
  21806. be disabled with \fB\-mno\-linked\-fp\fR.
  21807. .IP "\fB\-mlong\-calls\fR" 4
  21808. .IX Item "-mlong-calls"
  21809. Use indirect addressing to call functions outside the current
  21810. compilation unit. This allows the functions to be placed anywhere
  21811. within the 32\-bit address space.
  21812. .IP "\fB\-malign\-labels\fR" 4
  21813. .IX Item "-malign-labels"
  21814. Try to align labels to an 8\-byte boundary by inserting NOPs into the
  21815. previous packet. This option only has an effect when \s-1VLIW\s0 packing
  21816. is enabled. It doesn't create new packets; it merely adds NOPs to
  21817. existing ones.
  21818. .IP "\fB\-mlibrary\-pic\fR" 4
  21819. .IX Item "-mlibrary-pic"
  21820. Generate position-independent \s-1EABI\s0 code.
  21821. .IP "\fB\-macc\-4\fR" 4
  21822. .IX Item "-macc-4"
  21823. Use only the first four media accumulator registers.
  21824. .IP "\fB\-macc\-8\fR" 4
  21825. .IX Item "-macc-8"
  21826. Use all eight media accumulator registers.
  21827. .IP "\fB\-mpack\fR" 4
  21828. .IX Item "-mpack"
  21829. Pack \s-1VLIW\s0 instructions.
  21830. .IP "\fB\-mno\-pack\fR" 4
  21831. .IX Item "-mno-pack"
  21832. Do not pack \s-1VLIW\s0 instructions.
  21833. .IP "\fB\-mno\-eflags\fR" 4
  21834. .IX Item "-mno-eflags"
  21835. Do not mark \s-1ABI\s0 switches in e_flags.
  21836. .IP "\fB\-mcond\-move\fR" 4
  21837. .IX Item "-mcond-move"
  21838. Enable the use of conditional-move instructions (default).
  21839. .Sp
  21840. This switch is mainly for debugging the compiler and will likely be removed
  21841. in a future version.
  21842. .IP "\fB\-mno\-cond\-move\fR" 4
  21843. .IX Item "-mno-cond-move"
  21844. Disable the use of conditional-move instructions.
  21845. .Sp
  21846. This switch is mainly for debugging the compiler and will likely be removed
  21847. in a future version.
  21848. .IP "\fB\-mscc\fR" 4
  21849. .IX Item "-mscc"
  21850. Enable the use of conditional set instructions (default).
  21851. .Sp
  21852. This switch is mainly for debugging the compiler and will likely be removed
  21853. in a future version.
  21854. .IP "\fB\-mno\-scc\fR" 4
  21855. .IX Item "-mno-scc"
  21856. Disable the use of conditional set instructions.
  21857. .Sp
  21858. This switch is mainly for debugging the compiler and will likely be removed
  21859. in a future version.
  21860. .IP "\fB\-mcond\-exec\fR" 4
  21861. .IX Item "-mcond-exec"
  21862. Enable the use of conditional execution (default).
  21863. .Sp
  21864. This switch is mainly for debugging the compiler and will likely be removed
  21865. in a future version.
  21866. .IP "\fB\-mno\-cond\-exec\fR" 4
  21867. .IX Item "-mno-cond-exec"
  21868. Disable the use of conditional execution.
  21869. .Sp
  21870. This switch is mainly for debugging the compiler and will likely be removed
  21871. in a future version.
  21872. .IP "\fB\-mvliw\-branch\fR" 4
  21873. .IX Item "-mvliw-branch"
  21874. Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
  21875. .Sp
  21876. This switch is mainly for debugging the compiler and will likely be removed
  21877. in a future version.
  21878. .IP "\fB\-mno\-vliw\-branch\fR" 4
  21879. .IX Item "-mno-vliw-branch"
  21880. Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
  21881. .Sp
  21882. This switch is mainly for debugging the compiler and will likely be removed
  21883. in a future version.
  21884. .IP "\fB\-mmulti\-cond\-exec\fR" 4
  21885. .IX Item "-mmulti-cond-exec"
  21886. Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
  21887. (default).
  21888. .Sp
  21889. This switch is mainly for debugging the compiler and will likely be removed
  21890. in a future version.
  21891. .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
  21892. .IX Item "-mno-multi-cond-exec"
  21893. Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
  21894. .Sp
  21895. This switch is mainly for debugging the compiler and will likely be removed
  21896. in a future version.
  21897. .IP "\fB\-mnested\-cond\-exec\fR" 4
  21898. .IX Item "-mnested-cond-exec"
  21899. Enable nested conditional execution optimizations (default).
  21900. .Sp
  21901. This switch is mainly for debugging the compiler and will likely be removed
  21902. in a future version.
  21903. .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
  21904. .IX Item "-mno-nested-cond-exec"
  21905. Disable nested conditional execution optimizations.
  21906. .Sp
  21907. This switch is mainly for debugging the compiler and will likely be removed
  21908. in a future version.
  21909. .IP "\fB\-moptimize\-membar\fR" 4
  21910. .IX Item "-moptimize-membar"
  21911. This switch removes redundant \f(CW\*(C`membar\*(C'\fR instructions from the
  21912. compiler-generated code. It is enabled by default.
  21913. .IP "\fB\-mno\-optimize\-membar\fR" 4
  21914. .IX Item "-mno-optimize-membar"
  21915. This switch disables the automatic removal of redundant \f(CW\*(C`membar\*(C'\fR
  21916. instructions from the generated code.
  21917. .IP "\fB\-mtomcat\-stats\fR" 4
  21918. .IX Item "-mtomcat-stats"
  21919. Cause gas to print out tomcat statistics.
  21920. .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
  21921. .IX Item "-mcpu=cpu"
  21922. Select the processor type for which to generate code. Possible values are
  21923. \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
  21924. \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
  21925. .PP
  21926. \fIGNU/Linux Options\fR
  21927. .IX Subsection "GNU/Linux Options"
  21928. .PP
  21929. These \fB\-m\fR options are defined for GNU/Linux targets:
  21930. .IP "\fB\-mglibc\fR" 4
  21931. .IX Item "-mglibc"
  21932. Use the \s-1GNU C\s0 library. This is the default except
  21933. on \fB*\-*\-linux\-*uclibc*\fR, \fB*\-*\-linux\-*musl*\fR and
  21934. \&\fB*\-*\-linux\-*android*\fR targets.
  21935. .IP "\fB\-muclibc\fR" 4
  21936. .IX Item "-muclibc"
  21937. Use uClibc C library. This is the default on
  21938. \&\fB*\-*\-linux\-*uclibc*\fR targets.
  21939. .IP "\fB\-mmusl\fR" 4
  21940. .IX Item "-mmusl"
  21941. Use the musl C library. This is the default on
  21942. \&\fB*\-*\-linux\-*musl*\fR targets.
  21943. .IP "\fB\-mbionic\fR" 4
  21944. .IX Item "-mbionic"
  21945. Use Bionic C library. This is the default on
  21946. \&\fB*\-*\-linux\-*android*\fR targets.
  21947. .IP "\fB\-mandroid\fR" 4
  21948. .IX Item "-mandroid"
  21949. Compile code compatible with Android platform. This is the default on
  21950. \&\fB*\-*\-linux\-*android*\fR targets.
  21951. .Sp
  21952. When compiling, this option enables \fB\-mbionic\fR, \fB\-fPIC\fR,
  21953. \&\fB\-fno\-exceptions\fR and \fB\-fno\-rtti\fR by default. When linking,
  21954. this option makes the \s-1GCC\s0 driver pass Android-specific options to the linker.
  21955. Finally, this option causes the preprocessor macro \f(CW\*(C`_\|_ANDROID_\|_\*(C'\fR
  21956. to be defined.
  21957. .IP "\fB\-tno\-android\-cc\fR" 4
  21958. .IX Item "-tno-android-cc"
  21959. Disable compilation effects of \fB\-mandroid\fR, i.e., do not enable
  21960. \&\fB\-mbionic\fR, \fB\-fPIC\fR, \fB\-fno\-exceptions\fR and
  21961. \&\fB\-fno\-rtti\fR by default.
  21962. .IP "\fB\-tno\-android\-ld\fR" 4
  21963. .IX Item "-tno-android-ld"
  21964. Disable linking effects of \fB\-mandroid\fR, i.e., pass standard Linux
  21965. linking options to the linker.
  21966. .PP
  21967. \fIH8/300 Options\fR
  21968. .IX Subsection "H8/300 Options"
  21969. .PP
  21970. These \fB\-m\fR options are defined for the H8/300 implementations:
  21971. .IP "\fB\-mrelax\fR" 4
  21972. .IX Item "-mrelax"
  21973. Shorten some address references at link time, when possible; uses the
  21974. linker option \fB\-relax\fR.
  21975. .IP "\fB\-mh\fR" 4
  21976. .IX Item "-mh"
  21977. Generate code for the H8/300H.
  21978. .IP "\fB\-ms\fR" 4
  21979. .IX Item "-ms"
  21980. Generate code for the H8S.
  21981. .IP "\fB\-mn\fR" 4
  21982. .IX Item "-mn"
  21983. Generate code for the H8S and H8/300H in the normal mode. This switch
  21984. must be used either with \fB\-mh\fR or \fB\-ms\fR.
  21985. .IP "\fB\-ms2600\fR" 4
  21986. .IX Item "-ms2600"
  21987. Generate code for the H8S/2600. This switch must be used with \fB\-ms\fR.
  21988. .IP "\fB\-mexr\fR" 4
  21989. .IX Item "-mexr"
  21990. Extended registers are stored on stack before execution of function
  21991. with monitor attribute. Default option is \fB\-mexr\fR.
  21992. This option is valid only for H8S targets.
  21993. .IP "\fB\-mno\-exr\fR" 4
  21994. .IX Item "-mno-exr"
  21995. Extended registers are not stored on stack before execution of function
  21996. with monitor attribute. Default option is \fB\-mno\-exr\fR.
  21997. This option is valid only for H8S targets.
  21998. .IP "\fB\-mint32\fR" 4
  21999. .IX Item "-mint32"
  22000. Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
  22001. .IP "\fB\-malign\-300\fR" 4
  22002. .IX Item "-malign-300"
  22003. On the H8/300H and H8S, use the same alignment rules as for the H8/300.
  22004. The default for the H8/300H and H8S is to align longs and floats on
  22005. 4\-byte boundaries.
  22006. \&\fB\-malign\-300\fR causes them to be aligned on 2\-byte boundaries.
  22007. This option has no effect on the H8/300.
  22008. .PP
  22009. \fI\s-1HPPA\s0 Options\fR
  22010. .IX Subsection "HPPA Options"
  22011. .PP
  22012. These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
  22013. .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
  22014. .IX Item "-march=architecture-type"
  22015. Generate code for the specified architecture. The choices for
  22016. \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA 1.0,\s0 \fB1.1\fR for \s-1PA
  22017. 1.1,\s0 and \fB2.0\fR for \s-1PA 2.0\s0 processors. Refer to
  22018. \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
  22019. architecture option for your machine. Code compiled for lower numbered
  22020. architectures runs on higher numbered architectures, but not the
  22021. other way around.
  22022. .IP "\fB\-mpa\-risc\-1\-0\fR" 4
  22023. .IX Item "-mpa-risc-1-0"
  22024. .PD 0
  22025. .IP "\fB\-mpa\-risc\-1\-1\fR" 4
  22026. .IX Item "-mpa-risc-1-1"
  22027. .IP "\fB\-mpa\-risc\-2\-0\fR" 4
  22028. .IX Item "-mpa-risc-2-0"
  22029. .PD
  22030. Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
  22031. .IP "\fB\-mcaller\-copies\fR" 4
  22032. .IX Item "-mcaller-copies"
  22033. The caller copies function arguments passed by hidden reference. This
  22034. option should be used with care as it is not compatible with the default
  22035. 32\-bit runtime. However, only aggregates larger than eight bytes are
  22036. passed by hidden reference and the option provides better compatibility
  22037. with OpenMP.
  22038. .IP "\fB\-mjump\-in\-delay\fR" 4
  22039. .IX Item "-mjump-in-delay"
  22040. This option is ignored and provided for compatibility purposes only.
  22041. .IP "\fB\-mdisable\-fpregs\fR" 4
  22042. .IX Item "-mdisable-fpregs"
  22043. Prevent floating-point registers from being used in any manner. This is
  22044. necessary for compiling kernels that perform lazy context switching of
  22045. floating-point registers. If you use this option and attempt to perform
  22046. floating-point operations, the compiler aborts.
  22047. .IP "\fB\-mdisable\-indexing\fR" 4
  22048. .IX Item "-mdisable-indexing"
  22049. Prevent the compiler from using indexing address modes. This avoids some
  22050. rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH.\s0
  22051. .IP "\fB\-mno\-space\-regs\fR" 4
  22052. .IX Item "-mno-space-regs"
  22053. Generate code that assumes the target has no space registers. This allows
  22054. \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
  22055. .Sp
  22056. Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
  22057. .IP "\fB\-mfast\-indirect\-calls\fR" 4
  22058. .IX Item "-mfast-indirect-calls"
  22059. Generate code that assumes calls never cross space boundaries. This
  22060. allows \s-1GCC\s0 to emit code that performs faster indirect calls.
  22061. .Sp
  22062. This option does not work in the presence of shared libraries or nested
  22063. functions.
  22064. .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
  22065. .IX Item "-mfixed-range=register-range"
  22066. Generate code treating the given register range as fixed registers.
  22067. A fixed register is one that the register allocator cannot use. This is
  22068. useful when compiling kernel code. A register range is specified as
  22069. two registers separated by a dash. Multiple register ranges can be
  22070. specified separated by a comma.
  22071. .IP "\fB\-mlong\-load\-store\fR" 4
  22072. .IX Item "-mlong-load-store"
  22073. Generate 3\-instruction load and store sequences as sometimes required by
  22074. the HP-UX 10 linker. This is equivalent to the \fB+k\fR option to
  22075. the \s-1HP\s0 compilers.
  22076. .IP "\fB\-mportable\-runtime\fR" 4
  22077. .IX Item "-mportable-runtime"
  22078. Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
  22079. .IP "\fB\-mgas\fR" 4
  22080. .IX Item "-mgas"
  22081. Enable the use of assembler directives only \s-1GAS\s0 understands.
  22082. .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
  22083. .IX Item "-mschedule=cpu-type"
  22084. Schedule code according to the constraints for the machine type
  22085. \&\fIcpu-type\fR. The choices for \fIcpu-type\fR are \fB700\fR
  22086. \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR. Refer
  22087. to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
  22088. proper scheduling option for your machine. The default scheduling is
  22089. \&\fB8000\fR.
  22090. .IP "\fB\-mlinker\-opt\fR" 4
  22091. .IX Item "-mlinker-opt"
  22092. Enable the optimization pass in the HP-UX linker. Note this makes symbolic
  22093. debugging impossible. It also triggers a bug in the HP-UX 8 and HP-UX 9
  22094. linkers in which they give bogus error messages when linking some programs.
  22095. .IP "\fB\-msoft\-float\fR" 4
  22096. .IX Item "-msoft-float"
  22097. Generate output containing library calls for floating point.
  22098. \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
  22099. targets. Normally the facilities of the machine's usual C compiler are
  22100. used, but this cannot be done directly in cross-compilation. You must make
  22101. your own arrangements to provide suitable library functions for
  22102. cross-compilation.
  22103. .Sp
  22104. \&\fB\-msoft\-float\fR changes the calling convention in the output file;
  22105. therefore, it is only useful if you compile \fIall\fR of a program with
  22106. this option. In particular, you need to compile \fIlibgcc.a\fR, the
  22107. library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
  22108. this to work.
  22109. .IP "\fB\-msio\fR" 4
  22110. .IX Item "-msio"
  22111. Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO.\s0 The default is
  22112. \&\fB\-mwsio\fR. This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
  22113. \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO.\s0 These
  22114. options are available under HP-UX and HI-UX.
  22115. .IP "\fB\-mgnu\-ld\fR" 4
  22116. .IX Item "-mgnu-ld"
  22117. Use options specific to \s-1GNU\s0 \fBld\fR.
  22118. This passes \fB\-shared\fR to \fBld\fR when
  22119. building a shared library. It is the default when \s-1GCC\s0 is configured,
  22120. explicitly or implicitly, with the \s-1GNU\s0 linker. This option does not
  22121. affect which \fBld\fR is called; it only changes what parameters
  22122. are passed to that \fBld\fR.
  22123. The \fBld\fR that is called is determined by the
  22124. \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
  22125. finally by the user's \fB\s-1PATH\s0\fR. The linker used by \s-1GCC\s0 can be printed
  22126. using \fBwhich `gcc \-print\-prog\-name=ld`\fR. This option is only available
  22127. on the 64\-bit HP-UX \s-1GCC,\s0 i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
  22128. .IP "\fB\-mhp\-ld\fR" 4
  22129. .IX Item "-mhp-ld"
  22130. Use options specific to \s-1HP\s0 \fBld\fR.
  22131. This passes \fB\-b\fR to \fBld\fR when building
  22132. a shared library and passes \fB+Accept TypeMismatch\fR to \fBld\fR on all
  22133. links. It is the default when \s-1GCC\s0 is configured, explicitly or
  22134. implicitly, with the \s-1HP\s0 linker. This option does not affect
  22135. which \fBld\fR is called; it only changes what parameters are passed to that
  22136. \&\fBld\fR.
  22137. The \fBld\fR that is called is determined by the \fB\-\-with\-ld\fR
  22138. configure option, \s-1GCC\s0's program search path, and finally by the user's
  22139. \&\fB\s-1PATH\s0\fR. The linker used by \s-1GCC\s0 can be printed using \fBwhich
  22140. `gcc \-print\-prog\-name=ld`\fR. This option is only available on the 64\-bit
  22141. HP-UX \s-1GCC,\s0 i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
  22142. .IP "\fB\-mlong\-calls\fR" 4
  22143. .IX Item "-mlong-calls"
  22144. Generate code that uses long call sequences. This ensures that a call
  22145. is always able to reach linker generated stubs. The default is to generate
  22146. long calls only when the distance from the call site to the beginning
  22147. of the function or translation unit, as the case may be, exceeds a
  22148. predefined limit set by the branch type being used. The limits for
  22149. normal calls are 7,600,000 and 240,000 bytes, respectively for the
  22150. \&\s-1PA 2.0\s0 and \s-1PA 1.X\s0 architectures. Sibcalls are always limited at
  22151. 240,000 bytes.
  22152. .Sp
  22153. Distances are measured from the beginning of functions when using the
  22154. \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
  22155. and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
  22156. the \s-1SOM\s0 linker.
  22157. .Sp
  22158. It is normally not desirable to use this option as it degrades
  22159. performance. However, it may be useful in large applications,
  22160. particularly when partial linking is used to build the application.
  22161. .Sp
  22162. The types of long calls used depends on the capabilities of the
  22163. assembler and linker, and the type of code being generated. The
  22164. impact on systems that support long absolute calls, and long pic
  22165. symbol-difference or pc-relative calls should be relatively small.
  22166. However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
  22167. and it is quite long.
  22168. .IP "\fB\-munix=\fR\fIunix-std\fR" 4
  22169. .IX Item "-munix=unix-std"
  22170. Generate compiler predefines and select a startfile for the specified
  22171. \&\s-1UNIX\s0 standard. The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
  22172. and \fB98\fR. \fB93\fR is supported on all HP-UX versions. \fB95\fR
  22173. is available on HP-UX 10.10 and later. \fB98\fR is available on HP-UX
  22174. 11.11 and later. The default values are \fB93\fR for HP-UX 10.00,
  22175. \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
  22176. and later.
  22177. .Sp
  22178. \&\fB\-munix=93\fR provides the same predefines as \s-1GCC 3.3\s0 and 3.4.
  22179. \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
  22180. and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
  22181. \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
  22182. \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
  22183. \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
  22184. .Sp
  22185. It is \fIimportant\fR to note that this option changes the interfaces
  22186. for various library routines. It also affects the operational behavior
  22187. of the C library. Thus, \fIextreme\fR care is needed in using this
  22188. option.
  22189. .Sp
  22190. Library code that is intended to operate with more than one \s-1UNIX\s0
  22191. standard must test, set and restore the variable \f(CW\*(C`_\|_xpg4_extended_mask\*(C'\fR
  22192. as appropriate. Most \s-1GNU\s0 software doesn't provide this capability.
  22193. .IP "\fB\-nolibdld\fR" 4
  22194. .IX Item "-nolibdld"
  22195. Suppress the generation of link options to search libdld.sl when the
  22196. \&\fB\-static\fR option is specified on HP-UX 10 and later.
  22197. .IP "\fB\-static\fR" 4
  22198. .IX Item "-static"
  22199. The HP-UX implementation of setlocale in libc has a dependency on
  22200. libdld.sl. There isn't an archive version of libdld.sl. Thus,
  22201. when the \fB\-static\fR option is specified, special link options
  22202. are needed to resolve this dependency.
  22203. .Sp
  22204. On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
  22205. link with libdld.sl when the \fB\-static\fR option is specified.
  22206. This causes the resulting binary to be dynamic. On the 64\-bit port,
  22207. the linkers generate dynamic binaries by default in any case. The
  22208. \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
  22209. adding these link options.
  22210. .IP "\fB\-threads\fR" 4
  22211. .IX Item "-threads"
  22212. Add support for multithreading with the \fIdce thread\fR library
  22213. under HP-UX. This option sets flags for both the preprocessor and
  22214. linker.
  22215. .PP
  22216. \fI\s-1IA\-64\s0 Options\fR
  22217. .IX Subsection "IA-64 Options"
  22218. .PP
  22219. These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
  22220. .IP "\fB\-mbig\-endian\fR" 4
  22221. .IX Item "-mbig-endian"
  22222. Generate code for a big-endian target. This is the default for HP-UX.
  22223. .IP "\fB\-mlittle\-endian\fR" 4
  22224. .IX Item "-mlittle-endian"
  22225. Generate code for a little-endian target. This is the default for \s-1AIX5\s0
  22226. and GNU/Linux.
  22227. .IP "\fB\-mgnu\-as\fR" 4
  22228. .IX Item "-mgnu-as"
  22229. .PD 0
  22230. .IP "\fB\-mno\-gnu\-as\fR" 4
  22231. .IX Item "-mno-gnu-as"
  22232. .PD
  22233. Generate (or don't) code for the \s-1GNU\s0 assembler. This is the default.
  22234. .IP "\fB\-mgnu\-ld\fR" 4
  22235. .IX Item "-mgnu-ld"
  22236. .PD 0
  22237. .IP "\fB\-mno\-gnu\-ld\fR" 4
  22238. .IX Item "-mno-gnu-ld"
  22239. .PD
  22240. Generate (or don't) code for the \s-1GNU\s0 linker. This is the default.
  22241. .IP "\fB\-mno\-pic\fR" 4
  22242. .IX Item "-mno-pic"
  22243. Generate code that does not use a global pointer register. The result
  22244. is not position independent code, and violates the \s-1IA\-64 ABI.\s0
  22245. .IP "\fB\-mvolatile\-asm\-stop\fR" 4
  22246. .IX Item "-mvolatile-asm-stop"
  22247. .PD 0
  22248. .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
  22249. .IX Item "-mno-volatile-asm-stop"
  22250. .PD
  22251. Generate (or don't) a stop bit immediately before and after volatile asm
  22252. statements.
  22253. .IP "\fB\-mregister\-names\fR" 4
  22254. .IX Item "-mregister-names"
  22255. .PD 0
  22256. .IP "\fB\-mno\-register\-names\fR" 4
  22257. .IX Item "-mno-register-names"
  22258. .PD
  22259. Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
  22260. the stacked registers. This may make assembler output more readable.
  22261. .IP "\fB\-mno\-sdata\fR" 4
  22262. .IX Item "-mno-sdata"
  22263. .PD 0
  22264. .IP "\fB\-msdata\fR" 4
  22265. .IX Item "-msdata"
  22266. .PD
  22267. Disable (or enable) optimizations that use the small data section. This may
  22268. be useful for working around optimizer bugs.
  22269. .IP "\fB\-mconstant\-gp\fR" 4
  22270. .IX Item "-mconstant-gp"
  22271. Generate code that uses a single constant global pointer value. This is
  22272. useful when compiling kernel code.
  22273. .IP "\fB\-mauto\-pic\fR" 4
  22274. .IX Item "-mauto-pic"
  22275. Generate code that is self-relocatable. This implies \fB\-mconstant\-gp\fR.
  22276. This is useful when compiling firmware code.
  22277. .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
  22278. .IX Item "-minline-float-divide-min-latency"
  22279. Generate code for inline divides of floating-point values
  22280. using the minimum latency algorithm.
  22281. .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
  22282. .IX Item "-minline-float-divide-max-throughput"
  22283. Generate code for inline divides of floating-point values
  22284. using the maximum throughput algorithm.
  22285. .IP "\fB\-mno\-inline\-float\-divide\fR" 4
  22286. .IX Item "-mno-inline-float-divide"
  22287. Do not generate inline code for divides of floating-point values.
  22288. .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
  22289. .IX Item "-minline-int-divide-min-latency"
  22290. Generate code for inline divides of integer values
  22291. using the minimum latency algorithm.
  22292. .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
  22293. .IX Item "-minline-int-divide-max-throughput"
  22294. Generate code for inline divides of integer values
  22295. using the maximum throughput algorithm.
  22296. .IP "\fB\-mno\-inline\-int\-divide\fR" 4
  22297. .IX Item "-mno-inline-int-divide"
  22298. Do not generate inline code for divides of integer values.
  22299. .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
  22300. .IX Item "-minline-sqrt-min-latency"
  22301. Generate code for inline square roots
  22302. using the minimum latency algorithm.
  22303. .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
  22304. .IX Item "-minline-sqrt-max-throughput"
  22305. Generate code for inline square roots
  22306. using the maximum throughput algorithm.
  22307. .IP "\fB\-mno\-inline\-sqrt\fR" 4
  22308. .IX Item "-mno-inline-sqrt"
  22309. Do not generate inline code for \f(CW\*(C`sqrt\*(C'\fR.
  22310. .IP "\fB\-mfused\-madd\fR" 4
  22311. .IX Item "-mfused-madd"
  22312. .PD 0
  22313. .IP "\fB\-mno\-fused\-madd\fR" 4
  22314. .IX Item "-mno-fused-madd"
  22315. .PD
  22316. Do (don't) generate code that uses the fused multiply/add or multiply/subtract
  22317. instructions. The default is to use these instructions.
  22318. .IP "\fB\-mno\-dwarf2\-asm\fR" 4
  22319. .IX Item "-mno-dwarf2-asm"
  22320. .PD 0
  22321. .IP "\fB\-mdwarf2\-asm\fR" 4
  22322. .IX Item "-mdwarf2-asm"
  22323. .PD
  22324. Don't (or do) generate assembler code for the \s-1DWARF\s0 line number debugging
  22325. info. This may be useful when not using the \s-1GNU\s0 assembler.
  22326. .IP "\fB\-mearly\-stop\-bits\fR" 4
  22327. .IX Item "-mearly-stop-bits"
  22328. .PD 0
  22329. .IP "\fB\-mno\-early\-stop\-bits\fR" 4
  22330. .IX Item "-mno-early-stop-bits"
  22331. .PD
  22332. Allow stop bits to be placed earlier than immediately preceding the
  22333. instruction that triggered the stop bit. This can improve instruction
  22334. scheduling, but does not always do so.
  22335. .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
  22336. .IX Item "-mfixed-range=register-range"
  22337. Generate code treating the given register range as fixed registers.
  22338. A fixed register is one that the register allocator cannot use. This is
  22339. useful when compiling kernel code. A register range is specified as
  22340. two registers separated by a dash. Multiple register ranges can be
  22341. specified separated by a comma.
  22342. .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
  22343. .IX Item "-mtls-size=tls-size"
  22344. Specify bit size of immediate \s-1TLS\s0 offsets. Valid values are 14, 22, and
  22345. 64.
  22346. .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
  22347. .IX Item "-mtune=cpu-type"
  22348. Tune the instruction scheduling for a particular \s-1CPU,\s0 Valid values are
  22349. \&\fBitanium\fR, \fBitanium1\fR, \fBmerced\fR, \fBitanium2\fR,
  22350. and \fBmckinley\fR.
  22351. .IP "\fB\-milp32\fR" 4
  22352. .IX Item "-milp32"
  22353. .PD 0
  22354. .IP "\fB\-mlp64\fR" 4
  22355. .IX Item "-mlp64"
  22356. .PD
  22357. Generate code for a 32\-bit or 64\-bit environment.
  22358. The 32\-bit environment sets int, long and pointer to 32 bits.
  22359. The 64\-bit environment sets int to 32 bits and long and pointer
  22360. to 64 bits. These are HP-UX specific flags.
  22361. .IP "\fB\-mno\-sched\-br\-data\-spec\fR" 4
  22362. .IX Item "-mno-sched-br-data-spec"
  22363. .PD 0
  22364. .IP "\fB\-msched\-br\-data\-spec\fR" 4
  22365. .IX Item "-msched-br-data-spec"
  22366. .PD
  22367. (Dis/En)able data speculative scheduling before reload.
  22368. This results in generation of \f(CW\*(C`ld.a\*(C'\fR instructions and
  22369. the corresponding check instructions (\f(CW\*(C`ld.c\*(C'\fR / \f(CW\*(C`chk.a\*(C'\fR).
  22370. The default setting is disabled.
  22371. .IP "\fB\-msched\-ar\-data\-spec\fR" 4
  22372. .IX Item "-msched-ar-data-spec"
  22373. .PD 0
  22374. .IP "\fB\-mno\-sched\-ar\-data\-spec\fR" 4
  22375. .IX Item "-mno-sched-ar-data-spec"
  22376. .PD
  22377. (En/Dis)able data speculative scheduling after reload.
  22378. This results in generation of \f(CW\*(C`ld.a\*(C'\fR instructions and
  22379. the corresponding check instructions (\f(CW\*(C`ld.c\*(C'\fR / \f(CW\*(C`chk.a\*(C'\fR).
  22380. The default setting is enabled.
  22381. .IP "\fB\-mno\-sched\-control\-spec\fR" 4
  22382. .IX Item "-mno-sched-control-spec"
  22383. .PD 0
  22384. .IP "\fB\-msched\-control\-spec\fR" 4
  22385. .IX Item "-msched-control-spec"
  22386. .PD
  22387. (Dis/En)able control speculative scheduling. This feature is
  22388. available only during region scheduling (i.e. before reload).
  22389. This results in generation of the \f(CW\*(C`ld.s\*(C'\fR instructions and
  22390. the corresponding check instructions \f(CW\*(C`chk.s\*(C'\fR.
  22391. The default setting is disabled.
  22392. .IP "\fB\-msched\-br\-in\-data\-spec\fR" 4
  22393. .IX Item "-msched-br-in-data-spec"
  22394. .PD 0
  22395. .IP "\fB\-mno\-sched\-br\-in\-data\-spec\fR" 4
  22396. .IX Item "-mno-sched-br-in-data-spec"
  22397. .PD
  22398. (En/Dis)able speculative scheduling of the instructions that
  22399. are dependent on the data speculative loads before reload.
  22400. This is effective only with \fB\-msched\-br\-data\-spec\fR enabled.
  22401. The default setting is enabled.
  22402. .IP "\fB\-msched\-ar\-in\-data\-spec\fR" 4
  22403. .IX Item "-msched-ar-in-data-spec"
  22404. .PD 0
  22405. .IP "\fB\-mno\-sched\-ar\-in\-data\-spec\fR" 4
  22406. .IX Item "-mno-sched-ar-in-data-spec"
  22407. .PD
  22408. (En/Dis)able speculative scheduling of the instructions that
  22409. are dependent on the data speculative loads after reload.
  22410. This is effective only with \fB\-msched\-ar\-data\-spec\fR enabled.
  22411. The default setting is enabled.
  22412. .IP "\fB\-msched\-in\-control\-spec\fR" 4
  22413. .IX Item "-msched-in-control-spec"
  22414. .PD 0
  22415. .IP "\fB\-mno\-sched\-in\-control\-spec\fR" 4
  22416. .IX Item "-mno-sched-in-control-spec"
  22417. .PD
  22418. (En/Dis)able speculative scheduling of the instructions that
  22419. are dependent on the control speculative loads.
  22420. This is effective only with \fB\-msched\-control\-spec\fR enabled.
  22421. The default setting is enabled.
  22422. .IP "\fB\-mno\-sched\-prefer\-non\-data\-spec\-insns\fR" 4
  22423. .IX Item "-mno-sched-prefer-non-data-spec-insns"
  22424. .PD 0
  22425. .IP "\fB\-msched\-prefer\-non\-data\-spec\-insns\fR" 4
  22426. .IX Item "-msched-prefer-non-data-spec-insns"
  22427. .PD
  22428. If enabled, data-speculative instructions are chosen for schedule
  22429. only if there are no other choices at the moment. This makes
  22430. the use of the data speculation much more conservative.
  22431. The default setting is disabled.
  22432. .IP "\fB\-mno\-sched\-prefer\-non\-control\-spec\-insns\fR" 4
  22433. .IX Item "-mno-sched-prefer-non-control-spec-insns"
  22434. .PD 0
  22435. .IP "\fB\-msched\-prefer\-non\-control\-spec\-insns\fR" 4
  22436. .IX Item "-msched-prefer-non-control-spec-insns"
  22437. .PD
  22438. If enabled, control-speculative instructions are chosen for schedule
  22439. only if there are no other choices at the moment. This makes
  22440. the use of the control speculation much more conservative.
  22441. The default setting is disabled.
  22442. .IP "\fB\-mno\-sched\-count\-spec\-in\-critical\-path\fR" 4
  22443. .IX Item "-mno-sched-count-spec-in-critical-path"
  22444. .PD 0
  22445. .IP "\fB\-msched\-count\-spec\-in\-critical\-path\fR" 4
  22446. .IX Item "-msched-count-spec-in-critical-path"
  22447. .PD
  22448. If enabled, speculative dependencies are considered during
  22449. computation of the instructions priorities. This makes the use of the
  22450. speculation a bit more conservative.
  22451. The default setting is disabled.
  22452. .IP "\fB\-msched\-spec\-ldc\fR" 4
  22453. .IX Item "-msched-spec-ldc"
  22454. Use a simple data speculation check. This option is on by default.
  22455. .IP "\fB\-msched\-control\-spec\-ldc\fR" 4
  22456. .IX Item "-msched-control-spec-ldc"
  22457. Use a simple check for control speculation. This option is on by default.
  22458. .IP "\fB\-msched\-stop\-bits\-after\-every\-cycle\fR" 4
  22459. .IX Item "-msched-stop-bits-after-every-cycle"
  22460. Place a stop bit after every cycle when scheduling. This option is on
  22461. by default.
  22462. .IP "\fB\-msched\-fp\-mem\-deps\-zero\-cost\fR" 4
  22463. .IX Item "-msched-fp-mem-deps-zero-cost"
  22464. Assume that floating-point stores and loads are not likely to cause a conflict
  22465. when placed into the same instruction group. This option is disabled by
  22466. default.
  22467. .IP "\fB\-msel\-sched\-dont\-check\-control\-spec\fR" 4
  22468. .IX Item "-msel-sched-dont-check-control-spec"
  22469. Generate checks for control speculation in selective scheduling.
  22470. This flag is disabled by default.
  22471. .IP "\fB\-msched\-max\-memory\-insns=\fR\fImax-insns\fR" 4
  22472. .IX Item "-msched-max-memory-insns=max-insns"
  22473. Limit on the number of memory insns per instruction group, giving lower
  22474. priority to subsequent memory insns attempting to schedule in the same
  22475. instruction group. Frequently useful to prevent cache bank conflicts.
  22476. The default value is 1.
  22477. .IP "\fB\-msched\-max\-memory\-insns\-hard\-limit\fR" 4
  22478. .IX Item "-msched-max-memory-insns-hard-limit"
  22479. Makes the limit specified by \fBmsched-max-memory-insns\fR a hard limit,
  22480. disallowing more than that number in an instruction group.
  22481. Otherwise, the limit is \*(L"soft\*(R", meaning that non-memory operations
  22482. are preferred when the limit is reached, but memory operations may still
  22483. be scheduled.
  22484. .PP
  22485. \fI\s-1LM32\s0 Options\fR
  22486. .IX Subsection "LM32 Options"
  22487. .PP
  22488. These \fB\-m\fR options are defined for the LatticeMico32 architecture:
  22489. .IP "\fB\-mbarrel\-shift\-enabled\fR" 4
  22490. .IX Item "-mbarrel-shift-enabled"
  22491. Enable barrel-shift instructions.
  22492. .IP "\fB\-mdivide\-enabled\fR" 4
  22493. .IX Item "-mdivide-enabled"
  22494. Enable divide and modulus instructions.
  22495. .IP "\fB\-mmultiply\-enabled\fR" 4
  22496. .IX Item "-mmultiply-enabled"
  22497. Enable multiply instructions.
  22498. .IP "\fB\-msign\-extend\-enabled\fR" 4
  22499. .IX Item "-msign-extend-enabled"
  22500. Enable sign extend instructions.
  22501. .IP "\fB\-muser\-enabled\fR" 4
  22502. .IX Item "-muser-enabled"
  22503. Enable user-defined instructions.
  22504. .PP
  22505. \fIM32C Options\fR
  22506. .IX Subsection "M32C Options"
  22507. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  22508. .IX Item "-mcpu=name"
  22509. Select the \s-1CPU\s0 for which code is generated. \fIname\fR may be one of
  22510. \&\fBr8c\fR for the R8C/Tiny series, \fBm16c\fR for the M16C (up to
  22511. /60) series, \fBm32cm\fR for the M16C/80 series, or \fBm32c\fR for
  22512. the M32C/80 series.
  22513. .IP "\fB\-msim\fR" 4
  22514. .IX Item "-msim"
  22515. Specifies that the program will be run on the simulator. This causes
  22516. an alternate runtime library to be linked in which supports, for
  22517. example, file I/O. You must not use this option when generating
  22518. programs that will run on real hardware; you must provide your own
  22519. runtime library for whatever I/O functions are needed.
  22520. .IP "\fB\-memregs=\fR\fInumber\fR" 4
  22521. .IX Item "-memregs=number"
  22522. Specifies the number of memory-based pseudo-registers \s-1GCC\s0 uses
  22523. during code generation. These pseudo-registers are used like real
  22524. registers, so there is a tradeoff between \s-1GCC\s0's ability to fit the
  22525. code into available registers, and the performance penalty of using
  22526. memory instead of registers. Note that all modules in a program must
  22527. be compiled with the same value for this option. Because of that, you
  22528. must not use this option with \s-1GCC\s0's default runtime libraries.
  22529. .PP
  22530. \fIM32R/D Options\fR
  22531. .IX Subsection "M32R/D Options"
  22532. .PP
  22533. These \fB\-m\fR options are defined for Renesas M32R/D architectures:
  22534. .IP "\fB\-m32r2\fR" 4
  22535. .IX Item "-m32r2"
  22536. Generate code for the M32R/2.
  22537. .IP "\fB\-m32rx\fR" 4
  22538. .IX Item "-m32rx"
  22539. Generate code for the M32R/X.
  22540. .IP "\fB\-m32r\fR" 4
  22541. .IX Item "-m32r"
  22542. Generate code for the M32R. This is the default.
  22543. .IP "\fB\-mmodel=small\fR" 4
  22544. .IX Item "-mmodel=small"
  22545. Assume all objects live in the lower 16MB of memory (so that their addresses
  22546. can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
  22547. are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
  22548. This is the default.
  22549. .Sp
  22550. The addressability of a particular object can be set with the
  22551. \&\f(CW\*(C`model\*(C'\fR attribute.
  22552. .IP "\fB\-mmodel=medium\fR" 4
  22553. .IX Item "-mmodel=medium"
  22554. Assume objects may be anywhere in the 32\-bit address space (the compiler
  22555. generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
  22556. assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
  22557. .IP "\fB\-mmodel=large\fR" 4
  22558. .IX Item "-mmodel=large"
  22559. Assume objects may be anywhere in the 32\-bit address space (the compiler
  22560. generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
  22561. assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
  22562. (the compiler generates the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
  22563. instruction sequence).
  22564. .IP "\fB\-msdata=none\fR" 4
  22565. .IX Item "-msdata=none"
  22566. Disable use of the small data area. Variables are put into
  22567. one of \f(CW\*(C`.data\*(C'\fR, \f(CW\*(C`.bss\*(C'\fR, or \f(CW\*(C`.rodata\*(C'\fR (unless the
  22568. \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
  22569. This is the default.
  22570. .Sp
  22571. The small data area consists of sections \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR.
  22572. Objects may be explicitly put in the small data area with the
  22573. \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
  22574. .IP "\fB\-msdata=sdata\fR" 4
  22575. .IX Item "-msdata=sdata"
  22576. Put small global and static data in the small data area, but do not
  22577. generate special code to reference them.
  22578. .IP "\fB\-msdata=use\fR" 4
  22579. .IX Item "-msdata=use"
  22580. Put small global and static data in the small data area, and generate
  22581. special instructions to reference them.
  22582. .IP "\fB\-G\fR \fInum\fR" 4
  22583. .IX Item "-G num"
  22584. Put global and static objects less than or equal to \fInum\fR bytes
  22585. into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
  22586. sections. The default value of \fInum\fR is 8.
  22587. The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
  22588. for this option to have any effect.
  22589. .Sp
  22590. All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
  22591. Compiling with different values of \fInum\fR may or may not work; if it
  22592. doesn't the linker gives an error message\-\-\-incorrect code is not
  22593. generated.
  22594. .IP "\fB\-mdebug\fR" 4
  22595. .IX Item "-mdebug"
  22596. Makes the M32R\-specific code in the compiler display some statistics
  22597. that might help in debugging programs.
  22598. .IP "\fB\-malign\-loops\fR" 4
  22599. .IX Item "-malign-loops"
  22600. Align all loops to a 32\-byte boundary.
  22601. .IP "\fB\-mno\-align\-loops\fR" 4
  22602. .IX Item "-mno-align-loops"
  22603. Do not enforce a 32\-byte alignment for loops. This is the default.
  22604. .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
  22605. .IX Item "-missue-rate=number"
  22606. Issue \fInumber\fR instructions per cycle. \fInumber\fR can only be 1
  22607. or 2.
  22608. .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
  22609. .IX Item "-mbranch-cost=number"
  22610. \&\fInumber\fR can only be 1 or 2. If it is 1 then branches are
  22611. preferred over conditional code, if it is 2, then the opposite applies.
  22612. .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
  22613. .IX Item "-mflush-trap=number"
  22614. Specifies the trap number to use to flush the cache. The default is
  22615. 12. Valid numbers are between 0 and 15 inclusive.
  22616. .IP "\fB\-mno\-flush\-trap\fR" 4
  22617. .IX Item "-mno-flush-trap"
  22618. Specifies that the cache cannot be flushed by using a trap.
  22619. .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
  22620. .IX Item "-mflush-func=name"
  22621. Specifies the name of the operating system function to call to flush
  22622. the cache. The default is \fB_flush_cache\fR, but a function call
  22623. is only used if a trap is not available.
  22624. .IP "\fB\-mno\-flush\-func\fR" 4
  22625. .IX Item "-mno-flush-func"
  22626. Indicates that there is no \s-1OS\s0 function for flushing the cache.
  22627. .PP
  22628. \fIM680x0 Options\fR
  22629. .IX Subsection "M680x0 Options"
  22630. .PP
  22631. These are the \fB\-m\fR options defined for M680x0 and ColdFire processors.
  22632. The default settings depend on which architecture was selected when
  22633. the compiler was configured; the defaults for the most common choices
  22634. are given below.
  22635. .IP "\fB\-march=\fR\fIarch\fR" 4
  22636. .IX Item "-march=arch"
  22637. Generate code for a specific M680x0 or ColdFire instruction set
  22638. architecture. Permissible values of \fIarch\fR for M680x0
  22639. architectures are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
  22640. \&\fB68030\fR, \fB68040\fR, \fB68060\fR and \fBcpu32\fR. ColdFire
  22641. architectures are selected according to Freescale's \s-1ISA\s0 classification
  22642. and the permissible values are: \fBisaa\fR, \fBisaaplus\fR,
  22643. \&\fBisab\fR and \fBisac\fR.
  22644. .Sp
  22645. \&\s-1GCC\s0 defines a macro \f(CW\*(C`_\|_mcf\f(CIarch\f(CW_\|_\*(C'\fR whenever it is generating
  22646. code for a ColdFire target. The \fIarch\fR in this macro is one of the
  22647. \&\fB\-march\fR arguments given above.
  22648. .Sp
  22649. When used together, \fB\-march\fR and \fB\-mtune\fR select code
  22650. that runs on a family of similar processors but that is optimized
  22651. for a particular microarchitecture.
  22652. .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
  22653. .IX Item "-mcpu=cpu"
  22654. Generate code for a specific M680x0 or ColdFire processor.
  22655. The M680x0 \fIcpu\fRs are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
  22656. \&\fB68030\fR, \fB68040\fR, \fB68060\fR, \fB68302\fR, \fB68332\fR
  22657. and \fBcpu32\fR. The ColdFire \fIcpu\fRs are given by the table
  22658. below, which also classifies the CPUs into families:
  22659. .RS 4
  22660. .IP "Family : \fB\-mcpu\fR arguments" 4
  22661. .IX Item "Family : -mcpu arguments"
  22662. .PD 0
  22663. .IP "\fB51\fR : \fB51\fR \fB51ac\fR \fB51ag\fR \fB51cn\fR \fB51em\fR \fB51je\fR \fB51jf\fR \fB51jg\fR \fB51jm\fR \fB51mm\fR \fB51qe\fR \fB51qm\fR" 4
  22664. .IX Item "51 : 51 51ac 51ag 51cn 51em 51je 51jf 51jg 51jm 51mm 51qe 51qm"
  22665. .IP "\fB5206\fR : \fB5202\fR \fB5204\fR \fB5206\fR" 4
  22666. .IX Item "5206 : 5202 5204 5206"
  22667. .IP "\fB5206e\fR : \fB5206e\fR" 4
  22668. .IX Item "5206e : 5206e"
  22669. .IP "\fB5208\fR : \fB5207\fR \fB5208\fR" 4
  22670. .IX Item "5208 : 5207 5208"
  22671. .IP "\fB5211a\fR : \fB5210a\fR \fB5211a\fR" 4
  22672. .IX Item "5211a : 5210a 5211a"
  22673. .IP "\fB5213\fR : \fB5211\fR \fB5212\fR \fB5213\fR" 4
  22674. .IX Item "5213 : 5211 5212 5213"
  22675. .IP "\fB5216\fR : \fB5214\fR \fB5216\fR" 4
  22676. .IX Item "5216 : 5214 5216"
  22677. .IP "\fB52235\fR : \fB52230\fR \fB52231\fR \fB52232\fR \fB52233\fR \fB52234\fR \fB52235\fR" 4
  22678. .IX Item "52235 : 52230 52231 52232 52233 52234 52235"
  22679. .IP "\fB5225\fR : \fB5224\fR \fB5225\fR" 4
  22680. .IX Item "5225 : 5224 5225"
  22681. .IP "\fB52259\fR : \fB52252\fR \fB52254\fR \fB52255\fR \fB52256\fR \fB52258\fR \fB52259\fR" 4
  22682. .IX Item "52259 : 52252 52254 52255 52256 52258 52259"
  22683. .IP "\fB5235\fR : \fB5232\fR \fB5233\fR \fB5234\fR \fB5235\fR \fB523x\fR" 4
  22684. .IX Item "5235 : 5232 5233 5234 5235 523x"
  22685. .IP "\fB5249\fR : \fB5249\fR" 4
  22686. .IX Item "5249 : 5249"
  22687. .IP "\fB5250\fR : \fB5250\fR" 4
  22688. .IX Item "5250 : 5250"
  22689. .IP "\fB5271\fR : \fB5270\fR \fB5271\fR" 4
  22690. .IX Item "5271 : 5270 5271"
  22691. .IP "\fB5272\fR : \fB5272\fR" 4
  22692. .IX Item "5272 : 5272"
  22693. .IP "\fB5275\fR : \fB5274\fR \fB5275\fR" 4
  22694. .IX Item "5275 : 5274 5275"
  22695. .IP "\fB5282\fR : \fB5280\fR \fB5281\fR \fB5282\fR \fB528x\fR" 4
  22696. .IX Item "5282 : 5280 5281 5282 528x"
  22697. .IP "\fB53017\fR : \fB53011\fR \fB53012\fR \fB53013\fR \fB53014\fR \fB53015\fR \fB53016\fR \fB53017\fR" 4
  22698. .IX Item "53017 : 53011 53012 53013 53014 53015 53016 53017"
  22699. .IP "\fB5307\fR : \fB5307\fR" 4
  22700. .IX Item "5307 : 5307"
  22701. .IP "\fB5329\fR : \fB5327\fR \fB5328\fR \fB5329\fR \fB532x\fR" 4
  22702. .IX Item "5329 : 5327 5328 5329 532x"
  22703. .IP "\fB5373\fR : \fB5372\fR \fB5373\fR \fB537x\fR" 4
  22704. .IX Item "5373 : 5372 5373 537x"
  22705. .IP "\fB5407\fR : \fB5407\fR" 4
  22706. .IX Item "5407 : 5407"
  22707. .IP "\fB5475\fR : \fB5470\fR \fB5471\fR \fB5472\fR \fB5473\fR \fB5474\fR \fB5475\fR \fB547x\fR \fB5480\fR \fB5481\fR \fB5482\fR \fB5483\fR \fB5484\fR \fB5485\fR" 4
  22708. .IX Item "5475 : 5470 5471 5472 5473 5474 5475 547x 5480 5481 5482 5483 5484 5485"
  22709. .RE
  22710. .RS 4
  22711. .PD
  22712. .Sp
  22713. \&\fB\-mcpu=\fR\fIcpu\fR overrides \fB\-march=\fR\fIarch\fR if
  22714. \&\fIarch\fR is compatible with \fIcpu\fR. Other combinations of
  22715. \&\fB\-mcpu\fR and \fB\-march\fR are rejected.
  22716. .Sp
  22717. \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcf_cpu_\f(CIcpu\f(CW\*(C'\fR when ColdFire target
  22718. \&\fIcpu\fR is selected. It also defines \f(CW\*(C`_\|_mcf_family_\f(CIfamily\f(CW\*(C'\fR,
  22719. where the value of \fIfamily\fR is given by the table above.
  22720. .RE
  22721. .IP "\fB\-mtune=\fR\fItune\fR" 4
  22722. .IX Item "-mtune=tune"
  22723. Tune the code for a particular microarchitecture within the
  22724. constraints set by \fB\-march\fR and \fB\-mcpu\fR.
  22725. The M680x0 microarchitectures are: \fB68000\fR, \fB68010\fR,
  22726. \&\fB68020\fR, \fB68030\fR, \fB68040\fR, \fB68060\fR
  22727. and \fBcpu32\fR. The ColdFire microarchitectures
  22728. are: \fBcfv1\fR, \fBcfv2\fR, \fBcfv3\fR, \fBcfv4\fR and \fBcfv4e\fR.
  22729. .Sp
  22730. You can also use \fB\-mtune=68020\-40\fR for code that needs
  22731. to run relatively well on 68020, 68030 and 68040 targets.
  22732. \&\fB\-mtune=68020\-60\fR is similar but includes 68060 targets
  22733. as well. These two options select the same tuning decisions as
  22734. \&\fB\-m68020\-40\fR and \fB\-m68020\-60\fR respectively.
  22735. .Sp
  22736. \&\s-1GCC\s0 defines the macros \f(CW\*(C`_\|_mc\f(CIarch\f(CW\*(C'\fR and \f(CW\*(C`_\|_mc\f(CIarch\f(CW_\|_\*(C'\fR
  22737. when tuning for 680x0 architecture \fIarch\fR. It also defines
  22738. \&\f(CW\*(C`mc\f(CIarch\f(CW\*(C'\fR unless either \fB\-ansi\fR or a non-GNU \fB\-std\fR
  22739. option is used. If \s-1GCC\s0 is tuning for a range of architectures,
  22740. as selected by \fB\-mtune=68020\-40\fR or \fB\-mtune=68020\-60\fR,
  22741. it defines the macros for every architecture in the range.
  22742. .Sp
  22743. \&\s-1GCC\s0 also defines the macro \f(CW\*(C`_\|_m\f(CIuarch\f(CW_\|_\*(C'\fR when tuning for
  22744. ColdFire microarchitecture \fIuarch\fR, where \fIuarch\fR is one
  22745. of the arguments given above.
  22746. .IP "\fB\-m68000\fR" 4
  22747. .IX Item "-m68000"
  22748. .PD 0
  22749. .IP "\fB\-mc68000\fR" 4
  22750. .IX Item "-mc68000"
  22751. .PD
  22752. Generate output for a 68000. This is the default
  22753. when the compiler is configured for 68000\-based systems.
  22754. It is equivalent to \fB\-march=68000\fR.
  22755. .Sp
  22756. Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
  22757. including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
  22758. .IP "\fB\-m68010\fR" 4
  22759. .IX Item "-m68010"
  22760. Generate output for a 68010. This is the default
  22761. when the compiler is configured for 68010\-based systems.
  22762. It is equivalent to \fB\-march=68010\fR.
  22763. .IP "\fB\-m68020\fR" 4
  22764. .IX Item "-m68020"
  22765. .PD 0
  22766. .IP "\fB\-mc68020\fR" 4
  22767. .IX Item "-mc68020"
  22768. .PD
  22769. Generate output for a 68020. This is the default
  22770. when the compiler is configured for 68020\-based systems.
  22771. It is equivalent to \fB\-march=68020\fR.
  22772. .IP "\fB\-m68030\fR" 4
  22773. .IX Item "-m68030"
  22774. Generate output for a 68030. This is the default when the compiler is
  22775. configured for 68030\-based systems. It is equivalent to
  22776. \&\fB\-march=68030\fR.
  22777. .IP "\fB\-m68040\fR" 4
  22778. .IX Item "-m68040"
  22779. Generate output for a 68040. This is the default when the compiler is
  22780. configured for 68040\-based systems. It is equivalent to
  22781. \&\fB\-march=68040\fR.
  22782. .Sp
  22783. This option inhibits the use of 68881/68882 instructions that have to be
  22784. emulated by software on the 68040. Use this option if your 68040 does not
  22785. have code to emulate those instructions.
  22786. .IP "\fB\-m68060\fR" 4
  22787. .IX Item "-m68060"
  22788. Generate output for a 68060. This is the default when the compiler is
  22789. configured for 68060\-based systems. It is equivalent to
  22790. \&\fB\-march=68060\fR.
  22791. .Sp
  22792. This option inhibits the use of 68020 and 68881/68882 instructions that
  22793. have to be emulated by software on the 68060. Use this option if your 68060
  22794. does not have code to emulate those instructions.
  22795. .IP "\fB\-mcpu32\fR" 4
  22796. .IX Item "-mcpu32"
  22797. Generate output for a \s-1CPU32.\s0 This is the default
  22798. when the compiler is configured for CPU32\-based systems.
  22799. It is equivalent to \fB\-march=cpu32\fR.
  22800. .Sp
  22801. Use this option for microcontrollers with a
  22802. \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
  22803. 68336, 68340, 68341, 68349 and 68360.
  22804. .IP "\fB\-m5200\fR" 4
  22805. .IX Item "-m5200"
  22806. Generate output for a 520X ColdFire \s-1CPU.\s0 This is the default
  22807. when the compiler is configured for 520X\-based systems.
  22808. It is equivalent to \fB\-mcpu=5206\fR, and is now deprecated
  22809. in favor of that option.
  22810. .Sp
  22811. Use this option for microcontroller with a 5200 core, including
  22812. the \s-1MCF5202, MCF5203, MCF5204\s0 and \s-1MCF5206.\s0
  22813. .IP "\fB\-m5206e\fR" 4
  22814. .IX Item "-m5206e"
  22815. Generate output for a 5206e ColdFire \s-1CPU.\s0 The option is now
  22816. deprecated in favor of the equivalent \fB\-mcpu=5206e\fR.
  22817. .IP "\fB\-m528x\fR" 4
  22818. .IX Item "-m528x"
  22819. Generate output for a member of the ColdFire 528X family.
  22820. The option is now deprecated in favor of the equivalent
  22821. \&\fB\-mcpu=528x\fR.
  22822. .IP "\fB\-m5307\fR" 4
  22823. .IX Item "-m5307"
  22824. Generate output for a ColdFire 5307 \s-1CPU.\s0 The option is now deprecated
  22825. in favor of the equivalent \fB\-mcpu=5307\fR.
  22826. .IP "\fB\-m5407\fR" 4
  22827. .IX Item "-m5407"
  22828. Generate output for a ColdFire 5407 \s-1CPU.\s0 The option is now deprecated
  22829. in favor of the equivalent \fB\-mcpu=5407\fR.
  22830. .IP "\fB\-mcfv4e\fR" 4
  22831. .IX Item "-mcfv4e"
  22832. Generate output for a ColdFire V4e family \s-1CPU\s0 (e.g. 547x/548x).
  22833. This includes use of hardware floating-point instructions.
  22834. The option is equivalent to \fB\-mcpu=547x\fR, and is now
  22835. deprecated in favor of that option.
  22836. .IP "\fB\-m68020\-40\fR" 4
  22837. .IX Item "-m68020-40"
  22838. Generate output for a 68040, without using any of the new instructions.
  22839. This results in code that can run relatively efficiently on either a
  22840. 68020/68881 or a 68030 or a 68040. The generated code does use the
  22841. 68881 instructions that are emulated on the 68040.
  22842. .Sp
  22843. The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-40\fR.
  22844. .IP "\fB\-m68020\-60\fR" 4
  22845. .IX Item "-m68020-60"
  22846. Generate output for a 68060, without using any of the new instructions.
  22847. This results in code that can run relatively efficiently on either a
  22848. 68020/68881 or a 68030 or a 68040. The generated code does use the
  22849. 68881 instructions that are emulated on the 68060.
  22850. .Sp
  22851. The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-60\fR.
  22852. .IP "\fB\-mhard\-float\fR" 4
  22853. .IX Item "-mhard-float"
  22854. .PD 0
  22855. .IP "\fB\-m68881\fR" 4
  22856. .IX Item "-m68881"
  22857. .PD
  22858. Generate floating-point instructions. This is the default for 68020
  22859. and above, and for ColdFire devices that have an \s-1FPU.\s0 It defines the
  22860. macro \f(CW\*(C`_\|_HAVE_68881_\|_\*(C'\fR on M680x0 targets and \f(CW\*(C`_\|_mcffpu_\|_\*(C'\fR
  22861. on ColdFire targets.
  22862. .IP "\fB\-msoft\-float\fR" 4
  22863. .IX Item "-msoft-float"
  22864. Do not generate floating-point instructions; use library calls instead.
  22865. This is the default for 68000, 68010, and 68832 targets. It is also
  22866. the default for ColdFire devices that have no \s-1FPU.\s0
  22867. .IP "\fB\-mdiv\fR" 4
  22868. .IX Item "-mdiv"
  22869. .PD 0
  22870. .IP "\fB\-mno\-div\fR" 4
  22871. .IX Item "-mno-div"
  22872. .PD
  22873. Generate (do not generate) ColdFire hardware divide and remainder
  22874. instructions. If \fB\-march\fR is used without \fB\-mcpu\fR,
  22875. the default is \*(L"on\*(R" for ColdFire architectures and \*(L"off\*(R" for M680x0
  22876. architectures. Otherwise, the default is taken from the target \s-1CPU\s0
  22877. (either the default \s-1CPU,\s0 or the one specified by \fB\-mcpu\fR). For
  22878. example, the default is \*(L"off\*(R" for \fB\-mcpu=5206\fR and \*(L"on\*(R" for
  22879. \&\fB\-mcpu=5206e\fR.
  22880. .Sp
  22881. \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcfhwdiv_\|_\*(C'\fR when this option is enabled.
  22882. .IP "\fB\-mshort\fR" 4
  22883. .IX Item "-mshort"
  22884. Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
  22885. Additionally, parameters passed on the stack are also aligned to a
  22886. 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
  22887. .IP "\fB\-mno\-short\fR" 4
  22888. .IX Item "-mno-short"
  22889. Do not consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide. This is the default.
  22890. .IP "\fB\-mnobitfield\fR" 4
  22891. .IX Item "-mnobitfield"
  22892. .PD 0
  22893. .IP "\fB\-mno\-bitfield\fR" 4
  22894. .IX Item "-mno-bitfield"
  22895. .PD
  22896. Do not use the bit-field instructions. The \fB\-m68000\fR, \fB\-mcpu32\fR
  22897. and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
  22898. .IP "\fB\-mbitfield\fR" 4
  22899. .IX Item "-mbitfield"
  22900. Do use the bit-field instructions. The \fB\-m68020\fR option implies
  22901. \&\fB\-mbitfield\fR. This is the default if you use a configuration
  22902. designed for a 68020.
  22903. .IP "\fB\-mrtd\fR" 4
  22904. .IX Item "-mrtd"
  22905. Use a different function-calling convention, in which functions
  22906. that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
  22907. instruction, which pops their arguments while returning. This
  22908. saves one instruction in the caller since there is no need to pop
  22909. the arguments there.
  22910. .Sp
  22911. This calling convention is incompatible with the one normally
  22912. used on Unix, so you cannot use it if you need to call libraries
  22913. compiled with the Unix compiler.
  22914. .Sp
  22915. Also, you must provide function prototypes for all functions that
  22916. take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
  22917. otherwise incorrect code is generated for calls to those
  22918. functions.
  22919. .Sp
  22920. In addition, seriously incorrect code results if you call a
  22921. function with too many arguments. (Normally, extra arguments are
  22922. harmlessly ignored.)
  22923. .Sp
  22924. The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
  22925. 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
  22926. .Sp
  22927. The default is \fB\-mno\-rtd\fR.
  22928. .IP "\fB\-malign\-int\fR" 4
  22929. .IX Item "-malign-int"
  22930. .PD 0
  22931. .IP "\fB\-mno\-align\-int\fR" 4
  22932. .IX Item "-mno-align-int"
  22933. .PD
  22934. Control whether \s-1GCC\s0 aligns \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`long long\*(C'\fR,
  22935. \&\f(CW\*(C`float\*(C'\fR, \f(CW\*(C`double\*(C'\fR, and \f(CW\*(C`long double\*(C'\fR variables on a 32\-bit
  22936. boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
  22937. Aligning variables on 32\-bit boundaries produces code that runs somewhat
  22938. faster on processors with 32\-bit busses at the expense of more memory.
  22939. .Sp
  22940. \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0
  22941. aligns structures containing the above types differently than
  22942. most published application binary interface specifications for the m68k.
  22943. .Sp
  22944. Use the pc-relative addressing mode of the 68000 directly, instead of
  22945. using a global offset table. At present, this option implies \fB\-fpic\fR,
  22946. allowing at most a 16\-bit offset for pc-relative addressing. \fB\-fPIC\fR is
  22947. not presently supported with \fB\-mpcrel\fR, though this could be supported for
  22948. 68020 and higher processors.
  22949. .IP "\fB\-mno\-strict\-align\fR" 4
  22950. .IX Item "-mno-strict-align"
  22951. .PD 0
  22952. .IP "\fB\-mstrict\-align\fR" 4
  22953. .IX Item "-mstrict-align"
  22954. .PD
  22955. Do not (do) assume that unaligned memory references are handled by
  22956. the system.
  22957. .IP "\fB\-msep\-data\fR" 4
  22958. .IX Item "-msep-data"
  22959. Generate code that allows the data segment to be located in a different
  22960. area of memory from the text segment. This allows for execute-in-place in
  22961. an environment without virtual memory management. This option implies
  22962. \&\fB\-fPIC\fR.
  22963. .IP "\fB\-mno\-sep\-data\fR" 4
  22964. .IX Item "-mno-sep-data"
  22965. Generate code that assumes that the data segment follows the text segment.
  22966. This is the default.
  22967. .IP "\fB\-mid\-shared\-library\fR" 4
  22968. .IX Item "-mid-shared-library"
  22969. Generate code that supports shared libraries via the library \s-1ID\s0 method.
  22970. This allows for execute-in-place and shared libraries in an environment
  22971. without virtual memory management. This option implies \fB\-fPIC\fR.
  22972. .IP "\fB\-mno\-id\-shared\-library\fR" 4
  22973. .IX Item "-mno-id-shared-library"
  22974. Generate code that doesn't assume ID-based shared libraries are being used.
  22975. This is the default.
  22976. .IP "\fB\-mshared\-library\-id=n\fR" 4
  22977. .IX Item "-mshared-library-id=n"
  22978. Specifies the identification number of the ID-based shared library being
  22979. compiled. Specifying a value of 0 generates more compact code; specifying
  22980. other values forces the allocation of that number to the current
  22981. library, but is no more space\- or time-efficient than omitting this option.
  22982. .IP "\fB\-mxgot\fR" 4
  22983. .IX Item "-mxgot"
  22984. .PD 0
  22985. .IP "\fB\-mno\-xgot\fR" 4
  22986. .IX Item "-mno-xgot"
  22987. .PD
  22988. When generating position-independent code for ColdFire, generate code
  22989. that works if the \s-1GOT\s0 has more than 8192 entries. This code is
  22990. larger and slower than code generated without this option. On M680x0
  22991. processors, this option is not needed; \fB\-fPIC\fR suffices.
  22992. .Sp
  22993. \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT.\s0
  22994. While this is relatively efficient, it only works if the \s-1GOT\s0
  22995. is smaller than about 64k. Anything larger causes the linker
  22996. to report an error such as:
  22997. .Sp
  22998. .Vb 1
  22999. \& relocation truncated to fit: R_68K_GOT16O foobar
  23000. .Ve
  23001. .Sp
  23002. If this happens, you should recompile your code with \fB\-mxgot\fR.
  23003. It should then work with very large GOTs. However, code generated with
  23004. \&\fB\-mxgot\fR is less efficient, since it takes 4 instructions to fetch
  23005. the value of a global symbol.
  23006. .Sp
  23007. Note that some linkers, including newer versions of the \s-1GNU\s0 linker,
  23008. can create multiple GOTs and sort \s-1GOT\s0 entries. If you have such a linker,
  23009. you should only need to use \fB\-mxgot\fR when compiling a single
  23010. object file that accesses more than 8192 \s-1GOT\s0 entries. Very few do.
  23011. .Sp
  23012. These options have no effect unless \s-1GCC\s0 is generating
  23013. position-independent code.
  23014. .IP "\fB\-mlong\-jump\-table\-offsets\fR" 4
  23015. .IX Item "-mlong-jump-table-offsets"
  23016. Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables. The default is to use
  23017. 16\-bit offsets.
  23018. .PP
  23019. \fIMCore Options\fR
  23020. .IX Subsection "MCore Options"
  23021. .PP
  23022. These are the \fB\-m\fR options defined for the Motorola M*Core
  23023. processors.
  23024. .IP "\fB\-mhardlit\fR" 4
  23025. .IX Item "-mhardlit"
  23026. .PD 0
  23027. .IP "\fB\-mno\-hardlit\fR" 4
  23028. .IX Item "-mno-hardlit"
  23029. .PD
  23030. Inline constants into the code stream if it can be done in two
  23031. instructions or less.
  23032. .IP "\fB\-mdiv\fR" 4
  23033. .IX Item "-mdiv"
  23034. .PD 0
  23035. .IP "\fB\-mno\-div\fR" 4
  23036. .IX Item "-mno-div"
  23037. .PD
  23038. Use the divide instruction. (Enabled by default).
  23039. .IP "\fB\-mrelax\-immediate\fR" 4
  23040. .IX Item "-mrelax-immediate"
  23041. .PD 0
  23042. .IP "\fB\-mno\-relax\-immediate\fR" 4
  23043. .IX Item "-mno-relax-immediate"
  23044. .PD
  23045. Allow arbitrary-sized immediates in bit operations.
  23046. .IP "\fB\-mwide\-bitfields\fR" 4
  23047. .IX Item "-mwide-bitfields"
  23048. .PD 0
  23049. .IP "\fB\-mno\-wide\-bitfields\fR" 4
  23050. .IX Item "-mno-wide-bitfields"
  23051. .PD
  23052. Always treat bit-fields as \f(CW\*(C`int\*(C'\fR\-sized.
  23053. .IP "\fB\-m4byte\-functions\fR" 4
  23054. .IX Item "-m4byte-functions"
  23055. .PD 0
  23056. .IP "\fB\-mno\-4byte\-functions\fR" 4
  23057. .IX Item "-mno-4byte-functions"
  23058. .PD
  23059. Force all functions to be aligned to a 4\-byte boundary.
  23060. .IP "\fB\-mcallgraph\-data\fR" 4
  23061. .IX Item "-mcallgraph-data"
  23062. .PD 0
  23063. .IP "\fB\-mno\-callgraph\-data\fR" 4
  23064. .IX Item "-mno-callgraph-data"
  23065. .PD
  23066. Emit callgraph information.
  23067. .IP "\fB\-mslow\-bytes\fR" 4
  23068. .IX Item "-mslow-bytes"
  23069. .PD 0
  23070. .IP "\fB\-mno\-slow\-bytes\fR" 4
  23071. .IX Item "-mno-slow-bytes"
  23072. .PD
  23073. Prefer word access when reading byte quantities.
  23074. .IP "\fB\-mlittle\-endian\fR" 4
  23075. .IX Item "-mlittle-endian"
  23076. .PD 0
  23077. .IP "\fB\-mbig\-endian\fR" 4
  23078. .IX Item "-mbig-endian"
  23079. .PD
  23080. Generate code for a little-endian target.
  23081. .IP "\fB\-m210\fR" 4
  23082. .IX Item "-m210"
  23083. .PD 0
  23084. .IP "\fB\-m340\fR" 4
  23085. .IX Item "-m340"
  23086. .PD
  23087. Generate code for the 210 processor.
  23088. .IP "\fB\-mno\-lsim\fR" 4
  23089. .IX Item "-mno-lsim"
  23090. Assume that runtime support has been provided and so omit the
  23091. simulator library (\fIlibsim.a)\fR from the linker command line.
  23092. .IP "\fB\-mstack\-increment=\fR\fIsize\fR" 4
  23093. .IX Item "-mstack-increment=size"
  23094. Set the maximum amount for a single stack increment operation. Large
  23095. values can increase the speed of programs that contain functions
  23096. that need a large amount of stack space, but they can also trigger a
  23097. segmentation fault if the stack is extended too much. The default
  23098. value is 0x1000.
  23099. .PP
  23100. \fIMeP Options\fR
  23101. .IX Subsection "MeP Options"
  23102. .IP "\fB\-mabsdiff\fR" 4
  23103. .IX Item "-mabsdiff"
  23104. Enables the \f(CW\*(C`abs\*(C'\fR instruction, which is the absolute difference
  23105. between two registers.
  23106. .IP "\fB\-mall\-opts\fR" 4
  23107. .IX Item "-mall-opts"
  23108. Enables all the optional instructions\-\-\-average, multiply, divide, bit
  23109. operations, leading zero, absolute difference, min/max, clip, and
  23110. saturation.
  23111. .IP "\fB\-maverage\fR" 4
  23112. .IX Item "-maverage"
  23113. Enables the \f(CW\*(C`ave\*(C'\fR instruction, which computes the average of two
  23114. registers.
  23115. .IP "\fB\-mbased=\fR\fIn\fR" 4
  23116. .IX Item "-mbased=n"
  23117. Variables of size \fIn\fR bytes or smaller are placed in the
  23118. \&\f(CW\*(C`.based\*(C'\fR section by default. Based variables use the \f(CW$tp\fR
  23119. register as a base register, and there is a 128\-byte limit to the
  23120. \&\f(CW\*(C`.based\*(C'\fR section.
  23121. .IP "\fB\-mbitops\fR" 4
  23122. .IX Item "-mbitops"
  23123. Enables the bit operation instructions\-\-\-bit test (\f(CW\*(C`btstm\*(C'\fR), set
  23124. (\f(CW\*(C`bsetm\*(C'\fR), clear (\f(CW\*(C`bclrm\*(C'\fR), invert (\f(CW\*(C`bnotm\*(C'\fR), and
  23125. test-and-set (\f(CW\*(C`tas\*(C'\fR).
  23126. .IP "\fB\-mc=\fR\fIname\fR" 4
  23127. .IX Item "-mc=name"
  23128. Selects which section constant data is placed in. \fIname\fR may
  23129. be \fBtiny\fR, \fBnear\fR, or \fBfar\fR.
  23130. .IP "\fB\-mclip\fR" 4
  23131. .IX Item "-mclip"
  23132. Enables the \f(CW\*(C`clip\*(C'\fR instruction. Note that \fB\-mclip\fR is not
  23133. useful unless you also provide \fB\-mminmax\fR.
  23134. .IP "\fB\-mconfig=\fR\fIname\fR" 4
  23135. .IX Item "-mconfig=name"
  23136. Selects one of the built-in core configurations. Each MeP chip has
  23137. one or more modules in it; each module has a core \s-1CPU\s0 and a variety of
  23138. coprocessors, optional instructions, and peripherals. The
  23139. \&\f(CW\*(C`MeP\-Integrator\*(C'\fR tool, not part of \s-1GCC,\s0 provides these
  23140. configurations through this option; using this option is the same as
  23141. using all the corresponding command-line options. The default
  23142. configuration is \fBdefault\fR.
  23143. .IP "\fB\-mcop\fR" 4
  23144. .IX Item "-mcop"
  23145. Enables the coprocessor instructions. By default, this is a 32\-bit
  23146. coprocessor. Note that the coprocessor is normally enabled via the
  23147. \&\fB\-mconfig=\fR option.
  23148. .IP "\fB\-mcop32\fR" 4
  23149. .IX Item "-mcop32"
  23150. Enables the 32\-bit coprocessor's instructions.
  23151. .IP "\fB\-mcop64\fR" 4
  23152. .IX Item "-mcop64"
  23153. Enables the 64\-bit coprocessor's instructions.
  23154. .IP "\fB\-mivc2\fR" 4
  23155. .IX Item "-mivc2"
  23156. Enables \s-1IVC2\s0 scheduling. \s-1IVC2\s0 is a 64\-bit \s-1VLIW\s0 coprocessor.
  23157. .IP "\fB\-mdc\fR" 4
  23158. .IX Item "-mdc"
  23159. Causes constant variables to be placed in the \f(CW\*(C`.near\*(C'\fR section.
  23160. .IP "\fB\-mdiv\fR" 4
  23161. .IX Item "-mdiv"
  23162. Enables the \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions.
  23163. .IP "\fB\-meb\fR" 4
  23164. .IX Item "-meb"
  23165. Generate big-endian code.
  23166. .IP "\fB\-mel\fR" 4
  23167. .IX Item "-mel"
  23168. Generate little-endian code.
  23169. .IP "\fB\-mio\-volatile\fR" 4
  23170. .IX Item "-mio-volatile"
  23171. Tells the compiler that any variable marked with the \f(CW\*(C`io\*(C'\fR
  23172. attribute is to be considered volatile.
  23173. .IP "\fB\-ml\fR" 4
  23174. .IX Item "-ml"
  23175. Causes variables to be assigned to the \f(CW\*(C`.far\*(C'\fR section by default.
  23176. .IP "\fB\-mleadz\fR" 4
  23177. .IX Item "-mleadz"
  23178. Enables the \f(CW\*(C`leadz\*(C'\fR (leading zero) instruction.
  23179. .IP "\fB\-mm\fR" 4
  23180. .IX Item "-mm"
  23181. Causes variables to be assigned to the \f(CW\*(C`.near\*(C'\fR section by default.
  23182. .IP "\fB\-mminmax\fR" 4
  23183. .IX Item "-mminmax"
  23184. Enables the \f(CW\*(C`min\*(C'\fR and \f(CW\*(C`max\*(C'\fR instructions.
  23185. .IP "\fB\-mmult\fR" 4
  23186. .IX Item "-mmult"
  23187. Enables the multiplication and multiply-accumulate instructions.
  23188. .IP "\fB\-mno\-opts\fR" 4
  23189. .IX Item "-mno-opts"
  23190. Disables all the optional instructions enabled by \fB\-mall\-opts\fR.
  23191. .IP "\fB\-mrepeat\fR" 4
  23192. .IX Item "-mrepeat"
  23193. Enables the \f(CW\*(C`repeat\*(C'\fR and \f(CW\*(C`erepeat\*(C'\fR instructions, used for
  23194. low-overhead looping.
  23195. .IP "\fB\-ms\fR" 4
  23196. .IX Item "-ms"
  23197. Causes all variables to default to the \f(CW\*(C`.tiny\*(C'\fR section. Note
  23198. that there is a 65536\-byte limit to this section. Accesses to these
  23199. variables use the \f(CW%gp\fR base register.
  23200. .IP "\fB\-msatur\fR" 4
  23201. .IX Item "-msatur"
  23202. Enables the saturation instructions. Note that the compiler does not
  23203. currently generate these itself, but this option is included for
  23204. compatibility with other tools, like \f(CW\*(C`as\*(C'\fR.
  23205. .IP "\fB\-msdram\fR" 4
  23206. .IX Item "-msdram"
  23207. Link the SDRAM-based runtime instead of the default ROM-based runtime.
  23208. .IP "\fB\-msim\fR" 4
  23209. .IX Item "-msim"
  23210. Link the simulator run-time libraries.
  23211. .IP "\fB\-msimnovec\fR" 4
  23212. .IX Item "-msimnovec"
  23213. Link the simulator runtime libraries, excluding built-in support
  23214. for reset and exception vectors and tables.
  23215. .IP "\fB\-mtf\fR" 4
  23216. .IX Item "-mtf"
  23217. Causes all functions to default to the \f(CW\*(C`.far\*(C'\fR section. Without
  23218. this option, functions default to the \f(CW\*(C`.near\*(C'\fR section.
  23219. .IP "\fB\-mtiny=\fR\fIn\fR" 4
  23220. .IX Item "-mtiny=n"
  23221. Variables that are \fIn\fR bytes or smaller are allocated to the
  23222. \&\f(CW\*(C`.tiny\*(C'\fR section. These variables use the \f(CW$gp\fR base
  23223. register. The default for this option is 4, but note that there's a
  23224. 65536\-byte limit to the \f(CW\*(C`.tiny\*(C'\fR section.
  23225. .PP
  23226. \fIMicroBlaze Options\fR
  23227. .IX Subsection "MicroBlaze Options"
  23228. .IP "\fB\-msoft\-float\fR" 4
  23229. .IX Item "-msoft-float"
  23230. Use software emulation for floating point (default).
  23231. .IP "\fB\-mhard\-float\fR" 4
  23232. .IX Item "-mhard-float"
  23233. Use hardware floating-point instructions.
  23234. .IP "\fB\-mmemcpy\fR" 4
  23235. .IX Item "-mmemcpy"
  23236. Do not optimize block moves, use \f(CW\*(C`memcpy\*(C'\fR.
  23237. .IP "\fB\-mno\-clearbss\fR" 4
  23238. .IX Item "-mno-clearbss"
  23239. This option is deprecated. Use \fB\-fno\-zero\-initialized\-in\-bss\fR instead.
  23240. .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
  23241. .IX Item "-mcpu=cpu-type"
  23242. Use features of, and schedule code for, the given \s-1CPU.\s0
  23243. Supported values are in the format \fBv\fR\fIX\fR\fB.\fR\fI\s-1YY\s0\fR\fB.\fR\fIZ\fR,
  23244. where \fIX\fR is a major version, \fI\s-1YY\s0\fR is the minor version, and
  23245. \&\fIZ\fR is compatibility code. Example values are \fBv3.00.a\fR,
  23246. \&\fBv4.00.b\fR, \fBv5.00.a\fR, \fBv5.00.b\fR, \fBv6.00.a\fR.
  23247. .IP "\fB\-mxl\-soft\-mul\fR" 4
  23248. .IX Item "-mxl-soft-mul"
  23249. Use software multiply emulation (default).
  23250. .IP "\fB\-mxl\-soft\-div\fR" 4
  23251. .IX Item "-mxl-soft-div"
  23252. Use software emulation for divides (default).
  23253. .IP "\fB\-mxl\-barrel\-shift\fR" 4
  23254. .IX Item "-mxl-barrel-shift"
  23255. Use the hardware barrel shifter.
  23256. .IP "\fB\-mxl\-pattern\-compare\fR" 4
  23257. .IX Item "-mxl-pattern-compare"
  23258. Use pattern compare instructions.
  23259. .IP "\fB\-msmall\-divides\fR" 4
  23260. .IX Item "-msmall-divides"
  23261. Use table lookup optimization for small signed integer divisions.
  23262. .IP "\fB\-mxl\-stack\-check\fR" 4
  23263. .IX Item "-mxl-stack-check"
  23264. This option is deprecated. Use \fB\-fstack\-check\fR instead.
  23265. .IP "\fB\-mxl\-gp\-opt\fR" 4
  23266. .IX Item "-mxl-gp-opt"
  23267. Use GP-relative \f(CW\*(C`.sdata\*(C'\fR/\f(CW\*(C`.sbss\*(C'\fR sections.
  23268. .IP "\fB\-mxl\-multiply\-high\fR" 4
  23269. .IX Item "-mxl-multiply-high"
  23270. Use multiply high instructions for high part of 32x32 multiply.
  23271. .IP "\fB\-mxl\-float\-convert\fR" 4
  23272. .IX Item "-mxl-float-convert"
  23273. Use hardware floating-point conversion instructions.
  23274. .IP "\fB\-mxl\-float\-sqrt\fR" 4
  23275. .IX Item "-mxl-float-sqrt"
  23276. Use hardware floating-point square root instruction.
  23277. .IP "\fB\-mbig\-endian\fR" 4
  23278. .IX Item "-mbig-endian"
  23279. Generate code for a big-endian target.
  23280. .IP "\fB\-mlittle\-endian\fR" 4
  23281. .IX Item "-mlittle-endian"
  23282. Generate code for a little-endian target.
  23283. .IP "\fB\-mxl\-reorder\fR" 4
  23284. .IX Item "-mxl-reorder"
  23285. Use reorder instructions (swap and byte reversed load/store).
  23286. .IP "\fB\-mxl\-mode\-\fR\fIapp-model\fR" 4
  23287. .IX Item "-mxl-mode-app-model"
  23288. Select application model \fIapp-model\fR. Valid models are
  23289. .RS 4
  23290. .IP "\fBexecutable\fR" 4
  23291. .IX Item "executable"
  23292. normal executable (default), uses startup code \fIcrt0.o\fR.
  23293. .IP "\fB\-mpic\-data\-is\-text\-relative\fR" 4
  23294. .IX Item "-mpic-data-is-text-relative"
  23295. Assume that the displacement between the text and data segments is fixed
  23296. at static link time. This allows data to be referenced by offset from start of
  23297. text address instead of \s-1GOT\s0 since PC-relative addressing is not supported.
  23298. .IP "\fBxmdstub\fR" 4
  23299. .IX Item "xmdstub"
  23300. for use with Xilinx Microprocessor Debugger (\s-1XMD\s0) based
  23301. software intrusive debug agent called xmdstub. This uses startup file
  23302. \&\fIcrt1.o\fR and sets the start address of the program to 0x800.
  23303. .IP "\fBbootstrap\fR" 4
  23304. .IX Item "bootstrap"
  23305. for applications that are loaded using a bootloader.
  23306. This model uses startup file \fIcrt2.o\fR which does not contain a processor
  23307. reset vector handler. This is suitable for transferring control on a
  23308. processor reset to the bootloader rather than the application.
  23309. .IP "\fBnovectors\fR" 4
  23310. .IX Item "novectors"
  23311. for applications that do not require any of the
  23312. MicroBlaze vectors. This option may be useful for applications running
  23313. within a monitoring application. This model uses \fIcrt3.o\fR as a startup file.
  23314. .RE
  23315. .RS 4
  23316. .Sp
  23317. Option \fB\-xl\-mode\-\fR\fIapp-model\fR is a deprecated alias for
  23318. \&\fB\-mxl\-mode\-\fR\fIapp-model\fR.
  23319. .RE
  23320. .PP
  23321. \fI\s-1MIPS\s0 Options\fR
  23322. .IX Subsection "MIPS Options"
  23323. .IP "\fB\-EB\fR" 4
  23324. .IX Item "-EB"
  23325. Generate big-endian code.
  23326. .IP "\fB\-EL\fR" 4
  23327. .IX Item "-EL"
  23328. Generate little-endian code. This is the default for \fBmips*el\-*\-*\fR
  23329. configurations.
  23330. .IP "\fB\-march=\fR\fIarch\fR" 4
  23331. .IX Item "-march=arch"
  23332. Generate code that runs on \fIarch\fR, which can be the name of a
  23333. generic \s-1MIPS ISA,\s0 or the name of a particular processor.
  23334. The \s-1ISA\s0 names are:
  23335. \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
  23336. \&\fBmips32\fR, \fBmips32r2\fR, \fBmips32r3\fR, \fBmips32r5\fR,
  23337. \&\fBmips32r6\fR, \fBmips64\fR, \fBmips64r2\fR, \fBmips64r3\fR,
  23338. \&\fBmips64r5\fR and \fBmips64r6\fR.
  23339. The processor names are:
  23340. \&\fB4kc\fR, \fB4km\fR, \fB4kp\fR, \fB4ksc\fR,
  23341. \&\fB4kec\fR, \fB4kem\fR, \fB4kep\fR, \fB4ksd\fR,
  23342. \&\fB5kc\fR, \fB5kf\fR,
  23343. \&\fB20kc\fR,
  23344. \&\fB24kc\fR, \fB24kf2_1\fR, \fB24kf1_1\fR,
  23345. \&\fB24kec\fR, \fB24kef2_1\fR, \fB24kef1_1\fR,
  23346. \&\fB34kc\fR, \fB34kf2_1\fR, \fB34kf1_1\fR, \fB34kn\fR,
  23347. \&\fB74kc\fR, \fB74kf2_1\fR, \fB74kf1_1\fR, \fB74kf3_2\fR,
  23348. \&\fB1004kc\fR, \fB1004kf2_1\fR, \fB1004kf1_1\fR,
  23349. \&\fBi6400\fR, \fBi6500\fR,
  23350. \&\fBinteraptiv\fR,
  23351. \&\fBloongson2e\fR, \fBloongson2f\fR, \fBloongson3a\fR, \fBgs464\fR,
  23352. \&\fBgs464e\fR, \fBgs264e\fR,
  23353. \&\fBm4k\fR,
  23354. \&\fBm14k\fR, \fBm14kc\fR, \fBm14ke\fR, \fBm14kec\fR,
  23355. \&\fBm5100\fR, \fBm5101\fR,
  23356. \&\fBocteon\fR, \fBocteon+\fR, \fBocteon2\fR, \fBocteon3\fR,
  23357. \&\fBorion\fR,
  23358. \&\fBp5600\fR, \fBp6600\fR,
  23359. \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
  23360. \&\fBr4600\fR, \fBr4650\fR, \fBr4700\fR, \fBr5900\fR,
  23361. \&\fBr6000\fR, \fBr8000\fR,
  23362. \&\fBrm7000\fR, \fBrm9000\fR,
  23363. \&\fBr10000\fR, \fBr12000\fR, \fBr14000\fR, \fBr16000\fR,
  23364. \&\fBsb1\fR,
  23365. \&\fBsr71000\fR,
  23366. \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
  23367. \&\fBvr5000\fR, \fBvr5400\fR, \fBvr5500\fR,
  23368. \&\fBxlr\fR and \fBxlp\fR.
  23369. The special value \fBfrom-abi\fR selects the
  23370. most compatible architecture for the selected \s-1ABI\s0 (that is,
  23371. \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
  23372. .Sp
  23373. The native Linux/GNU toolchain also supports the value \fBnative\fR,
  23374. which selects the best architecture option for the host processor.
  23375. \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize
  23376. the processor.
  23377. .Sp
  23378. In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
  23379. (for example, \fB\-march=r2k\fR). Prefixes are optional, and
  23380. \&\fBvr\fR may be written \fBr\fR.
  23381. .Sp
  23382. Names of the form \fIn\fR\fBf2_1\fR refer to processors with
  23383. FPUs clocked at half the rate of the core, names of the form
  23384. \&\fIn\fR\fBf1_1\fR refer to processors with FPUs clocked at the same
  23385. rate as the core, and names of the form \fIn\fR\fBf3_2\fR refer to
  23386. processors with FPUs clocked a ratio of 3:2 with respect to the core.
  23387. For compatibility reasons, \fIn\fR\fBf\fR is accepted as a synonym
  23388. for \fIn\fR\fBf2_1\fR while \fIn\fR\fBx\fR and \fIb\fR\fBfx\fR are
  23389. accepted as synonyms for \fIn\fR\fBf1_1\fR.
  23390. .Sp
  23391. \&\s-1GCC\s0 defines two macros based on the value of this option. The first
  23392. is \f(CW\*(C`_MIPS_ARCH\*(C'\fR, which gives the name of target architecture, as
  23393. a string. The second has the form \f(CW\*(C`_MIPS_ARCH_\f(CIfoo\f(CW\*(C'\fR,
  23394. where \fIfoo\fR is the capitalized value of \f(CW\*(C`_MIPS_ARCH\*(C'\fR.
  23395. For example, \fB\-march=r2000\fR sets \f(CW\*(C`_MIPS_ARCH\*(C'\fR
  23396. to \f(CW"r2000"\fR and defines the macro \f(CW\*(C`_MIPS_ARCH_R2000\*(C'\fR.
  23397. .Sp
  23398. Note that the \f(CW\*(C`_MIPS_ARCH\*(C'\fR macro uses the processor names given
  23399. above. In other words, it has the full prefix and does not
  23400. abbreviate \fB000\fR as \fBk\fR. In the case of \fBfrom-abi\fR,
  23401. the macro names the resolved architecture (either \f(CW"mips1"\fR or
  23402. \&\f(CW"mips3"\fR). It names the default architecture when no
  23403. \&\fB\-march\fR option is given.
  23404. .IP "\fB\-mtune=\fR\fIarch\fR" 4
  23405. .IX Item "-mtune=arch"
  23406. Optimize for \fIarch\fR. Among other things, this option controls
  23407. the way instructions are scheduled, and the perceived cost of arithmetic
  23408. operations. The list of \fIarch\fR values is the same as for
  23409. \&\fB\-march\fR.
  23410. .Sp
  23411. When this option is not used, \s-1GCC\s0 optimizes for the processor
  23412. specified by \fB\-march\fR. By using \fB\-march\fR and
  23413. \&\fB\-mtune\fR together, it is possible to generate code that
  23414. runs on a family of processors, but optimize the code for one
  23415. particular member of that family.
  23416. .Sp
  23417. \&\fB\-mtune\fR defines the macros \f(CW\*(C`_MIPS_TUNE\*(C'\fR and
  23418. \&\f(CW\*(C`_MIPS_TUNE_\f(CIfoo\f(CW\*(C'\fR, which work in the same way as the
  23419. \&\fB\-march\fR ones described above.
  23420. .IP "\fB\-mips1\fR" 4
  23421. .IX Item "-mips1"
  23422. Equivalent to \fB\-march=mips1\fR.
  23423. .IP "\fB\-mips2\fR" 4
  23424. .IX Item "-mips2"
  23425. Equivalent to \fB\-march=mips2\fR.
  23426. .IP "\fB\-mips3\fR" 4
  23427. .IX Item "-mips3"
  23428. Equivalent to \fB\-march=mips3\fR.
  23429. .IP "\fB\-mips4\fR" 4
  23430. .IX Item "-mips4"
  23431. Equivalent to \fB\-march=mips4\fR.
  23432. .IP "\fB\-mips32\fR" 4
  23433. .IX Item "-mips32"
  23434. Equivalent to \fB\-march=mips32\fR.
  23435. .IP "\fB\-mips32r3\fR" 4
  23436. .IX Item "-mips32r3"
  23437. Equivalent to \fB\-march=mips32r3\fR.
  23438. .IP "\fB\-mips32r5\fR" 4
  23439. .IX Item "-mips32r5"
  23440. Equivalent to \fB\-march=mips32r5\fR.
  23441. .IP "\fB\-mips32r6\fR" 4
  23442. .IX Item "-mips32r6"
  23443. Equivalent to \fB\-march=mips32r6\fR.
  23444. .IP "\fB\-mips64\fR" 4
  23445. .IX Item "-mips64"
  23446. Equivalent to \fB\-march=mips64\fR.
  23447. .IP "\fB\-mips64r2\fR" 4
  23448. .IX Item "-mips64r2"
  23449. Equivalent to \fB\-march=mips64r2\fR.
  23450. .IP "\fB\-mips64r3\fR" 4
  23451. .IX Item "-mips64r3"
  23452. Equivalent to \fB\-march=mips64r3\fR.
  23453. .IP "\fB\-mips64r5\fR" 4
  23454. .IX Item "-mips64r5"
  23455. Equivalent to \fB\-march=mips64r5\fR.
  23456. .IP "\fB\-mips64r6\fR" 4
  23457. .IX Item "-mips64r6"
  23458. Equivalent to \fB\-march=mips64r6\fR.
  23459. .IP "\fB\-mips16\fR" 4
  23460. .IX Item "-mips16"
  23461. .PD 0
  23462. .IP "\fB\-mno\-mips16\fR" 4
  23463. .IX Item "-mno-mips16"
  23464. .PD
  23465. Generate (do not generate) \s-1MIPS16\s0 code. If \s-1GCC\s0 is targeting a
  23466. \&\s-1MIPS32\s0 or \s-1MIPS64\s0 architecture, it makes use of the MIPS16e \s-1ASE.\s0
  23467. .Sp
  23468. \&\s-1MIPS16\s0 code generation can also be controlled on a per-function basis
  23469. by means of \f(CW\*(C`mips16\*(C'\fR and \f(CW\*(C`nomips16\*(C'\fR attributes.
  23470. .IP "\fB\-mflip\-mips16\fR" 4
  23471. .IX Item "-mflip-mips16"
  23472. Generate \s-1MIPS16\s0 code on alternating functions. This option is provided
  23473. for regression testing of mixed MIPS16/non\-MIPS16 code generation, and is
  23474. not intended for ordinary use in compiling user code.
  23475. .IP "\fB\-minterlink\-compressed\fR" 4
  23476. .IX Item "-minterlink-compressed"
  23477. .PD 0
  23478. .IP "\fB\-mno\-interlink\-compressed\fR" 4
  23479. .IX Item "-mno-interlink-compressed"
  23480. .PD
  23481. Require (do not require) that code using the standard (uncompressed) \s-1MIPS ISA\s0
  23482. be link-compatible with \s-1MIPS16\s0 and microMIPS code, and vice versa.
  23483. .Sp
  23484. For example, code using the standard \s-1ISA\s0 encoding cannot jump directly
  23485. to \s-1MIPS16\s0 or microMIPS code; it must either use a call or an indirect jump.
  23486. \&\fB\-minterlink\-compressed\fR therefore disables direct jumps unless \s-1GCC\s0
  23487. knows that the target of the jump is not compressed.
  23488. .IP "\fB\-minterlink\-mips16\fR" 4
  23489. .IX Item "-minterlink-mips16"
  23490. .PD 0
  23491. .IP "\fB\-mno\-interlink\-mips16\fR" 4
  23492. .IX Item "-mno-interlink-mips16"
  23493. .PD
  23494. Aliases of \fB\-minterlink\-compressed\fR and
  23495. \&\fB\-mno\-interlink\-compressed\fR. These options predate the microMIPS \s-1ASE\s0
  23496. and are retained for backwards compatibility.
  23497. .IP "\fB\-mabi=32\fR" 4
  23498. .IX Item "-mabi=32"
  23499. .PD 0
  23500. .IP "\fB\-mabi=o64\fR" 4
  23501. .IX Item "-mabi=o64"
  23502. .IP "\fB\-mabi=n32\fR" 4
  23503. .IX Item "-mabi=n32"
  23504. .IP "\fB\-mabi=64\fR" 4
  23505. .IX Item "-mabi=64"
  23506. .IP "\fB\-mabi=eabi\fR" 4
  23507. .IX Item "-mabi=eabi"
  23508. .PD
  23509. Generate code for the given \s-1ABI.\s0
  23510. .Sp
  23511. Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant. \s-1GCC\s0 normally
  23512. generates 64\-bit code when you select a 64\-bit architecture, but you
  23513. can use \fB\-mgp32\fR to get 32\-bit code instead.
  23514. .Sp
  23515. For information about the O64 \s-1ABI,\s0 see
  23516. <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
  23517. .Sp
  23518. \&\s-1GCC\s0 supports a variant of the o32 \s-1ABI\s0 in which floating-point registers
  23519. are 64 rather than 32 bits wide. You can select this combination with
  23520. \&\fB\-mabi=32\fR \fB\-mfp64\fR. This \s-1ABI\s0 relies on the \f(CW\*(C`mthc1\*(C'\fR
  23521. and \f(CW\*(C`mfhc1\*(C'\fR instructions and is therefore only supported for
  23522. \&\s-1MIPS32R2, MIPS32R3\s0 and \s-1MIPS32R5\s0 processors.
  23523. .Sp
  23524. The register assignments for arguments and return values remain the
  23525. same, but each scalar value is passed in a single 64\-bit register
  23526. rather than a pair of 32\-bit registers. For example, scalar
  23527. floating-point values are returned in \fB\f(CB$f0\fB\fR only, not a
  23528. \&\fB\f(CB$f0\fB\fR/\fB\f(CB$f1\fB\fR pair. The set of call-saved registers also
  23529. remains the same in that the even-numbered double-precision registers
  23530. are saved.
  23531. .Sp
  23532. Two additional variants of the o32 \s-1ABI\s0 are supported to enable
  23533. a transition from 32\-bit to 64\-bit registers. These are \s-1FPXX\s0
  23534. (\fB\-mfpxx\fR) and \s-1FP64A\s0 (\fB\-mfp64\fR \fB\-mno\-odd\-spreg\fR).
  23535. The \s-1FPXX\s0 extension mandates that all code must execute correctly
  23536. when run using 32\-bit or 64\-bit registers. The code can be interlinked
  23537. with either \s-1FP32\s0 or \s-1FP64,\s0 but not both.
  23538. The \s-1FP64A\s0 extension is similar to the \s-1FP64\s0 extension but forbids the
  23539. use of odd-numbered single-precision registers. This can be used
  23540. in conjunction with the \f(CW\*(C`FRE\*(C'\fR mode of FPUs in \s-1MIPS32R5\s0
  23541. processors and allows both \s-1FP32\s0 and \s-1FP64A\s0 code to interlink and
  23542. run in the same process without changing \s-1FPU\s0 modes.
  23543. .IP "\fB\-mabicalls\fR" 4
  23544. .IX Item "-mabicalls"
  23545. .PD 0
  23546. .IP "\fB\-mno\-abicalls\fR" 4
  23547. .IX Item "-mno-abicalls"
  23548. .PD
  23549. Generate (do not generate) code that is suitable for SVR4\-style
  23550. dynamic objects. \fB\-mabicalls\fR is the default for SVR4\-based
  23551. systems.
  23552. .IP "\fB\-mshared\fR" 4
  23553. .IX Item "-mshared"
  23554. .PD 0
  23555. .IP "\fB\-mno\-shared\fR" 4
  23556. .IX Item "-mno-shared"
  23557. .PD
  23558. Generate (do not generate) code that is fully position-independent,
  23559. and that can therefore be linked into shared libraries. This option
  23560. only affects \fB\-mabicalls\fR.
  23561. .Sp
  23562. All \fB\-mabicalls\fR code has traditionally been position-independent,
  23563. regardless of options like \fB\-fPIC\fR and \fB\-fpic\fR. However,
  23564. as an extension, the \s-1GNU\s0 toolchain allows executables to use absolute
  23565. accesses for locally-binding symbols. It can also use shorter \s-1GP\s0
  23566. initialization sequences and generate direct calls to locally-defined
  23567. functions. This mode is selected by \fB\-mno\-shared\fR.
  23568. .Sp
  23569. \&\fB\-mno\-shared\fR depends on binutils 2.16 or higher and generates
  23570. objects that can only be linked by the \s-1GNU\s0 linker. However, the option
  23571. does not affect the \s-1ABI\s0 of the final executable; it only affects the \s-1ABI\s0
  23572. of relocatable objects. Using \fB\-mno\-shared\fR generally makes
  23573. executables both smaller and quicker.
  23574. .Sp
  23575. \&\fB\-mshared\fR is the default.
  23576. .IP "\fB\-mplt\fR" 4
  23577. .IX Item "-mplt"
  23578. .PD 0
  23579. .IP "\fB\-mno\-plt\fR" 4
  23580. .IX Item "-mno-plt"
  23581. .PD
  23582. Assume (do not assume) that the static and dynamic linkers
  23583. support PLTs and copy relocations. This option only affects
  23584. \&\fB\-mno\-shared \-mabicalls\fR. For the n64 \s-1ABI,\s0 this option
  23585. has no effect without \fB\-msym32\fR.
  23586. .Sp
  23587. You can make \fB\-mplt\fR the default by configuring
  23588. \&\s-1GCC\s0 with \fB\-\-with\-mips\-plt\fR. The default is
  23589. \&\fB\-mno\-plt\fR otherwise.
  23590. .IP "\fB\-mxgot\fR" 4
  23591. .IX Item "-mxgot"
  23592. .PD 0
  23593. .IP "\fB\-mno\-xgot\fR" 4
  23594. .IX Item "-mno-xgot"
  23595. .PD
  23596. Lift (do not lift) the usual restrictions on the size of the global
  23597. offset table.
  23598. .Sp
  23599. \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT.\s0
  23600. While this is relatively efficient, it only works if the \s-1GOT\s0
  23601. is smaller than about 64k. Anything larger causes the linker
  23602. to report an error such as:
  23603. .Sp
  23604. .Vb 1
  23605. \& relocation truncated to fit: R_MIPS_GOT16 foobar
  23606. .Ve
  23607. .Sp
  23608. If this happens, you should recompile your code with \fB\-mxgot\fR.
  23609. This works with very large GOTs, although the code is also
  23610. less efficient, since it takes three instructions to fetch the
  23611. value of a global symbol.
  23612. .Sp
  23613. Note that some linkers can create multiple GOTs. If you have such a
  23614. linker, you should only need to use \fB\-mxgot\fR when a single object
  23615. file accesses more than 64k's worth of \s-1GOT\s0 entries. Very few do.
  23616. .Sp
  23617. These options have no effect unless \s-1GCC\s0 is generating position
  23618. independent code.
  23619. .IP "\fB\-mgp32\fR" 4
  23620. .IX Item "-mgp32"
  23621. Assume that general-purpose registers are 32 bits wide.
  23622. .IP "\fB\-mgp64\fR" 4
  23623. .IX Item "-mgp64"
  23624. Assume that general-purpose registers are 64 bits wide.
  23625. .IP "\fB\-mfp32\fR" 4
  23626. .IX Item "-mfp32"
  23627. Assume that floating-point registers are 32 bits wide.
  23628. .IP "\fB\-mfp64\fR" 4
  23629. .IX Item "-mfp64"
  23630. Assume that floating-point registers are 64 bits wide.
  23631. .IP "\fB\-mfpxx\fR" 4
  23632. .IX Item "-mfpxx"
  23633. Do not assume the width of floating-point registers.
  23634. .IP "\fB\-mhard\-float\fR" 4
  23635. .IX Item "-mhard-float"
  23636. Use floating-point coprocessor instructions.
  23637. .IP "\fB\-msoft\-float\fR" 4
  23638. .IX Item "-msoft-float"
  23639. Do not use floating-point coprocessor instructions. Implement
  23640. floating-point calculations using library calls instead.
  23641. .IP "\fB\-mno\-float\fR" 4
  23642. .IX Item "-mno-float"
  23643. Equivalent to \fB\-msoft\-float\fR, but additionally asserts that the
  23644. program being compiled does not perform any floating-point operations.
  23645. This option is presently supported only by some bare-metal \s-1MIPS\s0
  23646. configurations, where it may select a special set of libraries
  23647. that lack all floating-point support (including, for example, the
  23648. floating-point \f(CW\*(C`printf\*(C'\fR formats).
  23649. If code compiled with \fB\-mno\-float\fR accidentally contains
  23650. floating-point operations, it is likely to suffer a link-time
  23651. or run-time failure.
  23652. .IP "\fB\-msingle\-float\fR" 4
  23653. .IX Item "-msingle-float"
  23654. Assume that the floating-point coprocessor only supports single-precision
  23655. operations.
  23656. .IP "\fB\-mdouble\-float\fR" 4
  23657. .IX Item "-mdouble-float"
  23658. Assume that the floating-point coprocessor supports double-precision
  23659. operations. This is the default.
  23660. .IP "\fB\-modd\-spreg\fR" 4
  23661. .IX Item "-modd-spreg"
  23662. .PD 0
  23663. .IP "\fB\-mno\-odd\-spreg\fR" 4
  23664. .IX Item "-mno-odd-spreg"
  23665. .PD
  23666. Enable the use of odd-numbered single-precision floating-point registers
  23667. for the o32 \s-1ABI.\s0 This is the default for processors that are known to
  23668. support these registers. When using the o32 \s-1FPXX ABI,\s0 \fB\-mno\-odd\-spreg\fR
  23669. is set by default.
  23670. .IP "\fB\-mabs=2008\fR" 4
  23671. .IX Item "-mabs=2008"
  23672. .PD 0
  23673. .IP "\fB\-mabs=legacy\fR" 4
  23674. .IX Item "-mabs=legacy"
  23675. .PD
  23676. These options control the treatment of the special not-a-number (NaN)
  23677. \&\s-1IEEE 754\s0 floating-point data with the \f(CW\*(C`abs.\f(CIfmt\f(CW\*(C'\fR and
  23678. \&\f(CW\*(C`neg.\f(CIfmt\f(CW\*(C'\fR machine instructions.
  23679. .Sp
  23680. By default or when \fB\-mabs=legacy\fR is used the legacy
  23681. treatment is selected. In this case these instructions are considered
  23682. arithmetic and avoided where correct operation is required and the
  23683. input operand might be a NaN. A longer sequence of instructions that
  23684. manipulate the sign bit of floating-point datum manually is used
  23685. instead unless the \fB\-ffinite\-math\-only\fR option has also been
  23686. specified.
  23687. .Sp
  23688. The \fB\-mabs=2008\fR option selects the \s-1IEEE 754\-2008\s0 treatment. In
  23689. this case these instructions are considered non-arithmetic and therefore
  23690. operating correctly in all cases, including in particular where the
  23691. input operand is a NaN. These instructions are therefore always used
  23692. for the respective operations.
  23693. .IP "\fB\-mnan=2008\fR" 4
  23694. .IX Item "-mnan=2008"
  23695. .PD 0
  23696. .IP "\fB\-mnan=legacy\fR" 4
  23697. .IX Item "-mnan=legacy"
  23698. .PD
  23699. These options control the encoding of the special not-a-number (NaN)
  23700. \&\s-1IEEE 754\s0 floating-point data.
  23701. .Sp
  23702. The \fB\-mnan=legacy\fR option selects the legacy encoding. In this
  23703. case quiet NaNs (qNaNs) are denoted by the first bit of their trailing
  23704. significand field being 0, whereas signaling NaNs (sNaNs) are denoted
  23705. by the first bit of their trailing significand field being 1.
  23706. .Sp
  23707. The \fB\-mnan=2008\fR option selects the \s-1IEEE 754\-2008\s0 encoding. In
  23708. this case qNaNs are denoted by the first bit of their trailing
  23709. significand field being 1, whereas sNaNs are denoted by the first bit of
  23710. their trailing significand field being 0.
  23711. .Sp
  23712. The default is \fB\-mnan=legacy\fR unless \s-1GCC\s0 has been configured with
  23713. \&\fB\-\-with\-nan=2008\fR.
  23714. .IP "\fB\-mllsc\fR" 4
  23715. .IX Item "-mllsc"
  23716. .PD 0
  23717. .IP "\fB\-mno\-llsc\fR" 4
  23718. .IX Item "-mno-llsc"
  23719. .PD
  23720. Use (do not use) \fBll\fR, \fBsc\fR, and \fBsync\fR instructions to
  23721. implement atomic memory built-in functions. When neither option is
  23722. specified, \s-1GCC\s0 uses the instructions if the target architecture
  23723. supports them.
  23724. .Sp
  23725. \&\fB\-mllsc\fR is useful if the runtime environment can emulate the
  23726. instructions and \fB\-mno\-llsc\fR can be useful when compiling for
  23727. nonstandard ISAs. You can make either option the default by
  23728. configuring \s-1GCC\s0 with \fB\-\-with\-llsc\fR and \fB\-\-without\-llsc\fR
  23729. respectively. \fB\-\-with\-llsc\fR is the default for some
  23730. configurations; see the installation documentation for details.
  23731. .IP "\fB\-mdsp\fR" 4
  23732. .IX Item "-mdsp"
  23733. .PD 0
  23734. .IP "\fB\-mno\-dsp\fR" 4
  23735. .IX Item "-mno-dsp"
  23736. .PD
  23737. Use (do not use) revision 1 of the \s-1MIPS DSP ASE.\s0
  23738. This option defines the
  23739. preprocessor macro \f(CW\*(C`_\|_mips_dsp\*(C'\fR. It also defines
  23740. \&\f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 1.
  23741. .IP "\fB\-mdspr2\fR" 4
  23742. .IX Item "-mdspr2"
  23743. .PD 0
  23744. .IP "\fB\-mno\-dspr2\fR" 4
  23745. .IX Item "-mno-dspr2"
  23746. .PD
  23747. Use (do not use) revision 2 of the \s-1MIPS DSP ASE.\s0
  23748. This option defines the
  23749. preprocessor macros \f(CW\*(C`_\|_mips_dsp\*(C'\fR and \f(CW\*(C`_\|_mips_dspr2\*(C'\fR.
  23750. It also defines \f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 2.
  23751. .IP "\fB\-msmartmips\fR" 4
  23752. .IX Item "-msmartmips"
  23753. .PD 0
  23754. .IP "\fB\-mno\-smartmips\fR" 4
  23755. .IX Item "-mno-smartmips"
  23756. .PD
  23757. Use (do not use) the \s-1MIPS\s0 SmartMIPS \s-1ASE.\s0
  23758. .IP "\fB\-mpaired\-single\fR" 4
  23759. .IX Item "-mpaired-single"
  23760. .PD 0
  23761. .IP "\fB\-mno\-paired\-single\fR" 4
  23762. .IX Item "-mno-paired-single"
  23763. .PD
  23764. Use (do not use) paired-single floating-point instructions.
  23765. This option requires
  23766. hardware floating-point support to be enabled.
  23767. .IP "\fB\-mdmx\fR" 4
  23768. .IX Item "-mdmx"
  23769. .PD 0
  23770. .IP "\fB\-mno\-mdmx\fR" 4
  23771. .IX Item "-mno-mdmx"
  23772. .PD
  23773. Use (do not use) \s-1MIPS\s0 Digital Media Extension instructions.
  23774. This option can only be used when generating 64\-bit code and requires
  23775. hardware floating-point support to be enabled.
  23776. .IP "\fB\-mips3d\fR" 4
  23777. .IX Item "-mips3d"
  23778. .PD 0
  23779. .IP "\fB\-mno\-mips3d\fR" 4
  23780. .IX Item "-mno-mips3d"
  23781. .PD
  23782. Use (do not use) the \s-1MIPS\-3D ASE.\s0
  23783. The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
  23784. .IP "\fB\-mmicromips\fR" 4
  23785. .IX Item "-mmicromips"
  23786. .PD 0
  23787. .IP "\fB\-mno\-micromips\fR" 4
  23788. .IX Item "-mno-micromips"
  23789. .PD
  23790. Generate (do not generate) microMIPS code.
  23791. .Sp
  23792. MicroMIPS code generation can also be controlled on a per-function basis
  23793. by means of \f(CW\*(C`micromips\*(C'\fR and \f(CW\*(C`nomicromips\*(C'\fR attributes.
  23794. .IP "\fB\-mmt\fR" 4
  23795. .IX Item "-mmt"
  23796. .PD 0
  23797. .IP "\fB\-mno\-mt\fR" 4
  23798. .IX Item "-mno-mt"
  23799. .PD
  23800. Use (do not use) \s-1MT\s0 Multithreading instructions.
  23801. .IP "\fB\-mmcu\fR" 4
  23802. .IX Item "-mmcu"
  23803. .PD 0
  23804. .IP "\fB\-mno\-mcu\fR" 4
  23805. .IX Item "-mno-mcu"
  23806. .PD
  23807. Use (do not use) the \s-1MIPS MCU ASE\s0 instructions.
  23808. .IP "\fB\-meva\fR" 4
  23809. .IX Item "-meva"
  23810. .PD 0
  23811. .IP "\fB\-mno\-eva\fR" 4
  23812. .IX Item "-mno-eva"
  23813. .PD
  23814. Use (do not use) the \s-1MIPS\s0 Enhanced Virtual Addressing instructions.
  23815. .IP "\fB\-mvirt\fR" 4
  23816. .IX Item "-mvirt"
  23817. .PD 0
  23818. .IP "\fB\-mno\-virt\fR" 4
  23819. .IX Item "-mno-virt"
  23820. .PD
  23821. Use (do not use) the \s-1MIPS\s0 Virtualization (\s-1VZ\s0) instructions.
  23822. .IP "\fB\-mxpa\fR" 4
  23823. .IX Item "-mxpa"
  23824. .PD 0
  23825. .IP "\fB\-mno\-xpa\fR" 4
  23826. .IX Item "-mno-xpa"
  23827. .PD
  23828. Use (do not use) the \s-1MIPS\s0 eXtended Physical Address (\s-1XPA\s0) instructions.
  23829. .IP "\fB\-mcrc\fR" 4
  23830. .IX Item "-mcrc"
  23831. .PD 0
  23832. .IP "\fB\-mno\-crc\fR" 4
  23833. .IX Item "-mno-crc"
  23834. .PD
  23835. Use (do not use) the \s-1MIPS\s0 Cyclic Redundancy Check (\s-1CRC\s0) instructions.
  23836. .IP "\fB\-mginv\fR" 4
  23837. .IX Item "-mginv"
  23838. .PD 0
  23839. .IP "\fB\-mno\-ginv\fR" 4
  23840. .IX Item "-mno-ginv"
  23841. .PD
  23842. Use (do not use) the \s-1MIPS\s0 Global INValidate (\s-1GINV\s0) instructions.
  23843. .IP "\fB\-mloongson\-mmi\fR" 4
  23844. .IX Item "-mloongson-mmi"
  23845. .PD 0
  23846. .IP "\fB\-mno\-loongson\-mmi\fR" 4
  23847. .IX Item "-mno-loongson-mmi"
  23848. .PD
  23849. Use (do not use) the \s-1MIPS\s0 Loongson MultiMedia extensions Instructions (\s-1MMI\s0).
  23850. .IP "\fB\-mloongson\-ext\fR" 4
  23851. .IX Item "-mloongson-ext"
  23852. .PD 0
  23853. .IP "\fB\-mno\-loongson\-ext\fR" 4
  23854. .IX Item "-mno-loongson-ext"
  23855. .PD
  23856. Use (do not use) the \s-1MIPS\s0 Loongson EXTensions (\s-1EXT\s0) instructions.
  23857. .IP "\fB\-mloongson\-ext2\fR" 4
  23858. .IX Item "-mloongson-ext2"
  23859. .PD 0
  23860. .IP "\fB\-mno\-loongson\-ext2\fR" 4
  23861. .IX Item "-mno-loongson-ext2"
  23862. .PD
  23863. Use (do not use) the \s-1MIPS\s0 Loongson EXTensions r2 (\s-1EXT2\s0) instructions.
  23864. .IP "\fB\-mlong64\fR" 4
  23865. .IX Item "-mlong64"
  23866. Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide. See \fB\-mlong32\fR for
  23867. an explanation of the default and the way that the pointer size is
  23868. determined.
  23869. .IP "\fB\-mlong32\fR" 4
  23870. .IX Item "-mlong32"
  23871. Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
  23872. .Sp
  23873. The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
  23874. the \s-1ABI.\s0 All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs. The n64 \s-1ABI\s0
  23875. uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
  23876. 32\-bit \f(CW\*(C`long\*(C'\fRs. Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
  23877. or the same size as integer registers, whichever is smaller.
  23878. .IP "\fB\-msym32\fR" 4
  23879. .IX Item "-msym32"
  23880. .PD 0
  23881. .IP "\fB\-mno\-sym32\fR" 4
  23882. .IX Item "-mno-sym32"
  23883. .PD
  23884. Assume (do not assume) that all symbols have 32\-bit values, regardless
  23885. of the selected \s-1ABI.\s0 This option is useful in combination with
  23886. \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
  23887. to generate shorter and faster references to symbolic addresses.
  23888. .IP "\fB\-G\fR \fInum\fR" 4
  23889. .IX Item "-G num"
  23890. Put definitions of externally-visible data in a small data section
  23891. if that data is no bigger than \fInum\fR bytes. \s-1GCC\s0 can then generate
  23892. more efficient accesses to the data; see \fB\-mgpopt\fR for details.
  23893. .Sp
  23894. The default \fB\-G\fR option depends on the configuration.
  23895. .IP "\fB\-mlocal\-sdata\fR" 4
  23896. .IX Item "-mlocal-sdata"
  23897. .PD 0
  23898. .IP "\fB\-mno\-local\-sdata\fR" 4
  23899. .IX Item "-mno-local-sdata"
  23900. .PD
  23901. Extend (do not extend) the \fB\-G\fR behavior to local data too,
  23902. such as to static variables in C. \fB\-mlocal\-sdata\fR is the
  23903. default for all configurations.
  23904. .Sp
  23905. If the linker complains that an application is using too much small data,
  23906. you might want to try rebuilding the less performance-critical parts with
  23907. \&\fB\-mno\-local\-sdata\fR. You might also want to build large
  23908. libraries with \fB\-mno\-local\-sdata\fR, so that the libraries leave
  23909. more room for the main program.
  23910. .IP "\fB\-mextern\-sdata\fR" 4
  23911. .IX Item "-mextern-sdata"
  23912. .PD 0
  23913. .IP "\fB\-mno\-extern\-sdata\fR" 4
  23914. .IX Item "-mno-extern-sdata"
  23915. .PD
  23916. Assume (do not assume) that externally-defined data is in
  23917. a small data section if the size of that data is within the \fB\-G\fR limit.
  23918. \&\fB\-mextern\-sdata\fR is the default for all configurations.
  23919. .Sp
  23920. If you compile a module \fIMod\fR with \fB\-mextern\-sdata\fR \fB\-G\fR
  23921. \&\fInum\fR \fB\-mgpopt\fR, and \fIMod\fR references a variable \fIVar\fR
  23922. that is no bigger than \fInum\fR bytes, you must make sure that \fIVar\fR
  23923. is placed in a small data section. If \fIVar\fR is defined by another
  23924. module, you must either compile that module with a high-enough
  23925. \&\fB\-G\fR setting or attach a \f(CW\*(C`section\*(C'\fR attribute to \fIVar\fR's
  23926. definition. If \fIVar\fR is common, you must link the application
  23927. with a high-enough \fB\-G\fR setting.
  23928. .Sp
  23929. The easiest way of satisfying these restrictions is to compile
  23930. and link every module with the same \fB\-G\fR option. However,
  23931. you may wish to build a library that supports several different
  23932. small data limits. You can do this by compiling the library with
  23933. the highest supported \fB\-G\fR setting and additionally using
  23934. \&\fB\-mno\-extern\-sdata\fR to stop the library from making assumptions
  23935. about externally-defined data.
  23936. .IP "\fB\-mgpopt\fR" 4
  23937. .IX Item "-mgpopt"
  23938. .PD 0
  23939. .IP "\fB\-mno\-gpopt\fR" 4
  23940. .IX Item "-mno-gpopt"
  23941. .PD
  23942. Use (do not use) GP-relative accesses for symbols that are known to be
  23943. in a small data section; see \fB\-G\fR, \fB\-mlocal\-sdata\fR and
  23944. \&\fB\-mextern\-sdata\fR. \fB\-mgpopt\fR is the default for all
  23945. configurations.
  23946. .Sp
  23947. \&\fB\-mno\-gpopt\fR is useful for cases where the \f(CW$gp\fR register
  23948. might not hold the value of \f(CW\*(C`_gp\*(C'\fR. For example, if the code is
  23949. part of a library that might be used in a boot monitor, programs that
  23950. call boot monitor routines pass an unknown value in \f(CW$gp\fR.
  23951. (In such situations, the boot monitor itself is usually compiled
  23952. with \fB\-G0\fR.)
  23953. .Sp
  23954. \&\fB\-mno\-gpopt\fR implies \fB\-mno\-local\-sdata\fR and
  23955. \&\fB\-mno\-extern\-sdata\fR.
  23956. .IP "\fB\-membedded\-data\fR" 4
  23957. .IX Item "-membedded-data"
  23958. .PD 0
  23959. .IP "\fB\-mno\-embedded\-data\fR" 4
  23960. .IX Item "-mno-embedded-data"
  23961. .PD
  23962. Allocate variables to the read-only data section first if possible, then
  23963. next in the small data section if possible, otherwise in data. This gives
  23964. slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
  23965. when executing, and thus may be preferred for some embedded systems.
  23966. .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
  23967. .IX Item "-muninit-const-in-rodata"
  23968. .PD 0
  23969. .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
  23970. .IX Item "-mno-uninit-const-in-rodata"
  23971. .PD
  23972. Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
  23973. This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
  23974. .IP "\fB\-mcode\-readable=\fR\fIsetting\fR" 4
  23975. .IX Item "-mcode-readable=setting"
  23976. Specify whether \s-1GCC\s0 may generate code that reads from executable sections.
  23977. There are three possible settings:
  23978. .RS 4
  23979. .IP "\fB\-mcode\-readable=yes\fR" 4
  23980. .IX Item "-mcode-readable=yes"
  23981. Instructions may freely access executable sections. This is the
  23982. default setting.
  23983. .IP "\fB\-mcode\-readable=pcrel\fR" 4
  23984. .IX Item "-mcode-readable=pcrel"
  23985. \&\s-1MIPS16\s0 PC-relative load instructions can access executable sections,
  23986. but other instructions must not do so. This option is useful on 4KSc
  23987. and 4KSd processors when the code TLBs have the Read Inhibit bit set.
  23988. It is also useful on processors that can be configured to have a dual
  23989. instruction/data \s-1SRAM\s0 interface and that, like the M4K, automatically
  23990. redirect PC-relative loads to the instruction \s-1RAM.\s0
  23991. .IP "\fB\-mcode\-readable=no\fR" 4
  23992. .IX Item "-mcode-readable=no"
  23993. Instructions must not access executable sections. This option can be
  23994. useful on targets that are configured to have a dual instruction/data
  23995. \&\s-1SRAM\s0 interface but that (unlike the M4K) do not automatically redirect
  23996. PC-relative loads to the instruction \s-1RAM.\s0
  23997. .RE
  23998. .RS 4
  23999. .RE
  24000. .IP "\fB\-msplit\-addresses\fR" 4
  24001. .IX Item "-msplit-addresses"
  24002. .PD 0
  24003. .IP "\fB\-mno\-split\-addresses\fR" 4
  24004. .IX Item "-mno-split-addresses"
  24005. .PD
  24006. Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
  24007. relocation operators. This option has been superseded by
  24008. \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
  24009. .IP "\fB\-mexplicit\-relocs\fR" 4
  24010. .IX Item "-mexplicit-relocs"
  24011. .PD 0
  24012. .IP "\fB\-mno\-explicit\-relocs\fR" 4
  24013. .IX Item "-mno-explicit-relocs"
  24014. .PD
  24015. Use (do not use) assembler relocation operators when dealing with symbolic
  24016. addresses. The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
  24017. is to use assembler macros instead.
  24018. .Sp
  24019. \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
  24020. to use an assembler that supports relocation operators.
  24021. .IP "\fB\-mcheck\-zero\-division\fR" 4
  24022. .IX Item "-mcheck-zero-division"
  24023. .PD 0
  24024. .IP "\fB\-mno\-check\-zero\-division\fR" 4
  24025. .IX Item "-mno-check-zero-division"
  24026. .PD
  24027. Trap (do not trap) on integer division by zero.
  24028. .Sp
  24029. The default is \fB\-mcheck\-zero\-division\fR.
  24030. .IP "\fB\-mdivide\-traps\fR" 4
  24031. .IX Item "-mdivide-traps"
  24032. .PD 0
  24033. .IP "\fB\-mdivide\-breaks\fR" 4
  24034. .IX Item "-mdivide-breaks"
  24035. .PD
  24036. \&\s-1MIPS\s0 systems check for division by zero by generating either a
  24037. conditional trap or a break instruction. Using traps results in
  24038. smaller code, but is only supported on \s-1MIPS II\s0 and later. Also, some
  24039. versions of the Linux kernel have a bug that prevents trap from
  24040. generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR). Use \fB\-mdivide\-traps\fR to
  24041. allow conditional traps on architectures that support them and
  24042. \&\fB\-mdivide\-breaks\fR to force the use of breaks.
  24043. .Sp
  24044. The default is usually \fB\-mdivide\-traps\fR, but this can be
  24045. overridden at configure time using \fB\-\-with\-divide=breaks\fR.
  24046. Divide-by-zero checks can be completely disabled using
  24047. \&\fB\-mno\-check\-zero\-division\fR.
  24048. .IP "\fB\-mload\-store\-pairs\fR" 4
  24049. .IX Item "-mload-store-pairs"
  24050. .PD 0
  24051. .IP "\fB\-mno\-load\-store\-pairs\fR" 4
  24052. .IX Item "-mno-load-store-pairs"
  24053. .PD
  24054. Enable (disable) an optimization that pairs consecutive load or store
  24055. instructions to enable load/store bonding. This option is enabled by
  24056. default but only takes effect when the selected architecture is known
  24057. to support bonding.
  24058. .IP "\fB\-mmemcpy\fR" 4
  24059. .IX Item "-mmemcpy"
  24060. .PD 0
  24061. .IP "\fB\-mno\-memcpy\fR" 4
  24062. .IX Item "-mno-memcpy"
  24063. .PD
  24064. Force (do not force) the use of \f(CW\*(C`memcpy\*(C'\fR for non-trivial block
  24065. moves. The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
  24066. most constant-sized copies.
  24067. .IP "\fB\-mlong\-calls\fR" 4
  24068. .IX Item "-mlong-calls"
  24069. .PD 0
  24070. .IP "\fB\-mno\-long\-calls\fR" 4
  24071. .IX Item "-mno-long-calls"
  24072. .PD
  24073. Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction. Calling
  24074. functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
  24075. and callee to be in the same 256 megabyte segment.
  24076. .Sp
  24077. This option has no effect on abicalls code. The default is
  24078. \&\fB\-mno\-long\-calls\fR.
  24079. .IP "\fB\-mmad\fR" 4
  24080. .IX Item "-mmad"
  24081. .PD 0
  24082. .IP "\fB\-mno\-mad\fR" 4
  24083. .IX Item "-mno-mad"
  24084. .PD
  24085. Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
  24086. instructions, as provided by the R4650 \s-1ISA.\s0
  24087. .IP "\fB\-mimadd\fR" 4
  24088. .IX Item "-mimadd"
  24089. .PD 0
  24090. .IP "\fB\-mno\-imadd\fR" 4
  24091. .IX Item "-mno-imadd"
  24092. .PD
  24093. Enable (disable) use of the \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR integer
  24094. instructions. The default is \fB\-mimadd\fR on architectures
  24095. that support \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR except for the 74k
  24096. architecture where it was found to generate slower code.
  24097. .IP "\fB\-mfused\-madd\fR" 4
  24098. .IX Item "-mfused-madd"
  24099. .PD 0
  24100. .IP "\fB\-mno\-fused\-madd\fR" 4
  24101. .IX Item "-mno-fused-madd"
  24102. .PD
  24103. Enable (disable) use of the floating-point multiply-accumulate
  24104. instructions, when they are available. The default is
  24105. \&\fB\-mfused\-madd\fR.
  24106. .Sp
  24107. On the R8000 \s-1CPU\s0 when multiply-accumulate instructions are used,
  24108. the intermediate product is calculated to infinite precision
  24109. and is not subject to the \s-1FCSR\s0 Flush to Zero bit. This may be
  24110. undesirable in some circumstances. On other processors the result
  24111. is numerically identical to the equivalent computation using
  24112. separate multiply, add, subtract and negate instructions.
  24113. .IP "\fB\-nocpp\fR" 4
  24114. .IX Item "-nocpp"
  24115. Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
  24116. assembler files (with a \fB.s\fR suffix) when assembling them.
  24117. .IP "\fB\-mfix\-24k\fR" 4
  24118. .IX Item "-mfix-24k"
  24119. .PD 0
  24120. .IP "\fB\-mno\-fix\-24k\fR" 4
  24121. .IX Item "-mno-fix-24k"
  24122. .PD
  24123. Work around the 24K E48 (lost data on stores during refill) errata.
  24124. The workarounds are implemented by the assembler rather than by \s-1GCC.\s0
  24125. .IP "\fB\-mfix\-r4000\fR" 4
  24126. .IX Item "-mfix-r4000"
  24127. .PD 0
  24128. .IP "\fB\-mno\-fix\-r4000\fR" 4
  24129. .IX Item "-mno-fix-r4000"
  24130. .PD
  24131. Work around certain R4000 \s-1CPU\s0 errata:
  24132. .RS 4
  24133. .IP "\-" 4
  24134. A double-word or a variable shift may give an incorrect result if executed
  24135. immediately after starting an integer division.
  24136. .IP "\-" 4
  24137. A double-word or a variable shift may give an incorrect result if executed
  24138. while an integer multiplication is in progress.
  24139. .IP "\-" 4
  24140. An integer division may give an incorrect result if started in a delay slot
  24141. of a taken branch or a jump.
  24142. .RE
  24143. .RS 4
  24144. .RE
  24145. .IP "\fB\-mfix\-r4400\fR" 4
  24146. .IX Item "-mfix-r4400"
  24147. .PD 0
  24148. .IP "\fB\-mno\-fix\-r4400\fR" 4
  24149. .IX Item "-mno-fix-r4400"
  24150. .PD
  24151. Work around certain R4400 \s-1CPU\s0 errata:
  24152. .RS 4
  24153. .IP "\-" 4
  24154. A double-word or a variable shift may give an incorrect result if executed
  24155. immediately after starting an integer division.
  24156. .RE
  24157. .RS 4
  24158. .RE
  24159. .IP "\fB\-mfix\-r10000\fR" 4
  24160. .IX Item "-mfix-r10000"
  24161. .PD 0
  24162. .IP "\fB\-mno\-fix\-r10000\fR" 4
  24163. .IX Item "-mno-fix-r10000"
  24164. .PD
  24165. Work around certain R10000 errata:
  24166. .RS 4
  24167. .IP "\-" 4
  24168. \&\f(CW\*(C`ll\*(C'\fR/\f(CW\*(C`sc\*(C'\fR sequences may not behave atomically on revisions
  24169. prior to 3.0. They may deadlock on revisions 2.6 and earlier.
  24170. .RE
  24171. .RS 4
  24172. .Sp
  24173. This option can only be used if the target architecture supports
  24174. branch-likely instructions. \fB\-mfix\-r10000\fR is the default when
  24175. \&\fB\-march=r10000\fR is used; \fB\-mno\-fix\-r10000\fR is the default
  24176. otherwise.
  24177. .RE
  24178. .IP "\fB\-mfix\-r5900\fR" 4
  24179. .IX Item "-mfix-r5900"
  24180. .PD 0
  24181. .IP "\fB\-mno\-fix\-r5900\fR" 4
  24182. .IX Item "-mno-fix-r5900"
  24183. .PD
  24184. Do not attempt to schedule the preceding instruction into the delay slot
  24185. of a branch instruction placed at the end of a short loop of six
  24186. instructions or fewer and always schedule a \f(CW\*(C`nop\*(C'\fR instruction there
  24187. instead. The short loop bug under certain conditions causes loops to
  24188. execute only once or twice, due to a hardware bug in the R5900 chip. The
  24189. workaround is implemented by the assembler rather than by \s-1GCC.\s0
  24190. .IP "\fB\-mfix\-rm7000\fR" 4
  24191. .IX Item "-mfix-rm7000"
  24192. .PD 0
  24193. .IP "\fB\-mno\-fix\-rm7000\fR" 4
  24194. .IX Item "-mno-fix-rm7000"
  24195. .PD
  24196. Work around the \s-1RM7000\s0 \f(CW\*(C`dmult\*(C'\fR/\f(CW\*(C`dmultu\*(C'\fR errata. The
  24197. workarounds are implemented by the assembler rather than by \s-1GCC.\s0
  24198. .IP "\fB\-mfix\-vr4120\fR" 4
  24199. .IX Item "-mfix-vr4120"
  24200. .PD 0
  24201. .IP "\fB\-mno\-fix\-vr4120\fR" 4
  24202. .IX Item "-mno-fix-vr4120"
  24203. .PD
  24204. Work around certain \s-1VR4120\s0 errata:
  24205. .RS 4
  24206. .IP "\-" 4
  24207. \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
  24208. .IP "\-" 4
  24209. \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
  24210. of the operands is negative.
  24211. .RE
  24212. .RS 4
  24213. .Sp
  24214. The workarounds for the division errata rely on special functions in
  24215. \&\fIlibgcc.a\fR. At present, these functions are only provided by
  24216. the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
  24217. .Sp
  24218. Other \s-1VR4120\s0 errata require a \s-1NOP\s0 to be inserted between certain pairs of
  24219. instructions. These errata are handled by the assembler, not by \s-1GCC\s0 itself.
  24220. .RE
  24221. .IP "\fB\-mfix\-vr4130\fR" 4
  24222. .IX Item "-mfix-vr4130"
  24223. Work around the \s-1VR4130\s0 \f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata. The
  24224. workarounds are implemented by the assembler rather than by \s-1GCC,\s0
  24225. although \s-1GCC\s0 avoids using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
  24226. \&\s-1VR4130\s0 \f(CW\*(C`macc\*(C'\fR, \f(CW\*(C`macchi\*(C'\fR, \f(CW\*(C`dmacc\*(C'\fR and \f(CW\*(C`dmacchi\*(C'\fR
  24227. instructions are available instead.
  24228. .IP "\fB\-mfix\-sb1\fR" 4
  24229. .IX Item "-mfix-sb1"
  24230. .PD 0
  24231. .IP "\fB\-mno\-fix\-sb1\fR" 4
  24232. .IX Item "-mno-fix-sb1"
  24233. .PD
  24234. Work around certain \s-1SB\-1 CPU\s0 core errata.
  24235. (This flag currently works around the \s-1SB\-1\s0 revision 2
  24236. \&\*(L"F1\*(R" and \*(L"F2\*(R" floating-point errata.)
  24237. .IP "\fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR" 4
  24238. .IX Item "-mr10k-cache-barrier=setting"
  24239. Specify whether \s-1GCC\s0 should insert cache barriers to avoid the
  24240. side effects of speculation on R10K processors.
  24241. .Sp
  24242. In common with many processors, the R10K tries to predict the outcome
  24243. of a conditional branch and speculatively executes instructions from
  24244. the \*(L"taken\*(R" branch. It later aborts these instructions if the
  24245. predicted outcome is wrong. However, on the R10K, even aborted
  24246. instructions can have side effects.
  24247. .Sp
  24248. This problem only affects kernel stores and, depending on the system,
  24249. kernel loads. As an example, a speculatively-executed store may load
  24250. the target memory into cache and mark the cache line as dirty, even if
  24251. the store itself is later aborted. If a \s-1DMA\s0 operation writes to the
  24252. same area of memory before the \*(L"dirty\*(R" line is flushed, the cached
  24253. data overwrites the DMA-ed data. See the R10K processor manual
  24254. for a full description, including other potential problems.
  24255. .Sp
  24256. One workaround is to insert cache barrier instructions before every memory
  24257. access that might be speculatively executed and that might have side
  24258. effects even if aborted. \fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR
  24259. controls \s-1GCC\s0's implementation of this workaround. It assumes that
  24260. aborted accesses to any byte in the following regions does not have
  24261. side effects:
  24262. .RS 4
  24263. .IP "1." 4
  24264. .IX Item "1."
  24265. the memory occupied by the current function's stack frame;
  24266. .IP "2." 4
  24267. .IX Item "2."
  24268. the memory occupied by an incoming stack argument;
  24269. .IP "3." 4
  24270. .IX Item "3."
  24271. the memory occupied by an object with a link-time-constant address.
  24272. .RE
  24273. .RS 4
  24274. .Sp
  24275. It is the kernel's responsibility to ensure that speculative
  24276. accesses to these regions are indeed safe.
  24277. .Sp
  24278. If the input program contains a function declaration such as:
  24279. .Sp
  24280. .Vb 1
  24281. \& void foo (void);
  24282. .Ve
  24283. .Sp
  24284. then the implementation of \f(CW\*(C`foo\*(C'\fR must allow \f(CW\*(C`j foo\*(C'\fR and
  24285. \&\f(CW\*(C`jal foo\*(C'\fR to be executed speculatively. \s-1GCC\s0 honors this
  24286. restriction for functions it compiles itself. It expects non-GCC
  24287. functions (such as hand-written assembly code) to do the same.
  24288. .Sp
  24289. The option has three forms:
  24290. .IP "\fB\-mr10k\-cache\-barrier=load\-store\fR" 4
  24291. .IX Item "-mr10k-cache-barrier=load-store"
  24292. Insert a cache barrier before a load or store that might be
  24293. speculatively executed and that might have side effects even
  24294. if aborted.
  24295. .IP "\fB\-mr10k\-cache\-barrier=store\fR" 4
  24296. .IX Item "-mr10k-cache-barrier=store"
  24297. Insert a cache barrier before a store that might be speculatively
  24298. executed and that might have side effects even if aborted.
  24299. .IP "\fB\-mr10k\-cache\-barrier=none\fR" 4
  24300. .IX Item "-mr10k-cache-barrier=none"
  24301. Disable the insertion of cache barriers. This is the default setting.
  24302. .RE
  24303. .RS 4
  24304. .RE
  24305. .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
  24306. .IX Item "-mflush-func=func"
  24307. .PD 0
  24308. .IP "\fB\-mno\-flush\-func\fR" 4
  24309. .IX Item "-mno-flush-func"
  24310. .PD
  24311. Specifies the function to call to flush the I and D caches, or to not
  24312. call any such function. If called, the function must take the same
  24313. arguments as the common \f(CW\*(C`_flush_func\*(C'\fR, that is, the address of the
  24314. memory range for which the cache is being flushed, the size of the
  24315. memory range, and the number 3 (to flush both caches). The default
  24316. depends on the target \s-1GCC\s0 was configured for, but commonly is either
  24317. \&\f(CW\*(C`_flush_func\*(C'\fR or \f(CW\*(C`_\|_cpu_flush\*(C'\fR.
  24318. .IP "\fBmbranch\-cost=\fR\fInum\fR" 4
  24319. .IX Item "mbranch-cost=num"
  24320. Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
  24321. This cost is only a heuristic and is not guaranteed to produce
  24322. consistent results across releases. A zero cost redundantly selects
  24323. the default, which is based on the \fB\-mtune\fR setting.
  24324. .IP "\fB\-mbranch\-likely\fR" 4
  24325. .IX Item "-mbranch-likely"
  24326. .PD 0
  24327. .IP "\fB\-mno\-branch\-likely\fR" 4
  24328. .IX Item "-mno-branch-likely"
  24329. .PD
  24330. Enable or disable use of Branch Likely instructions, regardless of the
  24331. default for the selected architecture. By default, Branch Likely
  24332. instructions may be generated if they are supported by the selected
  24333. architecture. An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
  24334. and processors that implement those architectures; for those, Branch
  24335. Likely instructions are not be generated by default because the \s-1MIPS32\s0
  24336. and \s-1MIPS64\s0 architectures specifically deprecate their use.
  24337. .IP "\fB\-mcompact\-branches=never\fR" 4
  24338. .IX Item "-mcompact-branches=never"
  24339. .PD 0
  24340. .IP "\fB\-mcompact\-branches=optimal\fR" 4
  24341. .IX Item "-mcompact-branches=optimal"
  24342. .IP "\fB\-mcompact\-branches=always\fR" 4
  24343. .IX Item "-mcompact-branches=always"
  24344. .PD
  24345. These options control which form of branches will be generated. The
  24346. default is \fB\-mcompact\-branches=optimal\fR.
  24347. .Sp
  24348. The \fB\-mcompact\-branches=never\fR option ensures that compact branch
  24349. instructions will never be generated.
  24350. .Sp
  24351. The \fB\-mcompact\-branches=always\fR option ensures that a compact
  24352. branch instruction will be generated if available. If a compact branch
  24353. instruction is not available, a delay slot form of the branch will be
  24354. used instead.
  24355. .Sp
  24356. This option is supported from \s-1MIPS\s0 Release 6 onwards.
  24357. .Sp
  24358. The \fB\-mcompact\-branches=optimal\fR option will cause a delay slot
  24359. branch to be used if one is available in the current \s-1ISA\s0 and the delay
  24360. slot is successfully filled. If the delay slot is not filled, a compact
  24361. branch will be chosen if one is available.
  24362. .IP "\fB\-mfp\-exceptions\fR" 4
  24363. .IX Item "-mfp-exceptions"
  24364. .PD 0
  24365. .IP "\fB\-mno\-fp\-exceptions\fR" 4
  24366. .IX Item "-mno-fp-exceptions"
  24367. .PD
  24368. Specifies whether \s-1FP\s0 exceptions are enabled. This affects how
  24369. \&\s-1FP\s0 instructions are scheduled for some processors.
  24370. The default is that \s-1FP\s0 exceptions are
  24371. enabled.
  24372. .Sp
  24373. For instance, on the \s-1SB\-1,\s0 if \s-1FP\s0 exceptions are disabled, and we are emitting
  24374. 64\-bit code, then we can use both \s-1FP\s0 pipes. Otherwise, we can only use one
  24375. \&\s-1FP\s0 pipe.
  24376. .IP "\fB\-mvr4130\-align\fR" 4
  24377. .IX Item "-mvr4130-align"
  24378. .PD 0
  24379. .IP "\fB\-mno\-vr4130\-align\fR" 4
  24380. .IX Item "-mno-vr4130-align"
  24381. .PD
  24382. The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
  24383. instructions together if the first one is 8\-byte aligned. When this
  24384. option is enabled, \s-1GCC\s0 aligns pairs of instructions that it
  24385. thinks should execute in parallel.
  24386. .Sp
  24387. This option only has an effect when optimizing for the \s-1VR4130.\s0
  24388. It normally makes code faster, but at the expense of making it bigger.
  24389. It is enabled by default at optimization level \fB\-O3\fR.
  24390. .IP "\fB\-msynci\fR" 4
  24391. .IX Item "-msynci"
  24392. .PD 0
  24393. .IP "\fB\-mno\-synci\fR" 4
  24394. .IX Item "-mno-synci"
  24395. .PD
  24396. Enable (disable) generation of \f(CW\*(C`synci\*(C'\fR instructions on
  24397. architectures that support it. The \f(CW\*(C`synci\*(C'\fR instructions (if
  24398. enabled) are generated when \f(CW\*(C`_\|_builtin_\|_\|_clear_cache\*(C'\fR is
  24399. compiled.
  24400. .Sp
  24401. This option defaults to \fB\-mno\-synci\fR, but the default can be
  24402. overridden by configuring \s-1GCC\s0 with \fB\-\-with\-synci\fR.
  24403. .Sp
  24404. When compiling code for single processor systems, it is generally safe
  24405. to use \f(CW\*(C`synci\*(C'\fR. However, on many multi-core (\s-1SMP\s0) systems, it
  24406. does not invalidate the instruction caches on all cores and may lead
  24407. to undefined behavior.
  24408. .IP "\fB\-mrelax\-pic\-calls\fR" 4
  24409. .IX Item "-mrelax-pic-calls"
  24410. .PD 0
  24411. .IP "\fB\-mno\-relax\-pic\-calls\fR" 4
  24412. .IX Item "-mno-relax-pic-calls"
  24413. .PD
  24414. Try to turn \s-1PIC\s0 calls that are normally dispatched via register
  24415. \&\f(CW$25\fR into direct calls. This is only possible if the linker can
  24416. resolve the destination at link time and if the destination is within
  24417. range for a direct call.
  24418. .Sp
  24419. \&\fB\-mrelax\-pic\-calls\fR is the default if \s-1GCC\s0 was configured to use
  24420. an assembler and a linker that support the \f(CW\*(C`.reloc\*(C'\fR assembly
  24421. directive and \fB\-mexplicit\-relocs\fR is in effect. With
  24422. \&\fB\-mno\-explicit\-relocs\fR, this optimization can be performed by the
  24423. assembler and the linker alone without help from the compiler.
  24424. .IP "\fB\-mmcount\-ra\-address\fR" 4
  24425. .IX Item "-mmcount-ra-address"
  24426. .PD 0
  24427. .IP "\fB\-mno\-mcount\-ra\-address\fR" 4
  24428. .IX Item "-mno-mcount-ra-address"
  24429. .PD
  24430. Emit (do not emit) code that allows \f(CW\*(C`_mcount\*(C'\fR to modify the
  24431. calling function's return address. When enabled, this option extends
  24432. the usual \f(CW\*(C`_mcount\*(C'\fR interface with a new \fIra-address\fR
  24433. parameter, which has type \f(CW\*(C`intptr_t *\*(C'\fR and is passed in register
  24434. \&\f(CW$12\fR. \f(CW\*(C`_mcount\*(C'\fR can then modify the return address by
  24435. doing both of the following:
  24436. .RS 4
  24437. .IP "*" 4
  24438. Returning the new address in register \f(CW$31\fR.
  24439. .IP "*" 4
  24440. Storing the new address in \f(CW\*(C`*\f(CIra\-address\f(CW\*(C'\fR,
  24441. if \fIra-address\fR is nonnull.
  24442. .RE
  24443. .RS 4
  24444. .Sp
  24445. The default is \fB\-mno\-mcount\-ra\-address\fR.
  24446. .RE
  24447. .IP "\fB\-mframe\-header\-opt\fR" 4
  24448. .IX Item "-mframe-header-opt"
  24449. .PD 0
  24450. .IP "\fB\-mno\-frame\-header\-opt\fR" 4
  24451. .IX Item "-mno-frame-header-opt"
  24452. .PD
  24453. Enable (disable) frame header optimization in the o32 \s-1ABI.\s0 When using the
  24454. o32 \s-1ABI,\s0 calling functions will allocate 16 bytes on the stack for the called
  24455. function to write out register arguments. When enabled, this optimization
  24456. will suppress the allocation of the frame header if it can be determined that
  24457. it is unused.
  24458. .Sp
  24459. This optimization is off by default at all optimization levels.
  24460. .IP "\fB\-mlxc1\-sxc1\fR" 4
  24461. .IX Item "-mlxc1-sxc1"
  24462. .PD 0
  24463. .IP "\fB\-mno\-lxc1\-sxc1\fR" 4
  24464. .IX Item "-mno-lxc1-sxc1"
  24465. .PD
  24466. When applicable, enable (disable) the generation of \f(CW\*(C`lwxc1\*(C'\fR,
  24467. \&\f(CW\*(C`swxc1\*(C'\fR, \f(CW\*(C`ldxc1\*(C'\fR, \f(CW\*(C`sdxc1\*(C'\fR instructions. Enabled by default.
  24468. .IP "\fB\-mmadd4\fR" 4
  24469. .IX Item "-mmadd4"
  24470. .PD 0
  24471. .IP "\fB\-mno\-madd4\fR" 4
  24472. .IX Item "-mno-madd4"
  24473. .PD
  24474. When applicable, enable (disable) the generation of 4\-operand \f(CW\*(C`madd.s\*(C'\fR,
  24475. \&\f(CW\*(C`madd.d\*(C'\fR and related instructions. Enabled by default.
  24476. .PP
  24477. \fI\s-1MMIX\s0 Options\fR
  24478. .IX Subsection "MMIX Options"
  24479. .PP
  24480. These options are defined for the \s-1MMIX:\s0
  24481. .IP "\fB\-mlibfuncs\fR" 4
  24482. .IX Item "-mlibfuncs"
  24483. .PD 0
  24484. .IP "\fB\-mno\-libfuncs\fR" 4
  24485. .IX Item "-mno-libfuncs"
  24486. .PD
  24487. Specify that intrinsic library functions are being compiled, passing all
  24488. values in registers, no matter the size.
  24489. .IP "\fB\-mepsilon\fR" 4
  24490. .IX Item "-mepsilon"
  24491. .PD 0
  24492. .IP "\fB\-mno\-epsilon\fR" 4
  24493. .IX Item "-mno-epsilon"
  24494. .PD
  24495. Generate floating-point comparison instructions that compare with respect
  24496. to the \f(CW\*(C`rE\*(C'\fR epsilon register.
  24497. .IP "\fB\-mabi=mmixware\fR" 4
  24498. .IX Item "-mabi=mmixware"
  24499. .PD 0
  24500. .IP "\fB\-mabi=gnu\fR" 4
  24501. .IX Item "-mabi=gnu"
  24502. .PD
  24503. Generate code that passes function parameters and return values that (in
  24504. the called function) are seen as registers \f(CW$0\fR and up, as opposed to
  24505. the \s-1GNU ABI\s0 which uses global registers \f(CW$231\fR and up.
  24506. .IP "\fB\-mzero\-extend\fR" 4
  24507. .IX Item "-mzero-extend"
  24508. .PD 0
  24509. .IP "\fB\-mno\-zero\-extend\fR" 4
  24510. .IX Item "-mno-zero-extend"
  24511. .PD
  24512. When reading data from memory in sizes shorter than 64 bits, use (do not
  24513. use) zero-extending load instructions by default, rather than
  24514. sign-extending ones.
  24515. .IP "\fB\-mknuthdiv\fR" 4
  24516. .IX Item "-mknuthdiv"
  24517. .PD 0
  24518. .IP "\fB\-mno\-knuthdiv\fR" 4
  24519. .IX Item "-mno-knuthdiv"
  24520. .PD
  24521. Make the result of a division yielding a remainder have the same sign as
  24522. the divisor. With the default, \fB\-mno\-knuthdiv\fR, the sign of the
  24523. remainder follows the sign of the dividend. Both methods are
  24524. arithmetically valid, the latter being almost exclusively used.
  24525. .IP "\fB\-mtoplevel\-symbols\fR" 4
  24526. .IX Item "-mtoplevel-symbols"
  24527. .PD 0
  24528. .IP "\fB\-mno\-toplevel\-symbols\fR" 4
  24529. .IX Item "-mno-toplevel-symbols"
  24530. .PD
  24531. Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
  24532. code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
  24533. .IP "\fB\-melf\fR" 4
  24534. .IX Item "-melf"
  24535. Generate an executable in the \s-1ELF\s0 format, rather than the default
  24536. \&\fBmmo\fR format used by the \fBmmix\fR simulator.
  24537. .IP "\fB\-mbranch\-predict\fR" 4
  24538. .IX Item "-mbranch-predict"
  24539. .PD 0
  24540. .IP "\fB\-mno\-branch\-predict\fR" 4
  24541. .IX Item "-mno-branch-predict"
  24542. .PD
  24543. Use (do not use) the probable-branch instructions, when static branch
  24544. prediction indicates a probable branch.
  24545. .IP "\fB\-mbase\-addresses\fR" 4
  24546. .IX Item "-mbase-addresses"
  24547. .PD 0
  24548. .IP "\fB\-mno\-base\-addresses\fR" 4
  24549. .IX Item "-mno-base-addresses"
  24550. .PD
  24551. Generate (do not generate) code that uses \fIbase addresses\fR. Using a
  24552. base address automatically generates a request (handled by the assembler
  24553. and the linker) for a constant to be set up in a global register. The
  24554. register is used for one or more base address requests within the range 0
  24555. to 255 from the value held in the register. The generally leads to short
  24556. and fast code, but the number of different data items that can be
  24557. addressed is limited. This means that a program that uses lots of static
  24558. data may require \fB\-mno\-base\-addresses\fR.
  24559. .IP "\fB\-msingle\-exit\fR" 4
  24560. .IX Item "-msingle-exit"
  24561. .PD 0
  24562. .IP "\fB\-mno\-single\-exit\fR" 4
  24563. .IX Item "-mno-single-exit"
  24564. .PD
  24565. Force (do not force) generated code to have a single exit point in each
  24566. function.
  24567. .PP
  24568. \fI\s-1MN10300\s0 Options\fR
  24569. .IX Subsection "MN10300 Options"
  24570. .PP
  24571. These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
  24572. .IP "\fB\-mmult\-bug\fR" 4
  24573. .IX Item "-mmult-bug"
  24574. Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
  24575. processors. This is the default.
  24576. .IP "\fB\-mno\-mult\-bug\fR" 4
  24577. .IX Item "-mno-mult-bug"
  24578. Do not generate code to avoid bugs in the multiply instructions for the
  24579. \&\s-1MN10300\s0 processors.
  24580. .IP "\fB\-mam33\fR" 4
  24581. .IX Item "-mam33"
  24582. Generate code using features specific to the \s-1AM33\s0 processor.
  24583. .IP "\fB\-mno\-am33\fR" 4
  24584. .IX Item "-mno-am33"
  24585. Do not generate code using features specific to the \s-1AM33\s0 processor. This
  24586. is the default.
  24587. .IP "\fB\-mam33\-2\fR" 4
  24588. .IX Item "-mam33-2"
  24589. Generate code using features specific to the \s-1AM33/2.0\s0 processor.
  24590. .IP "\fB\-mam34\fR" 4
  24591. .IX Item "-mam34"
  24592. Generate code using features specific to the \s-1AM34\s0 processor.
  24593. .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
  24594. .IX Item "-mtune=cpu-type"
  24595. Use the timing characteristics of the indicated \s-1CPU\s0 type when
  24596. scheduling instructions. This does not change the targeted processor
  24597. type. The \s-1CPU\s0 type must be one of \fBmn10300\fR, \fBam33\fR,
  24598. \&\fBam33\-2\fR or \fBam34\fR.
  24599. .IP "\fB\-mreturn\-pointer\-on\-d0\fR" 4
  24600. .IX Item "-mreturn-pointer-on-d0"
  24601. When generating a function that returns a pointer, return the pointer
  24602. in both \f(CW\*(C`a0\*(C'\fR and \f(CW\*(C`d0\*(C'\fR. Otherwise, the pointer is returned
  24603. only in \f(CW\*(C`a0\*(C'\fR, and attempts to call such functions without a prototype
  24604. result in errors. Note that this option is on by default; use
  24605. \&\fB\-mno\-return\-pointer\-on\-d0\fR to disable it.
  24606. .IP "\fB\-mno\-crt0\fR" 4
  24607. .IX Item "-mno-crt0"
  24608. Do not link in the C run-time initialization object file.
  24609. .IP "\fB\-mrelax\fR" 4
  24610. .IX Item "-mrelax"
  24611. Indicate to the linker that it should perform a relaxation optimization pass
  24612. to shorten branches, calls and absolute memory addresses. This option only
  24613. has an effect when used on the command line for the final link step.
  24614. .Sp
  24615. This option makes symbolic debugging impossible.
  24616. .IP "\fB\-mliw\fR" 4
  24617. .IX Item "-mliw"
  24618. Allow the compiler to generate \fILong Instruction Word\fR
  24619. instructions if the target is the \fB\s-1AM33\s0\fR or later. This is the
  24620. default. This option defines the preprocessor macro \f(CW\*(C`_\|_LIW_\|_\*(C'\fR.
  24621. .IP "\fB\-mno\-liw\fR" 4
  24622. .IX Item "-mno-liw"
  24623. Do not allow the compiler to generate \fILong Instruction Word\fR
  24624. instructions. This option defines the preprocessor macro
  24625. \&\f(CW\*(C`_\|_NO_LIW_\|_\*(C'\fR.
  24626. .IP "\fB\-msetlb\fR" 4
  24627. .IX Item "-msetlb"
  24628. Allow the compiler to generate the \fI\s-1SETLB\s0\fR and \fILcc\fR
  24629. instructions if the target is the \fB\s-1AM33\s0\fR or later. This is the
  24630. default. This option defines the preprocessor macro \f(CW\*(C`_\|_SETLB_\|_\*(C'\fR.
  24631. .IP "\fB\-mno\-setlb\fR" 4
  24632. .IX Item "-mno-setlb"
  24633. Do not allow the compiler to generate \fI\s-1SETLB\s0\fR or \fILcc\fR
  24634. instructions. This option defines the preprocessor macro
  24635. \&\f(CW\*(C`_\|_NO_SETLB_\|_\*(C'\fR.
  24636. .PP
  24637. \fIMoxie Options\fR
  24638. .IX Subsection "Moxie Options"
  24639. .IP "\fB\-meb\fR" 4
  24640. .IX Item "-meb"
  24641. Generate big-endian code. This is the default for \fBmoxie\-*\-*\fR
  24642. configurations.
  24643. .IP "\fB\-mel\fR" 4
  24644. .IX Item "-mel"
  24645. Generate little-endian code.
  24646. .IP "\fB\-mmul.x\fR" 4
  24647. .IX Item "-mmul.x"
  24648. Generate mul.x and umul.x instructions. This is the default for
  24649. \&\fBmoxiebox\-*\-*\fR configurations.
  24650. .IP "\fB\-mno\-crt0\fR" 4
  24651. .IX Item "-mno-crt0"
  24652. Do not link in the C run-time initialization object file.
  24653. .PP
  24654. \fI\s-1MSP430\s0 Options\fR
  24655. .IX Subsection "MSP430 Options"
  24656. .PP
  24657. These options are defined for the \s-1MSP430:\s0
  24658. .IP "\fB\-masm\-hex\fR" 4
  24659. .IX Item "-masm-hex"
  24660. Force assembly output to always use hex constants. Normally such
  24661. constants are signed decimals, but this option is available for
  24662. testsuite and/or aesthetic purposes.
  24663. .IP "\fB\-mmcu=\fR" 4
  24664. .IX Item "-mmcu="
  24665. Select the \s-1MCU\s0 to target. This is used to create a C preprocessor
  24666. symbol based upon the \s-1MCU\s0 name, converted to upper case and pre\- and
  24667. post-fixed with \fB_\|_\fR. This in turn is used by the
  24668. \&\fImsp430.h\fR header file to select an MCU-specific supplementary
  24669. header file.
  24670. .Sp
  24671. The option also sets the \s-1ISA\s0 to use. If the \s-1MCU\s0 name is one that is
  24672. known to only support the 430 \s-1ISA\s0 then that is selected, otherwise the
  24673. 430X \s-1ISA\s0 is selected. A generic \s-1MCU\s0 name of \fBmsp430\fR can also be
  24674. used to select the 430 \s-1ISA.\s0 Similarly the generic \fBmsp430x\fR \s-1MCU\s0
  24675. name selects the 430X \s-1ISA.\s0
  24676. .Sp
  24677. In addition an MCU-specific linker script is added to the linker
  24678. command line. The script's name is the name of the \s-1MCU\s0 with
  24679. \&\fI.ld\fR appended. Thus specifying \fB\-mmcu=xxx\fR on the \fBgcc\fR
  24680. command line defines the C preprocessor symbol \f(CW\*(C`_\|_XXX_\|_\*(C'\fR and
  24681. cause the linker to search for a script called \fIxxx.ld\fR.
  24682. .Sp
  24683. The \s-1ISA\s0 and hardware multiply supported for the different MCUs is hard-coded
  24684. into \s-1GCC.\s0 However, an external \fBdevices.csv\fR file can be used to
  24685. extend device support beyond those that have been hard-coded.
  24686. .Sp
  24687. \&\s-1GCC\s0 searches for the \fBdevices.csv\fR file using the following methods in the
  24688. given precedence order, where the first method takes precendence over the
  24689. second which takes precedence over the third.
  24690. .RS 4
  24691. .ie n .IP "Include path specified with ""\-I"" and ""\-L""" 4
  24692. .el .IP "Include path specified with \f(CW\-I\fR and \f(CW\-L\fR" 4
  24693. .IX Item "Include path specified with -I and -L"
  24694. \&\fBdevices.csv\fR will be searched for in each of the directories specified by
  24695. include paths and linker library search paths.
  24696. .IP "Path specified by the environment variable \fB\s-1MSP430_GCC_INCLUDE_DIR\s0\fR" 4
  24697. .IX Item "Path specified by the environment variable MSP430_GCC_INCLUDE_DIR"
  24698. Define the value of the global environment variable
  24699. \&\fB\s-1MSP430_GCC_INCLUDE_DIR\s0\fR
  24700. to the full path to the directory containing devices.csv, and \s-1GCC\s0 will search
  24701. this directory for devices.csv. If devices.csv is found, this directory will
  24702. also be registered as an include path, and linker library path. Header files
  24703. and linker scripts in this directory can therefore be used without manually
  24704. specifying \f(CW\*(C`\-I\*(C'\fR and \f(CW\*(C`\-L\*(C'\fR on the command line.
  24705. .IP "The \fBmsp430\-elf{,bare}/include/devices\fR directory" 4
  24706. .IX Item "The msp430-elf{,bare}/include/devices directory"
  24707. Finally, \s-1GCC\s0 will examine \fBmsp430\-elf{,bare}/include/devices\fR from the
  24708. toolchain root directory. This directory does not exist in a default
  24709. installation, but if the user has created it and copied \fBdevices.csv\fR
  24710. there, then the \s-1MCU\s0 data will be read. As above, this directory will
  24711. also be registered as an include path, and linker library path.
  24712. .RE
  24713. .RS 4
  24714. .Sp
  24715. If none of the above search methods find \fBdevices.csv\fR, then the
  24716. hard-coded \s-1MCU\s0 data is used.
  24717. .RE
  24718. .IP "\fB\-mwarn\-mcu\fR" 4
  24719. .IX Item "-mwarn-mcu"
  24720. .PD 0
  24721. .IP "\fB\-mno\-warn\-mcu\fR" 4
  24722. .IX Item "-mno-warn-mcu"
  24723. .PD
  24724. This option enables or disables warnings about conflicts between the
  24725. \&\s-1MCU\s0 name specified by the \fB\-mmcu\fR option and the \s-1ISA\s0 set by the
  24726. \&\fB\-mcpu\fR option and/or the hardware multiply support set by the
  24727. \&\fB\-mhwmult\fR option. It also toggles warnings about unrecognized
  24728. \&\s-1MCU\s0 names. This option is on by default.
  24729. .IP "\fB\-mcpu=\fR" 4
  24730. .IX Item "-mcpu="
  24731. Specifies the \s-1ISA\s0 to use. Accepted values are \fBmsp430\fR,
  24732. \&\fBmsp430x\fR and \fBmsp430xv2\fR. This option is deprecated. The
  24733. \&\fB\-mmcu=\fR option should be used to select the \s-1ISA.\s0
  24734. .IP "\fB\-msim\fR" 4
  24735. .IX Item "-msim"
  24736. Link to the simulator runtime libraries and linker script. Overrides
  24737. any scripts that would be selected by the \fB\-mmcu=\fR option.
  24738. .IP "\fB\-mlarge\fR" 4
  24739. .IX Item "-mlarge"
  24740. Use large-model addressing (20\-bit pointers, 20\-bit \f(CW\*(C`size_t\*(C'\fR).
  24741. .IP "\fB\-msmall\fR" 4
  24742. .IX Item "-msmall"
  24743. Use small-model addressing (16\-bit pointers, 16\-bit \f(CW\*(C`size_t\*(C'\fR).
  24744. .IP "\fB\-mrelax\fR" 4
  24745. .IX Item "-mrelax"
  24746. This option is passed to the assembler and linker, and allows the
  24747. linker to perform certain optimizations that cannot be done until
  24748. the final link.
  24749. .IP "\fBmhwmult=\fR" 4
  24750. .IX Item "mhwmult="
  24751. Describes the type of hardware multiply supported by the target.
  24752. Accepted values are \fBnone\fR for no hardware multiply, \fB16bit\fR
  24753. for the original 16\-bit\-only multiply supported by early MCUs.
  24754. \&\fB32bit\fR for the 16/32\-bit multiply supported by later MCUs and
  24755. \&\fBf5series\fR for the 16/32\-bit multiply supported by F5\-series MCUs.
  24756. A value of \fBauto\fR can also be given. This tells \s-1GCC\s0 to deduce
  24757. the hardware multiply support based upon the \s-1MCU\s0 name provided by the
  24758. \&\fB\-mmcu\fR option. If no \fB\-mmcu\fR option is specified or if
  24759. the \s-1MCU\s0 name is not recognized then no hardware multiply support is
  24760. assumed. \f(CW\*(C`auto\*(C'\fR is the default setting.
  24761. .Sp
  24762. Hardware multiplies are normally performed by calling a library
  24763. routine. This saves space in the generated code. When compiling at
  24764. \&\fB\-O3\fR or higher however the hardware multiplier is invoked
  24765. inline. This makes for bigger, but faster code.
  24766. .Sp
  24767. The hardware multiply routines disable interrupts whilst running and
  24768. restore the previous interrupt state when they finish. This makes
  24769. them safe to use inside interrupt handlers as well as in normal code.
  24770. .IP "\fB\-minrt\fR" 4
  24771. .IX Item "-minrt"
  24772. Enable the use of a minimum runtime environment \- no static
  24773. initializers or constructors. This is intended for memory-constrained
  24774. devices. The compiler includes special symbols in some objects
  24775. that tell the linker and runtime which code fragments are required.
  24776. .IP "\fB\-mtiny\-printf\fR" 4
  24777. .IX Item "-mtiny-printf"
  24778. Enable reduced code size \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`puts\*(C'\fR library functions.
  24779. The \fBtiny\fR implementations of these functions are not reentrant, so
  24780. must be used with caution in multi-threaded applications.
  24781. .Sp
  24782. Support for streams has been removed and the string to be printed will
  24783. always be sent to stdout via the \f(CW\*(C`write\*(C'\fR syscall. The string is not
  24784. buffered before it is sent to write.
  24785. .Sp
  24786. This option requires Newlib Nano \s-1IO,\s0 so \s-1GCC\s0 must be configured with
  24787. \&\fB\-\-enable\-newlib\-nano\-formatted\-io\fR.
  24788. .IP "\fB\-mmax\-inline\-shift=\fR" 4
  24789. .IX Item "-mmax-inline-shift="
  24790. This option takes an integer between 0 and 64 inclusive, and sets
  24791. the maximum number of inline shift instructions which should be emitted to
  24792. perform a shift operation by a constant amount. When this value needs to be
  24793. exceeded, an mspabi helper function is used instead. The default value is 4.
  24794. .Sp
  24795. This only affects cases where a shift by multiple positions cannot be
  24796. completed with a single instruction (e.g. all shifts >1 on the 430 \s-1ISA\s0).
  24797. .Sp
  24798. Shifts of a 32\-bit value are at least twice as costly, so the value passed for
  24799. this option is divided by 2 and the resulting value used instead.
  24800. .IP "\fB\-mcode\-region=\fR" 4
  24801. .IX Item "-mcode-region="
  24802. .PD 0
  24803. .IP "\fB\-mdata\-region=\fR" 4
  24804. .IX Item "-mdata-region="
  24805. .PD
  24806. These options tell the compiler where to place functions and data that
  24807. do not have one of the \f(CW\*(C`lower\*(C'\fR, \f(CW\*(C`upper\*(C'\fR, \f(CW\*(C`either\*(C'\fR or
  24808. \&\f(CW\*(C`section\*(C'\fR attributes. Possible values are \f(CW\*(C`lower\*(C'\fR,
  24809. \&\f(CW\*(C`upper\*(C'\fR, \f(CW\*(C`either\*(C'\fR or \f(CW\*(C`any\*(C'\fR. The first three behave
  24810. like the corresponding attribute. The fourth possible value \-
  24811. \&\f(CW\*(C`any\*(C'\fR \- is the default. It leaves placement entirely up to the
  24812. linker script and how it assigns the standard sections
  24813. (\f(CW\*(C`.text\*(C'\fR, \f(CW\*(C`.data\*(C'\fR, etc) to the memory regions.
  24814. .IP "\fB\-msilicon\-errata=\fR" 4
  24815. .IX Item "-msilicon-errata="
  24816. This option passes on a request to assembler to enable the fixes for
  24817. the named silicon errata.
  24818. .IP "\fB\-msilicon\-errata\-warn=\fR" 4
  24819. .IX Item "-msilicon-errata-warn="
  24820. This option passes on a request to the assembler to enable warning
  24821. messages when a silicon errata might need to be applied.
  24822. .IP "\fB\-mwarn\-devices\-csv\fR" 4
  24823. .IX Item "-mwarn-devices-csv"
  24824. .PD 0
  24825. .IP "\fB\-mno\-warn\-devices\-csv\fR" 4
  24826. .IX Item "-mno-warn-devices-csv"
  24827. .PD
  24828. Warn if \fBdevices.csv\fR is not found or there are problem parsing it
  24829. (default: on).
  24830. .PP
  24831. \fI\s-1NDS32\s0 Options\fR
  24832. .IX Subsection "NDS32 Options"
  24833. .PP
  24834. These options are defined for \s-1NDS32\s0 implementations:
  24835. .IP "\fB\-mbig\-endian\fR" 4
  24836. .IX Item "-mbig-endian"
  24837. Generate code in big-endian mode.
  24838. .IP "\fB\-mlittle\-endian\fR" 4
  24839. .IX Item "-mlittle-endian"
  24840. Generate code in little-endian mode.
  24841. .IP "\fB\-mreduced\-regs\fR" 4
  24842. .IX Item "-mreduced-regs"
  24843. Use reduced-set registers for register allocation.
  24844. .IP "\fB\-mfull\-regs\fR" 4
  24845. .IX Item "-mfull-regs"
  24846. Use full-set registers for register allocation.
  24847. .IP "\fB\-mcmov\fR" 4
  24848. .IX Item "-mcmov"
  24849. Generate conditional move instructions.
  24850. .IP "\fB\-mno\-cmov\fR" 4
  24851. .IX Item "-mno-cmov"
  24852. Do not generate conditional move instructions.
  24853. .IP "\fB\-mext\-perf\fR" 4
  24854. .IX Item "-mext-perf"
  24855. Generate performance extension instructions.
  24856. .IP "\fB\-mno\-ext\-perf\fR" 4
  24857. .IX Item "-mno-ext-perf"
  24858. Do not generate performance extension instructions.
  24859. .IP "\fB\-mext\-perf2\fR" 4
  24860. .IX Item "-mext-perf2"
  24861. Generate performance extension 2 instructions.
  24862. .IP "\fB\-mno\-ext\-perf2\fR" 4
  24863. .IX Item "-mno-ext-perf2"
  24864. Do not generate performance extension 2 instructions.
  24865. .IP "\fB\-mext\-string\fR" 4
  24866. .IX Item "-mext-string"
  24867. Generate string extension instructions.
  24868. .IP "\fB\-mno\-ext\-string\fR" 4
  24869. .IX Item "-mno-ext-string"
  24870. Do not generate string extension instructions.
  24871. .IP "\fB\-mv3push\fR" 4
  24872. .IX Item "-mv3push"
  24873. Generate v3 push25/pop25 instructions.
  24874. .IP "\fB\-mno\-v3push\fR" 4
  24875. .IX Item "-mno-v3push"
  24876. Do not generate v3 push25/pop25 instructions.
  24877. .IP "\fB\-m16\-bit\fR" 4
  24878. .IX Item "-m16-bit"
  24879. Generate 16\-bit instructions.
  24880. .IP "\fB\-mno\-16\-bit\fR" 4
  24881. .IX Item "-mno-16-bit"
  24882. Do not generate 16\-bit instructions.
  24883. .IP "\fB\-misr\-vector\-size=\fR\fInum\fR" 4
  24884. .IX Item "-misr-vector-size=num"
  24885. Specify the size of each interrupt vector, which must be 4 or 16.
  24886. .IP "\fB\-mcache\-block\-size=\fR\fInum\fR" 4
  24887. .IX Item "-mcache-block-size=num"
  24888. Specify the size of each cache block,
  24889. which must be a power of 2 between 4 and 512.
  24890. .IP "\fB\-march=\fR\fIarch\fR" 4
  24891. .IX Item "-march=arch"
  24892. Specify the name of the target architecture.
  24893. .IP "\fB\-mcmodel=\fR\fIcode-model\fR" 4
  24894. .IX Item "-mcmodel=code-model"
  24895. Set the code model to one of
  24896. .RS 4
  24897. .IP "\fBsmall\fR" 4
  24898. .IX Item "small"
  24899. All the data and read-only data segments must be within 512KB addressing space.
  24900. The text segment must be within 16MB addressing space.
  24901. .IP "\fBmedium\fR" 4
  24902. .IX Item "medium"
  24903. The data segment must be within 512KB while the read-only data segment can be
  24904. within 4GB addressing space. The text segment should be still within 16MB
  24905. addressing space.
  24906. .IP "\fBlarge\fR" 4
  24907. .IX Item "large"
  24908. All the text and data segments can be within 4GB addressing space.
  24909. .RE
  24910. .RS 4
  24911. .RE
  24912. .IP "\fB\-mctor\-dtor\fR" 4
  24913. .IX Item "-mctor-dtor"
  24914. Enable constructor/destructor feature.
  24915. .IP "\fB\-mrelax\fR" 4
  24916. .IX Item "-mrelax"
  24917. Guide linker to relax instructions.
  24918. .PP
  24919. \fINios \s-1II\s0 Options\fR
  24920. .IX Subsection "Nios II Options"
  24921. .PP
  24922. These are the options defined for the Altera Nios \s-1II\s0 processor.
  24923. .IP "\fB\-G\fR \fInum\fR" 4
  24924. .IX Item "-G num"
  24925. Put global and static objects less than or equal to \fInum\fR bytes
  24926. into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
  24927. sections. The default value of \fInum\fR is 8.
  24928. .IP "\fB\-mgpopt=\fR\fIoption\fR" 4
  24929. .IX Item "-mgpopt=option"
  24930. .PD 0
  24931. .IP "\fB\-mgpopt\fR" 4
  24932. .IX Item "-mgpopt"
  24933. .IP "\fB\-mno\-gpopt\fR" 4
  24934. .IX Item "-mno-gpopt"
  24935. .PD
  24936. Generate (do not generate) GP-relative accesses. The following
  24937. \&\fIoption\fR names are recognized:
  24938. .RS 4
  24939. .IP "\fBnone\fR" 4
  24940. .IX Item "none"
  24941. Do not generate GP-relative accesses.
  24942. .IP "\fBlocal\fR" 4
  24943. .IX Item "local"
  24944. Generate GP-relative accesses for small data objects that are not
  24945. external, weak, or uninitialized common symbols.
  24946. Also use GP-relative addressing for objects that
  24947. have been explicitly placed in a small data section via a \f(CW\*(C`section\*(C'\fR
  24948. attribute.
  24949. .IP "\fBglobal\fR" 4
  24950. .IX Item "global"
  24951. As for \fBlocal\fR, but also generate GP-relative accesses for
  24952. small data objects that are external, weak, or common. If you use this option,
  24953. you must ensure that all parts of your program (including libraries) are
  24954. compiled with the same \fB\-G\fR setting.
  24955. .IP "\fBdata\fR" 4
  24956. .IX Item "data"
  24957. Generate GP-relative accesses for all data objects in the program. If you
  24958. use this option, the entire data and \s-1BSS\s0 segments
  24959. of your program must fit in 64K of memory and you must use an appropriate
  24960. linker script to allocate them within the addressable range of the
  24961. global pointer.
  24962. .IP "\fBall\fR" 4
  24963. .IX Item "all"
  24964. Generate GP-relative addresses for function pointers as well as data
  24965. pointers. If you use this option, the entire text, data, and \s-1BSS\s0 segments
  24966. of your program must fit in 64K of memory and you must use an appropriate
  24967. linker script to allocate them within the addressable range of the
  24968. global pointer.
  24969. .RE
  24970. .RS 4
  24971. .Sp
  24972. \&\fB\-mgpopt\fR is equivalent to \fB\-mgpopt=local\fR, and
  24973. \&\fB\-mno\-gpopt\fR is equivalent to \fB\-mgpopt=none\fR.
  24974. .Sp
  24975. The default is \fB\-mgpopt\fR except when \fB\-fpic\fR or
  24976. \&\fB\-fPIC\fR is specified to generate position-independent code.
  24977. Note that the Nios \s-1II ABI\s0 does not permit GP-relative accesses from
  24978. shared libraries.
  24979. .Sp
  24980. You may need to specify \fB\-mno\-gpopt\fR explicitly when building
  24981. programs that include large amounts of small data, including large
  24982. \&\s-1GOT\s0 data sections. In this case, the 16\-bit offset for GP-relative
  24983. addressing may not be large enough to allow access to the entire
  24984. small data section.
  24985. .RE
  24986. .IP "\fB\-mgprel\-sec=\fR\fIregexp\fR" 4
  24987. .IX Item "-mgprel-sec=regexp"
  24988. This option specifies additional section names that can be accessed via
  24989. GP-relative addressing. It is most useful in conjunction with
  24990. \&\f(CW\*(C`section\*(C'\fR attributes on variable declarations and a custom linker script.
  24991. The \fIregexp\fR is a \s-1POSIX\s0 Extended Regular Expression.
  24992. .Sp
  24993. This option does not affect the behavior of the \fB\-G\fR option, and
  24994. the specified sections are in addition to the standard \f(CW\*(C`.sdata\*(C'\fR
  24995. and \f(CW\*(C`.sbss\*(C'\fR small-data sections that are recognized by \fB\-mgpopt\fR.
  24996. .IP "\fB\-mr0rel\-sec=\fR\fIregexp\fR" 4
  24997. .IX Item "-mr0rel-sec=regexp"
  24998. This option specifies names of sections that can be accessed via a
  24999. 16\-bit offset from \f(CW\*(C`r0\*(C'\fR; that is, in the low 32K or high 32K
  25000. of the 32\-bit address space. It is most useful in conjunction with
  25001. \&\f(CW\*(C`section\*(C'\fR attributes on variable declarations and a custom linker script.
  25002. The \fIregexp\fR is a \s-1POSIX\s0 Extended Regular Expression.
  25003. .Sp
  25004. In contrast to the use of GP-relative addressing for small data,
  25005. zero-based addressing is never generated by default and there are no
  25006. conventional section names used in standard linker scripts for sections
  25007. in the low or high areas of memory.
  25008. .IP "\fB\-mel\fR" 4
  25009. .IX Item "-mel"
  25010. .PD 0
  25011. .IP "\fB\-meb\fR" 4
  25012. .IX Item "-meb"
  25013. .PD
  25014. Generate little-endian (default) or big-endian (experimental) code,
  25015. respectively.
  25016. .IP "\fB\-march=\fR\fIarch\fR" 4
  25017. .IX Item "-march=arch"
  25018. This specifies the name of the target Nios \s-1II\s0 architecture. \s-1GCC\s0 uses this
  25019. name to determine what kind of instructions it can emit when generating
  25020. assembly code. Permissible names are: \fBr1\fR, \fBr2\fR.
  25021. .Sp
  25022. The preprocessor macro \f(CW\*(C`_\|_nios2_arch_\|_\*(C'\fR is available to programs,
  25023. with value 1 or 2, indicating the targeted \s-1ISA\s0 level.
  25024. .IP "\fB\-mbypass\-cache\fR" 4
  25025. .IX Item "-mbypass-cache"
  25026. .PD 0
  25027. .IP "\fB\-mno\-bypass\-cache\fR" 4
  25028. .IX Item "-mno-bypass-cache"
  25029. .PD
  25030. Force all load and store instructions to always bypass cache by
  25031. using I/O variants of the instructions. The default is not to
  25032. bypass the cache.
  25033. .IP "\fB\-mno\-cache\-volatile\fR" 4
  25034. .IX Item "-mno-cache-volatile"
  25035. .PD 0
  25036. .IP "\fB\-mcache\-volatile\fR" 4
  25037. .IX Item "-mcache-volatile"
  25038. .PD
  25039. Volatile memory access bypass the cache using the I/O variants of
  25040. the load and store instructions. The default is not to bypass the cache.
  25041. .IP "\fB\-mno\-fast\-sw\-div\fR" 4
  25042. .IX Item "-mno-fast-sw-div"
  25043. .PD 0
  25044. .IP "\fB\-mfast\-sw\-div\fR" 4
  25045. .IX Item "-mfast-sw-div"
  25046. .PD
  25047. Do not use table-based fast divide for small numbers. The default
  25048. is to use the fast divide at \fB\-O3\fR and above.
  25049. .IP "\fB\-mno\-hw\-mul\fR" 4
  25050. .IX Item "-mno-hw-mul"
  25051. .PD 0
  25052. .IP "\fB\-mhw\-mul\fR" 4
  25053. .IX Item "-mhw-mul"
  25054. .IP "\fB\-mno\-hw\-mulx\fR" 4
  25055. .IX Item "-mno-hw-mulx"
  25056. .IP "\fB\-mhw\-mulx\fR" 4
  25057. .IX Item "-mhw-mulx"
  25058. .IP "\fB\-mno\-hw\-div\fR" 4
  25059. .IX Item "-mno-hw-div"
  25060. .IP "\fB\-mhw\-div\fR" 4
  25061. .IX Item "-mhw-div"
  25062. .PD
  25063. Enable or disable emitting \f(CW\*(C`mul\*(C'\fR, \f(CW\*(C`mulx\*(C'\fR and \f(CW\*(C`div\*(C'\fR family of
  25064. instructions by the compiler. The default is to emit \f(CW\*(C`mul\*(C'\fR
  25065. and not emit \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`mulx\*(C'\fR.
  25066. .IP "\fB\-mbmx\fR" 4
  25067. .IX Item "-mbmx"
  25068. .PD 0
  25069. .IP "\fB\-mno\-bmx\fR" 4
  25070. .IX Item "-mno-bmx"
  25071. .IP "\fB\-mcdx\fR" 4
  25072. .IX Item "-mcdx"
  25073. .IP "\fB\-mno\-cdx\fR" 4
  25074. .IX Item "-mno-cdx"
  25075. .PD
  25076. Enable or disable generation of Nios \s-1II R2 BMX\s0 (bit manipulation) and
  25077. \&\s-1CDX\s0 (code density) instructions. Enabling these instructions also
  25078. requires \fB\-march=r2\fR. Since these instructions are optional
  25079. extensions to the R2 architecture, the default is not to emit them.
  25080. .IP "\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR" 4
  25081. .IX Item "-mcustom-insn=N"
  25082. .PD 0
  25083. .IP "\fB\-mno\-custom\-\fR\fIinsn\fR" 4
  25084. .IX Item "-mno-custom-insn"
  25085. .PD
  25086. Each \fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR option enables use of a
  25087. custom instruction with encoding \fIN\fR when generating code that uses
  25088. \&\fIinsn\fR. For example, \fB\-mcustom\-fadds=253\fR generates custom
  25089. instruction 253 for single-precision floating-point add operations instead
  25090. of the default behavior of using a library call.
  25091. .Sp
  25092. The following values of \fIinsn\fR are supported. Except as otherwise
  25093. noted, floating-point operations are expected to be implemented with
  25094. normal \s-1IEEE 754\s0 semantics and correspond directly to the C operators or the
  25095. equivalent \s-1GCC\s0 built-in functions.
  25096. .Sp
  25097. Single-precision floating point:
  25098. .RS 4
  25099. .IP "\fBfadds\fR, \fBfsubs\fR, \fBfdivs\fR, \fBfmuls\fR" 4
  25100. .IX Item "fadds, fsubs, fdivs, fmuls"
  25101. Binary arithmetic operations.
  25102. .IP "\fBfnegs\fR" 4
  25103. .IX Item "fnegs"
  25104. Unary negation.
  25105. .IP "\fBfabss\fR" 4
  25106. .IX Item "fabss"
  25107. Unary absolute value.
  25108. .IP "\fBfcmpeqs\fR, \fBfcmpges\fR, \fBfcmpgts\fR, \fBfcmples\fR, \fBfcmplts\fR, \fBfcmpnes\fR" 4
  25109. .IX Item "fcmpeqs, fcmpges, fcmpgts, fcmples, fcmplts, fcmpnes"
  25110. Comparison operations.
  25111. .IP "\fBfmins\fR, \fBfmaxs\fR" 4
  25112. .IX Item "fmins, fmaxs"
  25113. Floating-point minimum and maximum. These instructions are only
  25114. generated if \fB\-ffinite\-math\-only\fR is specified.
  25115. .IP "\fBfsqrts\fR" 4
  25116. .IX Item "fsqrts"
  25117. Unary square root operation.
  25118. .IP "\fBfcoss\fR, \fBfsins\fR, \fBftans\fR, \fBfatans\fR, \fBfexps\fR, \fBflogs\fR" 4
  25119. .IX Item "fcoss, fsins, ftans, fatans, fexps, flogs"
  25120. Floating-point trigonometric and exponential functions. These instructions
  25121. are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
  25122. .RE
  25123. .RS 4
  25124. .Sp
  25125. Double-precision floating point:
  25126. .IP "\fBfaddd\fR, \fBfsubd\fR, \fBfdivd\fR, \fBfmuld\fR" 4
  25127. .IX Item "faddd, fsubd, fdivd, fmuld"
  25128. Binary arithmetic operations.
  25129. .IP "\fBfnegd\fR" 4
  25130. .IX Item "fnegd"
  25131. Unary negation.
  25132. .IP "\fBfabsd\fR" 4
  25133. .IX Item "fabsd"
  25134. Unary absolute value.
  25135. .IP "\fBfcmpeqd\fR, \fBfcmpged\fR, \fBfcmpgtd\fR, \fBfcmpled\fR, \fBfcmpltd\fR, \fBfcmpned\fR" 4
  25136. .IX Item "fcmpeqd, fcmpged, fcmpgtd, fcmpled, fcmpltd, fcmpned"
  25137. Comparison operations.
  25138. .IP "\fBfmind\fR, \fBfmaxd\fR" 4
  25139. .IX Item "fmind, fmaxd"
  25140. Double-precision minimum and maximum. These instructions are only
  25141. generated if \fB\-ffinite\-math\-only\fR is specified.
  25142. .IP "\fBfsqrtd\fR" 4
  25143. .IX Item "fsqrtd"
  25144. Unary square root operation.
  25145. .IP "\fBfcosd\fR, \fBfsind\fR, \fBftand\fR, \fBfatand\fR, \fBfexpd\fR, \fBflogd\fR" 4
  25146. .IX Item "fcosd, fsind, ftand, fatand, fexpd, flogd"
  25147. Double-precision trigonometric and exponential functions. These instructions
  25148. are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
  25149. .RE
  25150. .RS 4
  25151. .Sp
  25152. Conversions:
  25153. .IP "\fBfextsd\fR" 4
  25154. .IX Item "fextsd"
  25155. Conversion from single precision to double precision.
  25156. .IP "\fBftruncds\fR" 4
  25157. .IX Item "ftruncds"
  25158. Conversion from double precision to single precision.
  25159. .IP "\fBfixsi\fR, \fBfixsu\fR, \fBfixdi\fR, \fBfixdu\fR" 4
  25160. .IX Item "fixsi, fixsu, fixdi, fixdu"
  25161. Conversion from floating point to signed or unsigned integer types, with
  25162. truncation towards zero.
  25163. .IP "\fBround\fR" 4
  25164. .IX Item "round"
  25165. Conversion from single-precision floating point to signed integer,
  25166. rounding to the nearest integer and ties away from zero.
  25167. This corresponds to the \f(CW\*(C`_\|_builtin_lroundf\*(C'\fR function when
  25168. \&\fB\-fno\-math\-errno\fR is used.
  25169. .IP "\fBfloatis\fR, \fBfloatus\fR, \fBfloatid\fR, \fBfloatud\fR" 4
  25170. .IX Item "floatis, floatus, floatid, floatud"
  25171. Conversion from signed or unsigned integer types to floating-point types.
  25172. .RE
  25173. .RS 4
  25174. .Sp
  25175. In addition, all of the following transfer instructions for internal
  25176. registers X and Y must be provided to use any of the double-precision
  25177. floating-point instructions. Custom instructions taking two
  25178. double-precision source operands expect the first operand in the
  25179. 64\-bit register X. The other operand (or only operand of a unary
  25180. operation) is given to the custom arithmetic instruction with the
  25181. least significant half in source register \fIsrc1\fR and the most
  25182. significant half in \fIsrc2\fR. A custom instruction that returns a
  25183. double-precision result returns the most significant 32 bits in the
  25184. destination register and the other half in 32\-bit register Y.
  25185. \&\s-1GCC\s0 automatically generates the necessary code sequences to write
  25186. register X and/or read register Y when double-precision floating-point
  25187. instructions are used.
  25188. .IP "\fBfwrx\fR" 4
  25189. .IX Item "fwrx"
  25190. Write \fIsrc1\fR into the least significant half of X and \fIsrc2\fR into
  25191. the most significant half of X.
  25192. .IP "\fBfwry\fR" 4
  25193. .IX Item "fwry"
  25194. Write \fIsrc1\fR into Y.
  25195. .IP "\fBfrdxhi\fR, \fBfrdxlo\fR" 4
  25196. .IX Item "frdxhi, frdxlo"
  25197. Read the most or least (respectively) significant half of X and store it in
  25198. \&\fIdest\fR.
  25199. .IP "\fBfrdy\fR" 4
  25200. .IX Item "frdy"
  25201. Read the value of Y and store it into \fIdest\fR.
  25202. .RE
  25203. .RS 4
  25204. .Sp
  25205. Note that you can gain more local control over generation of Nios \s-1II\s0 custom
  25206. instructions by using the \f(CW\*(C`target("custom\-\f(CIinsn\f(CW=\f(CIN\f(CW")\*(C'\fR
  25207. and \f(CW\*(C`target("no\-custom\-\f(CIinsn\f(CW")\*(C'\fR function attributes
  25208. or pragmas.
  25209. .RE
  25210. .IP "\fB\-mcustom\-fpu\-cfg=\fR\fIname\fR" 4
  25211. .IX Item "-mcustom-fpu-cfg=name"
  25212. This option enables a predefined, named set of custom instruction encodings
  25213. (see \fB\-mcustom\-\fR\fIinsn\fR above).
  25214. Currently, the following sets are defined:
  25215. .Sp
  25216. \&\fB\-mcustom\-fpu\-cfg=60\-1\fR is equivalent to:
  25217. \&\fB\-mcustom\-fmuls=252
  25218. \&\-mcustom\-fadds=253
  25219. \&\-mcustom\-fsubs=254
  25220. \&\-fsingle\-precision\-constant\fR
  25221. .Sp
  25222. \&\fB\-mcustom\-fpu\-cfg=60\-2\fR is equivalent to:
  25223. \&\fB\-mcustom\-fmuls=252
  25224. \&\-mcustom\-fadds=253
  25225. \&\-mcustom\-fsubs=254
  25226. \&\-mcustom\-fdivs=255
  25227. \&\-fsingle\-precision\-constant\fR
  25228. .Sp
  25229. \&\fB\-mcustom\-fpu\-cfg=72\-3\fR is equivalent to:
  25230. \&\fB\-mcustom\-floatus=243
  25231. \&\-mcustom\-fixsi=244
  25232. \&\-mcustom\-floatis=245
  25233. \&\-mcustom\-fcmpgts=246
  25234. \&\-mcustom\-fcmples=249
  25235. \&\-mcustom\-fcmpeqs=250
  25236. \&\-mcustom\-fcmpnes=251
  25237. \&\-mcustom\-fmuls=252
  25238. \&\-mcustom\-fadds=253
  25239. \&\-mcustom\-fsubs=254
  25240. \&\-mcustom\-fdivs=255
  25241. \&\-fsingle\-precision\-constant\fR
  25242. .Sp
  25243. \&\fB\-mcustom\-fpu\-cfg=fph2\fR is equivalent to:
  25244. \&\fB\-mcustom\-fabss=224
  25245. \&\-mcustom\-fnegs=225
  25246. \&\-mcustom\-fcmpnes=226
  25247. \&\-mcustom\-fcmpeqs=227
  25248. \&\-mcustom\-fcmpges=228
  25249. \&\-mcustom\-fcmpgts=229
  25250. \&\-mcustom\-fcmples=230
  25251. \&\-mcustom\-fcmplts=231
  25252. \&\-mcustom\-fmaxs=232
  25253. \&\-mcustom\-fmins=233
  25254. \&\-mcustom\-round=248
  25255. \&\-mcustom\-fixsi=249
  25256. \&\-mcustom\-floatis=250
  25257. \&\-mcustom\-fsqrts=251
  25258. \&\-mcustom\-fmuls=252
  25259. \&\-mcustom\-fadds=253
  25260. \&\-mcustom\-fsubs=254
  25261. \&\-mcustom\-fdivs=255\fR
  25262. .Sp
  25263. Custom instruction assignments given by individual
  25264. \&\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR options override those given by
  25265. \&\fB\-mcustom\-fpu\-cfg=\fR, regardless of the
  25266. order of the options on the command line.
  25267. .Sp
  25268. Note that you can gain more local control over selection of a \s-1FPU\s0
  25269. configuration by using the \f(CW\*(C`target("custom\-fpu\-cfg=\f(CIname\f(CW")\*(C'\fR
  25270. function attribute
  25271. or pragma.
  25272. .Sp
  25273. The name \fIfph2\fR is an abbreviation for \fINios \s-1II\s0 Floating Point
  25274. Hardware 2 Component\fR. Please note that the custom instructions enabled by
  25275. \&\fB\-mcustom\-fmins=233\fR and \fB\-mcustom\-fmaxs=234\fR are only generated
  25276. if \fB\-ffinite\-math\-only\fR is specified. The custom instruction enabled by
  25277. \&\fB\-mcustom\-round=248\fR is only generated if \fB\-fno\-math\-errno\fR is
  25278. specified. In contrast to the other configurations,
  25279. \&\fB\-fsingle\-precision\-constant\fR is not set.
  25280. .PP
  25281. These additional \fB\-m\fR options are available for the Altera Nios \s-1II
  25282. ELF\s0 (bare-metal) target:
  25283. .IP "\fB\-mhal\fR" 4
  25284. .IX Item "-mhal"
  25285. Link with \s-1HAL BSP.\s0 This suppresses linking with the GCC-provided C runtime
  25286. startup and termination code, and is typically used in conjunction with
  25287. \&\fB\-msys\-crt0=\fR to specify the location of the alternate startup code
  25288. provided by the \s-1HAL BSP.\s0
  25289. .IP "\fB\-msmallc\fR" 4
  25290. .IX Item "-msmallc"
  25291. Link with a limited version of the C library, \fB\-lsmallc\fR, rather than
  25292. Newlib.
  25293. .IP "\fB\-msys\-crt0=\fR\fIstartfile\fR" 4
  25294. .IX Item "-msys-crt0=startfile"
  25295. \&\fIstartfile\fR is the file name of the startfile (crt0) to use
  25296. when linking. This option is only useful in conjunction with \fB\-mhal\fR.
  25297. .IP "\fB\-msys\-lib=\fR\fIsystemlib\fR" 4
  25298. .IX Item "-msys-lib=systemlib"
  25299. \&\fIsystemlib\fR is the library name of the library that provides
  25300. low-level system calls required by the C library,
  25301. e.g. \f(CW\*(C`read\*(C'\fR and \f(CW\*(C`write\*(C'\fR.
  25302. This option is typically used to link with a library provided by a \s-1HAL BSP.\s0
  25303. .PP
  25304. \fINvidia \s-1PTX\s0 Options\fR
  25305. .IX Subsection "Nvidia PTX Options"
  25306. .PP
  25307. These options are defined for Nvidia \s-1PTX:\s0
  25308. .IP "\fB\-m64\fR" 4
  25309. .IX Item "-m64"
  25310. Ignored, but preserved for backward compatibility. Only 64\-bit \s-1ABI\s0 is
  25311. supported.
  25312. .IP "\fB\-misa=\fR\fIISA-string\fR" 4
  25313. .IX Item "-misa=ISA-string"
  25314. Generate code for given the specified \s-1PTX ISA\s0 (e.g. \fBsm_35\fR). \s-1ISA\s0
  25315. strings must be lower-case. Valid \s-1ISA\s0 strings include \fBsm_30\fR and
  25316. \&\fBsm_35\fR. The default \s-1ISA\s0 is sm_35.
  25317. .IP "\fB\-mmainkernel\fR" 4
  25318. .IX Item "-mmainkernel"
  25319. Link in code for a _\|_main kernel. This is for stand-alone instead of
  25320. offloading execution.
  25321. .IP "\fB\-moptimize\fR" 4
  25322. .IX Item "-moptimize"
  25323. Apply partitioned execution optimizations. This is the default when any
  25324. level of optimization is selected.
  25325. .IP "\fB\-msoft\-stack\fR" 4
  25326. .IX Item "-msoft-stack"
  25327. Generate code that does not use \f(CW\*(C`.local\*(C'\fR memory
  25328. directly for stack storage. Instead, a per-warp stack pointer is
  25329. maintained explicitly. This enables variable-length stack allocation (with
  25330. variable-length arrays or \f(CW\*(C`alloca\*(C'\fR), and when global memory is used for
  25331. underlying storage, makes it possible to access automatic variables from other
  25332. threads, or with atomic instructions. This code generation variant is used
  25333. for OpenMP offloading, but the option is exposed on its own for the purpose
  25334. of testing the compiler; to generate code suitable for linking into programs
  25335. using OpenMP offloading, use option \fB\-mgomp\fR.
  25336. .IP "\fB\-muniform\-simt\fR" 4
  25337. .IX Item "-muniform-simt"
  25338. Switch to code generation variant that allows to execute all threads in each
  25339. warp, while maintaining memory state and side effects as if only one thread
  25340. in each warp was active outside of OpenMP \s-1SIMD\s0 regions. All atomic operations
  25341. and calls to runtime (malloc, free, vprintf) are conditionally executed (iff
  25342. current lane index equals the master lane index), and the register being
  25343. assigned is copied via a shuffle instruction from the master lane. Outside of
  25344. \&\s-1SIMD\s0 regions lane 0 is the master; inside, each thread sees itself as the
  25345. master. Shared memory array \f(CW\*(C`int _\|_nvptx_uni[]\*(C'\fR stores all-zeros or
  25346. all-ones bitmasks for each warp, indicating current mode (0 outside of \s-1SIMD\s0
  25347. regions). Each thread can bitwise-and the bitmask at position \f(CW\*(C`tid.y\*(C'\fR
  25348. with current lane index to compute the master lane index.
  25349. .IP "\fB\-mgomp\fR" 4
  25350. .IX Item "-mgomp"
  25351. Generate code for use in OpenMP offloading: enables \fB\-msoft\-stack\fR and
  25352. \&\fB\-muniform\-simt\fR options, and selects corresponding multilib variant.
  25353. .PP
  25354. \fIOpenRISC Options\fR
  25355. .IX Subsection "OpenRISC Options"
  25356. .PP
  25357. These options are defined for OpenRISC:
  25358. .IP "\fB\-mboard=\fR\fIname\fR" 4
  25359. .IX Item "-mboard=name"
  25360. Configure a board specific runtime. This will be passed to the linker for
  25361. newlib board library linking. The default is \f(CW\*(C`or1ksim\*(C'\fR.
  25362. .IP "\fB\-mnewlib\fR" 4
  25363. .IX Item "-mnewlib"
  25364. This option is ignored; it is for compatibility purposes only. This used to
  25365. select linker and preprocessor options for use with newlib.
  25366. .IP "\fB\-msoft\-div\fR" 4
  25367. .IX Item "-msoft-div"
  25368. .PD 0
  25369. .IP "\fB\-mhard\-div\fR" 4
  25370. .IX Item "-mhard-div"
  25371. .PD
  25372. Select software or hardware divide (\f(CW\*(C`l.div\*(C'\fR, \f(CW\*(C`l.divu\*(C'\fR) instructions.
  25373. This default is hardware divide.
  25374. .IP "\fB\-msoft\-mul\fR" 4
  25375. .IX Item "-msoft-mul"
  25376. .PD 0
  25377. .IP "\fB\-mhard\-mul\fR" 4
  25378. .IX Item "-mhard-mul"
  25379. .PD
  25380. Select software or hardware multiply (\f(CW\*(C`l.mul\*(C'\fR, \f(CW\*(C`l.muli\*(C'\fR) instructions.
  25381. This default is hardware multiply.
  25382. .IP "\fB\-msoft\-float\fR" 4
  25383. .IX Item "-msoft-float"
  25384. .PD 0
  25385. .IP "\fB\-mhard\-float\fR" 4
  25386. .IX Item "-mhard-float"
  25387. .PD
  25388. Select software or hardware for floating point operations.
  25389. The default is software.
  25390. .IP "\fB\-mdouble\-float\fR" 4
  25391. .IX Item "-mdouble-float"
  25392. When \fB\-mhard\-float\fR is selected, enables generation of double-precision
  25393. floating point instructions. By default functions from \fIlibgcc\fR are used
  25394. to perform double-precision floating point operations.
  25395. .IP "\fB\-munordered\-float\fR" 4
  25396. .IX Item "-munordered-float"
  25397. When \fB\-mhard\-float\fR is selected, enables generation of unordered
  25398. floating point compare and set flag (\f(CW\*(C`lf.sfun*\*(C'\fR) instructions. By default
  25399. functions from \fIlibgcc\fR are used to perform unordered floating point
  25400. compare and set flag operations.
  25401. .IP "\fB\-mcmov\fR" 4
  25402. .IX Item "-mcmov"
  25403. Enable generation of conditional move (\f(CW\*(C`l.cmov\*(C'\fR) instructions. By
  25404. default the equivalent will be generated using set and branch.
  25405. .IP "\fB\-mror\fR" 4
  25406. .IX Item "-mror"
  25407. Enable generation of rotate right (\f(CW\*(C`l.ror\*(C'\fR) instructions. By default
  25408. functions from \fIlibgcc\fR are used to perform rotate right operations.
  25409. .IP "\fB\-mrori\fR" 4
  25410. .IX Item "-mrori"
  25411. Enable generation of rotate right with immediate (\f(CW\*(C`l.rori\*(C'\fR) instructions.
  25412. By default functions from \fIlibgcc\fR are used to perform rotate right with
  25413. immediate operations.
  25414. .IP "\fB\-msext\fR" 4
  25415. .IX Item "-msext"
  25416. Enable generation of sign extension (\f(CW\*(C`l.ext*\*(C'\fR) instructions. By default
  25417. memory loads are used to perform sign extension.
  25418. .IP "\fB\-msfimm\fR" 4
  25419. .IX Item "-msfimm"
  25420. Enable generation of compare and set flag with immediate (\f(CW\*(C`l.sf*i\*(C'\fR)
  25421. instructions. By default extra instructions will be generated to store the
  25422. immediate to a register first.
  25423. .IP "\fB\-mshftimm\fR" 4
  25424. .IX Item "-mshftimm"
  25425. Enable generation of shift with immediate (\f(CW\*(C`l.srai\*(C'\fR, \f(CW\*(C`l.srli\*(C'\fR,
  25426. \&\f(CW\*(C`l.slli\*(C'\fR) instructions. By default extra instructions will be generated
  25427. to store the immediate to a register first.
  25428. .PP
  25429. \fI\s-1PDP\-11\s0 Options\fR
  25430. .IX Subsection "PDP-11 Options"
  25431. .PP
  25432. These options are defined for the \s-1PDP\-11:\s0
  25433. .IP "\fB\-mfpu\fR" 4
  25434. .IX Item "-mfpu"
  25435. Use hardware \s-1FPP\s0 floating point. This is the default. (\s-1FIS\s0 floating
  25436. point on the \s-1PDP\-11/40\s0 is not supported.) Implies \-m45.
  25437. .IP "\fB\-msoft\-float\fR" 4
  25438. .IX Item "-msoft-float"
  25439. Do not use hardware floating point.
  25440. .IP "\fB\-mac0\fR" 4
  25441. .IX Item "-mac0"
  25442. Return floating-point results in ac0 (fr0 in Unix assembler syntax).
  25443. .IP "\fB\-mno\-ac0\fR" 4
  25444. .IX Item "-mno-ac0"
  25445. Return floating-point results in memory. This is the default.
  25446. .IP "\fB\-m40\fR" 4
  25447. .IX Item "-m40"
  25448. Generate code for a \s-1PDP\-11/40.\s0 Implies \-msoft\-float \-mno\-split.
  25449. .IP "\fB\-m45\fR" 4
  25450. .IX Item "-m45"
  25451. Generate code for a \s-1PDP\-11/45.\s0 This is the default.
  25452. .IP "\fB\-m10\fR" 4
  25453. .IX Item "-m10"
  25454. Generate code for a \s-1PDP\-11/10.\s0 Implies \-msoft\-float \-mno\-split.
  25455. .IP "\fB\-mint16\fR" 4
  25456. .IX Item "-mint16"
  25457. .PD 0
  25458. .IP "\fB\-mno\-int32\fR" 4
  25459. .IX Item "-mno-int32"
  25460. .PD
  25461. Use 16\-bit \f(CW\*(C`int\*(C'\fR. This is the default.
  25462. .IP "\fB\-mint32\fR" 4
  25463. .IX Item "-mint32"
  25464. .PD 0
  25465. .IP "\fB\-mno\-int16\fR" 4
  25466. .IX Item "-mno-int16"
  25467. .PD
  25468. Use 32\-bit \f(CW\*(C`int\*(C'\fR.
  25469. .IP "\fB\-msplit\fR" 4
  25470. .IX Item "-msplit"
  25471. Target has split instruction and data space. Implies \-m45.
  25472. .IP "\fB\-munix\-asm\fR" 4
  25473. .IX Item "-munix-asm"
  25474. Use Unix assembler syntax.
  25475. .IP "\fB\-mdec\-asm\fR" 4
  25476. .IX Item "-mdec-asm"
  25477. Use \s-1DEC\s0 assembler syntax.
  25478. .IP "\fB\-mgnu\-asm\fR" 4
  25479. .IX Item "-mgnu-asm"
  25480. Use \s-1GNU\s0 assembler syntax. This is the default.
  25481. .IP "\fB\-mlra\fR" 4
  25482. .IX Item "-mlra"
  25483. Use the new \s-1LRA\s0 register allocator. By default, the old \*(L"reload\*(R"
  25484. allocator is used.
  25485. .PP
  25486. \fIpicoChip Options\fR
  25487. .IX Subsection "picoChip Options"
  25488. .PP
  25489. These \fB\-m\fR options are defined for picoChip implementations:
  25490. .IP "\fB\-mae=\fR\fIae_type\fR" 4
  25491. .IX Item "-mae=ae_type"
  25492. Set the instruction set, register set, and instruction scheduling
  25493. parameters for array element type \fIae_type\fR. Supported values
  25494. for \fIae_type\fR are \fB\s-1ANY\s0\fR, \fB\s-1MUL\s0\fR, and \fB\s-1MAC\s0\fR.
  25495. .Sp
  25496. \&\fB\-mae=ANY\fR selects a completely generic \s-1AE\s0 type. Code
  25497. generated with this option runs on any of the other \s-1AE\s0 types. The
  25498. code is not as efficient as it would be if compiled for a specific
  25499. \&\s-1AE\s0 type, and some types of operation (e.g., multiplication) do not
  25500. work properly on all types of \s-1AE.\s0
  25501. .Sp
  25502. \&\fB\-mae=MUL\fR selects a \s-1MUL AE\s0 type. This is the most useful \s-1AE\s0 type
  25503. for compiled code, and is the default.
  25504. .Sp
  25505. \&\fB\-mae=MAC\fR selects a DSP-style \s-1MAC AE.\s0 Code compiled with this
  25506. option may suffer from poor performance of byte (char) manipulation,
  25507. since the \s-1DSP AE\s0 does not provide hardware support for byte load/stores.
  25508. .IP "\fB\-msymbol\-as\-address\fR" 4
  25509. .IX Item "-msymbol-as-address"
  25510. Enable the compiler to directly use a symbol name as an address in a
  25511. load/store instruction, without first loading it into a
  25512. register. Typically, the use of this option generates larger
  25513. programs, which run faster than when the option isn't used. However, the
  25514. results vary from program to program, so it is left as a user option,
  25515. rather than being permanently enabled.
  25516. .IP "\fB\-mno\-inefficient\-warnings\fR" 4
  25517. .IX Item "-mno-inefficient-warnings"
  25518. Disables warnings about the generation of inefficient code. These
  25519. warnings can be generated, for example, when compiling code that
  25520. performs byte-level memory operations on the \s-1MAC AE\s0 type. The \s-1MAC AE\s0 has
  25521. no hardware support for byte-level memory operations, so all byte
  25522. load/stores must be synthesized from word load/store operations. This is
  25523. inefficient and a warning is generated to indicate
  25524. that you should rewrite the code to avoid byte operations, or to target
  25525. an \s-1AE\s0 type that has the necessary hardware support. This option disables
  25526. these warnings.
  25527. .PP
  25528. \fIPowerPC Options\fR
  25529. .IX Subsection "PowerPC Options"
  25530. .PP
  25531. These are listed under
  25532. .PP
  25533. \fI\s-1PRU\s0 Options\fR
  25534. .IX Subsection "PRU Options"
  25535. .PP
  25536. These command-line options are defined for \s-1PRU\s0 target:
  25537. .IP "\fB\-minrt\fR" 4
  25538. .IX Item "-minrt"
  25539. Link with a minimum runtime environment, with no support for static
  25540. initializers and constructors. Using this option can significantly reduce
  25541. the size of the final \s-1ELF\s0 binary. Beware that the compiler could still
  25542. generate code with static initializers and constructors. It is up to the
  25543. programmer to ensure that the source program will not use those features.
  25544. .IP "\fB\-mmcu=\fR\fImcu\fR" 4
  25545. .IX Item "-mmcu=mcu"
  25546. Specify the \s-1PRU MCU\s0 variant to use. Check Newlib for the exact list of
  25547. supported MCUs.
  25548. .IP "\fB\-mno\-relax\fR" 4
  25549. .IX Item "-mno-relax"
  25550. Make \s-1GCC\s0 pass the \fB\-\-no\-relax\fR command-line option to the linker
  25551. instead of the \fB\-\-relax\fR option.
  25552. .IP "\fB\-mloop\fR" 4
  25553. .IX Item "-mloop"
  25554. Allow (or do not allow) \s-1GCC\s0 to use the \s-1LOOP\s0 instruction.
  25555. .IP "\fB\-mabi=\fR\fIvariant\fR" 4
  25556. .IX Item "-mabi=variant"
  25557. Specify the \s-1ABI\s0 variant to output code for. \fB\-mabi=ti\fR selects the
  25558. unmodified \s-1TI ABI\s0 while \fB\-mabi=gnu\fR selects a \s-1GNU\s0 variant that copes
  25559. more naturally with certain \s-1GCC\s0 assumptions. These are the differences:
  25560. .RS 4
  25561. .IP "\fBFunction Pointer Size\fR" 4
  25562. .IX Item "Function Pointer Size"
  25563. \&\s-1TI ABI\s0 specifies that function (code) pointers are 16\-bit, whereas \s-1GNU\s0
  25564. supports only 32\-bit data and code pointers.
  25565. .IP "\fBOptional Return Value Pointer\fR" 4
  25566. .IX Item "Optional Return Value Pointer"
  25567. Function return values larger than 64 bits are passed by using a hidden
  25568. pointer as the first argument of the function. \s-1TI ABI,\s0 though, mandates that
  25569. the pointer can be \s-1NULL\s0 in case the caller is not using the returned value.
  25570. \&\s-1GNU\s0 always passes and expects a valid return value pointer.
  25571. .RE
  25572. .RS 4
  25573. .Sp
  25574. The current \fB\-mabi=ti\fR implementation simply raises a compile error
  25575. when any of the above code constructs is detected. As a consequence
  25576. the standard C library cannot be built and it is omitted when linking with
  25577. \&\fB\-mabi=ti\fR.
  25578. .Sp
  25579. Relaxation is a \s-1GNU\s0 feature and for safety reasons is disabled when using
  25580. \&\fB\-mabi=ti\fR. The \s-1TI\s0 toolchain does not emit relocations for QBBx
  25581. instructions, so the \s-1GNU\s0 linker cannot adjust them when shortening adjacent
  25582. \&\s-1LDI32\s0 pseudo instructions.
  25583. .RE
  25584. .PP
  25585. \fIRISC-V Options\fR
  25586. .IX Subsection "RISC-V Options"
  25587. .PP
  25588. These command-line options are defined for RISC-V targets:
  25589. .IP "\fB\-mbranch\-cost=\fR\fIn\fR" 4
  25590. .IX Item "-mbranch-cost=n"
  25591. Set the cost of branches to roughly \fIn\fR instructions.
  25592. .IP "\fB\-mplt\fR" 4
  25593. .IX Item "-mplt"
  25594. .PD 0
  25595. .IP "\fB\-mno\-plt\fR" 4
  25596. .IX Item "-mno-plt"
  25597. .PD
  25598. When generating \s-1PIC\s0 code, do or don't allow the use of PLTs. Ignored for
  25599. non-PIC. The default is \fB\-mplt\fR.
  25600. .IP "\fB\-mabi=\fR\fIABI-string\fR" 4
  25601. .IX Item "-mabi=ABI-string"
  25602. Specify integer and floating-point calling convention. \fIABI-string\fR
  25603. contains two parts: the size of integer types and the registers used for
  25604. floating-point types. For example \fB\-march=rv64ifd \-mabi=lp64d\fR means that
  25605. \&\fBlong\fR and pointers are 64\-bit (implicitly defining \fBint\fR to be
  25606. 32\-bit), and that floating-point values up to 64 bits wide are passed in F
  25607. registers. Contrast this with \fB\-march=rv64ifd \-mabi=lp64f\fR, which still
  25608. allows the compiler to generate code that uses the F and D extensions but only
  25609. allows floating-point values up to 32 bits long to be passed in registers; or
  25610. \&\fB\-march=rv64ifd \-mabi=lp64\fR, in which no floating-point arguments will be
  25611. passed in registers.
  25612. .Sp
  25613. The default for this argument is system dependent, users who want a specific
  25614. calling convention should specify one explicitly. The valid calling
  25615. conventions are: \fBilp32\fR, \fBilp32f\fR, \fBilp32d\fR, \fBlp64\fR,
  25616. \&\fBlp64f\fR, and \fBlp64d\fR. Some calling conventions are impossible to
  25617. implement on some ISAs: for example, \fB\-march=rv32if \-mabi=ilp32d\fR is
  25618. invalid because the \s-1ABI\s0 requires 64\-bit values be passed in F registers, but F
  25619. registers are only 32 bits wide. There is also the \fBilp32e\fR \s-1ABI\s0 that can
  25620. only be used with the \fBrv32e\fR architecture. This \s-1ABI\s0 is not well
  25621. specified at present, and is subject to change.
  25622. .IP "\fB\-mfdiv\fR" 4
  25623. .IX Item "-mfdiv"
  25624. .PD 0
  25625. .IP "\fB\-mno\-fdiv\fR" 4
  25626. .IX Item "-mno-fdiv"
  25627. .PD
  25628. Do or don't use hardware floating-point divide and square root instructions.
  25629. This requires the F or D extensions for floating-point registers. The default
  25630. is to use them if the specified architecture has these instructions.
  25631. .IP "\fB\-mdiv\fR" 4
  25632. .IX Item "-mdiv"
  25633. .PD 0
  25634. .IP "\fB\-mno\-div\fR" 4
  25635. .IX Item "-mno-div"
  25636. .PD
  25637. Do or don't use hardware instructions for integer division. This requires the
  25638. M extension. The default is to use them if the specified architecture has
  25639. these instructions.
  25640. .IP "\fB\-march=\fR\fIISA-string\fR" 4
  25641. .IX Item "-march=ISA-string"
  25642. Generate code for given RISC-V \s-1ISA\s0 (e.g. \fBrv64im\fR). \s-1ISA\s0 strings must be
  25643. lower-case. Examples include \fBrv64i\fR, \fBrv32g\fR, \fBrv32e\fR, and
  25644. \&\fBrv32imaf\fR.
  25645. .Sp
  25646. When \fB\-march=\fR is not specified, use the setting from \fB\-mcpu\fR.
  25647. .Sp
  25648. If both \fB\-march\fR and \fB\-mcpu=\fR are not specified, the default for
  25649. this argument is system dependent, users who want a specific architecture
  25650. extensions should specify one explicitly.
  25651. .IP "\fB\-mcpu=\fR\fIprocessor-string\fR" 4
  25652. .IX Item "-mcpu=processor-string"
  25653. Use architecture of and optimize the output for the given processor, specified
  25654. by particular \s-1CPU\s0 name.
  25655. Permissible values for this option are: \fBsifive\-e20\fR, \fBsifive\-e21\fR,
  25656. \&\fBsifive\-e24\fR, \fBsifive\-e31\fR, \fBsifive\-e34\fR, \fBsifive\-e76\fR,
  25657. \&\fBsifive\-s21\fR, \fBsifive\-s51\fR, \fBsifive\-s54\fR, \fBsifive\-s76\fR,
  25658. \&\fBsifive\-u54\fR, and \fBsifive\-u74\fR.
  25659. .IP "\fB\-mtune=\fR\fIprocessor-string\fR" 4
  25660. .IX Item "-mtune=processor-string"
  25661. Optimize the output for the given processor, specified by microarchitecture or
  25662. particular \s-1CPU\s0 name. Permissible values for this option are: \fBrocket\fR,
  25663. \&\fBsifive\-3\-series\fR, \fBsifive\-5\-series\fR, \fBsifive\-7\-series\fR,
  25664. \&\fBsize\fR, and all valid options for \fB\-mcpu=\fR.
  25665. .Sp
  25666. When \fB\-mtune=\fR is not specified, use the setting from \fB\-mcpu\fR,
  25667. the default is \fBrocket\fR if both are not specified.
  25668. .Sp
  25669. The \fBsize\fR choice is not intended for use by end-users. This is used
  25670. when \fB\-Os\fR is specified. It overrides the instruction cost info
  25671. provided by \fB\-mtune=\fR, but does not override the pipeline info. This
  25672. helps reduce code size while still giving good performance.
  25673. .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
  25674. .IX Item "-mpreferred-stack-boundary=num"
  25675. Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
  25676. byte boundary. If \fB\-mpreferred\-stack\-boundary\fR is not specified,
  25677. the default is 4 (16 bytes or 128\-bits).
  25678. .Sp
  25679. \&\fBWarning:\fR If you use this switch, then you must build all modules with
  25680. the same value, including any libraries. This includes the system libraries
  25681. and startup modules.
  25682. .IP "\fB\-msmall\-data\-limit=\fR\fIn\fR" 4
  25683. .IX Item "-msmall-data-limit=n"
  25684. Put global and static data smaller than \fIn\fR bytes into a special section
  25685. (on some targets).
  25686. .IP "\fB\-msave\-restore\fR" 4
  25687. .IX Item "-msave-restore"
  25688. .PD 0
  25689. .IP "\fB\-mno\-save\-restore\fR" 4
  25690. .IX Item "-mno-save-restore"
  25691. .PD
  25692. Do or don't use smaller but slower prologue and epilogue code that uses
  25693. library function calls. The default is to use fast inline prologues and
  25694. epilogues.
  25695. .IP "\fB\-mshorten\-memrefs\fR" 4
  25696. .IX Item "-mshorten-memrefs"
  25697. .PD 0
  25698. .IP "\fB\-mno\-shorten\-memrefs\fR" 4
  25699. .IX Item "-mno-shorten-memrefs"
  25700. .PD
  25701. Do or do not attempt to make more use of compressed load/store instructions by
  25702. replacing a load/store of 'base register + large offset' with a new load/store
  25703. of 'new base + small offset'. If the new base gets stored in a compressed
  25704. register, then the new load/store can be compressed. Currently targets 32\-bit
  25705. integer load/stores only.
  25706. .IP "\fB\-mstrict\-align\fR" 4
  25707. .IX Item "-mstrict-align"
  25708. .PD 0
  25709. .IP "\fB\-mno\-strict\-align\fR" 4
  25710. .IX Item "-mno-strict-align"
  25711. .PD
  25712. Do not or do generate unaligned memory accesses. The default is set depending
  25713. on whether the processor we are optimizing for supports fast unaligned access
  25714. or not.
  25715. .IP "\fB\-mcmodel=medlow\fR" 4
  25716. .IX Item "-mcmodel=medlow"
  25717. Generate code for the medium-low code model. The program and its statically
  25718. defined symbols must lie within a single 2 GiB address range and must lie
  25719. between absolute addresses \-2 GiB and +2 GiB. Programs can be
  25720. statically or dynamically linked. This is the default code model.
  25721. .IP "\fB\-mcmodel=medany\fR" 4
  25722. .IX Item "-mcmodel=medany"
  25723. Generate code for the medium-any code model. The program and its statically
  25724. defined symbols must be within any single 2 GiB address range. Programs can be
  25725. statically or dynamically linked.
  25726. .IP "\fB\-mexplicit\-relocs\fR" 4
  25727. .IX Item "-mexplicit-relocs"
  25728. .PD 0
  25729. .IP "\fB\-mno\-exlicit\-relocs\fR" 4
  25730. .IX Item "-mno-exlicit-relocs"
  25731. .PD
  25732. Use or do not use assembler relocation operators when dealing with symbolic
  25733. addresses. The alternative is to use assembler macros instead, which may
  25734. limit optimization.
  25735. .IP "\fB\-mrelax\fR" 4
  25736. .IX Item "-mrelax"
  25737. .PD 0
  25738. .IP "\fB\-mno\-relax\fR" 4
  25739. .IX Item "-mno-relax"
  25740. .PD
  25741. Take advantage of linker relaxations to reduce the number of instructions
  25742. required to materialize symbol addresses. The default is to take advantage of
  25743. linker relaxations.
  25744. .IP "\fB\-memit\-attribute\fR" 4
  25745. .IX Item "-memit-attribute"
  25746. .PD 0
  25747. .IP "\fB\-mno\-emit\-attribute\fR" 4
  25748. .IX Item "-mno-emit-attribute"
  25749. .PD
  25750. Emit (do not emit) RISC-V attribute to record extra information into \s-1ELF\s0
  25751. objects. This feature requires at least binutils 2.32.
  25752. .IP "\fB\-malign\-data=\fR\fItype\fR" 4
  25753. .IX Item "-malign-data=type"
  25754. Control how \s-1GCC\s0 aligns variables and constants of array, structure, or union
  25755. types. Supported values for \fItype\fR are \fBxlen\fR which uses x register
  25756. width as the alignment value, and \fBnatural\fR which uses natural alignment.
  25757. \&\fBxlen\fR is the default.
  25758. .IP "\fB\-mbig\-endian\fR" 4
  25759. .IX Item "-mbig-endian"
  25760. Generate big-endian code. This is the default when \s-1GCC\s0 is configured for a
  25761. \&\fBriscv64be\-*\-*\fR or \fBriscv32be\-*\-*\fR target.
  25762. .IP "\fB\-mlittle\-endian\fR" 4
  25763. .IX Item "-mlittle-endian"
  25764. Generate little-endian code. This is the default when \s-1GCC\s0 is configured for a
  25765. \&\fBriscv64\-*\-*\fR or \fBriscv32\-*\-*\fR but not a \fBriscv64be\-*\-*\fR or
  25766. \&\fBriscv32be\-*\-*\fR target.
  25767. .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
  25768. .IX Item "-mstack-protector-guard=guard"
  25769. .PD 0
  25770. .IP "\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR" 4
  25771. .IX Item "-mstack-protector-guard-reg=reg"
  25772. .IP "\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR" 4
  25773. .IX Item "-mstack-protector-guard-offset=offset"
  25774. .PD
  25775. Generate stack protection code using canary at \fIguard\fR. Supported
  25776. locations are \fBglobal\fR for a global canary or \fBtls\fR for per-thread
  25777. canary in the \s-1TLS\s0 block.
  25778. .Sp
  25779. With the latter choice the options
  25780. \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR and
  25781. \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR furthermore specify
  25782. which register to use as base register for reading the canary,
  25783. and from what offset from that base register. There is no default
  25784. register or offset as this is entirely for use within the Linux
  25785. kernel.
  25786. .PP
  25787. \fI\s-1RL78\s0 Options\fR
  25788. .IX Subsection "RL78 Options"
  25789. .IP "\fB\-msim\fR" 4
  25790. .IX Item "-msim"
  25791. Links in additional target libraries to support operation within a
  25792. simulator.
  25793. .IP "\fB\-mmul=none\fR" 4
  25794. .IX Item "-mmul=none"
  25795. .PD 0
  25796. .IP "\fB\-mmul=g10\fR" 4
  25797. .IX Item "-mmul=g10"
  25798. .IP "\fB\-mmul=g13\fR" 4
  25799. .IX Item "-mmul=g13"
  25800. .IP "\fB\-mmul=g14\fR" 4
  25801. .IX Item "-mmul=g14"
  25802. .IP "\fB\-mmul=rl78\fR" 4
  25803. .IX Item "-mmul=rl78"
  25804. .PD
  25805. Specifies the type of hardware multiplication and division support to
  25806. be used. The simplest is \f(CW\*(C`none\*(C'\fR, which uses software for both
  25807. multiplication and division. This is the default. The \f(CW\*(C`g13\*(C'\fR
  25808. value is for the hardware multiply/divide peripheral found on the
  25809. \&\s-1RL78/G13\s0 (S2 core) targets. The \f(CW\*(C`g14\*(C'\fR value selects the use of
  25810. the multiplication and division instructions supported by the \s-1RL78/G14\s0
  25811. (S3 core) parts. The value \f(CW\*(C`rl78\*(C'\fR is an alias for \f(CW\*(C`g14\*(C'\fR and
  25812. the value \f(CW\*(C`mg10\*(C'\fR is an alias for \f(CW\*(C`none\*(C'\fR.
  25813. .Sp
  25814. In addition a C preprocessor macro is defined, based upon the setting
  25815. of this option. Possible values are: \f(CW\*(C`_\|_RL78_MUL_NONE_\|_\*(C'\fR,
  25816. \&\f(CW\*(C`_\|_RL78_MUL_G13_\|_\*(C'\fR or \f(CW\*(C`_\|_RL78_MUL_G14_\|_\*(C'\fR.
  25817. .IP "\fB\-mcpu=g10\fR" 4
  25818. .IX Item "-mcpu=g10"
  25819. .PD 0
  25820. .IP "\fB\-mcpu=g13\fR" 4
  25821. .IX Item "-mcpu=g13"
  25822. .IP "\fB\-mcpu=g14\fR" 4
  25823. .IX Item "-mcpu=g14"
  25824. .IP "\fB\-mcpu=rl78\fR" 4
  25825. .IX Item "-mcpu=rl78"
  25826. .PD
  25827. Specifies the \s-1RL78\s0 core to target. The default is the G14 core, also
  25828. known as an S3 core or just \s-1RL78.\s0 The G13 or S2 core does not have
  25829. multiply or divide instructions, instead it uses a hardware peripheral
  25830. for these operations. The G10 or S1 core does not have register
  25831. banks, so it uses a different calling convention.
  25832. .Sp
  25833. If this option is set it also selects the type of hardware multiply
  25834. support to use, unless this is overridden by an explicit
  25835. \&\fB\-mmul=none\fR option on the command line. Thus specifying
  25836. \&\fB\-mcpu=g13\fR enables the use of the G13 hardware multiply
  25837. peripheral and specifying \fB\-mcpu=g10\fR disables the use of
  25838. hardware multiplications altogether.
  25839. .Sp
  25840. Note, although the \s-1RL78/G14\s0 core is the default target, specifying
  25841. \&\fB\-mcpu=g14\fR or \fB\-mcpu=rl78\fR on the command line does
  25842. change the behavior of the toolchain since it also enables G14
  25843. hardware multiply support. If these options are not specified on the
  25844. command line then software multiplication routines will be used even
  25845. though the code targets the \s-1RL78\s0 core. This is for backwards
  25846. compatibility with older toolchains which did not have hardware
  25847. multiply and divide support.
  25848. .Sp
  25849. In addition a C preprocessor macro is defined, based upon the setting
  25850. of this option. Possible values are: \f(CW\*(C`_\|_RL78_G10_\|_\*(C'\fR,
  25851. \&\f(CW\*(C`_\|_RL78_G13_\|_\*(C'\fR or \f(CW\*(C`_\|_RL78_G14_\|_\*(C'\fR.
  25852. .IP "\fB\-mg10\fR" 4
  25853. .IX Item "-mg10"
  25854. .PD 0
  25855. .IP "\fB\-mg13\fR" 4
  25856. .IX Item "-mg13"
  25857. .IP "\fB\-mg14\fR" 4
  25858. .IX Item "-mg14"
  25859. .IP "\fB\-mrl78\fR" 4
  25860. .IX Item "-mrl78"
  25861. .PD
  25862. These are aliases for the corresponding \fB\-mcpu=\fR option. They
  25863. are provided for backwards compatibility.
  25864. .IP "\fB\-mallregs\fR" 4
  25865. .IX Item "-mallregs"
  25866. Allow the compiler to use all of the available registers. By default
  25867. registers \f(CW\*(C`r24..r31\*(C'\fR are reserved for use in interrupt handlers.
  25868. With this option enabled these registers can be used in ordinary
  25869. functions as well.
  25870. .IP "\fB\-m64bit\-doubles\fR" 4
  25871. .IX Item "-m64bit-doubles"
  25872. .PD 0
  25873. .IP "\fB\-m32bit\-doubles\fR" 4
  25874. .IX Item "-m32bit-doubles"
  25875. .PD
  25876. Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
  25877. or 32 bits (\fB\-m32bit\-doubles\fR) in size. The default is
  25878. \&\fB\-m32bit\-doubles\fR.
  25879. .IP "\fB\-msave\-mduc\-in\-interrupts\fR" 4
  25880. .IX Item "-msave-mduc-in-interrupts"
  25881. .PD 0
  25882. .IP "\fB\-mno\-save\-mduc\-in\-interrupts\fR" 4
  25883. .IX Item "-mno-save-mduc-in-interrupts"
  25884. .PD
  25885. Specifies that interrupt handler functions should preserve the
  25886. \&\s-1MDUC\s0 registers. This is only necessary if normal code might use
  25887. the \s-1MDUC\s0 registers, for example because it performs multiplication
  25888. and division operations. The default is to ignore the \s-1MDUC\s0 registers
  25889. as this makes the interrupt handlers faster. The target option \-mg13
  25890. needs to be passed for this to work as this feature is only available
  25891. on the G13 target (S2 core). The \s-1MDUC\s0 registers will only be saved
  25892. if the interrupt handler performs a multiplication or division
  25893. operation or it calls another function.
  25894. .PP
  25895. \fI\s-1IBM RS/6000\s0 and PowerPC Options\fR
  25896. .IX Subsection "IBM RS/6000 and PowerPC Options"
  25897. .PP
  25898. These \fB\-m\fR options are defined for the \s-1IBM RS/6000\s0 and PowerPC:
  25899. .IP "\fB\-mpowerpc\-gpopt\fR" 4
  25900. .IX Item "-mpowerpc-gpopt"
  25901. .PD 0
  25902. .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
  25903. .IX Item "-mno-powerpc-gpopt"
  25904. .IP "\fB\-mpowerpc\-gfxopt\fR" 4
  25905. .IX Item "-mpowerpc-gfxopt"
  25906. .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
  25907. .IX Item "-mno-powerpc-gfxopt"
  25908. .IP "\fB\-mpowerpc64\fR" 4
  25909. .IX Item "-mpowerpc64"
  25910. .IP "\fB\-mno\-powerpc64\fR" 4
  25911. .IX Item "-mno-powerpc64"
  25912. .IP "\fB\-mmfcrf\fR" 4
  25913. .IX Item "-mmfcrf"
  25914. .IP "\fB\-mno\-mfcrf\fR" 4
  25915. .IX Item "-mno-mfcrf"
  25916. .IP "\fB\-mpopcntb\fR" 4
  25917. .IX Item "-mpopcntb"
  25918. .IP "\fB\-mno\-popcntb\fR" 4
  25919. .IX Item "-mno-popcntb"
  25920. .IP "\fB\-mpopcntd\fR" 4
  25921. .IX Item "-mpopcntd"
  25922. .IP "\fB\-mno\-popcntd\fR" 4
  25923. .IX Item "-mno-popcntd"
  25924. .IP "\fB\-mfprnd\fR" 4
  25925. .IX Item "-mfprnd"
  25926. .IP "\fB\-mno\-fprnd\fR" 4
  25927. .IX Item "-mno-fprnd"
  25928. .IP "\fB\-mcmpb\fR" 4
  25929. .IX Item "-mcmpb"
  25930. .IP "\fB\-mno\-cmpb\fR" 4
  25931. .IX Item "-mno-cmpb"
  25932. .IP "\fB\-mhard\-dfp\fR" 4
  25933. .IX Item "-mhard-dfp"
  25934. .IP "\fB\-mno\-hard\-dfp\fR" 4
  25935. .IX Item "-mno-hard-dfp"
  25936. .PD
  25937. You use these options to specify which instructions are available on the
  25938. processor you are using. The default value of these options is
  25939. determined when configuring \s-1GCC.\s0 Specifying the
  25940. \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
  25941. options. We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
  25942. rather than the options listed above.
  25943. .Sp
  25944. Specifying \fB\-mpowerpc\-gpopt\fR allows
  25945. \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
  25946. General Purpose group, including floating-point square root. Specifying
  25947. \&\fB\-mpowerpc\-gfxopt\fR allows \s-1GCC\s0 to
  25948. use the optional PowerPC architecture instructions in the Graphics
  25949. group, including floating-point select.
  25950. .Sp
  25951. The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
  25952. condition register field instruction implemented on the \s-1POWER4\s0
  25953. processor and other processors that support the PowerPC V2.01
  25954. architecture.
  25955. The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
  25956. double-precision \s-1FP\s0 reciprocal estimate instruction implemented on the
  25957. \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
  25958. architecture.
  25959. The \fB\-mpopcntd\fR option allows \s-1GCC\s0 to generate the popcount
  25960. instruction implemented on the \s-1POWER7\s0 processor and other processors
  25961. that support the PowerPC V2.06 architecture.
  25962. The \fB\-mfprnd\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 round to
  25963. integer instructions implemented on the \s-1POWER5+\s0 processor and other
  25964. processors that support the PowerPC V2.03 architecture.
  25965. The \fB\-mcmpb\fR option allows \s-1GCC\s0 to generate the compare bytes
  25966. instruction implemented on the \s-1POWER6\s0 processor and other processors
  25967. that support the PowerPC V2.05 architecture.
  25968. The \fB\-mhard\-dfp\fR option allows \s-1GCC\s0 to generate the decimal
  25969. floating-point instructions implemented on some \s-1POWER\s0 processors.
  25970. .Sp
  25971. The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
  25972. 64\-bit instructions that are found in the full PowerPC64 architecture
  25973. and to treat GPRs as 64\-bit, doubleword quantities. \s-1GCC\s0 defaults to
  25974. \&\fB\-mno\-powerpc64\fR.
  25975. .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
  25976. .IX Item "-mcpu=cpu_type"
  25977. Set architecture type, register usage, and
  25978. instruction scheduling parameters for machine type \fIcpu_type\fR.
  25979. Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
  25980. \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB464\fR, \fB464fp\fR,
  25981. \&\fB476\fR, \fB476fp\fR, \fB505\fR, \fB601\fR, \fB602\fR, \fB603\fR,
  25982. \&\fB603e\fR, \fB604\fR, \fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR,
  25983. \&\fB7400\fR, \fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
  25984. \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBa2\fR, \fBe300c2\fR,
  25985. \&\fBe300c3\fR, \fBe500mc\fR, \fBe500mc64\fR, \fBe5500\fR,
  25986. \&\fBe6500\fR, \fBec603e\fR, \fBG3\fR, \fBG4\fR, \fBG5\fR,
  25987. \&\fBtitan\fR, \fBpower3\fR, \fBpower4\fR, \fBpower5\fR, \fBpower5+\fR,
  25988. \&\fBpower6\fR, \fBpower6x\fR, \fBpower7\fR, \fBpower8\fR,
  25989. \&\fBpower9\fR, \fBfuture\fR, \fBpowerpc\fR, \fBpowerpc64\fR,
  25990. \&\fBpowerpc64le\fR, \fBrs64\fR, and \fBnative\fR.
  25991. .Sp
  25992. \&\fB\-mcpu=powerpc\fR, \fB\-mcpu=powerpc64\fR, and
  25993. \&\fB\-mcpu=powerpc64le\fR specify pure 32\-bit PowerPC (either
  25994. endian), 64\-bit big endian PowerPC and 64\-bit little endian PowerPC
  25995. architecture machine types, with an appropriate, generic processor
  25996. model assumed for scheduling purposes.
  25997. .Sp
  25998. Specifying \fBnative\fR as cpu type detects and selects the
  25999. architecture option that corresponds to the host processor of the
  26000. system performing the compilation.
  26001. \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize the
  26002. processor.
  26003. .Sp
  26004. The other options specify a specific processor. Code generated under
  26005. those options runs best on that processor, and may not run at all on
  26006. others.
  26007. .Sp
  26008. The \fB\-mcpu\fR options automatically enable or disable the
  26009. following options:
  26010. .Sp
  26011. \&\fB\-maltivec \-mfprnd \-mhard\-float \-mmfcrf \-mmultiple
  26012. \&\-mpopcntb \-mpopcntd \-mpowerpc64
  26013. \&\-mpowerpc\-gpopt \-mpowerpc\-gfxopt
  26014. \&\-mmulhw \-mdlmzb \-mmfpgpr \-mvsx
  26015. \&\-mcrypto \-mhtm \-mpower8\-fusion \-mpower8\-vector
  26016. \&\-mquad\-memory \-mquad\-memory\-atomic \-mfloat128
  26017. \&\-mfloat128\-hardware \-mprefixed \-mpcrel \-mmma\fR
  26018. .Sp
  26019. The particular options set for any particular \s-1CPU\s0 varies between
  26020. compiler versions, depending on what setting seems to produce optimal
  26021. code for that \s-1CPU\s0; it doesn't necessarily reflect the actual hardware's
  26022. capabilities. If you wish to set an individual option to a particular
  26023. value, you may specify it after the \fB\-mcpu\fR option, like
  26024. \&\fB\-mcpu=970 \-mno\-altivec\fR.
  26025. .Sp
  26026. On \s-1AIX,\s0 the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
  26027. not enabled or disabled by the \fB\-mcpu\fR option at present because
  26028. \&\s-1AIX\s0 does not have full support for these options. You may still
  26029. enable or disable them individually if you're sure it'll work in your
  26030. environment.
  26031. .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
  26032. .IX Item "-mtune=cpu_type"
  26033. Set the instruction scheduling parameters for machine type
  26034. \&\fIcpu_type\fR, but do not set the architecture type or register usage,
  26035. as \fB\-mcpu=\fR\fIcpu_type\fR does. The same
  26036. values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
  26037. \&\fB\-mcpu\fR. If both are specified, the code generated uses the
  26038. architecture and registers set by \fB\-mcpu\fR, but the
  26039. scheduling parameters set by \fB\-mtune\fR.
  26040. .IP "\fB\-mcmodel=small\fR" 4
  26041. .IX Item "-mcmodel=small"
  26042. Generate PowerPC64 code for the small model: The \s-1TOC\s0 is limited to
  26043. 64k.
  26044. .IP "\fB\-mcmodel=medium\fR" 4
  26045. .IX Item "-mcmodel=medium"
  26046. Generate PowerPC64 code for the medium model: The \s-1TOC\s0 and other static
  26047. data may be up to a total of 4G in size. This is the default for 64\-bit
  26048. Linux.
  26049. .IP "\fB\-mcmodel=large\fR" 4
  26050. .IX Item "-mcmodel=large"
  26051. Generate PowerPC64 code for the large model: The \s-1TOC\s0 may be up to 4G
  26052. in size. Other data and code is only limited by the 64\-bit address
  26053. space.
  26054. .IP "\fB\-maltivec\fR" 4
  26055. .IX Item "-maltivec"
  26056. .PD 0
  26057. .IP "\fB\-mno\-altivec\fR" 4
  26058. .IX Item "-mno-altivec"
  26059. .PD
  26060. Generate code that uses (does not use) AltiVec instructions, and also
  26061. enable the use of built-in functions that allow more direct access to
  26062. the AltiVec instruction set. You may also need to set
  26063. \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
  26064. enhancements.
  26065. .Sp
  26066. When \fB\-maltivec\fR is used, the element order for AltiVec intrinsics
  26067. such as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and \f(CW\*(C`vec_insert\*(C'\fR
  26068. match array element order corresponding to the endianness of the
  26069. target. That is, element zero identifies the leftmost element in a
  26070. vector register when targeting a big-endian platform, and identifies
  26071. the rightmost element in a vector register when targeting a
  26072. little-endian platform.
  26073. .IP "\fB\-mvrsave\fR" 4
  26074. .IX Item "-mvrsave"
  26075. .PD 0
  26076. .IP "\fB\-mno\-vrsave\fR" 4
  26077. .IX Item "-mno-vrsave"
  26078. .PD
  26079. Generate \s-1VRSAVE\s0 instructions when generating AltiVec code.
  26080. .IP "\fB\-msecure\-plt\fR" 4
  26081. .IX Item "-msecure-plt"
  26082. Generate code that allows \fBld\fR and \fBld.so\fR
  26083. to build executables and shared
  26084. libraries with non-executable \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR sections.
  26085. This is a PowerPC
  26086. 32\-bit \s-1SYSV ABI\s0 option.
  26087. .IP "\fB\-mbss\-plt\fR" 4
  26088. .IX Item "-mbss-plt"
  26089. Generate code that uses a \s-1BSS\s0 \f(CW\*(C`.plt\*(C'\fR section that \fBld.so\fR
  26090. fills in, and
  26091. requires \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR
  26092. sections that are both writable and executable.
  26093. This is a PowerPC 32\-bit \s-1SYSV ABI\s0 option.
  26094. .IP "\fB\-misel\fR" 4
  26095. .IX Item "-misel"
  26096. .PD 0
  26097. .IP "\fB\-mno\-isel\fR" 4
  26098. .IX Item "-mno-isel"
  26099. .PD
  26100. This switch enables or disables the generation of \s-1ISEL\s0 instructions.
  26101. .IP "\fB\-mvsx\fR" 4
  26102. .IX Item "-mvsx"
  26103. .PD 0
  26104. .IP "\fB\-mno\-vsx\fR" 4
  26105. .IX Item "-mno-vsx"
  26106. .PD
  26107. Generate code that uses (does not use) vector/scalar (\s-1VSX\s0)
  26108. instructions, and also enable the use of built-in functions that allow
  26109. more direct access to the \s-1VSX\s0 instruction set.
  26110. .IP "\fB\-mcrypto\fR" 4
  26111. .IX Item "-mcrypto"
  26112. .PD 0
  26113. .IP "\fB\-mno\-crypto\fR" 4
  26114. .IX Item "-mno-crypto"
  26115. .PD
  26116. Enable the use (disable) of the built-in functions that allow direct
  26117. access to the cryptographic instructions that were added in version
  26118. 2.07 of the PowerPC \s-1ISA.\s0
  26119. .IP "\fB\-mhtm\fR" 4
  26120. .IX Item "-mhtm"
  26121. .PD 0
  26122. .IP "\fB\-mno\-htm\fR" 4
  26123. .IX Item "-mno-htm"
  26124. .PD
  26125. Enable (disable) the use of the built-in functions that allow direct
  26126. access to the Hardware Transactional Memory (\s-1HTM\s0) instructions that
  26127. were added in version 2.07 of the PowerPC \s-1ISA.\s0
  26128. .IP "\fB\-mpower8\-fusion\fR" 4
  26129. .IX Item "-mpower8-fusion"
  26130. .PD 0
  26131. .IP "\fB\-mno\-power8\-fusion\fR" 4
  26132. .IX Item "-mno-power8-fusion"
  26133. .PD
  26134. Generate code that keeps (does not keeps) some integer operations
  26135. adjacent so that the instructions can be fused together on power8 and
  26136. later processors.
  26137. .IP "\fB\-mpower8\-vector\fR" 4
  26138. .IX Item "-mpower8-vector"
  26139. .PD 0
  26140. .IP "\fB\-mno\-power8\-vector\fR" 4
  26141. .IX Item "-mno-power8-vector"
  26142. .PD
  26143. Generate code that uses (does not use) the vector and scalar
  26144. instructions that were added in version 2.07 of the PowerPC \s-1ISA.\s0 Also
  26145. enable the use of built-in functions that allow more direct access to
  26146. the vector instructions.
  26147. .IP "\fB\-mquad\-memory\fR" 4
  26148. .IX Item "-mquad-memory"
  26149. .PD 0
  26150. .IP "\fB\-mno\-quad\-memory\fR" 4
  26151. .IX Item "-mno-quad-memory"
  26152. .PD
  26153. Generate code that uses (does not use) the non-atomic quad word memory
  26154. instructions. The \fB\-mquad\-memory\fR option requires use of
  26155. 64\-bit mode.
  26156. .IP "\fB\-mquad\-memory\-atomic\fR" 4
  26157. .IX Item "-mquad-memory-atomic"
  26158. .PD 0
  26159. .IP "\fB\-mno\-quad\-memory\-atomic\fR" 4
  26160. .IX Item "-mno-quad-memory-atomic"
  26161. .PD
  26162. Generate code that uses (does not use) the atomic quad word memory
  26163. instructions. The \fB\-mquad\-memory\-atomic\fR option requires use of
  26164. 64\-bit mode.
  26165. .IP "\fB\-mfloat128\fR" 4
  26166. .IX Item "-mfloat128"
  26167. .PD 0
  26168. .IP "\fB\-mno\-float128\fR" 4
  26169. .IX Item "-mno-float128"
  26170. .PD
  26171. Enable/disable the \fI_\|_float128\fR keyword for \s-1IEEE\s0 128\-bit floating point
  26172. and use either software emulation for \s-1IEEE\s0 128\-bit floating point or
  26173. hardware instructions.
  26174. .Sp
  26175. The \s-1VSX\s0 instruction set (\fB\-mvsx\fR, \fB\-mcpu=power7\fR,
  26176. \&\fB\-mcpu=power8\fR), or \fB\-mcpu=power9\fR must be enabled to
  26177. use the \s-1IEEE\s0 128\-bit floating point support. The \s-1IEEE\s0 128\-bit
  26178. floating point support only works on PowerPC Linux systems.
  26179. .Sp
  26180. The default for \fB\-mfloat128\fR is enabled on PowerPC Linux
  26181. systems using the \s-1VSX\s0 instruction set, and disabled on other systems.
  26182. .Sp
  26183. If you use the \s-1ISA 3.0\s0 instruction set (\fB\-mpower9\-vector\fR or
  26184. \&\fB\-mcpu=power9\fR) on a 64\-bit system, the \s-1IEEE\s0 128\-bit floating
  26185. point support will also enable the generation of \s-1ISA 3.0 IEEE\s0 128\-bit
  26186. floating point instructions. Otherwise, if you do not specify to
  26187. generate \s-1ISA 3.0\s0 instructions or you are targeting a 32\-bit big endian
  26188. system, \s-1IEEE\s0 128\-bit floating point will be done with software
  26189. emulation.
  26190. .IP "\fB\-mfloat128\-hardware\fR" 4
  26191. .IX Item "-mfloat128-hardware"
  26192. .PD 0
  26193. .IP "\fB\-mno\-float128\-hardware\fR" 4
  26194. .IX Item "-mno-float128-hardware"
  26195. .PD
  26196. Enable/disable using \s-1ISA 3.0\s0 hardware instructions to support the
  26197. \&\fI_\|_float128\fR data type.
  26198. .Sp
  26199. The default for \fB\-mfloat128\-hardware\fR is enabled on PowerPC
  26200. Linux systems using the \s-1ISA 3.0\s0 instruction set, and disabled on other
  26201. systems.
  26202. .IP "\fB\-m32\fR" 4
  26203. .IX Item "-m32"
  26204. .PD 0
  26205. .IP "\fB\-m64\fR" 4
  26206. .IX Item "-m64"
  26207. .PD
  26208. Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
  26209. targets (including GNU/Linux). The 32\-bit environment sets int, long
  26210. and pointer to 32 bits and generates code that runs on any PowerPC
  26211. variant. The 64\-bit environment sets int to 32 bits and long and
  26212. pointer to 64 bits, and generates code for PowerPC64, as for
  26213. \&\fB\-mpowerpc64\fR.
  26214. .IP "\fB\-mfull\-toc\fR" 4
  26215. .IX Item "-mfull-toc"
  26216. .PD 0
  26217. .IP "\fB\-mno\-fp\-in\-toc\fR" 4
  26218. .IX Item "-mno-fp-in-toc"
  26219. .IP "\fB\-mno\-sum\-in\-toc\fR" 4
  26220. .IX Item "-mno-sum-in-toc"
  26221. .IP "\fB\-mminimal\-toc\fR" 4
  26222. .IX Item "-mminimal-toc"
  26223. .PD
  26224. Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
  26225. every executable file. The \fB\-mfull\-toc\fR option is selected by
  26226. default. In that case, \s-1GCC\s0 allocates at least one \s-1TOC\s0 entry for
  26227. each unique non-automatic variable reference in your program. \s-1GCC\s0
  26228. also places floating-point constants in the \s-1TOC.\s0 However, only
  26229. 16,384 entries are available in the \s-1TOC.\s0
  26230. .Sp
  26231. If you receive a linker error message that saying you have overflowed
  26232. the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
  26233. with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
  26234. \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
  26235. constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
  26236. generate code to calculate the sum of an address and a constant at
  26237. run time instead of putting that sum into the \s-1TOC.\s0 You may specify one
  26238. or both of these options. Each causes \s-1GCC\s0 to produce very slightly
  26239. slower and larger code at the expense of conserving \s-1TOC\s0 space.
  26240. .Sp
  26241. If you still run out of space in the \s-1TOC\s0 even when you specify both of
  26242. these options, specify \fB\-mminimal\-toc\fR instead. This option causes
  26243. \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file. When you specify this
  26244. option, \s-1GCC\s0 produces code that is slower and larger but which
  26245. uses extremely little \s-1TOC\s0 space. You may wish to use this option
  26246. only on files that contain less frequently-executed code.
  26247. .IP "\fB\-maix64\fR" 4
  26248. .IX Item "-maix64"
  26249. .PD 0
  26250. .IP "\fB\-maix32\fR" 4
  26251. .IX Item "-maix32"
  26252. .PD
  26253. Enable 64\-bit \s-1AIX ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
  26254. \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
  26255. Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR,
  26256. while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
  26257. implies \fB\-mno\-powerpc64\fR. \s-1GCC\s0 defaults to \fB\-maix32\fR.
  26258. .IP "\fB\-mxl\-compat\fR" 4
  26259. .IX Item "-mxl-compat"
  26260. .PD 0
  26261. .IP "\fB\-mno\-xl\-compat\fR" 4
  26262. .IX Item "-mno-xl-compat"
  26263. .PD
  26264. Produce code that conforms more closely to \s-1IBM XL\s0 compiler semantics
  26265. when using AIX-compatible \s-1ABI.\s0 Pass floating-point arguments to
  26266. prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
  26267. in addition to argument FPRs. Do not assume that most significant
  26268. double in 128\-bit long double value is properly rounded when comparing
  26269. values and converting to double. Use \s-1XL\s0 symbol names for long double
  26270. support routines.
  26271. .Sp
  26272. The \s-1AIX\s0 calling convention was extended but not initially documented to
  26273. handle an obscure K&R C case of calling a function that takes the
  26274. address of its arguments with fewer arguments than declared. \s-1IBM XL\s0
  26275. compilers access floating-point arguments that do not fit in the
  26276. \&\s-1RSA\s0 from the stack when a subroutine is compiled without
  26277. optimization. Because always storing floating-point arguments on the
  26278. stack is inefficient and rarely needed, this option is not enabled by
  26279. default and only is necessary when calling subroutines compiled by \s-1IBM
  26280. XL\s0 compilers without optimization.
  26281. .IP "\fB\-mpe\fR" 4
  26282. .IX Item "-mpe"
  26283. Support \fI\s-1IBM RS/6000 SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0). Link an
  26284. application written to use message passing with special startup code to
  26285. enable the application to run. The system must have \s-1PE\s0 installed in the
  26286. standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
  26287. must be overridden with the \fB\-specs=\fR option to specify the
  26288. appropriate directory location. The Parallel Environment does not
  26289. support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
  26290. option are incompatible.
  26291. .IP "\fB\-malign\-natural\fR" 4
  26292. .IX Item "-malign-natural"
  26293. .PD 0
  26294. .IP "\fB\-malign\-power\fR" 4
  26295. .IX Item "-malign-power"
  26296. .PD
  26297. On \s-1AIX,\s0 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
  26298. \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
  26299. types, such as floating-point doubles, on their natural size-based boundary.
  26300. The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
  26301. alignment rules. \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI.\s0
  26302. .Sp
  26303. On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
  26304. is not supported.
  26305. .IP "\fB\-msoft\-float\fR" 4
  26306. .IX Item "-msoft-float"
  26307. .PD 0
  26308. .IP "\fB\-mhard\-float\fR" 4
  26309. .IX Item "-mhard-float"
  26310. .PD
  26311. Generate code that does not use (uses) the floating-point register set.
  26312. Software floating-point emulation is provided if you use the
  26313. \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
  26314. .IP "\fB\-mmultiple\fR" 4
  26315. .IX Item "-mmultiple"
  26316. .PD 0
  26317. .IP "\fB\-mno\-multiple\fR" 4
  26318. .IX Item "-mno-multiple"
  26319. .PD
  26320. Generate code that uses (does not use) the load multiple word
  26321. instructions and the store multiple word instructions. These
  26322. instructions are generated by default on \s-1POWER\s0 systems, and not
  26323. generated on PowerPC systems. Do not use \fB\-mmultiple\fR on little-endian
  26324. PowerPC systems, since those instructions do not work when the
  26325. processor is in little-endian mode. The exceptions are \s-1PPC740\s0 and
  26326. \&\s-1PPC750\s0 which permit these instructions in little-endian mode.
  26327. .IP "\fB\-mupdate\fR" 4
  26328. .IX Item "-mupdate"
  26329. .PD 0
  26330. .IP "\fB\-mno\-update\fR" 4
  26331. .IX Item "-mno-update"
  26332. .PD
  26333. Generate code that uses (does not use) the load or store instructions
  26334. that update the base register to the address of the calculated memory
  26335. location. These instructions are generated by default. If you use
  26336. \&\fB\-mno\-update\fR, there is a small window between the time that the
  26337. stack pointer is updated and the address of the previous frame is
  26338. stored, which means code that walks the stack frame across interrupts or
  26339. signals may get corrupted data.
  26340. .IP "\fB\-mavoid\-indexed\-addresses\fR" 4
  26341. .IX Item "-mavoid-indexed-addresses"
  26342. .PD 0
  26343. .IP "\fB\-mno\-avoid\-indexed\-addresses\fR" 4
  26344. .IX Item "-mno-avoid-indexed-addresses"
  26345. .PD
  26346. Generate code that tries to avoid (not avoid) the use of indexed load
  26347. or store instructions. These instructions can incur a performance
  26348. penalty on Power6 processors in certain situations, such as when
  26349. stepping through large arrays that cross a 16M boundary. This option
  26350. is enabled by default when targeting Power6 and disabled otherwise.
  26351. .IP "\fB\-mfused\-madd\fR" 4
  26352. .IX Item "-mfused-madd"
  26353. .PD 0
  26354. .IP "\fB\-mno\-fused\-madd\fR" 4
  26355. .IX Item "-mno-fused-madd"
  26356. .PD
  26357. Generate code that uses (does not use) the floating-point multiply and
  26358. accumulate instructions. These instructions are generated by default
  26359. if hardware floating point is used. The machine-dependent
  26360. \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
  26361. \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
  26362. mapped to \fB\-ffp\-contract=off\fR.
  26363. .IP "\fB\-mmulhw\fR" 4
  26364. .IX Item "-mmulhw"
  26365. .PD 0
  26366. .IP "\fB\-mno\-mulhw\fR" 4
  26367. .IX Item "-mno-mulhw"
  26368. .PD
  26369. Generate code that uses (does not use) the half-word multiply and
  26370. multiply-accumulate instructions on the \s-1IBM 405, 440, 464\s0 and 476 processors.
  26371. These instructions are generated by default when targeting those
  26372. processors.
  26373. .IP "\fB\-mdlmzb\fR" 4
  26374. .IX Item "-mdlmzb"
  26375. .PD 0
  26376. .IP "\fB\-mno\-dlmzb\fR" 4
  26377. .IX Item "-mno-dlmzb"
  26378. .PD
  26379. Generate code that uses (does not use) the string-search \fBdlmzb\fR
  26380. instruction on the \s-1IBM 405, 440, 464\s0 and 476 processors. This instruction is
  26381. generated by default when targeting those processors.
  26382. .IP "\fB\-mno\-bit\-align\fR" 4
  26383. .IX Item "-mno-bit-align"
  26384. .PD 0
  26385. .IP "\fB\-mbit\-align\fR" 4
  26386. .IX Item "-mbit-align"
  26387. .PD
  26388. On System V.4 and embedded PowerPC systems do not (do) force structures
  26389. and unions that contain bit-fields to be aligned to the base type of the
  26390. bit-field.
  26391. .Sp
  26392. For example, by default a structure containing nothing but 8
  26393. \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 is aligned to a 4\-byte
  26394. boundary and has a size of 4 bytes. By using \fB\-mno\-bit\-align\fR,
  26395. the structure is aligned to a 1\-byte boundary and is 1 byte in
  26396. size.
  26397. .IP "\fB\-mno\-strict\-align\fR" 4
  26398. .IX Item "-mno-strict-align"
  26399. .PD 0
  26400. .IP "\fB\-mstrict\-align\fR" 4
  26401. .IX Item "-mstrict-align"
  26402. .PD
  26403. On System V.4 and embedded PowerPC systems do not (do) assume that
  26404. unaligned memory references are handled by the system.
  26405. .IP "\fB\-mrelocatable\fR" 4
  26406. .IX Item "-mrelocatable"
  26407. .PD 0
  26408. .IP "\fB\-mno\-relocatable\fR" 4
  26409. .IX Item "-mno-relocatable"
  26410. .PD
  26411. Generate code that allows (does not allow) a static executable to be
  26412. relocated to a different address at run time. A simple embedded
  26413. PowerPC system loader should relocate the entire contents of
  26414. \&\f(CW\*(C`.got2\*(C'\fR and 4\-byte locations listed in the \f(CW\*(C`.fixup\*(C'\fR section,
  26415. a table of 32\-bit addresses generated by this option. For this to
  26416. work, all objects linked together must be compiled with
  26417. \&\fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
  26418. \&\fB\-mrelocatable\fR code aligns the stack to an 8\-byte boundary.
  26419. .IP "\fB\-mrelocatable\-lib\fR" 4
  26420. .IX Item "-mrelocatable-lib"
  26421. .PD 0
  26422. .IP "\fB\-mno\-relocatable\-lib\fR" 4
  26423. .IX Item "-mno-relocatable-lib"
  26424. .PD
  26425. Like \fB\-mrelocatable\fR, \fB\-mrelocatable\-lib\fR generates a
  26426. \&\f(CW\*(C`.fixup\*(C'\fR section to allow static executables to be relocated at
  26427. run time, but \fB\-mrelocatable\-lib\fR does not use the smaller stack
  26428. alignment of \fB\-mrelocatable\fR. Objects compiled with
  26429. \&\fB\-mrelocatable\-lib\fR may be linked with objects compiled with
  26430. any combination of the \fB\-mrelocatable\fR options.
  26431. .IP "\fB\-mno\-toc\fR" 4
  26432. .IX Item "-mno-toc"
  26433. .PD 0
  26434. .IP "\fB\-mtoc\fR" 4
  26435. .IX Item "-mtoc"
  26436. .PD
  26437. On System V.4 and embedded PowerPC systems do not (do) assume that
  26438. register 2 contains a pointer to a global area pointing to the addresses
  26439. used in the program.
  26440. .IP "\fB\-mlittle\fR" 4
  26441. .IX Item "-mlittle"
  26442. .PD 0
  26443. .IP "\fB\-mlittle\-endian\fR" 4
  26444. .IX Item "-mlittle-endian"
  26445. .PD
  26446. On System V.4 and embedded PowerPC systems compile code for the
  26447. processor in little-endian mode. The \fB\-mlittle\-endian\fR option is
  26448. the same as \fB\-mlittle\fR.
  26449. .IP "\fB\-mbig\fR" 4
  26450. .IX Item "-mbig"
  26451. .PD 0
  26452. .IP "\fB\-mbig\-endian\fR" 4
  26453. .IX Item "-mbig-endian"
  26454. .PD
  26455. On System V.4 and embedded PowerPC systems compile code for the
  26456. processor in big-endian mode. The \fB\-mbig\-endian\fR option is
  26457. the same as \fB\-mbig\fR.
  26458. .IP "\fB\-mdynamic\-no\-pic\fR" 4
  26459. .IX Item "-mdynamic-no-pic"
  26460. On Darwin and Mac \s-1OS X\s0 systems, compile code so that it is not
  26461. relocatable, but that its external references are relocatable. The
  26462. resulting code is suitable for applications, but not shared
  26463. libraries.
  26464. .IP "\fB\-msingle\-pic\-base\fR" 4
  26465. .IX Item "-msingle-pic-base"
  26466. Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
  26467. loading it in the prologue for each function. The runtime system is
  26468. responsible for initializing this register with an appropriate value
  26469. before execution begins.
  26470. .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
  26471. .IX Item "-mprioritize-restricted-insns=priority"
  26472. This option controls the priority that is assigned to
  26473. dispatch-slot restricted instructions during the second scheduling
  26474. pass. The argument \fIpriority\fR takes the value \fB0\fR, \fB1\fR,
  26475. or \fB2\fR to assign no, highest, or second-highest (respectively)
  26476. priority to dispatch-slot restricted
  26477. instructions.
  26478. .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
  26479. .IX Item "-msched-costly-dep=dependence_type"
  26480. This option controls which dependences are considered costly
  26481. by the target during instruction scheduling. The argument
  26482. \&\fIdependence_type\fR takes one of the following values:
  26483. .RS 4
  26484. .IP "\fBno\fR" 4
  26485. .IX Item "no"
  26486. No dependence is costly.
  26487. .IP "\fBall\fR" 4
  26488. .IX Item "all"
  26489. All dependences are costly.
  26490. .IP "\fBtrue_store_to_load\fR" 4
  26491. .IX Item "true_store_to_load"
  26492. A true dependence from store to load is costly.
  26493. .IP "\fBstore_to_load\fR" 4
  26494. .IX Item "store_to_load"
  26495. Any dependence from store to load is costly.
  26496. .IP "\fInumber\fR" 4
  26497. .IX Item "number"
  26498. Any dependence for which the latency is greater than or equal to
  26499. \&\fInumber\fR is costly.
  26500. .RE
  26501. .RS 4
  26502. .RE
  26503. .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
  26504. .IX Item "-minsert-sched-nops=scheme"
  26505. This option controls which \s-1NOP\s0 insertion scheme is used during
  26506. the second scheduling pass. The argument \fIscheme\fR takes one of the
  26507. following values:
  26508. .RS 4
  26509. .IP "\fBno\fR" 4
  26510. .IX Item "no"
  26511. Don't insert NOPs.
  26512. .IP "\fBpad\fR" 4
  26513. .IX Item "pad"
  26514. Pad with NOPs any dispatch group that has vacant issue slots,
  26515. according to the scheduler's grouping.
  26516. .IP "\fBregroup_exact\fR" 4
  26517. .IX Item "regroup_exact"
  26518. Insert NOPs to force costly dependent insns into
  26519. separate groups. Insert exactly as many NOPs as needed to force an insn
  26520. to a new group, according to the estimated processor grouping.
  26521. .IP "\fInumber\fR" 4
  26522. .IX Item "number"
  26523. Insert NOPs to force costly dependent insns into
  26524. separate groups. Insert \fInumber\fR NOPs to force an insn to a new group.
  26525. .RE
  26526. .RS 4
  26527. .RE
  26528. .IP "\fB\-mcall\-sysv\fR" 4
  26529. .IX Item "-mcall-sysv"
  26530. On System V.4 and embedded PowerPC systems compile code using calling
  26531. conventions that adhere to the March 1995 draft of the System V
  26532. Application Binary Interface, PowerPC processor supplement. This is the
  26533. default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
  26534. .IP "\fB\-mcall\-sysv\-eabi\fR" 4
  26535. .IX Item "-mcall-sysv-eabi"
  26536. .PD 0
  26537. .IP "\fB\-mcall\-eabi\fR" 4
  26538. .IX Item "-mcall-eabi"
  26539. .PD
  26540. Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
  26541. .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
  26542. .IX Item "-mcall-sysv-noeabi"
  26543. Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
  26544. .IP "\fB\-mcall\-aixdesc\fR" 4
  26545. .IX Item "-mcall-aixdesc"
  26546. On System V.4 and embedded PowerPC systems compile code for the \s-1AIX\s0
  26547. operating system.
  26548. .IP "\fB\-mcall\-linux\fR" 4
  26549. .IX Item "-mcall-linux"
  26550. On System V.4 and embedded PowerPC systems compile code for the
  26551. Linux-based \s-1GNU\s0 system.
  26552. .IP "\fB\-mcall\-freebsd\fR" 4
  26553. .IX Item "-mcall-freebsd"
  26554. On System V.4 and embedded PowerPC systems compile code for the
  26555. FreeBSD operating system.
  26556. .IP "\fB\-mcall\-netbsd\fR" 4
  26557. .IX Item "-mcall-netbsd"
  26558. On System V.4 and embedded PowerPC systems compile code for the
  26559. NetBSD operating system.
  26560. .IP "\fB\-mcall\-openbsd\fR" 4
  26561. .IX Item "-mcall-openbsd"
  26562. On System V.4 and embedded PowerPC systems compile code for the
  26563. OpenBSD operating system.
  26564. .IP "\fB\-mtraceback=\fR\fItraceback_type\fR" 4
  26565. .IX Item "-mtraceback=traceback_type"
  26566. Select the type of traceback table. Valid values for \fItraceback_type\fR
  26567. are \fBfull\fR, \fBpart\fR, and \fBno\fR.
  26568. .IP "\fB\-maix\-struct\-return\fR" 4
  26569. .IX Item "-maix-struct-return"
  26570. Return all structures in memory (as specified by the \s-1AIX ABI\s0).
  26571. .IP "\fB\-msvr4\-struct\-return\fR" 4
  26572. .IX Item "-msvr4-struct-return"
  26573. Return structures smaller than 8 bytes in registers (as specified by the
  26574. \&\s-1SVR4 ABI\s0).
  26575. .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
  26576. .IX Item "-mabi=abi-type"
  26577. Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
  26578. Valid values are: \fBaltivec\fR, \fBno-altivec\fR,
  26579. \&\fBibmlongdouble\fR, \fBieeelongdouble\fR,
  26580. \&\fBelfv1\fR, \fBelfv2\fR,
  26581. and for \s-1AIX:\s0 \fBvec-extabi\fR, \fBvec-default\fR.
  26582. .IP "\fB\-mabi=ibmlongdouble\fR" 4
  26583. .IX Item "-mabi=ibmlongdouble"
  26584. Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended-precision long double.
  26585. This is not likely to work if your system defaults to using \s-1IEEE\s0
  26586. extended-precision long double. If you change the long double type
  26587. from \s-1IEEE\s0 extended-precision, the compiler will issue a warning unless
  26588. you use the \fB\-Wno\-psabi\fR option. Requires \fB\-mlong\-double\-128\fR
  26589. to be enabled.
  26590. .IP "\fB\-mabi=ieeelongdouble\fR" 4
  26591. .IX Item "-mabi=ieeelongdouble"
  26592. Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended-precision long double.
  26593. This is not likely to work if your system defaults to using \s-1IBM\s0
  26594. extended-precision long double. If you change the long double type
  26595. from \s-1IBM\s0 extended-precision, the compiler will issue a warning unless
  26596. you use the \fB\-Wno\-psabi\fR option. Requires \fB\-mlong\-double\-128\fR
  26597. to be enabled.
  26598. .IP "\fB\-mabi=elfv1\fR" 4
  26599. .IX Item "-mabi=elfv1"
  26600. Change the current \s-1ABI\s0 to use the ELFv1 \s-1ABI.\s0
  26601. This is the default \s-1ABI\s0 for big-endian PowerPC 64\-bit Linux.
  26602. Overriding the default \s-1ABI\s0 requires special system support and is
  26603. likely to fail in spectacular ways.
  26604. .IP "\fB\-mabi=elfv2\fR" 4
  26605. .IX Item "-mabi=elfv2"
  26606. Change the current \s-1ABI\s0 to use the ELFv2 \s-1ABI.\s0
  26607. This is the default \s-1ABI\s0 for little-endian PowerPC 64\-bit Linux.
  26608. Overriding the default \s-1ABI\s0 requires special system support and is
  26609. likely to fail in spectacular ways.
  26610. .IP "\fB\-mgnu\-attribute\fR" 4
  26611. .IX Item "-mgnu-attribute"
  26612. .PD 0
  26613. .IP "\fB\-mno\-gnu\-attribute\fR" 4
  26614. .IX Item "-mno-gnu-attribute"
  26615. .PD
  26616. Emit .gnu_attribute assembly directives to set tag/value pairs in a
  26617. \&.gnu.attributes section that specify \s-1ABI\s0 variations in function
  26618. parameters or return values.
  26619. .IP "\fB\-mprototype\fR" 4
  26620. .IX Item "-mprototype"
  26621. .PD 0
  26622. .IP "\fB\-mno\-prototype\fR" 4
  26623. .IX Item "-mno-prototype"
  26624. .PD
  26625. On System V.4 and embedded PowerPC systems assume that all calls to
  26626. variable argument functions are properly prototyped. Otherwise, the
  26627. compiler must insert an instruction before every non-prototyped call to
  26628. set or clear bit 6 of the condition code register (\f(CW\*(C`CR\*(C'\fR) to
  26629. indicate whether floating-point values are passed in the floating-point
  26630. registers in case the function takes variable arguments. With
  26631. \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
  26632. set or clear the bit.
  26633. .IP "\fB\-msim\fR" 4
  26634. .IX Item "-msim"
  26635. On embedded PowerPC systems, assume that the startup module is called
  26636. \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
  26637. \&\fIlibc.a\fR. This is the default for \fBpowerpc\-*\-eabisim\fR
  26638. configurations.
  26639. .IP "\fB\-mmvme\fR" 4
  26640. .IX Item "-mmvme"
  26641. On embedded PowerPC systems, assume that the startup module is called
  26642. \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
  26643. \&\fIlibc.a\fR.
  26644. .IP "\fB\-mads\fR" 4
  26645. .IX Item "-mads"
  26646. On embedded PowerPC systems, assume that the startup module is called
  26647. \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
  26648. \&\fIlibc.a\fR.
  26649. .IP "\fB\-myellowknife\fR" 4
  26650. .IX Item "-myellowknife"
  26651. On embedded PowerPC systems, assume that the startup module is called
  26652. \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
  26653. \&\fIlibc.a\fR.
  26654. .IP "\fB\-mvxworks\fR" 4
  26655. .IX Item "-mvxworks"
  26656. On System V.4 and embedded PowerPC systems, specify that you are
  26657. compiling for a VxWorks system.
  26658. .IP "\fB\-memb\fR" 4
  26659. .IX Item "-memb"
  26660. On embedded PowerPC systems, set the \f(CW\*(C`PPC_EMB\*(C'\fR bit in the \s-1ELF\s0 flags
  26661. header to indicate that \fBeabi\fR extended relocations are used.
  26662. .IP "\fB\-meabi\fR" 4
  26663. .IX Item "-meabi"
  26664. .PD 0
  26665. .IP "\fB\-mno\-eabi\fR" 4
  26666. .IX Item "-mno-eabi"
  26667. .PD
  26668. On System V.4 and embedded PowerPC systems do (do not) adhere to the
  26669. Embedded Applications Binary Interface (\s-1EABI\s0), which is a set of
  26670. modifications to the System V.4 specifications. Selecting \fB\-meabi\fR
  26671. means that the stack is aligned to an 8\-byte boundary, a function
  26672. \&\f(CW\*(C`_\|_eabi\*(C'\fR is called from \f(CW\*(C`main\*(C'\fR to set up the \s-1EABI\s0
  26673. environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
  26674. \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas. Selecting
  26675. \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16\-byte boundary,
  26676. no \s-1EABI\s0 initialization function is called from \f(CW\*(C`main\*(C'\fR, and the
  26677. \&\fB\-msdata\fR option only uses \f(CW\*(C`r13\*(C'\fR to point to a single
  26678. small data area. The \fB\-meabi\fR option is on by default if you
  26679. configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
  26680. .IP "\fB\-msdata=eabi\fR" 4
  26681. .IX Item "-msdata=eabi"
  26682. On System V.4 and embedded PowerPC systems, put small initialized
  26683. \&\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata2\*(C'\fR section, which
  26684. is pointed to by register \f(CW\*(C`r2\*(C'\fR. Put small initialized
  26685. non\-\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata\*(C'\fR section,
  26686. which is pointed to by register \f(CW\*(C`r13\*(C'\fR. Put small uninitialized
  26687. global and static data in the \f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to
  26688. the \f(CW\*(C`.sdata\*(C'\fR section. The \fB\-msdata=eabi\fR option is
  26689. incompatible with the \fB\-mrelocatable\fR option. The
  26690. \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
  26691. .IP "\fB\-msdata=sysv\fR" 4
  26692. .IX Item "-msdata=sysv"
  26693. On System V.4 and embedded PowerPC systems, put small global and static
  26694. data in the \f(CW\*(C`.sdata\*(C'\fR section, which is pointed to by register
  26695. \&\f(CW\*(C`r13\*(C'\fR. Put small uninitialized global and static data in the
  26696. \&\f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to the \f(CW\*(C`.sdata\*(C'\fR section.
  26697. The \fB\-msdata=sysv\fR option is incompatible with the
  26698. \&\fB\-mrelocatable\fR option.
  26699. .IP "\fB\-msdata=default\fR" 4
  26700. .IX Item "-msdata=default"
  26701. .PD 0
  26702. .IP "\fB\-msdata\fR" 4
  26703. .IX Item "-msdata"
  26704. .PD
  26705. On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
  26706. compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
  26707. same as \fB\-msdata=sysv\fR.
  26708. .IP "\fB\-msdata=data\fR" 4
  26709. .IX Item "-msdata=data"
  26710. On System V.4 and embedded PowerPC systems, put small global
  26711. data in the \f(CW\*(C`.sdata\*(C'\fR section. Put small uninitialized global
  26712. data in the \f(CW\*(C`.sbss\*(C'\fR section. Do not use register \f(CW\*(C`r13\*(C'\fR
  26713. to address small data however. This is the default behavior unless
  26714. other \fB\-msdata\fR options are used.
  26715. .IP "\fB\-msdata=none\fR" 4
  26716. .IX Item "-msdata=none"
  26717. .PD 0
  26718. .IP "\fB\-mno\-sdata\fR" 4
  26719. .IX Item "-mno-sdata"
  26720. .PD
  26721. On embedded PowerPC systems, put all initialized global and static data
  26722. in the \f(CW\*(C`.data\*(C'\fR section, and all uninitialized data in the
  26723. \&\f(CW\*(C`.bss\*(C'\fR section.
  26724. .IP "\fB\-mreadonly\-in\-sdata\fR" 4
  26725. .IX Item "-mreadonly-in-sdata"
  26726. Put read-only objects in the \f(CW\*(C`.sdata\*(C'\fR section as well. This is the
  26727. default.
  26728. .IP "\fB\-mblock\-move\-inline\-limit=\fR\fInum\fR" 4
  26729. .IX Item "-mblock-move-inline-limit=num"
  26730. Inline all block moves (such as calls to \f(CW\*(C`memcpy\*(C'\fR or structure
  26731. copies) less than or equal to \fInum\fR bytes. The minimum value for
  26732. \&\fInum\fR is 32 bytes on 32\-bit targets and 64 bytes on 64\-bit
  26733. targets. The default value is target-specific.
  26734. .IP "\fB\-mblock\-compare\-inline\-limit=\fR\fInum\fR" 4
  26735. .IX Item "-mblock-compare-inline-limit=num"
  26736. Generate non-looping inline code for all block compares (such as calls
  26737. to \f(CW\*(C`memcmp\*(C'\fR or structure compares) less than or equal to \fInum\fR
  26738. bytes. If \fInum\fR is 0, all inline expansion (non-loop and loop) of
  26739. block compare is disabled. The default value is target-specific.
  26740. .IP "\fB\-mblock\-compare\-inline\-loop\-limit=\fR\fInum\fR" 4
  26741. .IX Item "-mblock-compare-inline-loop-limit=num"
  26742. Generate an inline expansion using loop code for all block compares that
  26743. are less than or equal to \fInum\fR bytes, but greater than the limit
  26744. for non-loop inline block compare expansion. If the block length is not
  26745. constant, at most \fInum\fR bytes will be compared before \f(CW\*(C`memcmp\*(C'\fR
  26746. is called to compare the remainder of the block. The default value is
  26747. target-specific.
  26748. .IP "\fB\-mstring\-compare\-inline\-limit=\fR\fInum\fR" 4
  26749. .IX Item "-mstring-compare-inline-limit=num"
  26750. Compare at most \fInum\fR string bytes with inline code.
  26751. If the difference or end of string is not found at the
  26752. end of the inline compare a call to \f(CW\*(C`strcmp\*(C'\fR or \f(CW\*(C`strncmp\*(C'\fR will
  26753. take care of the rest of the comparison. The default is 64 bytes.
  26754. .IP "\fB\-G\fR \fInum\fR" 4
  26755. .IX Item "-G num"
  26756. On embedded PowerPC systems, put global and static items less than or
  26757. equal to \fInum\fR bytes into the small data or \s-1BSS\s0 sections instead of
  26758. the normal data or \s-1BSS\s0 section. By default, \fInum\fR is 8. The
  26759. \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
  26760. All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
  26761. .IP "\fB\-mregnames\fR" 4
  26762. .IX Item "-mregnames"
  26763. .PD 0
  26764. .IP "\fB\-mno\-regnames\fR" 4
  26765. .IX Item "-mno-regnames"
  26766. .PD
  26767. On System V.4 and embedded PowerPC systems do (do not) emit register
  26768. names in the assembly language output using symbolic forms.
  26769. .IP "\fB\-mlongcall\fR" 4
  26770. .IX Item "-mlongcall"
  26771. .PD 0
  26772. .IP "\fB\-mno\-longcall\fR" 4
  26773. .IX Item "-mno-longcall"
  26774. .PD
  26775. By default assume that all calls are far away so that a longer and more
  26776. expensive calling sequence is required. This is required for calls
  26777. farther than 32 megabytes (33,554,432 bytes) from the current location.
  26778. A short call is generated if the compiler knows
  26779. the call cannot be that far away. This setting can be overridden by
  26780. the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
  26781. longcall(0)\*(C'\fR.
  26782. .Sp
  26783. Some linkers are capable of detecting out-of-range calls and generating
  26784. glue code on the fly. On these systems, long calls are unnecessary and
  26785. generate slower code. As of this writing, the \s-1AIX\s0 linker can do this,
  26786. as can the \s-1GNU\s0 linker for PowerPC/64. It is planned to add this feature
  26787. to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
  26788. .Sp
  26789. On PowerPC64 ELFv2 and 32\-bit PowerPC systems with newer \s-1GNU\s0 linkers,
  26790. \&\s-1GCC\s0 can generate long calls using an inline \s-1PLT\s0 call sequence (see
  26791. \&\fB\-mpltseq\fR). PowerPC with \fB\-mbss\-plt\fR and PowerPC64
  26792. ELFv1 (big-endian) do not support inline \s-1PLT\s0 calls.
  26793. .Sp
  26794. On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR generates \f(CW\*(C`jbsr
  26795. callee, L42\*(C'\fR, plus a \fIbranch island\fR (glue code). The two target
  26796. addresses represent the callee and the branch island. The
  26797. Darwin/PPC linker prefers the first address and generates a \f(CW\*(C`bl
  26798. callee\*(C'\fR if the \s-1PPC\s0 \f(CW\*(C`bl\*(C'\fR instruction reaches the callee directly;
  26799. otherwise, the linker generates \f(CW\*(C`bl L42\*(C'\fR to call the branch
  26800. island. The branch island is appended to the body of the
  26801. calling function; it computes the full 32\-bit address of the callee
  26802. and jumps to it.
  26803. .Sp
  26804. On Mach-O (Darwin) systems, this option directs the compiler emit to
  26805. the glue for every direct call, and the Darwin linker decides whether
  26806. to use or discard it.
  26807. .Sp
  26808. In the future, \s-1GCC\s0 may ignore all longcall specifications
  26809. when the linker is known to generate glue.
  26810. .IP "\fB\-mpltseq\fR" 4
  26811. .IX Item "-mpltseq"
  26812. .PD 0
  26813. .IP "\fB\-mno\-pltseq\fR" 4
  26814. .IX Item "-mno-pltseq"
  26815. .PD
  26816. Implement (do not implement) \-fno\-plt and long calls using an inline
  26817. \&\s-1PLT\s0 call sequence that supports lazy linking and long calls to
  26818. functions in dlopen'd shared libraries. Inline \s-1PLT\s0 calls are only
  26819. supported on PowerPC64 ELFv2 and 32\-bit PowerPC systems with newer \s-1GNU\s0
  26820. linkers, and are enabled by default if the support is detected when
  26821. configuring \s-1GCC,\s0 and, in the case of 32\-bit PowerPC, if \s-1GCC\s0 is
  26822. configured with \fB\-\-enable\-secureplt\fR. \fB\-mpltseq\fR code
  26823. and \fB\-mbss\-plt\fR 32\-bit PowerPC relocatable objects may not be
  26824. linked together.
  26825. .IP "\fB\-mtls\-markers\fR" 4
  26826. .IX Item "-mtls-markers"
  26827. .PD 0
  26828. .IP "\fB\-mno\-tls\-markers\fR" 4
  26829. .IX Item "-mno-tls-markers"
  26830. .PD
  26831. Mark (do not mark) calls to \f(CW\*(C`_\|_tls_get_addr\*(C'\fR with a relocation
  26832. specifying the function argument. The relocation allows the linker to
  26833. reliably associate function call with argument setup instructions for
  26834. \&\s-1TLS\s0 optimization, which in turn allows \s-1GCC\s0 to better schedule the
  26835. sequence.
  26836. .IP "\fB\-mrecip\fR" 4
  26837. .IX Item "-mrecip"
  26838. .PD 0
  26839. .IP "\fB\-mno\-recip\fR" 4
  26840. .IX Item "-mno-recip"
  26841. .PD
  26842. This option enables use of the reciprocal estimate and
  26843. reciprocal square root estimate instructions with additional
  26844. Newton-Raphson steps to increase precision instead of doing a divide or
  26845. square root and divide for floating-point arguments. You should use
  26846. the \fB\-ffast\-math\fR option when using \fB\-mrecip\fR (or at
  26847. least \fB\-funsafe\-math\-optimizations\fR,
  26848. \&\fB\-ffinite\-math\-only\fR, \fB\-freciprocal\-math\fR and
  26849. \&\fB\-fno\-trapping\-math\fR). Note that while the throughput of the
  26850. sequence is generally higher than the throughput of the non-reciprocal
  26851. instruction, the precision of the sequence can be decreased by up to 2
  26852. ulp (i.e. the inverse of 1.0 equals 0.99999994) for reciprocal square
  26853. roots.
  26854. .IP "\fB\-mrecip=\fR\fIopt\fR" 4
  26855. .IX Item "-mrecip=opt"
  26856. This option controls which reciprocal estimate instructions
  26857. may be used. \fIopt\fR is a comma-separated list of options, which may
  26858. be preceded by a \f(CW\*(C`!\*(C'\fR to invert the option:
  26859. .RS 4
  26860. .IP "\fBall\fR" 4
  26861. .IX Item "all"
  26862. Enable all estimate instructions.
  26863. .IP "\fBdefault\fR" 4
  26864. .IX Item "default"
  26865. Enable the default instructions, equivalent to \fB\-mrecip\fR.
  26866. .IP "\fBnone\fR" 4
  26867. .IX Item "none"
  26868. Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
  26869. .IP "\fBdiv\fR" 4
  26870. .IX Item "div"
  26871. Enable the reciprocal approximation instructions for both
  26872. single and double precision.
  26873. .IP "\fBdivf\fR" 4
  26874. .IX Item "divf"
  26875. Enable the single-precision reciprocal approximation instructions.
  26876. .IP "\fBdivd\fR" 4
  26877. .IX Item "divd"
  26878. Enable the double-precision reciprocal approximation instructions.
  26879. .IP "\fBrsqrt\fR" 4
  26880. .IX Item "rsqrt"
  26881. Enable the reciprocal square root approximation instructions for both
  26882. single and double precision.
  26883. .IP "\fBrsqrtf\fR" 4
  26884. .IX Item "rsqrtf"
  26885. Enable the single-precision reciprocal square root approximation instructions.
  26886. .IP "\fBrsqrtd\fR" 4
  26887. .IX Item "rsqrtd"
  26888. Enable the double-precision reciprocal square root approximation instructions.
  26889. .RE
  26890. .RS 4
  26891. .Sp
  26892. So, for example, \fB\-mrecip=all,!rsqrtd\fR enables
  26893. all of the reciprocal estimate instructions, except for the
  26894. \&\f(CW\*(C`FRSQRTE\*(C'\fR, \f(CW\*(C`XSRSQRTEDP\*(C'\fR, and \f(CW\*(C`XVRSQRTEDP\*(C'\fR instructions
  26895. which handle the double-precision reciprocal square root calculations.
  26896. .RE
  26897. .IP "\fB\-mrecip\-precision\fR" 4
  26898. .IX Item "-mrecip-precision"
  26899. .PD 0
  26900. .IP "\fB\-mno\-recip\-precision\fR" 4
  26901. .IX Item "-mno-recip-precision"
  26902. .PD
  26903. Assume (do not assume) that the reciprocal estimate instructions
  26904. provide higher-precision estimates than is mandated by the PowerPC
  26905. \&\s-1ABI.\s0 Selecting \fB\-mcpu=power6\fR, \fB\-mcpu=power7\fR or
  26906. \&\fB\-mcpu=power8\fR automatically selects \fB\-mrecip\-precision\fR.
  26907. The double-precision square root estimate instructions are not generated by
  26908. default on low-precision machines, since they do not provide an
  26909. estimate that converges after three steps.
  26910. .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
  26911. .IX Item "-mveclibabi=type"
  26912. Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
  26913. external library. The only type supported at present is \fBmass\fR,
  26914. which specifies to use \s-1IBM\s0's Mathematical Acceleration Subsystem
  26915. (\s-1MASS\s0) libraries for vectorizing intrinsics using external libraries.
  26916. \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`acosd2\*(C'\fR, \f(CW\*(C`acosf4\*(C'\fR,
  26917. \&\f(CW\*(C`acoshd2\*(C'\fR, \f(CW\*(C`acoshf4\*(C'\fR, \f(CW\*(C`asind2\*(C'\fR, \f(CW\*(C`asinf4\*(C'\fR,
  26918. \&\f(CW\*(C`asinhd2\*(C'\fR, \f(CW\*(C`asinhf4\*(C'\fR, \f(CW\*(C`atan2d2\*(C'\fR, \f(CW\*(C`atan2f4\*(C'\fR,
  26919. \&\f(CW\*(C`atand2\*(C'\fR, \f(CW\*(C`atanf4\*(C'\fR, \f(CW\*(C`atanhd2\*(C'\fR, \f(CW\*(C`atanhf4\*(C'\fR,
  26920. \&\f(CW\*(C`cbrtd2\*(C'\fR, \f(CW\*(C`cbrtf4\*(C'\fR, \f(CW\*(C`cosd2\*(C'\fR, \f(CW\*(C`cosf4\*(C'\fR,
  26921. \&\f(CW\*(C`coshd2\*(C'\fR, \f(CW\*(C`coshf4\*(C'\fR, \f(CW\*(C`erfcd2\*(C'\fR, \f(CW\*(C`erfcf4\*(C'\fR,
  26922. \&\f(CW\*(C`erfd2\*(C'\fR, \f(CW\*(C`erff4\*(C'\fR, \f(CW\*(C`exp2d2\*(C'\fR, \f(CW\*(C`exp2f4\*(C'\fR,
  26923. \&\f(CW\*(C`expd2\*(C'\fR, \f(CW\*(C`expf4\*(C'\fR, \f(CW\*(C`expm1d2\*(C'\fR, \f(CW\*(C`expm1f4\*(C'\fR,
  26924. \&\f(CW\*(C`hypotd2\*(C'\fR, \f(CW\*(C`hypotf4\*(C'\fR, \f(CW\*(C`lgammad2\*(C'\fR, \f(CW\*(C`lgammaf4\*(C'\fR,
  26925. \&\f(CW\*(C`log10d2\*(C'\fR, \f(CW\*(C`log10f4\*(C'\fR, \f(CW\*(C`log1pd2\*(C'\fR, \f(CW\*(C`log1pf4\*(C'\fR,
  26926. \&\f(CW\*(C`log2d2\*(C'\fR, \f(CW\*(C`log2f4\*(C'\fR, \f(CW\*(C`logd2\*(C'\fR, \f(CW\*(C`logf4\*(C'\fR,
  26927. \&\f(CW\*(C`powd2\*(C'\fR, \f(CW\*(C`powf4\*(C'\fR, \f(CW\*(C`sind2\*(C'\fR, \f(CW\*(C`sinf4\*(C'\fR, \f(CW\*(C`sinhd2\*(C'\fR,
  26928. \&\f(CW\*(C`sinhf4\*(C'\fR, \f(CW\*(C`sqrtd2\*(C'\fR, \f(CW\*(C`sqrtf4\*(C'\fR, \f(CW\*(C`tand2\*(C'\fR,
  26929. \&\f(CW\*(C`tanf4\*(C'\fR, \f(CW\*(C`tanhd2\*(C'\fR, and \f(CW\*(C`tanhf4\*(C'\fR when generating code
  26930. for power7. Both \fB\-ftree\-vectorize\fR and
  26931. \&\fB\-funsafe\-math\-optimizations\fR must also be enabled. The \s-1MASS\s0
  26932. libraries must be specified at link time.
  26933. .IP "\fB\-mfriz\fR" 4
  26934. .IX Item "-mfriz"
  26935. .PD 0
  26936. .IP "\fB\-mno\-friz\fR" 4
  26937. .IX Item "-mno-friz"
  26938. .PD
  26939. Generate (do not generate) the \f(CW\*(C`friz\*(C'\fR instruction when the
  26940. \&\fB\-funsafe\-math\-optimizations\fR option is used to optimize
  26941. rounding of floating-point values to 64\-bit integer and back to floating
  26942. point. The \f(CW\*(C`friz\*(C'\fR instruction does not return the same value if
  26943. the floating-point number is too large to fit in an integer.
  26944. .IP "\fB\-mpointers\-to\-nested\-functions\fR" 4
  26945. .IX Item "-mpointers-to-nested-functions"
  26946. .PD 0
  26947. .IP "\fB\-mno\-pointers\-to\-nested\-functions\fR" 4
  26948. .IX Item "-mno-pointers-to-nested-functions"
  26949. .PD
  26950. Generate (do not generate) code to load up the static chain register
  26951. (\f(CW\*(C`r11\*(C'\fR) when calling through a pointer on \s-1AIX\s0 and 64\-bit Linux
  26952. systems where a function pointer points to a 3\-word descriptor giving
  26953. the function address, \s-1TOC\s0 value to be loaded in register \f(CW\*(C`r2\*(C'\fR, and
  26954. static chain value to be loaded in register \f(CW\*(C`r11\*(C'\fR. The
  26955. \&\fB\-mpointers\-to\-nested\-functions\fR is on by default. You cannot
  26956. call through pointers to nested functions or pointers
  26957. to functions compiled in other languages that use the static chain if
  26958. you use \fB\-mno\-pointers\-to\-nested\-functions\fR.
  26959. .IP "\fB\-msave\-toc\-indirect\fR" 4
  26960. .IX Item "-msave-toc-indirect"
  26961. .PD 0
  26962. .IP "\fB\-mno\-save\-toc\-indirect\fR" 4
  26963. .IX Item "-mno-save-toc-indirect"
  26964. .PD
  26965. Generate (do not generate) code to save the \s-1TOC\s0 value in the reserved
  26966. stack location in the function prologue if the function calls through
  26967. a pointer on \s-1AIX\s0 and 64\-bit Linux systems. If the \s-1TOC\s0 value is not
  26968. saved in the prologue, it is saved just before the call through the
  26969. pointer. The \fB\-mno\-save\-toc\-indirect\fR option is the default.
  26970. .IP "\fB\-mcompat\-align\-parm\fR" 4
  26971. .IX Item "-mcompat-align-parm"
  26972. .PD 0
  26973. .IP "\fB\-mno\-compat\-align\-parm\fR" 4
  26974. .IX Item "-mno-compat-align-parm"
  26975. .PD
  26976. Generate (do not generate) code to pass structure parameters with a
  26977. maximum alignment of 64 bits, for compatibility with older versions
  26978. of \s-1GCC.\s0
  26979. .Sp
  26980. Older versions of \s-1GCC\s0 (prior to 4.9.0) incorrectly did not align a
  26981. structure parameter on a 128\-bit boundary when that structure contained
  26982. a member requiring 128\-bit alignment. This is corrected in more
  26983. recent versions of \s-1GCC.\s0 This option may be used to generate code
  26984. that is compatible with functions compiled with older versions of
  26985. \&\s-1GCC.\s0
  26986. .Sp
  26987. The \fB\-mno\-compat\-align\-parm\fR option is the default.
  26988. .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
  26989. .IX Item "-mstack-protector-guard=guard"
  26990. .PD 0
  26991. .IP "\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR" 4
  26992. .IX Item "-mstack-protector-guard-reg=reg"
  26993. .IP "\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR" 4
  26994. .IX Item "-mstack-protector-guard-offset=offset"
  26995. .IP "\fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR" 4
  26996. .IX Item "-mstack-protector-guard-symbol=symbol"
  26997. .PD
  26998. Generate stack protection code using canary at \fIguard\fR. Supported
  26999. locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
  27000. canary in the \s-1TLS\s0 block (the default with \s-1GNU\s0 libc version 2.4 or later).
  27001. .Sp
  27002. With the latter choice the options
  27003. \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR and
  27004. \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR furthermore specify
  27005. which register to use as base register for reading the canary, and from what
  27006. offset from that base register. The default for those is as specified in the
  27007. relevant \s-1ABI.\s0 \fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR overrides
  27008. the offset with a symbol reference to a canary in the \s-1TLS\s0 block.
  27009. .IP "\fB\-mpcrel\fR" 4
  27010. .IX Item "-mpcrel"
  27011. .PD 0
  27012. .IP "\fB\-mno\-pcrel\fR" 4
  27013. .IX Item "-mno-pcrel"
  27014. .PD
  27015. Generate (do not generate) pc-relative addressing when the option
  27016. \&\fB\-mcpu=future\fR is used. The \fB\-mpcrel\fR option requires
  27017. that the medium code model (\fB\-mcmodel=medium\fR) and prefixed
  27018. addressing (\fB\-mprefixed\fR) options are enabled.
  27019. .IP "\fB\-mprefixed\fR" 4
  27020. .IX Item "-mprefixed"
  27021. .PD 0
  27022. .IP "\fB\-mno\-prefixed\fR" 4
  27023. .IX Item "-mno-prefixed"
  27024. .PD
  27025. Generate (do not generate) addressing modes using prefixed load and
  27026. store instructions when the option \fB\-mcpu=future\fR is used.
  27027. .IP "\fB\-mmma\fR" 4
  27028. .IX Item "-mmma"
  27029. .PD 0
  27030. .IP "\fB\-mno\-mma\fR" 4
  27031. .IX Item "-mno-mma"
  27032. .PD
  27033. Generate (do not generate) the \s-1MMA\s0 instructions when the option
  27034. \&\fB\-mcpu=future\fR is used.
  27035. .IP "\fB\-mblock\-ops\-unaligned\-vsx\fR" 4
  27036. .IX Item "-mblock-ops-unaligned-vsx"
  27037. .PD 0
  27038. .IP "\fB\-mno\-block\-ops\-unaligned\-vsx\fR" 4
  27039. .IX Item "-mno-block-ops-unaligned-vsx"
  27040. .PD
  27041. Generate (do not generate) unaligned vsx loads and stores for
  27042. inline expansion of \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
  27043. .PP
  27044. \fI\s-1RX\s0 Options\fR
  27045. .IX Subsection "RX Options"
  27046. .PP
  27047. These command-line options are defined for \s-1RX\s0 targets:
  27048. .IP "\fB\-m64bit\-doubles\fR" 4
  27049. .IX Item "-m64bit-doubles"
  27050. .PD 0
  27051. .IP "\fB\-m32bit\-doubles\fR" 4
  27052. .IX Item "-m32bit-doubles"
  27053. .PD
  27054. Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
  27055. or 32 bits (\fB\-m32bit\-doubles\fR) in size. The default is
  27056. \&\fB\-m32bit\-doubles\fR. \fINote\fR \s-1RX\s0 floating-point hardware only
  27057. works on 32\-bit values, which is why the default is
  27058. \&\fB\-m32bit\-doubles\fR.
  27059. .IP "\fB\-fpu\fR" 4
  27060. .IX Item "-fpu"
  27061. .PD 0
  27062. .IP "\fB\-nofpu\fR" 4
  27063. .IX Item "-nofpu"
  27064. .PD
  27065. Enables (\fB\-fpu\fR) or disables (\fB\-nofpu\fR) the use of \s-1RX\s0
  27066. floating-point hardware. The default is enabled for the \s-1RX600\s0
  27067. series and disabled for the \s-1RX200\s0 series.
  27068. .Sp
  27069. Floating-point instructions are only generated for 32\-bit floating-point
  27070. values, however, so the \s-1FPU\s0 hardware is not used for doubles if the
  27071. \&\fB\-m64bit\-doubles\fR option is used.
  27072. .Sp
  27073. \&\fINote\fR If the \fB\-fpu\fR option is enabled then
  27074. \&\fB\-funsafe\-math\-optimizations\fR is also enabled automatically.
  27075. This is because the \s-1RX FPU\s0 instructions are themselves unsafe.
  27076. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  27077. .IX Item "-mcpu=name"
  27078. Selects the type of \s-1RX CPU\s0 to be targeted. Currently three types are
  27079. supported, the generic \fB\s-1RX600\s0\fR and \fB\s-1RX200\s0\fR series hardware and
  27080. the specific \fB\s-1RX610\s0\fR \s-1CPU.\s0 The default is \fB\s-1RX600\s0\fR.
  27081. .Sp
  27082. The only difference between \fB\s-1RX600\s0\fR and \fB\s-1RX610\s0\fR is that the
  27083. \&\fB\s-1RX610\s0\fR does not support the \f(CW\*(C`MVTIPL\*(C'\fR instruction.
  27084. .Sp
  27085. The \fB\s-1RX200\s0\fR series does not have a hardware floating-point unit
  27086. and so \fB\-nofpu\fR is enabled by default when this type is
  27087. selected.
  27088. .IP "\fB\-mbig\-endian\-data\fR" 4
  27089. .IX Item "-mbig-endian-data"
  27090. .PD 0
  27091. .IP "\fB\-mlittle\-endian\-data\fR" 4
  27092. .IX Item "-mlittle-endian-data"
  27093. .PD
  27094. Store data (but not code) in the big-endian format. The default is
  27095. \&\fB\-mlittle\-endian\-data\fR, i.e. to store data in the little-endian
  27096. format.
  27097. .IP "\fB\-msmall\-data\-limit=\fR\fIN\fR" 4
  27098. .IX Item "-msmall-data-limit=N"
  27099. Specifies the maximum size in bytes of global and static variables
  27100. which can be placed into the small data area. Using the small data
  27101. area can lead to smaller and faster code, but the size of area is
  27102. limited and it is up to the programmer to ensure that the area does
  27103. not overflow. Also when the small data area is used one of the \s-1RX\s0's
  27104. registers (usually \f(CW\*(C`r13\*(C'\fR) is reserved for use pointing to this
  27105. area, so it is no longer available for use by the compiler. This
  27106. could result in slower and/or larger code if variables are pushed onto
  27107. the stack instead of being held in this register.
  27108. .Sp
  27109. Note, common variables (variables that have not been initialized) and
  27110. constants are not placed into the small data area as they are assigned
  27111. to other sections in the output executable.
  27112. .Sp
  27113. The default value is zero, which disables this feature. Note, this
  27114. feature is not enabled by default with higher optimization levels
  27115. (\fB\-O2\fR etc) because of the potentially detrimental effects of
  27116. reserving a register. It is up to the programmer to experiment and
  27117. discover whether this feature is of benefit to their program. See the
  27118. description of the \fB\-mpid\fR option for a description of how the
  27119. actual register to hold the small data area pointer is chosen.
  27120. .IP "\fB\-msim\fR" 4
  27121. .IX Item "-msim"
  27122. .PD 0
  27123. .IP "\fB\-mno\-sim\fR" 4
  27124. .IX Item "-mno-sim"
  27125. .PD
  27126. Use the simulator runtime. The default is to use the libgloss
  27127. board-specific runtime.
  27128. .IP "\fB\-mas100\-syntax\fR" 4
  27129. .IX Item "-mas100-syntax"
  27130. .PD 0
  27131. .IP "\fB\-mno\-as100\-syntax\fR" 4
  27132. .IX Item "-mno-as100-syntax"
  27133. .PD
  27134. When generating assembler output use a syntax that is compatible with
  27135. Renesas's \s-1AS100\s0 assembler. This syntax can also be handled by the \s-1GAS\s0
  27136. assembler, but it has some restrictions so it is not generated by default.
  27137. .IP "\fB\-mmax\-constant\-size=\fR\fIN\fR" 4
  27138. .IX Item "-mmax-constant-size=N"
  27139. Specifies the maximum size, in bytes, of a constant that can be used as
  27140. an operand in a \s-1RX\s0 instruction. Although the \s-1RX\s0 instruction set does
  27141. allow constants of up to 4 bytes in length to be used in instructions,
  27142. a longer value equates to a longer instruction. Thus in some
  27143. circumstances it can be beneficial to restrict the size of constants
  27144. that are used in instructions. Constants that are too big are instead
  27145. placed into a constant pool and referenced via register indirection.
  27146. .Sp
  27147. The value \fIN\fR can be between 0 and 4. A value of 0 (the default)
  27148. or 4 means that constants of any size are allowed.
  27149. .IP "\fB\-mrelax\fR" 4
  27150. .IX Item "-mrelax"
  27151. Enable linker relaxation. Linker relaxation is a process whereby the
  27152. linker attempts to reduce the size of a program by finding shorter
  27153. versions of various instructions. Disabled by default.
  27154. .IP "\fB\-mint\-register=\fR\fIN\fR" 4
  27155. .IX Item "-mint-register=N"
  27156. Specify the number of registers to reserve for fast interrupt handler
  27157. functions. The value \fIN\fR can be between 0 and 4. A value of 1
  27158. means that register \f(CW\*(C`r13\*(C'\fR is reserved for the exclusive use
  27159. of fast interrupt handlers. A value of 2 reserves \f(CW\*(C`r13\*(C'\fR and
  27160. \&\f(CW\*(C`r12\*(C'\fR. A value of 3 reserves \f(CW\*(C`r13\*(C'\fR, \f(CW\*(C`r12\*(C'\fR and
  27161. \&\f(CW\*(C`r11\*(C'\fR, and a value of 4 reserves \f(CW\*(C`r13\*(C'\fR through \f(CW\*(C`r10\*(C'\fR.
  27162. A value of 0, the default, does not reserve any registers.
  27163. .IP "\fB\-msave\-acc\-in\-interrupts\fR" 4
  27164. .IX Item "-msave-acc-in-interrupts"
  27165. Specifies that interrupt handler functions should preserve the
  27166. accumulator register. This is only necessary if normal code might use
  27167. the accumulator register, for example because it performs 64\-bit
  27168. multiplications. The default is to ignore the accumulator as this
  27169. makes the interrupt handlers faster.
  27170. .IP "\fB\-mpid\fR" 4
  27171. .IX Item "-mpid"
  27172. .PD 0
  27173. .IP "\fB\-mno\-pid\fR" 4
  27174. .IX Item "-mno-pid"
  27175. .PD
  27176. Enables the generation of position independent data. When enabled any
  27177. access to constant data is done via an offset from a base address
  27178. held in a register. This allows the location of constant data to be
  27179. determined at run time without requiring the executable to be
  27180. relocated, which is a benefit to embedded applications with tight
  27181. memory constraints. Data that can be modified is not affected by this
  27182. option.
  27183. .Sp
  27184. Note, using this feature reserves a register, usually \f(CW\*(C`r13\*(C'\fR, for
  27185. the constant data base address. This can result in slower and/or
  27186. larger code, especially in complicated functions.
  27187. .Sp
  27188. The actual register chosen to hold the constant data base address
  27189. depends upon whether the \fB\-msmall\-data\-limit\fR and/or the
  27190. \&\fB\-mint\-register\fR command-line options are enabled. Starting
  27191. with register \f(CW\*(C`r13\*(C'\fR and proceeding downwards, registers are
  27192. allocated first to satisfy the requirements of \fB\-mint\-register\fR,
  27193. then \fB\-mpid\fR and finally \fB\-msmall\-data\-limit\fR. Thus it
  27194. is possible for the small data area register to be \f(CW\*(C`r8\*(C'\fR if both
  27195. \&\fB\-mint\-register=4\fR and \fB\-mpid\fR are specified on the
  27196. command line.
  27197. .Sp
  27198. By default this feature is not enabled. The default can be restored
  27199. via the \fB\-mno\-pid\fR command-line option.
  27200. .IP "\fB\-mno\-warn\-multiple\-fast\-interrupts\fR" 4
  27201. .IX Item "-mno-warn-multiple-fast-interrupts"
  27202. .PD 0
  27203. .IP "\fB\-mwarn\-multiple\-fast\-interrupts\fR" 4
  27204. .IX Item "-mwarn-multiple-fast-interrupts"
  27205. .PD
  27206. Prevents \s-1GCC\s0 from issuing a warning message if it finds more than one
  27207. fast interrupt handler when it is compiling a file. The default is to
  27208. issue a warning for each extra fast interrupt handler found, as the \s-1RX\s0
  27209. only supports one such interrupt.
  27210. .IP "\fB\-mallow\-string\-insns\fR" 4
  27211. .IX Item "-mallow-string-insns"
  27212. .PD 0
  27213. .IP "\fB\-mno\-allow\-string\-insns\fR" 4
  27214. .IX Item "-mno-allow-string-insns"
  27215. .PD
  27216. Enables or disables the use of the string manipulation instructions
  27217. \&\f(CW\*(C`SMOVF\*(C'\fR, \f(CW\*(C`SCMPU\*(C'\fR, \f(CW\*(C`SMOVB\*(C'\fR, \f(CW\*(C`SMOVU\*(C'\fR, \f(CW\*(C`SUNTIL\*(C'\fR
  27218. \&\f(CW\*(C`SWHILE\*(C'\fR and also the \f(CW\*(C`RMPA\*(C'\fR instruction. These
  27219. instructions may prefetch data, which is not safe to do if accessing
  27220. an I/O register. (See section 12.2.7 of the \s-1RX62N\s0 Group User's Manual
  27221. for more information).
  27222. .Sp
  27223. The default is to allow these instructions, but it is not possible for
  27224. \&\s-1GCC\s0 to reliably detect all circumstances where a string instruction
  27225. might be used to access an I/O register, so their use cannot be
  27226. disabled automatically. Instead it is reliant upon the programmer to
  27227. use the \fB\-mno\-allow\-string\-insns\fR option if their program
  27228. accesses I/O space.
  27229. .Sp
  27230. When the instructions are enabled \s-1GCC\s0 defines the C preprocessor
  27231. symbol \f(CW\*(C`_\|_RX_ALLOW_STRING_INSNS_\|_\*(C'\fR, otherwise it defines the
  27232. symbol \f(CW\*(C`_\|_RX_DISALLOW_STRING_INSNS_\|_\*(C'\fR.
  27233. .IP "\fB\-mjsr\fR" 4
  27234. .IX Item "-mjsr"
  27235. .PD 0
  27236. .IP "\fB\-mno\-jsr\fR" 4
  27237. .IX Item "-mno-jsr"
  27238. .PD
  27239. Use only (or not only) \f(CW\*(C`JSR\*(C'\fR instructions to access functions.
  27240. This option can be used when code size exceeds the range of \f(CW\*(C`BSR\*(C'\fR
  27241. instructions. Note that \fB\-mno\-jsr\fR does not mean to not use
  27242. \&\f(CW\*(C`JSR\*(C'\fR but instead means that any type of branch may be used.
  27243. .PP
  27244. \&\fINote:\fR The generic \s-1GCC\s0 command-line option \fB\-ffixed\-\fR\fIreg\fR
  27245. has special significance to the \s-1RX\s0 port when used with the
  27246. \&\f(CW\*(C`interrupt\*(C'\fR function attribute. This attribute indicates a
  27247. function intended to process fast interrupts. \s-1GCC\s0 ensures
  27248. that it only uses the registers \f(CW\*(C`r10\*(C'\fR, \f(CW\*(C`r11\*(C'\fR, \f(CW\*(C`r12\*(C'\fR
  27249. and/or \f(CW\*(C`r13\*(C'\fR and only provided that the normal use of the
  27250. corresponding registers have been restricted via the
  27251. \&\fB\-ffixed\-\fR\fIreg\fR or \fB\-mint\-register\fR command-line
  27252. options.
  27253. .PP
  27254. \fIS/390 and zSeries Options\fR
  27255. .IX Subsection "S/390 and zSeries Options"
  27256. .PP
  27257. These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
  27258. .IP "\fB\-mhard\-float\fR" 4
  27259. .IX Item "-mhard-float"
  27260. .PD 0
  27261. .IP "\fB\-msoft\-float\fR" 4
  27262. .IX Item "-msoft-float"
  27263. .PD
  27264. Use (do not use) the hardware floating-point instructions and registers
  27265. for floating-point operations. When \fB\-msoft\-float\fR is specified,
  27266. functions in \fIlibgcc.a\fR are used to perform floating-point
  27267. operations. When \fB\-mhard\-float\fR is specified, the compiler
  27268. generates \s-1IEEE\s0 floating-point instructions. This is the default.
  27269. .IP "\fB\-mhard\-dfp\fR" 4
  27270. .IX Item "-mhard-dfp"
  27271. .PD 0
  27272. .IP "\fB\-mno\-hard\-dfp\fR" 4
  27273. .IX Item "-mno-hard-dfp"
  27274. .PD
  27275. Use (do not use) the hardware decimal-floating-point instructions for
  27276. decimal-floating-point operations. When \fB\-mno\-hard\-dfp\fR is
  27277. specified, functions in \fIlibgcc.a\fR are used to perform
  27278. decimal-floating-point operations. When \fB\-mhard\-dfp\fR is
  27279. specified, the compiler generates decimal-floating-point hardware
  27280. instructions. This is the default for \fB\-march=z9\-ec\fR or higher.
  27281. .IP "\fB\-mlong\-double\-64\fR" 4
  27282. .IX Item "-mlong-double-64"
  27283. .PD 0
  27284. .IP "\fB\-mlong\-double\-128\fR" 4
  27285. .IX Item "-mlong-double-128"
  27286. .PD
  27287. These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
  27288. of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
  27289. type. This is the default.
  27290. .IP "\fB\-mbackchain\fR" 4
  27291. .IX Item "-mbackchain"
  27292. .PD 0
  27293. .IP "\fB\-mno\-backchain\fR" 4
  27294. .IX Item "-mno-backchain"
  27295. .PD
  27296. Store (do not store) the address of the caller's frame as backchain pointer
  27297. into the callee's stack frame.
  27298. A backchain may be needed to allow debugging using tools that do not understand
  27299. \&\s-1DWARF\s0 call frame information.
  27300. When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
  27301. at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
  27302. the backchain is placed into the topmost word of the 96/160 byte register
  27303. save area.
  27304. .Sp
  27305. In general, code compiled with \fB\-mbackchain\fR is call-compatible with
  27306. code compiled with \fB\-mno\-backchain\fR; however, use of the backchain
  27307. for debugging purposes usually requires that the whole binary is built with
  27308. \&\fB\-mbackchain\fR. Note that the combination of \fB\-mbackchain\fR,
  27309. \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported. In order
  27310. to build a linux kernel use \fB\-msoft\-float\fR.
  27311. .Sp
  27312. The default is to not maintain the backchain.
  27313. .IP "\fB\-mpacked\-stack\fR" 4
  27314. .IX Item "-mpacked-stack"
  27315. .PD 0
  27316. .IP "\fB\-mno\-packed\-stack\fR" 4
  27317. .IX Item "-mno-packed-stack"
  27318. .PD
  27319. Use (do not use) the packed stack layout. When \fB\-mno\-packed\-stack\fR is
  27320. specified, the compiler uses the all fields of the 96/160 byte register save
  27321. area only for their default purpose; unused fields still take up stack space.
  27322. When \fB\-mpacked\-stack\fR is specified, register save slots are densely
  27323. packed at the top of the register save area; unused space is reused for other
  27324. purposes, allowing for more efficient use of the available stack space.
  27325. However, when \fB\-mbackchain\fR is also in effect, the topmost word of
  27326. the save area is always used to store the backchain, and the return address
  27327. register is always saved two words below the backchain.
  27328. .Sp
  27329. As long as the stack frame backchain is not used, code generated with
  27330. \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
  27331. \&\fB\-mno\-packed\-stack\fR. Note that some non-FSF releases of \s-1GCC 2.95\s0 for
  27332. S/390 or zSeries generated code that uses the stack frame backchain at run
  27333. time, not just for debugging purposes. Such code is not call-compatible
  27334. with code compiled with \fB\-mpacked\-stack\fR. Also, note that the
  27335. combination of \fB\-mbackchain\fR,
  27336. \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported. In order
  27337. to build a linux kernel use \fB\-msoft\-float\fR.
  27338. .Sp
  27339. The default is to not use the packed stack layout.
  27340. .IP "\fB\-msmall\-exec\fR" 4
  27341. .IX Item "-msmall-exec"
  27342. .PD 0
  27343. .IP "\fB\-mno\-small\-exec\fR" 4
  27344. .IX Item "-mno-small-exec"
  27345. .PD
  27346. Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
  27347. to do subroutine calls.
  27348. This only works reliably if the total executable size does not
  27349. exceed 64k. The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
  27350. which does not have this limitation.
  27351. .IP "\fB\-m64\fR" 4
  27352. .IX Item "-m64"
  27353. .PD 0
  27354. .IP "\fB\-m31\fR" 4
  27355. .IX Item "-m31"
  27356. .PD
  27357. When \fB\-m31\fR is specified, generate code compliant to the
  27358. GNU/Linux for S/390 \s-1ABI.\s0 When \fB\-m64\fR is specified, generate
  27359. code compliant to the GNU/Linux for zSeries \s-1ABI.\s0 This allows \s-1GCC\s0 in
  27360. particular to generate 64\-bit instructions. For the \fBs390\fR
  27361. targets, the default is \fB\-m31\fR, while the \fBs390x\fR
  27362. targets default to \fB\-m64\fR.
  27363. .IP "\fB\-mzarch\fR" 4
  27364. .IX Item "-mzarch"
  27365. .PD 0
  27366. .IP "\fB\-mesa\fR" 4
  27367. .IX Item "-mesa"
  27368. .PD
  27369. When \fB\-mzarch\fR is specified, generate code using the
  27370. instructions available on z/Architecture.
  27371. When \fB\-mesa\fR is specified, generate code using the
  27372. instructions available on \s-1ESA/390.\s0 Note that \fB\-mesa\fR is
  27373. not possible with \fB\-m64\fR.
  27374. When generating code compliant to the GNU/Linux for S/390 \s-1ABI,\s0
  27375. the default is \fB\-mesa\fR. When generating code compliant
  27376. to the GNU/Linux for zSeries \s-1ABI,\s0 the default is \fB\-mzarch\fR.
  27377. .IP "\fB\-mhtm\fR" 4
  27378. .IX Item "-mhtm"
  27379. .PD 0
  27380. .IP "\fB\-mno\-htm\fR" 4
  27381. .IX Item "-mno-htm"
  27382. .PD
  27383. The \fB\-mhtm\fR option enables a set of builtins making use of
  27384. instructions available with the transactional execution facility
  27385. introduced with the \s-1IBM\s0 zEnterprise \s-1EC12\s0 machine generation
  27386. \&\fBS/390 System z Built-in Functions\fR.
  27387. \&\fB\-mhtm\fR is enabled by default when using \fB\-march=zEC12\fR.
  27388. .IP "\fB\-mvx\fR" 4
  27389. .IX Item "-mvx"
  27390. .PD 0
  27391. .IP "\fB\-mno\-vx\fR" 4
  27392. .IX Item "-mno-vx"
  27393. .PD
  27394. When \fB\-mvx\fR is specified, generate code using the instructions
  27395. available with the vector extension facility introduced with the \s-1IBM\s0
  27396. z13 machine generation.
  27397. This option changes the \s-1ABI\s0 for some vector type values with regard to
  27398. alignment and calling conventions. In case vector type values are
  27399. being used in an ABI-relevant context a \s-1GAS\s0 \fB.gnu_attribute\fR
  27400. command will be added to mark the resulting binary with the \s-1ABI\s0 used.
  27401. \&\fB\-mvx\fR is enabled by default when using \fB\-march=z13\fR.
  27402. .IP "\fB\-mzvector\fR" 4
  27403. .IX Item "-mzvector"
  27404. .PD 0
  27405. .IP "\fB\-mno\-zvector\fR" 4
  27406. .IX Item "-mno-zvector"
  27407. .PD
  27408. The \fB\-mzvector\fR option enables vector language extensions and
  27409. builtins using instructions available with the vector extension
  27410. facility introduced with the \s-1IBM\s0 z13 machine generation.
  27411. This option adds support for \fBvector\fR to be used as a keyword to
  27412. define vector type variables and arguments. \fBvector\fR is only
  27413. available when \s-1GNU\s0 extensions are enabled. It will not be expanded
  27414. when requesting strict standard compliance e.g. with \fB\-std=c99\fR.
  27415. In addition to the \s-1GCC\s0 low-level builtins \fB\-mzvector\fR enables
  27416. a set of builtins added for compatibility with AltiVec-style
  27417. implementations like Power and Cell. In order to make use of these
  27418. builtins the header file \fIvecintrin.h\fR needs to be included.
  27419. \&\fB\-mzvector\fR is disabled by default.
  27420. .IP "\fB\-mmvcle\fR" 4
  27421. .IX Item "-mmvcle"
  27422. .PD 0
  27423. .IP "\fB\-mno\-mvcle\fR" 4
  27424. .IX Item "-mno-mvcle"
  27425. .PD
  27426. Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
  27427. to perform block moves. When \fB\-mno\-mvcle\fR is specified,
  27428. use a \f(CW\*(C`mvc\*(C'\fR loop instead. This is the default unless optimizing for
  27429. size.
  27430. .IP "\fB\-mdebug\fR" 4
  27431. .IX Item "-mdebug"
  27432. .PD 0
  27433. .IP "\fB\-mno\-debug\fR" 4
  27434. .IX Item "-mno-debug"
  27435. .PD
  27436. Print (or do not print) additional debug information when compiling.
  27437. The default is to not print debug information.
  27438. .IP "\fB\-march=\fR\fIcpu-type\fR" 4
  27439. .IX Item "-march=cpu-type"
  27440. Generate code that runs on \fIcpu-type\fR, which is the name of a
  27441. system representing a certain processor type. Possible values for
  27442. \&\fIcpu-type\fR are \fBz900\fR/\fBarch5\fR, \fBz990\fR/\fBarch6\fR,
  27443. \&\fBz9\-109\fR, \fBz9\-ec\fR/\fBarch7\fR, \fBz10\fR/\fBarch8\fR,
  27444. \&\fBz196\fR/\fBarch9\fR, \fBzEC12\fR, \fBz13\fR/\fBarch11\fR,
  27445. \&\fBz14\fR/\fBarch12\fR, \fBz15\fR/\fBarch13\fR, and \fBnative\fR.
  27446. .Sp
  27447. The default is \fB\-march=z900\fR.
  27448. .Sp
  27449. Specifying \fBnative\fR as cpu type can be used to select the best
  27450. architecture option for the host processor.
  27451. \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize the
  27452. processor.
  27453. .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
  27454. .IX Item "-mtune=cpu-type"
  27455. Tune to \fIcpu-type\fR everything applicable about the generated code,
  27456. except for the \s-1ABI\s0 and the set of available instructions.
  27457. The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
  27458. The default is the value used for \fB\-march\fR.
  27459. .IP "\fB\-mtpf\-trace\fR" 4
  27460. .IX Item "-mtpf-trace"
  27461. .PD 0
  27462. .IP "\fB\-mno\-tpf\-trace\fR" 4
  27463. .IX Item "-mno-tpf-trace"
  27464. .PD
  27465. Generate code that adds (does not add) in \s-1TPF OS\s0 specific branches to trace
  27466. routines in the operating system. This option is off by default, even
  27467. when compiling for the \s-1TPF OS.\s0
  27468. .IP "\fB\-mtpf\-trace\-skip\fR" 4
  27469. .IX Item "-mtpf-trace-skip"
  27470. .PD 0
  27471. .IP "\fB\-mno\-tpf\-trace\-skip\fR" 4
  27472. .IX Item "-mno-tpf-trace-skip"
  27473. .PD
  27474. Generate code that changes (does not change) the default branch
  27475. targets enabled by \fB\-mtpf\-trace\fR to point to specialized trace
  27476. routines providing the ability of selectively skipping function trace
  27477. entries for the \s-1TPF OS.\s0 This option is off by default, even when
  27478. compiling for the \s-1TPF OS\s0 and specifying \fB\-mtpf\-trace\fR.
  27479. .IP "\fB\-mfused\-madd\fR" 4
  27480. .IX Item "-mfused-madd"
  27481. .PD 0
  27482. .IP "\fB\-mno\-fused\-madd\fR" 4
  27483. .IX Item "-mno-fused-madd"
  27484. .PD
  27485. Generate code that uses (does not use) the floating-point multiply and
  27486. accumulate instructions. These instructions are generated by default if
  27487. hardware floating point is used.
  27488. .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
  27489. .IX Item "-mwarn-framesize=framesize"
  27490. Emit a warning if the current function exceeds the given frame size. Because
  27491. this is a compile-time check it doesn't need to be a real problem when the program
  27492. runs. It is intended to identify functions that most probably cause
  27493. a stack overflow. It is useful to be used in an environment with limited stack
  27494. size e.g. the linux kernel.
  27495. .IP "\fB\-mwarn\-dynamicstack\fR" 4
  27496. .IX Item "-mwarn-dynamicstack"
  27497. Emit a warning if the function calls \f(CW\*(C`alloca\*(C'\fR or uses dynamically-sized
  27498. arrays. This is generally a bad idea with a limited stack size.
  27499. .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
  27500. .IX Item "-mstack-guard=stack-guard"
  27501. .PD 0
  27502. .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
  27503. .IX Item "-mstack-size=stack-size"
  27504. .PD
  27505. If these options are provided the S/390 back end emits additional instructions in
  27506. the function prologue that trigger a trap if the stack size is \fIstack-guard\fR
  27507. bytes above the \fIstack-size\fR (remember that the stack on S/390 grows downward).
  27508. If the \fIstack-guard\fR option is omitted the smallest power of 2 larger than
  27509. the frame size of the compiled function is chosen.
  27510. These options are intended to be used to help debugging stack overflow problems.
  27511. The additionally emitted code causes only little overhead and hence can also be
  27512. used in production-like systems without greater performance degradation. The given
  27513. values have to be exact powers of 2 and \fIstack-size\fR has to be greater than
  27514. \&\fIstack-guard\fR without exceeding 64k.
  27515. In order to be efficient the extra code makes the assumption that the stack starts
  27516. at an address aligned to the value given by \fIstack-size\fR.
  27517. The \fIstack-guard\fR option can only be used in conjunction with \fIstack-size\fR.
  27518. .IP "\fB\-mhotpatch=\fR\fIpre-halfwords\fR\fB,\fR\fIpost-halfwords\fR" 4
  27519. .IX Item "-mhotpatch=pre-halfwords,post-halfwords"
  27520. If the hotpatch option is enabled, a \*(L"hot-patching\*(R" function
  27521. prologue is generated for all functions in the compilation unit.
  27522. The funtion label is prepended with the given number of two-byte
  27523. \&\s-1NOP\s0 instructions (\fIpre-halfwords\fR, maximum 1000000). After
  27524. the label, 2 * \fIpost-halfwords\fR bytes are appended, using the
  27525. largest \s-1NOP\s0 like instructions the architecture allows (maximum
  27526. 1000000).
  27527. .Sp
  27528. If both arguments are zero, hotpatching is disabled.
  27529. .Sp
  27530. This option can be overridden for individual functions with the
  27531. \&\f(CW\*(C`hotpatch\*(C'\fR attribute.
  27532. .PP
  27533. \fIScore Options\fR
  27534. .IX Subsection "Score Options"
  27535. .PP
  27536. These options are defined for Score implementations:
  27537. .IP "\fB\-meb\fR" 4
  27538. .IX Item "-meb"
  27539. Compile code for big-endian mode. This is the default.
  27540. .IP "\fB\-mel\fR" 4
  27541. .IX Item "-mel"
  27542. Compile code for little-endian mode.
  27543. .IP "\fB\-mnhwloop\fR" 4
  27544. .IX Item "-mnhwloop"
  27545. Disable generation of \f(CW\*(C`bcnz\*(C'\fR instructions.
  27546. .IP "\fB\-muls\fR" 4
  27547. .IX Item "-muls"
  27548. Enable generation of unaligned load and store instructions.
  27549. .IP "\fB\-mmac\fR" 4
  27550. .IX Item "-mmac"
  27551. Enable the use of multiply-accumulate instructions. Disabled by default.
  27552. .IP "\fB\-mscore5\fR" 4
  27553. .IX Item "-mscore5"
  27554. Specify the \s-1SCORE5\s0 as the target architecture.
  27555. .IP "\fB\-mscore5u\fR" 4
  27556. .IX Item "-mscore5u"
  27557. Specify the \s-1SCORE5U\s0 of the target architecture.
  27558. .IP "\fB\-mscore7\fR" 4
  27559. .IX Item "-mscore7"
  27560. Specify the \s-1SCORE7\s0 as the target architecture. This is the default.
  27561. .IP "\fB\-mscore7d\fR" 4
  27562. .IX Item "-mscore7d"
  27563. Specify the \s-1SCORE7D\s0 as the target architecture.
  27564. .PP
  27565. \fI\s-1SH\s0 Options\fR
  27566. .IX Subsection "SH Options"
  27567. .PP
  27568. These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
  27569. .IP "\fB\-m1\fR" 4
  27570. .IX Item "-m1"
  27571. Generate code for the \s-1SH1.\s0
  27572. .IP "\fB\-m2\fR" 4
  27573. .IX Item "-m2"
  27574. Generate code for the \s-1SH2.\s0
  27575. .IP "\fB\-m2e\fR" 4
  27576. .IX Item "-m2e"
  27577. Generate code for the SH2e.
  27578. .IP "\fB\-m2a\-nofpu\fR" 4
  27579. .IX Item "-m2a-nofpu"
  27580. Generate code for the SH2a without \s-1FPU,\s0 or for a SH2a\-FPU in such a way
  27581. that the floating-point unit is not used.
  27582. .IP "\fB\-m2a\-single\-only\fR" 4
  27583. .IX Item "-m2a-single-only"
  27584. Generate code for the SH2a\-FPU, in such a way that no double-precision
  27585. floating-point operations are used.
  27586. .IP "\fB\-m2a\-single\fR" 4
  27587. .IX Item "-m2a-single"
  27588. Generate code for the SH2a\-FPU assuming the floating-point unit is in
  27589. single-precision mode by default.
  27590. .IP "\fB\-m2a\fR" 4
  27591. .IX Item "-m2a"
  27592. Generate code for the SH2a\-FPU assuming the floating-point unit is in
  27593. double-precision mode by default.
  27594. .IP "\fB\-m3\fR" 4
  27595. .IX Item "-m3"
  27596. Generate code for the \s-1SH3.\s0
  27597. .IP "\fB\-m3e\fR" 4
  27598. .IX Item "-m3e"
  27599. Generate code for the SH3e.
  27600. .IP "\fB\-m4\-nofpu\fR" 4
  27601. .IX Item "-m4-nofpu"
  27602. Generate code for the \s-1SH4\s0 without a floating-point unit.
  27603. .IP "\fB\-m4\-single\-only\fR" 4
  27604. .IX Item "-m4-single-only"
  27605. Generate code for the \s-1SH4\s0 with a floating-point unit that only
  27606. supports single-precision arithmetic.
  27607. .IP "\fB\-m4\-single\fR" 4
  27608. .IX Item "-m4-single"
  27609. Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
  27610. single-precision mode by default.
  27611. .IP "\fB\-m4\fR" 4
  27612. .IX Item "-m4"
  27613. Generate code for the \s-1SH4.\s0
  27614. .IP "\fB\-m4\-100\fR" 4
  27615. .IX Item "-m4-100"
  27616. Generate code for \s-1SH4\-100.\s0
  27617. .IP "\fB\-m4\-100\-nofpu\fR" 4
  27618. .IX Item "-m4-100-nofpu"
  27619. Generate code for \s-1SH4\-100\s0 in such a way that the
  27620. floating-point unit is not used.
  27621. .IP "\fB\-m4\-100\-single\fR" 4
  27622. .IX Item "-m4-100-single"
  27623. Generate code for \s-1SH4\-100\s0 assuming the floating-point unit is in
  27624. single-precision mode by default.
  27625. .IP "\fB\-m4\-100\-single\-only\fR" 4
  27626. .IX Item "-m4-100-single-only"
  27627. Generate code for \s-1SH4\-100\s0 in such a way that no double-precision
  27628. floating-point operations are used.
  27629. .IP "\fB\-m4\-200\fR" 4
  27630. .IX Item "-m4-200"
  27631. Generate code for \s-1SH4\-200.\s0
  27632. .IP "\fB\-m4\-200\-nofpu\fR" 4
  27633. .IX Item "-m4-200-nofpu"
  27634. Generate code for \s-1SH4\-200\s0 without in such a way that the
  27635. floating-point unit is not used.
  27636. .IP "\fB\-m4\-200\-single\fR" 4
  27637. .IX Item "-m4-200-single"
  27638. Generate code for \s-1SH4\-200\s0 assuming the floating-point unit is in
  27639. single-precision mode by default.
  27640. .IP "\fB\-m4\-200\-single\-only\fR" 4
  27641. .IX Item "-m4-200-single-only"
  27642. Generate code for \s-1SH4\-200\s0 in such a way that no double-precision
  27643. floating-point operations are used.
  27644. .IP "\fB\-m4\-300\fR" 4
  27645. .IX Item "-m4-300"
  27646. Generate code for \s-1SH4\-300.\s0
  27647. .IP "\fB\-m4\-300\-nofpu\fR" 4
  27648. .IX Item "-m4-300-nofpu"
  27649. Generate code for \s-1SH4\-300\s0 without in such a way that the
  27650. floating-point unit is not used.
  27651. .IP "\fB\-m4\-300\-single\fR" 4
  27652. .IX Item "-m4-300-single"
  27653. Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
  27654. floating-point operations are used.
  27655. .IP "\fB\-m4\-300\-single\-only\fR" 4
  27656. .IX Item "-m4-300-single-only"
  27657. Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
  27658. floating-point operations are used.
  27659. .IP "\fB\-m4\-340\fR" 4
  27660. .IX Item "-m4-340"
  27661. Generate code for \s-1SH4\-340\s0 (no \s-1MMU,\s0 no \s-1FPU\s0).
  27662. .IP "\fB\-m4\-500\fR" 4
  27663. .IX Item "-m4-500"
  27664. Generate code for \s-1SH4\-500\s0 (no \s-1FPU\s0). Passes \fB\-isa=sh4\-nofpu\fR to the
  27665. assembler.
  27666. .IP "\fB\-m4a\-nofpu\fR" 4
  27667. .IX Item "-m4a-nofpu"
  27668. Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
  27669. floating-point unit is not used.
  27670. .IP "\fB\-m4a\-single\-only\fR" 4
  27671. .IX Item "-m4a-single-only"
  27672. Generate code for the SH4a, in such a way that no double-precision
  27673. floating-point operations are used.
  27674. .IP "\fB\-m4a\-single\fR" 4
  27675. .IX Item "-m4a-single"
  27676. Generate code for the SH4a assuming the floating-point unit is in
  27677. single-precision mode by default.
  27678. .IP "\fB\-m4a\fR" 4
  27679. .IX Item "-m4a"
  27680. Generate code for the SH4a.
  27681. .IP "\fB\-m4al\fR" 4
  27682. .IX Item "-m4al"
  27683. Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
  27684. \&\fB\-dsp\fR to the assembler. \s-1GCC\s0 doesn't generate any \s-1DSP\s0
  27685. instructions at the moment.
  27686. .IP "\fB\-mb\fR" 4
  27687. .IX Item "-mb"
  27688. Compile code for the processor in big-endian mode.
  27689. .IP "\fB\-ml\fR" 4
  27690. .IX Item "-ml"
  27691. Compile code for the processor in little-endian mode.
  27692. .IP "\fB\-mdalign\fR" 4
  27693. .IX Item "-mdalign"
  27694. Align doubles at 64\-bit boundaries. Note that this changes the calling
  27695. conventions, and thus some functions from the standard C library do
  27696. not work unless you recompile it first with \fB\-mdalign\fR.
  27697. .IP "\fB\-mrelax\fR" 4
  27698. .IX Item "-mrelax"
  27699. Shorten some address references at link time, when possible; uses the
  27700. linker option \fB\-relax\fR.
  27701. .IP "\fB\-mbigtable\fR" 4
  27702. .IX Item "-mbigtable"
  27703. Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables. The default is to use
  27704. 16\-bit offsets.
  27705. .IP "\fB\-mbitops\fR" 4
  27706. .IX Item "-mbitops"
  27707. Enable the use of bit manipulation instructions on \s-1SH2A.\s0
  27708. .IP "\fB\-mfmovd\fR" 4
  27709. .IX Item "-mfmovd"
  27710. Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR. Check \fB\-mdalign\fR for
  27711. alignment constraints.
  27712. .IP "\fB\-mrenesas\fR" 4
  27713. .IX Item "-mrenesas"
  27714. Comply with the calling conventions defined by Renesas.
  27715. .IP "\fB\-mno\-renesas\fR" 4
  27716. .IX Item "-mno-renesas"
  27717. Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
  27718. conventions were available. This option is the default for all
  27719. targets of the \s-1SH\s0 toolchain.
  27720. .IP "\fB\-mnomacsave\fR" 4
  27721. .IX Item "-mnomacsave"
  27722. Mark the \f(CW\*(C`MAC\*(C'\fR register as call-clobbered, even if
  27723. \&\fB\-mrenesas\fR is given.
  27724. .IP "\fB\-mieee\fR" 4
  27725. .IX Item "-mieee"
  27726. .PD 0
  27727. .IP "\fB\-mno\-ieee\fR" 4
  27728. .IX Item "-mno-ieee"
  27729. .PD
  27730. Control the \s-1IEEE\s0 compliance of floating-point comparisons, which affects the
  27731. handling of cases where the result of a comparison is unordered. By default
  27732. \&\fB\-mieee\fR is implicitly enabled. If \fB\-ffinite\-math\-only\fR is
  27733. enabled \fB\-mno\-ieee\fR is implicitly set, which results in faster
  27734. floating-point greater-equal and less-equal comparisons. The implicit settings
  27735. can be overridden by specifying either \fB\-mieee\fR or \fB\-mno\-ieee\fR.
  27736. .IP "\fB\-minline\-ic_invalidate\fR" 4
  27737. .IX Item "-minline-ic_invalidate"
  27738. Inline code to invalidate instruction cache entries after setting up
  27739. nested function trampolines.
  27740. This option has no effect if \fB\-musermode\fR is in effect and the selected
  27741. code generation option (e.g. \fB\-m4\fR) does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
  27742. instruction.
  27743. If the selected code generation option does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
  27744. instruction, and \fB\-musermode\fR is not in effect, the inlined code
  27745. manipulates the instruction cache address array directly with an associative
  27746. write. This not only requires privileged mode at run time, but it also
  27747. fails if the cache line had been mapped via the \s-1TLB\s0 and has become unmapped.
  27748. .IP "\fB\-misize\fR" 4
  27749. .IX Item "-misize"
  27750. Dump instruction size and location in the assembly code.
  27751. .IP "\fB\-mpadstruct\fR" 4
  27752. .IX Item "-mpadstruct"
  27753. This option is deprecated. It pads structures to multiple of 4 bytes,
  27754. which is incompatible with the \s-1SH ABI.\s0
  27755. .IP "\fB\-matomic\-model=\fR\fImodel\fR" 4
  27756. .IX Item "-matomic-model=model"
  27757. Sets the model of atomic operations and additional parameters as a comma
  27758. separated list. For details on the atomic built-in functions see
  27759. \&\fB_\|_atomic Builtins\fR. The following models and parameters are supported:
  27760. .RS 4
  27761. .IP "\fBnone\fR" 4
  27762. .IX Item "none"
  27763. Disable compiler generated atomic sequences and emit library calls for atomic
  27764. operations. This is the default if the target is not \f(CW\*(C`sh*\-*\-linux*\*(C'\fR.
  27765. .IP "\fBsoft-gusa\fR" 4
  27766. .IX Item "soft-gusa"
  27767. Generate GNU/Linux compatible gUSA software atomic sequences for the atomic
  27768. built-in functions. The generated atomic sequences require additional support
  27769. from the interrupt/exception handling code of the system and are only suitable
  27770. for SH3* and SH4* single-core systems. This option is enabled by default when
  27771. the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH3* or SH4*. When the target is \s-1SH4A,\s0
  27772. this option also partially utilizes the hardware atomic instructions
  27773. \&\f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR to create more efficient code, unless
  27774. \&\fBstrict\fR is specified.
  27775. .IP "\fBsoft-tcb\fR" 4
  27776. .IX Item "soft-tcb"
  27777. Generate software atomic sequences that use a variable in the thread control
  27778. block. This is a variation of the gUSA sequences which can also be used on
  27779. SH1* and SH2* targets. The generated atomic sequences require additional
  27780. support from the interrupt/exception handling code of the system and are only
  27781. suitable for single-core systems. When using this model, the \fBgbr\-offset=\fR
  27782. parameter has to be specified as well.
  27783. .IP "\fBsoft-imask\fR" 4
  27784. .IX Item "soft-imask"
  27785. Generate software atomic sequences that temporarily disable interrupts by
  27786. setting \f(CW\*(C`SR.IMASK = 1111\*(C'\fR. This model works only when the program runs
  27787. in privileged mode and is only suitable for single-core systems. Additional
  27788. support from the interrupt/exception handling code of the system is not
  27789. required. This model is enabled by default when the target is
  27790. \&\f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH1* or SH2*.
  27791. .IP "\fBhard-llcs\fR" 4
  27792. .IX Item "hard-llcs"
  27793. Generate hardware atomic sequences using the \f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR
  27794. instructions only. This is only available on \s-1SH4A\s0 and is suitable for
  27795. multi-core systems. Since the hardware instructions support only 32 bit atomic
  27796. variables access to 8 or 16 bit variables is emulated with 32 bit accesses.
  27797. Code compiled with this option is also compatible with other software
  27798. atomic model interrupt/exception handling systems if executed on an \s-1SH4A\s0
  27799. system. Additional support from the interrupt/exception handling code of the
  27800. system is not required for this model.
  27801. .IP "\fBgbr\-offset=\fR" 4
  27802. .IX Item "gbr-offset="
  27803. This parameter specifies the offset in bytes of the variable in the thread
  27804. control block structure that should be used by the generated atomic sequences
  27805. when the \fBsoft-tcb\fR model has been selected. For other models this
  27806. parameter is ignored. The specified value must be an integer multiple of four
  27807. and in the range 0\-1020.
  27808. .IP "\fBstrict\fR" 4
  27809. .IX Item "strict"
  27810. This parameter prevents mixed usage of multiple atomic models, even if they
  27811. are compatible, and makes the compiler generate atomic sequences of the
  27812. specified model only.
  27813. .RE
  27814. .RS 4
  27815. .RE
  27816. .IP "\fB\-mtas\fR" 4
  27817. .IX Item "-mtas"
  27818. Generate the \f(CW\*(C`tas.b\*(C'\fR opcode for \f(CW\*(C`_\|_atomic_test_and_set\*(C'\fR.
  27819. Notice that depending on the particular hardware and software configuration
  27820. this can degrade overall performance due to the operand cache line flushes
  27821. that are implied by the \f(CW\*(C`tas.b\*(C'\fR instruction. On multi-core \s-1SH4A\s0
  27822. processors the \f(CW\*(C`tas.b\*(C'\fR instruction must be used with caution since it
  27823. can result in data corruption for certain cache configurations.
  27824. .IP "\fB\-mprefergot\fR" 4
  27825. .IX Item "-mprefergot"
  27826. When generating position-independent code, emit function calls using
  27827. the Global Offset Table instead of the Procedure Linkage Table.
  27828. .IP "\fB\-musermode\fR" 4
  27829. .IX Item "-musermode"
  27830. .PD 0
  27831. .IP "\fB\-mno\-usermode\fR" 4
  27832. .IX Item "-mno-usermode"
  27833. .PD
  27834. Don't allow (allow) the compiler generating privileged mode code. Specifying
  27835. \&\fB\-musermode\fR also implies \fB\-mno\-inline\-ic_invalidate\fR if the
  27836. inlined code would not work in user mode. \fB\-musermode\fR is the default
  27837. when the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR. If the target is SH1* or SH2*
  27838. \&\fB\-musermode\fR has no effect, since there is no user mode.
  27839. .IP "\fB\-multcost=\fR\fInumber\fR" 4
  27840. .IX Item "-multcost=number"
  27841. Set the cost to assume for a multiply insn.
  27842. .IP "\fB\-mdiv=\fR\fIstrategy\fR" 4
  27843. .IX Item "-mdiv=strategy"
  27844. Set the division strategy to be used for integer division operations.
  27845. \&\fIstrategy\fR can be one of:
  27846. .RS 4
  27847. .IP "\fBcall\-div1\fR" 4
  27848. .IX Item "call-div1"
  27849. Calls a library function that uses the single-step division instruction
  27850. \&\f(CW\*(C`div1\*(C'\fR to perform the operation. Division by zero calculates an
  27851. unspecified result and does not trap. This is the default except for \s-1SH4,
  27852. SH2A\s0 and SHcompact.
  27853. .IP "\fBcall-fp\fR" 4
  27854. .IX Item "call-fp"
  27855. Calls a library function that performs the operation in double precision
  27856. floating point. Division by zero causes a floating-point exception. This is
  27857. the default for SHcompact with \s-1FPU.\s0 Specifying this for targets that do not
  27858. have a double precision \s-1FPU\s0 defaults to \f(CW\*(C`call\-div1\*(C'\fR.
  27859. .IP "\fBcall-table\fR" 4
  27860. .IX Item "call-table"
  27861. Calls a library function that uses a lookup table for small divisors and
  27862. the \f(CW\*(C`div1\*(C'\fR instruction with case distinction for larger divisors. Division
  27863. by zero calculates an unspecified result and does not trap. This is the default
  27864. for \s-1SH4.\s0 Specifying this for targets that do not have dynamic shift
  27865. instructions defaults to \f(CW\*(C`call\-div1\*(C'\fR.
  27866. .RE
  27867. .RS 4
  27868. .Sp
  27869. When a division strategy has not been specified the default strategy is
  27870. selected based on the current target. For \s-1SH2A\s0 the default strategy is to
  27871. use the \f(CW\*(C`divs\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions instead of library function
  27872. calls.
  27873. .RE
  27874. .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
  27875. .IX Item "-maccumulate-outgoing-args"
  27876. Reserve space once for outgoing arguments in the function prologue rather
  27877. than around each call. Generally beneficial for performance and size. Also
  27878. needed for unwinding to avoid changing the stack frame around conditional code.
  27879. .IP "\fB\-mdivsi3_libfunc=\fR\fIname\fR" 4
  27880. .IX Item "-mdivsi3_libfunc=name"
  27881. Set the name of the library function used for 32\-bit signed division to
  27882. \&\fIname\fR.
  27883. This only affects the name used in the \fBcall\fR division strategies, and
  27884. the compiler still expects the same sets of input/output/clobbered registers as
  27885. if this option were not present.
  27886. .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
  27887. .IX Item "-mfixed-range=register-range"
  27888. Generate code treating the given register range as fixed registers.
  27889. A fixed register is one that the register allocator cannot use. This is
  27890. useful when compiling kernel code. A register range is specified as
  27891. two registers separated by a dash. Multiple register ranges can be
  27892. specified separated by a comma.
  27893. .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
  27894. .IX Item "-mbranch-cost=num"
  27895. Assume \fInum\fR to be the cost for a branch instruction. Higher numbers
  27896. make the compiler try to generate more branch-free code if possible.
  27897. If not specified the value is selected depending on the processor type that
  27898. is being compiled for.
  27899. .IP "\fB\-mzdcbranch\fR" 4
  27900. .IX Item "-mzdcbranch"
  27901. .PD 0
  27902. .IP "\fB\-mno\-zdcbranch\fR" 4
  27903. .IX Item "-mno-zdcbranch"
  27904. .PD
  27905. Assume (do not assume) that zero displacement conditional branch instructions
  27906. \&\f(CW\*(C`bt\*(C'\fR and \f(CW\*(C`bf\*(C'\fR are fast. If \fB\-mzdcbranch\fR is specified, the
  27907. compiler prefers zero displacement branch code sequences. This is
  27908. enabled by default when generating code for \s-1SH4\s0 and \s-1SH4A.\s0 It can be explicitly
  27909. disabled by specifying \fB\-mno\-zdcbranch\fR.
  27910. .IP "\fB\-mcbranch\-force\-delay\-slot\fR" 4
  27911. .IX Item "-mcbranch-force-delay-slot"
  27912. Force the usage of delay slots for conditional branches, which stuffs the delay
  27913. slot with a \f(CW\*(C`nop\*(C'\fR if a suitable instruction cannot be found. By default
  27914. this option is disabled. It can be enabled to work around hardware bugs as
  27915. found in the original \s-1SH7055.\s0
  27916. .IP "\fB\-mfused\-madd\fR" 4
  27917. .IX Item "-mfused-madd"
  27918. .PD 0
  27919. .IP "\fB\-mno\-fused\-madd\fR" 4
  27920. .IX Item "-mno-fused-madd"
  27921. .PD
  27922. Generate code that uses (does not use) the floating-point multiply and
  27923. accumulate instructions. These instructions are generated by default
  27924. if hardware floating point is used. The machine-dependent
  27925. \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
  27926. \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
  27927. mapped to \fB\-ffp\-contract=off\fR.
  27928. .IP "\fB\-mfsca\fR" 4
  27929. .IX Item "-mfsca"
  27930. .PD 0
  27931. .IP "\fB\-mno\-fsca\fR" 4
  27932. .IX Item "-mno-fsca"
  27933. .PD
  27934. Allow or disallow the compiler to emit the \f(CW\*(C`fsca\*(C'\fR instruction for sine
  27935. and cosine approximations. The option \fB\-mfsca\fR must be used in
  27936. combination with \fB\-funsafe\-math\-optimizations\fR. It is enabled by default
  27937. when generating code for \s-1SH4A.\s0 Using \fB\-mno\-fsca\fR disables sine and cosine
  27938. approximations even if \fB\-funsafe\-math\-optimizations\fR is in effect.
  27939. .IP "\fB\-mfsrra\fR" 4
  27940. .IX Item "-mfsrra"
  27941. .PD 0
  27942. .IP "\fB\-mno\-fsrra\fR" 4
  27943. .IX Item "-mno-fsrra"
  27944. .PD
  27945. Allow or disallow the compiler to emit the \f(CW\*(C`fsrra\*(C'\fR instruction for
  27946. reciprocal square root approximations. The option \fB\-mfsrra\fR must be used
  27947. in combination with \fB\-funsafe\-math\-optimizations\fR and
  27948. \&\fB\-ffinite\-math\-only\fR. It is enabled by default when generating code for
  27949. \&\s-1SH4A.\s0 Using \fB\-mno\-fsrra\fR disables reciprocal square root approximations
  27950. even if \fB\-funsafe\-math\-optimizations\fR and \fB\-ffinite\-math\-only\fR are
  27951. in effect.
  27952. .IP "\fB\-mpretend\-cmove\fR" 4
  27953. .IX Item "-mpretend-cmove"
  27954. Prefer zero-displacement conditional branches for conditional move instruction
  27955. patterns. This can result in faster code on the \s-1SH4\s0 processor.
  27956. .IP "\fB\-mfdpic\fR" 4
  27957. .IX Item "-mfdpic"
  27958. Generate code using the \s-1FDPIC ABI.\s0
  27959. .PP
  27960. \fISolaris 2 Options\fR
  27961. .IX Subsection "Solaris 2 Options"
  27962. .PP
  27963. These \fB\-m\fR options are supported on Solaris 2:
  27964. .IP "\fB\-mclear\-hwcap\fR" 4
  27965. .IX Item "-mclear-hwcap"
  27966. \&\fB\-mclear\-hwcap\fR tells the compiler to remove the hardware
  27967. capabilities generated by the Solaris assembler. This is only necessary
  27968. when object files use \s-1ISA\s0 extensions not supported by the current
  27969. machine, but check at runtime whether or not to use them.
  27970. .IP "\fB\-mimpure\-text\fR" 4
  27971. .IX Item "-mimpure-text"
  27972. \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
  27973. the compiler to not pass \fB\-z text\fR to the linker when linking a
  27974. shared object. Using this option, you can link position-dependent
  27975. code into a shared object.
  27976. .Sp
  27977. \&\fB\-mimpure\-text\fR suppresses the \*(L"relocations remain against
  27978. allocatable but non-writable sections\*(R" linker error message.
  27979. However, the necessary relocations trigger copy-on-write, and the
  27980. shared object is not actually shared across processes. Instead of
  27981. using \fB\-mimpure\-text\fR, you should compile all source code with
  27982. \&\fB\-fpic\fR or \fB\-fPIC\fR.
  27983. .PP
  27984. These switches are supported in addition to the above on Solaris 2:
  27985. .IP "\fB\-pthreads\fR" 4
  27986. .IX Item "-pthreads"
  27987. This is a synonym for \fB\-pthread\fR.
  27988. .PP
  27989. \fI\s-1SPARC\s0 Options\fR
  27990. .IX Subsection "SPARC Options"
  27991. .PP
  27992. These \fB\-m\fR options are supported on the \s-1SPARC:\s0
  27993. .IP "\fB\-mno\-app\-regs\fR" 4
  27994. .IX Item "-mno-app-regs"
  27995. .PD 0
  27996. .IP "\fB\-mapp\-regs\fR" 4
  27997. .IX Item "-mapp-regs"
  27998. .PD
  27999. Specify \fB\-mapp\-regs\fR to generate output using the global registers
  28000. 2 through 4, which the \s-1SPARC SVR4 ABI\s0 reserves for applications. Like the
  28001. global register 1, each global register 2 through 4 is then treated as an
  28002. allocable register that is clobbered by function calls. This is the default.
  28003. .Sp
  28004. To be fully \s-1SVR4\s0 ABI-compliant at the cost of some performance loss,
  28005. specify \fB\-mno\-app\-regs\fR. You should compile libraries and system
  28006. software with this option.
  28007. .IP "\fB\-mflat\fR" 4
  28008. .IX Item "-mflat"
  28009. .PD 0
  28010. .IP "\fB\-mno\-flat\fR" 4
  28011. .IX Item "-mno-flat"
  28012. .PD
  28013. With \fB\-mflat\fR, the compiler does not generate save/restore instructions
  28014. and uses a \*(L"flat\*(R" or single register window model. This model is compatible
  28015. with the regular register window model. The local registers and the input
  28016. registers (0\-\-5) are still treated as \*(L"call-saved\*(R" registers and are
  28017. saved on the stack as needed.
  28018. .Sp
  28019. With \fB\-mno\-flat\fR (the default), the compiler generates save/restore
  28020. instructions (except for leaf functions). This is the normal operating mode.
  28021. .IP "\fB\-mfpu\fR" 4
  28022. .IX Item "-mfpu"
  28023. .PD 0
  28024. .IP "\fB\-mhard\-float\fR" 4
  28025. .IX Item "-mhard-float"
  28026. .PD
  28027. Generate output containing floating-point instructions. This is the
  28028. default.
  28029. .IP "\fB\-mno\-fpu\fR" 4
  28030. .IX Item "-mno-fpu"
  28031. .PD 0
  28032. .IP "\fB\-msoft\-float\fR" 4
  28033. .IX Item "-msoft-float"
  28034. .PD
  28035. Generate output containing library calls for floating point.
  28036. \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
  28037. targets. Normally the facilities of the machine's usual C compiler are
  28038. used, but this cannot be done directly in cross-compilation. You must make
  28039. your own arrangements to provide suitable library functions for
  28040. cross-compilation. The embedded targets \fBsparc\-*\-aout\fR and
  28041. \&\fBsparclite\-*\-*\fR do provide software floating-point support.
  28042. .Sp
  28043. \&\fB\-msoft\-float\fR changes the calling convention in the output file;
  28044. therefore, it is only useful if you compile \fIall\fR of a program with
  28045. this option. In particular, you need to compile \fIlibgcc.a\fR, the
  28046. library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
  28047. this to work.
  28048. .IP "\fB\-mhard\-quad\-float\fR" 4
  28049. .IX Item "-mhard-quad-float"
  28050. Generate output containing quad-word (long double) floating-point
  28051. instructions.
  28052. .IP "\fB\-msoft\-quad\-float\fR" 4
  28053. .IX Item "-msoft-quad-float"
  28054. Generate output containing library calls for quad-word (long double)
  28055. floating-point instructions. The functions called are those specified
  28056. in the \s-1SPARC ABI.\s0 This is the default.
  28057. .Sp
  28058. As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
  28059. support for the quad-word floating-point instructions. They all invoke
  28060. a trap handler for one of these instructions, and then the trap handler
  28061. emulates the effect of the instruction. Because of the trap handler overhead,
  28062. this is much slower than calling the \s-1ABI\s0 library routines. Thus the
  28063. \&\fB\-msoft\-quad\-float\fR option is the default.
  28064. .IP "\fB\-mno\-unaligned\-doubles\fR" 4
  28065. .IX Item "-mno-unaligned-doubles"
  28066. .PD 0
  28067. .IP "\fB\-munaligned\-doubles\fR" 4
  28068. .IX Item "-munaligned-doubles"
  28069. .PD
  28070. Assume that doubles have 8\-byte alignment. This is the default.
  28071. .Sp
  28072. With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8\-byte
  28073. alignment only if they are contained in another type, or if they have an
  28074. absolute address. Otherwise, it assumes they have 4\-byte alignment.
  28075. Specifying this option avoids some rare compatibility problems with code
  28076. generated by other compilers. It is not the default because it results
  28077. in a performance loss, especially for floating-point code.
  28078. .IP "\fB\-muser\-mode\fR" 4
  28079. .IX Item "-muser-mode"
  28080. .PD 0
  28081. .IP "\fB\-mno\-user\-mode\fR" 4
  28082. .IX Item "-mno-user-mode"
  28083. .PD
  28084. Do not generate code that can only run in supervisor mode. This is relevant
  28085. only for the \f(CW\*(C`casa\*(C'\fR instruction emitted for the \s-1LEON3\s0 processor. This
  28086. is the default.
  28087. .IP "\fB\-mfaster\-structs\fR" 4
  28088. .IX Item "-mfaster-structs"
  28089. .PD 0
  28090. .IP "\fB\-mno\-faster\-structs\fR" 4
  28091. .IX Item "-mno-faster-structs"
  28092. .PD
  28093. With \fB\-mfaster\-structs\fR, the compiler assumes that structures
  28094. should have 8\-byte alignment. This enables the use of pairs of
  28095. \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
  28096. assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
  28097. However, the use of this changed alignment directly violates the \s-1SPARC
  28098. ABI.\s0 Thus, it's intended only for use on targets where the developer
  28099. acknowledges that their resulting code is not directly in line with
  28100. the rules of the \s-1ABI.\s0
  28101. .IP "\fB\-mstd\-struct\-return\fR" 4
  28102. .IX Item "-mstd-struct-return"
  28103. .PD 0
  28104. .IP "\fB\-mno\-std\-struct\-return\fR" 4
  28105. .IX Item "-mno-std-struct-return"
  28106. .PD
  28107. With \fB\-mstd\-struct\-return\fR, the compiler generates checking code
  28108. in functions returning structures or unions to detect size mismatches
  28109. between the two sides of function calls, as per the 32\-bit \s-1ABI.\s0
  28110. .Sp
  28111. The default is \fB\-mno\-std\-struct\-return\fR. This option has no effect
  28112. in 64\-bit mode.
  28113. .IP "\fB\-mlra\fR" 4
  28114. .IX Item "-mlra"
  28115. .PD 0
  28116. .IP "\fB\-mno\-lra\fR" 4
  28117. .IX Item "-mno-lra"
  28118. .PD
  28119. Enable Local Register Allocation. This is the default for \s-1SPARC\s0 since \s-1GCC 7\s0
  28120. so \fB\-mno\-lra\fR needs to be passed to get old Reload.
  28121. .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
  28122. .IX Item "-mcpu=cpu_type"
  28123. Set the instruction set, register set, and instruction scheduling parameters
  28124. for machine type \fIcpu_type\fR. Supported values for \fIcpu_type\fR are
  28125. \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBhypersparc\fR,
  28126. \&\fBleon\fR, \fBleon3\fR, \fBleon3v7\fR, \fBsparclite\fR, \fBf930\fR,
  28127. \&\fBf934\fR, \fBsparclite86x\fR, \fBsparclet\fR, \fBtsc701\fR, \fBv9\fR,
  28128. \&\fBultrasparc\fR, \fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR,
  28129. \&\fBniagara3\fR, \fBniagara4\fR, \fBniagara7\fR and \fBm8\fR.
  28130. .Sp
  28131. Native Solaris and GNU/Linux toolchains also support the value \fBnative\fR,
  28132. which selects the best architecture option for the host processor.
  28133. \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
  28134. the processor.
  28135. .Sp
  28136. Default instruction scheduling parameters are used for values that select
  28137. an architecture and not an implementation. These are \fBv7\fR, \fBv8\fR,
  28138. \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
  28139. .Sp
  28140. Here is a list of each supported architecture and their supported
  28141. implementations.
  28142. .RS 4
  28143. .IP "v7" 4
  28144. .IX Item "v7"
  28145. cypress, leon3v7
  28146. .IP "v8" 4
  28147. .IX Item "v8"
  28148. supersparc, hypersparc, leon, leon3
  28149. .IP "sparclite" 4
  28150. .IX Item "sparclite"
  28151. f930, f934, sparclite86x
  28152. .IP "sparclet" 4
  28153. .IX Item "sparclet"
  28154. tsc701
  28155. .IP "v9" 4
  28156. .IX Item "v9"
  28157. ultrasparc, ultrasparc3, niagara, niagara2, niagara3, niagara4,
  28158. niagara7, m8
  28159. .RE
  28160. .RS 4
  28161. .Sp
  28162. By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
  28163. variant of the \s-1SPARC\s0 architecture. With \fB\-mcpu=cypress\fR, the compiler
  28164. additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
  28165. SPARCStation/SPARCServer 3xx series. This is also appropriate for the older
  28166. SPARCStation 1, 2, \s-1IPX\s0 etc.
  28167. .Sp
  28168. With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
  28169. architecture. The only difference from V7 code is that the compiler emits
  28170. the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
  28171. but not in \s-1SPARC\-V7.\s0 With \fB\-mcpu=supersparc\fR, the compiler additionally
  28172. optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
  28173. 2000 series.
  28174. .Sp
  28175. With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
  28176. the \s-1SPARC\s0 architecture. This adds the integer multiply, integer divide step
  28177. and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7.\s0
  28178. With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
  28179. Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU.\s0 With
  28180. \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
  28181. \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU.\s0
  28182. .Sp
  28183. With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
  28184. the \s-1SPARC\s0 architecture. This adds the integer multiply, multiply/accumulate,
  28185. integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
  28186. but not in \s-1SPARC\-V7.\s0 With \fB\-mcpu=tsc701\fR, the compiler additionally
  28187. optimizes it for the \s-1TEMIC\s0 SPARClet chip.
  28188. .Sp
  28189. With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
  28190. architecture. This adds 64\-bit integer and floating-point move instructions,
  28191. 3 additional floating-point condition code registers and conditional move
  28192. instructions. With \fB\-mcpu=ultrasparc\fR, the compiler additionally
  28193. optimizes it for the Sun UltraSPARC I/II/IIi chips. With
  28194. \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
  28195. Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+ chips. With
  28196. \&\fB\-mcpu=niagara\fR, the compiler additionally optimizes it for
  28197. Sun UltraSPARC T1 chips. With \fB\-mcpu=niagara2\fR, the compiler
  28198. additionally optimizes it for Sun UltraSPARC T2 chips. With
  28199. \&\fB\-mcpu=niagara3\fR, the compiler additionally optimizes it for Sun
  28200. UltraSPARC T3 chips. With \fB\-mcpu=niagara4\fR, the compiler
  28201. additionally optimizes it for Sun UltraSPARC T4 chips. With
  28202. \&\fB\-mcpu=niagara7\fR, the compiler additionally optimizes it for
  28203. Oracle \s-1SPARC M7\s0 chips. With \fB\-mcpu=m8\fR, the compiler
  28204. additionally optimizes it for Oracle M8 chips.
  28205. .RE
  28206. .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
  28207. .IX Item "-mtune=cpu_type"
  28208. Set the instruction scheduling parameters for machine type
  28209. \&\fIcpu_type\fR, but do not set the instruction set or register set that the
  28210. option \fB\-mcpu=\fR\fIcpu_type\fR does.
  28211. .Sp
  28212. The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
  28213. \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
  28214. that select a particular \s-1CPU\s0 implementation. Those are
  28215. \&\fBcypress\fR, \fBsupersparc\fR, \fBhypersparc\fR, \fBleon\fR,
  28216. \&\fBleon3\fR, \fBleon3v7\fR, \fBf930\fR, \fBf934\fR,
  28217. \&\fBsparclite86x\fR, \fBtsc701\fR, \fBultrasparc\fR,
  28218. \&\fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR, \fBniagara3\fR,
  28219. \&\fBniagara4\fR, \fBniagara7\fR and \fBm8\fR. With native Solaris
  28220. and GNU/Linux toolchains, \fBnative\fR can also be used.
  28221. .IP "\fB\-mv8plus\fR" 4
  28222. .IX Item "-mv8plus"
  28223. .PD 0
  28224. .IP "\fB\-mno\-v8plus\fR" 4
  28225. .IX Item "-mno-v8plus"
  28226. .PD
  28227. With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+ ABI.\s0 The
  28228. difference from the V8 \s-1ABI\s0 is that the global and out registers are
  28229. considered 64 bits wide. This is enabled by default on Solaris in 32\-bit
  28230. mode for all \s-1SPARC\-V9\s0 processors.
  28231. .IP "\fB\-mvis\fR" 4
  28232. .IX Item "-mvis"
  28233. .PD 0
  28234. .IP "\fB\-mno\-vis\fR" 4
  28235. .IX Item "-mno-vis"
  28236. .PD
  28237. With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
  28238. Visual Instruction Set extensions. The default is \fB\-mno\-vis\fR.
  28239. .IP "\fB\-mvis2\fR" 4
  28240. .IX Item "-mvis2"
  28241. .PD 0
  28242. .IP "\fB\-mno\-vis2\fR" 4
  28243. .IX Item "-mno-vis2"
  28244. .PD
  28245. With \fB\-mvis2\fR, \s-1GCC\s0 generates code that takes advantage of
  28246. version 2.0 of the UltraSPARC Visual Instruction Set extensions. The
  28247. default is \fB\-mvis2\fR when targeting a cpu that supports such
  28248. instructions, such as UltraSPARC-III and later. Setting \fB\-mvis2\fR
  28249. also sets \fB\-mvis\fR.
  28250. .IP "\fB\-mvis3\fR" 4
  28251. .IX Item "-mvis3"
  28252. .PD 0
  28253. .IP "\fB\-mno\-vis3\fR" 4
  28254. .IX Item "-mno-vis3"
  28255. .PD
  28256. With \fB\-mvis3\fR, \s-1GCC\s0 generates code that takes advantage of
  28257. version 3.0 of the UltraSPARC Visual Instruction Set extensions. The
  28258. default is \fB\-mvis3\fR when targeting a cpu that supports such
  28259. instructions, such as niagara\-3 and later. Setting \fB\-mvis3\fR
  28260. also sets \fB\-mvis2\fR and \fB\-mvis\fR.
  28261. .IP "\fB\-mvis4\fR" 4
  28262. .IX Item "-mvis4"
  28263. .PD 0
  28264. .IP "\fB\-mno\-vis4\fR" 4
  28265. .IX Item "-mno-vis4"
  28266. .PD
  28267. With \fB\-mvis4\fR, \s-1GCC\s0 generates code that takes advantage of
  28268. version 4.0 of the UltraSPARC Visual Instruction Set extensions. The
  28269. default is \fB\-mvis4\fR when targeting a cpu that supports such
  28270. instructions, such as niagara\-7 and later. Setting \fB\-mvis4\fR
  28271. also sets \fB\-mvis3\fR, \fB\-mvis2\fR and \fB\-mvis\fR.
  28272. .IP "\fB\-mvis4b\fR" 4
  28273. .IX Item "-mvis4b"
  28274. .PD 0
  28275. .IP "\fB\-mno\-vis4b\fR" 4
  28276. .IX Item "-mno-vis4b"
  28277. .PD
  28278. With \fB\-mvis4b\fR, \s-1GCC\s0 generates code that takes advantage of
  28279. version 4.0 of the UltraSPARC Visual Instruction Set extensions, plus
  28280. the additional \s-1VIS\s0 instructions introduced in the Oracle \s-1SPARC\s0
  28281. Architecture 2017. The default is \fB\-mvis4b\fR when targeting a
  28282. cpu that supports such instructions, such as m8 and later. Setting
  28283. \&\fB\-mvis4b\fR also sets \fB\-mvis4\fR, \fB\-mvis3\fR,
  28284. \&\fB\-mvis2\fR and \fB\-mvis\fR.
  28285. .IP "\fB\-mcbcond\fR" 4
  28286. .IX Item "-mcbcond"
  28287. .PD 0
  28288. .IP "\fB\-mno\-cbcond\fR" 4
  28289. .IX Item "-mno-cbcond"
  28290. .PD
  28291. With \fB\-mcbcond\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
  28292. Compare-and-Branch-on-Condition instructions. The default is \fB\-mcbcond\fR
  28293. when targeting a \s-1CPU\s0 that supports such instructions, such as Niagara\-4 and
  28294. later.
  28295. .IP "\fB\-mfmaf\fR" 4
  28296. .IX Item "-mfmaf"
  28297. .PD 0
  28298. .IP "\fB\-mno\-fmaf\fR" 4
  28299. .IX Item "-mno-fmaf"
  28300. .PD
  28301. With \fB\-mfmaf\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
  28302. Fused Multiply-Add Floating-point instructions. The default is \fB\-mfmaf\fR
  28303. when targeting a \s-1CPU\s0 that supports such instructions, such as Niagara\-3 and
  28304. later.
  28305. .IP "\fB\-mfsmuld\fR" 4
  28306. .IX Item "-mfsmuld"
  28307. .PD 0
  28308. .IP "\fB\-mno\-fsmuld\fR" 4
  28309. .IX Item "-mno-fsmuld"
  28310. .PD
  28311. With \fB\-mfsmuld\fR, \s-1GCC\s0 generates code that takes advantage of the
  28312. Floating-point Multiply Single to Double (FsMULd) instruction. The default is
  28313. \&\fB\-mfsmuld\fR when targeting a \s-1CPU\s0 supporting the architecture versions V8
  28314. or V9 with \s-1FPU\s0 except \fB\-mcpu=leon\fR.
  28315. .IP "\fB\-mpopc\fR" 4
  28316. .IX Item "-mpopc"
  28317. .PD 0
  28318. .IP "\fB\-mno\-popc\fR" 4
  28319. .IX Item "-mno-popc"
  28320. .PD
  28321. With \fB\-mpopc\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
  28322. Population Count instruction. The default is \fB\-mpopc\fR
  28323. when targeting a \s-1CPU\s0 that supports such an instruction, such as Niagara\-2 and
  28324. later.
  28325. .IP "\fB\-msubxc\fR" 4
  28326. .IX Item "-msubxc"
  28327. .PD 0
  28328. .IP "\fB\-mno\-subxc\fR" 4
  28329. .IX Item "-mno-subxc"
  28330. .PD
  28331. With \fB\-msubxc\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
  28332. Subtract-Extended-with-Carry instruction. The default is \fB\-msubxc\fR
  28333. when targeting a \s-1CPU\s0 that supports such an instruction, such as Niagara\-7 and
  28334. later.
  28335. .IP "\fB\-mfix\-at697f\fR" 4
  28336. .IX Item "-mfix-at697f"
  28337. Enable the documented workaround for the single erratum of the Atmel \s-1AT697F\s0
  28338. processor (which corresponds to erratum #13 of the \s-1AT697E\s0 processor).
  28339. .IP "\fB\-mfix\-ut699\fR" 4
  28340. .IX Item "-mfix-ut699"
  28341. Enable the documented workarounds for the floating-point errata and the data
  28342. cache nullify errata of the \s-1UT699\s0 processor.
  28343. .IP "\fB\-mfix\-ut700\fR" 4
  28344. .IX Item "-mfix-ut700"
  28345. Enable the documented workaround for the back-to-back store errata of
  28346. the \s-1UT699E/UT700\s0 processor.
  28347. .IP "\fB\-mfix\-gr712rc\fR" 4
  28348. .IX Item "-mfix-gr712rc"
  28349. Enable the documented workaround for the back-to-back store errata of
  28350. the \s-1GR712RC\s0 processor.
  28351. .PP
  28352. These \fB\-m\fR options are supported in addition to the above
  28353. on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
  28354. .IP "\fB\-m32\fR" 4
  28355. .IX Item "-m32"
  28356. .PD 0
  28357. .IP "\fB\-m64\fR" 4
  28358. .IX Item "-m64"
  28359. .PD
  28360. Generate code for a 32\-bit or 64\-bit environment.
  28361. The 32\-bit environment sets int, long and pointer to 32 bits.
  28362. The 64\-bit environment sets int to 32 bits and long and pointer
  28363. to 64 bits.
  28364. .IP "\fB\-mcmodel=\fR\fIwhich\fR" 4
  28365. .IX Item "-mcmodel=which"
  28366. Set the code model to one of
  28367. .RS 4
  28368. .IP "\fBmedlow\fR" 4
  28369. .IX Item "medlow"
  28370. The Medium/Low code model: 64\-bit addresses, programs
  28371. must be linked in the low 32 bits of memory. Programs can be statically
  28372. or dynamically linked.
  28373. .IP "\fBmedmid\fR" 4
  28374. .IX Item "medmid"
  28375. The Medium/Middle code model: 64\-bit addresses, programs
  28376. must be linked in the low 44 bits of memory, the text and data segments must
  28377. be less than 2GB in size and the data segment must be located within 2GB of
  28378. the text segment.
  28379. .IP "\fBmedany\fR" 4
  28380. .IX Item "medany"
  28381. The Medium/Anywhere code model: 64\-bit addresses, programs
  28382. may be linked anywhere in memory, the text and data segments must be less
  28383. than 2GB in size and the data segment must be located within 2GB of the
  28384. text segment.
  28385. .IP "\fBembmedany\fR" 4
  28386. .IX Item "embmedany"
  28387. The Medium/Anywhere code model for embedded systems:
  28388. 64\-bit addresses, the text and data segments must be less than 2GB in
  28389. size, both starting anywhere in memory (determined at link time). The
  28390. global register \f(CW%g4\fR points to the base of the data segment. Programs
  28391. are statically linked and \s-1PIC\s0 is not supported.
  28392. .RE
  28393. .RS 4
  28394. .RE
  28395. .IP "\fB\-mmemory\-model=\fR\fImem-model\fR" 4
  28396. .IX Item "-mmemory-model=mem-model"
  28397. Set the memory model in force on the processor to one of
  28398. .RS 4
  28399. .IP "\fBdefault\fR" 4
  28400. .IX Item "default"
  28401. The default memory model for the processor and operating system.
  28402. .IP "\fBrmo\fR" 4
  28403. .IX Item "rmo"
  28404. Relaxed Memory Order
  28405. .IP "\fBpso\fR" 4
  28406. .IX Item "pso"
  28407. Partial Store Order
  28408. .IP "\fBtso\fR" 4
  28409. .IX Item "tso"
  28410. Total Store Order
  28411. .IP "\fBsc\fR" 4
  28412. .IX Item "sc"
  28413. Sequential Consistency
  28414. .RE
  28415. .RS 4
  28416. .Sp
  28417. These memory models are formally defined in Appendix D of the \s-1SPARC\-V9\s0
  28418. architecture manual, as set in the processor's \f(CW\*(C`PSTATE.MM\*(C'\fR field.
  28419. .RE
  28420. .IP "\fB\-mstack\-bias\fR" 4
  28421. .IX Item "-mstack-bias"
  28422. .PD 0
  28423. .IP "\fB\-mno\-stack\-bias\fR" 4
  28424. .IX Item "-mno-stack-bias"
  28425. .PD
  28426. With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
  28427. frame pointer if present, are offset by \-2047 which must be added back
  28428. when making stack frame references. This is the default in 64\-bit mode.
  28429. Otherwise, assume no such offset is present.
  28430. .PP
  28431. \fIOptions for System V\fR
  28432. .IX Subsection "Options for System V"
  28433. .PP
  28434. These additional options are available on System V Release 4 for
  28435. compatibility with other compilers on those systems:
  28436. .IP "\fB\-G\fR" 4
  28437. .IX Item "-G"
  28438. Create a shared object.
  28439. It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
  28440. .IP "\fB\-Qy\fR" 4
  28441. .IX Item "-Qy"
  28442. Identify the versions of each tool used by the compiler, in a
  28443. \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
  28444. .IP "\fB\-Qn\fR" 4
  28445. .IX Item "-Qn"
  28446. Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
  28447. the default).
  28448. .IP "\fB\-YP,\fR\fIdirs\fR" 4
  28449. .IX Item "-YP,dirs"
  28450. Search the directories \fIdirs\fR, and no others, for libraries
  28451. specified with \fB\-l\fR.
  28452. .IP "\fB\-Ym,\fR\fIdir\fR" 4
  28453. .IX Item "-Ym,dir"
  28454. Look in the directory \fIdir\fR to find the M4 preprocessor.
  28455. The assembler uses this option.
  28456. .PP
  28457. \fITILE-Gx Options\fR
  28458. .IX Subsection "TILE-Gx Options"
  28459. .PP
  28460. These \fB\-m\fR options are supported on the TILE-Gx:
  28461. .IP "\fB\-mcmodel=small\fR" 4
  28462. .IX Item "-mcmodel=small"
  28463. Generate code for the small model. The distance for direct calls is
  28464. limited to 500M in either direction. PC-relative addresses are 32
  28465. bits. Absolute addresses support the full address range.
  28466. .IP "\fB\-mcmodel=large\fR" 4
  28467. .IX Item "-mcmodel=large"
  28468. Generate code for the large model. There is no limitation on call
  28469. distance, pc-relative addresses, or absolute addresses.
  28470. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  28471. .IX Item "-mcpu=name"
  28472. Selects the type of \s-1CPU\s0 to be targeted. Currently the only supported
  28473. type is \fBtilegx\fR.
  28474. .IP "\fB\-m32\fR" 4
  28475. .IX Item "-m32"
  28476. .PD 0
  28477. .IP "\fB\-m64\fR" 4
  28478. .IX Item "-m64"
  28479. .PD
  28480. Generate code for a 32\-bit or 64\-bit environment. The 32\-bit
  28481. environment sets int, long, and pointer to 32 bits. The 64\-bit
  28482. environment sets int to 32 bits and long and pointer to 64 bits.
  28483. .IP "\fB\-mbig\-endian\fR" 4
  28484. .IX Item "-mbig-endian"
  28485. .PD 0
  28486. .IP "\fB\-mlittle\-endian\fR" 4
  28487. .IX Item "-mlittle-endian"
  28488. .PD
  28489. Generate code in big/little endian mode, respectively.
  28490. .PP
  28491. \fITILEPro Options\fR
  28492. .IX Subsection "TILEPro Options"
  28493. .PP
  28494. These \fB\-m\fR options are supported on the TILEPro:
  28495. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  28496. .IX Item "-mcpu=name"
  28497. Selects the type of \s-1CPU\s0 to be targeted. Currently the only supported
  28498. type is \fBtilepro\fR.
  28499. .IP "\fB\-m32\fR" 4
  28500. .IX Item "-m32"
  28501. Generate code for a 32\-bit environment, which sets int, long, and
  28502. pointer to 32 bits. This is the only supported behavior so the flag
  28503. is essentially ignored.
  28504. .PP
  28505. \fIV850 Options\fR
  28506. .IX Subsection "V850 Options"
  28507. .PP
  28508. These \fB\-m\fR options are defined for V850 implementations:
  28509. .IP "\fB\-mlong\-calls\fR" 4
  28510. .IX Item "-mlong-calls"
  28511. .PD 0
  28512. .IP "\fB\-mno\-long\-calls\fR" 4
  28513. .IX Item "-mno-long-calls"
  28514. .PD
  28515. Treat all calls as being far away (near). If calls are assumed to be
  28516. far away, the compiler always loads the function's address into a
  28517. register, and calls indirect through the pointer.
  28518. .IP "\fB\-mno\-ep\fR" 4
  28519. .IX Item "-mno-ep"
  28520. .PD 0
  28521. .IP "\fB\-mep\fR" 4
  28522. .IX Item "-mep"
  28523. .PD
  28524. Do not optimize (do optimize) basic blocks that use the same index
  28525. pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
  28526. use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions. The \fB\-mep\fR
  28527. option is on by default if you optimize.
  28528. .IP "\fB\-mno\-prolog\-function\fR" 4
  28529. .IX Item "-mno-prolog-function"
  28530. .PD 0
  28531. .IP "\fB\-mprolog\-function\fR" 4
  28532. .IX Item "-mprolog-function"
  28533. .PD
  28534. Do not use (do use) external functions to save and restore registers
  28535. at the prologue and epilogue of a function. The external functions
  28536. are slower, but use less code space if more than one function saves
  28537. the same number of registers. The \fB\-mprolog\-function\fR option
  28538. is on by default if you optimize.
  28539. .IP "\fB\-mspace\fR" 4
  28540. .IX Item "-mspace"
  28541. Try to make the code as small as possible. At present, this just turns
  28542. on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
  28543. .IP "\fB\-mtda=\fR\fIn\fR" 4
  28544. .IX Item "-mtda=n"
  28545. Put static or global variables whose size is \fIn\fR bytes or less into
  28546. the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to. The tiny data
  28547. area can hold up to 256 bytes in total (128 bytes for byte references).
  28548. .IP "\fB\-msda=\fR\fIn\fR" 4
  28549. .IX Item "-msda=n"
  28550. Put static or global variables whose size is \fIn\fR bytes or less into
  28551. the small data area that register \f(CW\*(C`gp\*(C'\fR points to. The small data
  28552. area can hold up to 64 kilobytes.
  28553. .IP "\fB\-mzda=\fR\fIn\fR" 4
  28554. .IX Item "-mzda=n"
  28555. Put static or global variables whose size is \fIn\fR bytes or less into
  28556. the first 32 kilobytes of memory.
  28557. .IP "\fB\-mv850\fR" 4
  28558. .IX Item "-mv850"
  28559. Specify that the target processor is the V850.
  28560. .IP "\fB\-mv850e3v5\fR" 4
  28561. .IX Item "-mv850e3v5"
  28562. Specify that the target processor is the V850E3V5. The preprocessor
  28563. constant \f(CW\*(C`_\|_v850e3v5_\|_\*(C'\fR is defined if this option is used.
  28564. .IP "\fB\-mv850e2v4\fR" 4
  28565. .IX Item "-mv850e2v4"
  28566. Specify that the target processor is the V850E3V5. This is an alias for
  28567. the \fB\-mv850e3v5\fR option.
  28568. .IP "\fB\-mv850e2v3\fR" 4
  28569. .IX Item "-mv850e2v3"
  28570. Specify that the target processor is the V850E2V3. The preprocessor
  28571. constant \f(CW\*(C`_\|_v850e2v3_\|_\*(C'\fR is defined if this option is used.
  28572. .IP "\fB\-mv850e2\fR" 4
  28573. .IX Item "-mv850e2"
  28574. Specify that the target processor is the V850E2. The preprocessor
  28575. constant \f(CW\*(C`_\|_v850e2_\|_\*(C'\fR is defined if this option is used.
  28576. .IP "\fB\-mv850e1\fR" 4
  28577. .IX Item "-mv850e1"
  28578. Specify that the target processor is the V850E1. The preprocessor
  28579. constants \f(CW\*(C`_\|_v850e1_\|_\*(C'\fR and \f(CW\*(C`_\|_v850e_\|_\*(C'\fR are defined if
  28580. this option is used.
  28581. .IP "\fB\-mv850es\fR" 4
  28582. .IX Item "-mv850es"
  28583. Specify that the target processor is the V850ES. This is an alias for
  28584. the \fB\-mv850e1\fR option.
  28585. .IP "\fB\-mv850e\fR" 4
  28586. .IX Item "-mv850e"
  28587. Specify that the target processor is the V850E. The preprocessor
  28588. constant \f(CW\*(C`_\|_v850e_\|_\*(C'\fR is defined if this option is used.
  28589. .Sp
  28590. If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
  28591. nor \fB\-mv850e2\fR nor \fB\-mv850e2v3\fR nor \fB\-mv850e3v5\fR
  28592. are defined then a default target processor is chosen and the
  28593. relevant \fB_\|_v850*_\|_\fR preprocessor constant is defined.
  28594. .Sp
  28595. The preprocessor constants \f(CW\*(C`_\|_v850\*(C'\fR and \f(CW\*(C`_\|_v851_\|_\*(C'\fR are always
  28596. defined, regardless of which processor variant is the target.
  28597. .IP "\fB\-mdisable\-callt\fR" 4
  28598. .IX Item "-mdisable-callt"
  28599. .PD 0
  28600. .IP "\fB\-mno\-disable\-callt\fR" 4
  28601. .IX Item "-mno-disable-callt"
  28602. .PD
  28603. This option suppresses generation of the \f(CW\*(C`CALLT\*(C'\fR instruction for the
  28604. v850e, v850e1, v850e2, v850e2v3 and v850e3v5 flavors of the v850
  28605. architecture.
  28606. .Sp
  28607. This option is enabled by default when the \s-1RH850 ABI\s0 is
  28608. in use (see \fB\-mrh850\-abi\fR), and disabled by default when the
  28609. \&\s-1GCC ABI\s0 is in use. If \f(CW\*(C`CALLT\*(C'\fR instructions are being generated
  28610. then the C preprocessor symbol \f(CW\*(C`_\|_V850_CALLT_\|_\*(C'\fR is defined.
  28611. .IP "\fB\-mrelax\fR" 4
  28612. .IX Item "-mrelax"
  28613. .PD 0
  28614. .IP "\fB\-mno\-relax\fR" 4
  28615. .IX Item "-mno-relax"
  28616. .PD
  28617. Pass on (or do not pass on) the \fB\-mrelax\fR command-line option
  28618. to the assembler.
  28619. .IP "\fB\-mlong\-jumps\fR" 4
  28620. .IX Item "-mlong-jumps"
  28621. .PD 0
  28622. .IP "\fB\-mno\-long\-jumps\fR" 4
  28623. .IX Item "-mno-long-jumps"
  28624. .PD
  28625. Disable (or re-enable) the generation of PC-relative jump instructions.
  28626. .IP "\fB\-msoft\-float\fR" 4
  28627. .IX Item "-msoft-float"
  28628. .PD 0
  28629. .IP "\fB\-mhard\-float\fR" 4
  28630. .IX Item "-mhard-float"
  28631. .PD
  28632. Disable (or re-enable) the generation of hardware floating point
  28633. instructions. This option is only significant when the target
  28634. architecture is \fBV850E2V3\fR or higher. If hardware floating point
  28635. instructions are being generated then the C preprocessor symbol
  28636. \&\f(CW\*(C`_\|_FPU_OK_\|_\*(C'\fR is defined, otherwise the symbol
  28637. \&\f(CW\*(C`_\|_NO_FPU_\|_\*(C'\fR is defined.
  28638. .IP "\fB\-mloop\fR" 4
  28639. .IX Item "-mloop"
  28640. Enables the use of the e3v5 \s-1LOOP\s0 instruction. The use of this
  28641. instruction is not enabled by default when the e3v5 architecture is
  28642. selected because its use is still experimental.
  28643. .IP "\fB\-mrh850\-abi\fR" 4
  28644. .IX Item "-mrh850-abi"
  28645. .PD 0
  28646. .IP "\fB\-mghs\fR" 4
  28647. .IX Item "-mghs"
  28648. .PD
  28649. Enables support for the \s-1RH850\s0 version of the V850 \s-1ABI.\s0 This is the
  28650. default. With this version of the \s-1ABI\s0 the following rules apply:
  28651. .RS 4
  28652. .IP "*" 4
  28653. Integer sized structures and unions are returned via a memory pointer
  28654. rather than a register.
  28655. .IP "*" 4
  28656. Large structures and unions (more than 8 bytes in size) are passed by
  28657. value.
  28658. .IP "*" 4
  28659. Functions are aligned to 16\-bit boundaries.
  28660. .IP "*" 4
  28661. The \fB\-m8byte\-align\fR command-line option is supported.
  28662. .IP "*" 4
  28663. The \fB\-mdisable\-callt\fR command-line option is enabled by
  28664. default. The \fB\-mno\-disable\-callt\fR command-line option is not
  28665. supported.
  28666. .RE
  28667. .RS 4
  28668. .Sp
  28669. When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
  28670. \&\f(CW\*(C`_\|_V850_RH850_ABI_\|_\*(C'\fR is defined.
  28671. .RE
  28672. .IP "\fB\-mgcc\-abi\fR" 4
  28673. .IX Item "-mgcc-abi"
  28674. Enables support for the old \s-1GCC\s0 version of the V850 \s-1ABI.\s0 With this
  28675. version of the \s-1ABI\s0 the following rules apply:
  28676. .RS 4
  28677. .IP "*" 4
  28678. Integer sized structures and unions are returned in register \f(CW\*(C`r10\*(C'\fR.
  28679. .IP "*" 4
  28680. Large structures and unions (more than 8 bytes in size) are passed by
  28681. reference.
  28682. .IP "*" 4
  28683. Functions are aligned to 32\-bit boundaries, unless optimizing for
  28684. size.
  28685. .IP "*" 4
  28686. The \fB\-m8byte\-align\fR command-line option is not supported.
  28687. .IP "*" 4
  28688. The \fB\-mdisable\-callt\fR command-line option is supported but not
  28689. enabled by default.
  28690. .RE
  28691. .RS 4
  28692. .Sp
  28693. When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
  28694. \&\f(CW\*(C`_\|_V850_GCC_ABI_\|_\*(C'\fR is defined.
  28695. .RE
  28696. .IP "\fB\-m8byte\-align\fR" 4
  28697. .IX Item "-m8byte-align"
  28698. .PD 0
  28699. .IP "\fB\-mno\-8byte\-align\fR" 4
  28700. .IX Item "-mno-8byte-align"
  28701. .PD
  28702. Enables support for \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long long\*(C'\fR types to be
  28703. aligned on 8\-byte boundaries. The default is to restrict the
  28704. alignment of all objects to at most 4\-bytes. When
  28705. \&\fB\-m8byte\-align\fR is in effect the C preprocessor symbol
  28706. \&\f(CW\*(C`_\|_V850_8BYTE_ALIGN_\|_\*(C'\fR is defined.
  28707. .IP "\fB\-mbig\-switch\fR" 4
  28708. .IX Item "-mbig-switch"
  28709. Generate code suitable for big switch tables. Use this option only if
  28710. the assembler/linker complain about out of range branches within a switch
  28711. table.
  28712. .IP "\fB\-mapp\-regs\fR" 4
  28713. .IX Item "-mapp-regs"
  28714. This option causes r2 and r5 to be used in the code generated by
  28715. the compiler. This setting is the default.
  28716. .IP "\fB\-mno\-app\-regs\fR" 4
  28717. .IX Item "-mno-app-regs"
  28718. This option causes r2 and r5 to be treated as fixed registers.
  28719. .PP
  28720. \fI\s-1VAX\s0 Options\fR
  28721. .IX Subsection "VAX Options"
  28722. .PP
  28723. These \fB\-m\fR options are defined for the \s-1VAX:\s0
  28724. .IP "\fB\-munix\fR" 4
  28725. .IX Item "-munix"
  28726. Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
  28727. that the Unix assembler for the \s-1VAX\s0 cannot handle across long
  28728. ranges.
  28729. .IP "\fB\-mgnu\fR" 4
  28730. .IX Item "-mgnu"
  28731. Do output those jump instructions, on the assumption that the
  28732. \&\s-1GNU\s0 assembler is being used.
  28733. .IP "\fB\-mg\fR" 4
  28734. .IX Item "-mg"
  28735. Output code for G\-format floating-point numbers instead of D\-format.
  28736. .PP
  28737. \fIVisium Options\fR
  28738. .IX Subsection "Visium Options"
  28739. .IP "\fB\-mdebug\fR" 4
  28740. .IX Item "-mdebug"
  28741. A program which performs file I/O and is destined to run on an \s-1MCM\s0 target
  28742. should be linked with this option. It causes the libraries libc.a and
  28743. libdebug.a to be linked. The program should be run on the target under
  28744. the control of the \s-1GDB\s0 remote debugging stub.
  28745. .IP "\fB\-msim\fR" 4
  28746. .IX Item "-msim"
  28747. A program which performs file I/O and is destined to run on the simulator
  28748. should be linked with option. This causes libraries libc.a and libsim.a to
  28749. be linked.
  28750. .IP "\fB\-mfpu\fR" 4
  28751. .IX Item "-mfpu"
  28752. .PD 0
  28753. .IP "\fB\-mhard\-float\fR" 4
  28754. .IX Item "-mhard-float"
  28755. .PD
  28756. Generate code containing floating-point instructions. This is the
  28757. default.
  28758. .IP "\fB\-mno\-fpu\fR" 4
  28759. .IX Item "-mno-fpu"
  28760. .PD 0
  28761. .IP "\fB\-msoft\-float\fR" 4
  28762. .IX Item "-msoft-float"
  28763. .PD
  28764. Generate code containing library calls for floating-point.
  28765. .Sp
  28766. \&\fB\-msoft\-float\fR changes the calling convention in the output file;
  28767. therefore, it is only useful if you compile \fIall\fR of a program with
  28768. this option. In particular, you need to compile \fIlibgcc.a\fR, the
  28769. library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
  28770. this to work.
  28771. .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
  28772. .IX Item "-mcpu=cpu_type"
  28773. Set the instruction set, register set, and instruction scheduling parameters
  28774. for machine type \fIcpu_type\fR. Supported values for \fIcpu_type\fR are
  28775. \&\fBmcm\fR, \fBgr5\fR and \fBgr6\fR.
  28776. .Sp
  28777. \&\fBmcm\fR is a synonym of \fBgr5\fR present for backward compatibility.
  28778. .Sp
  28779. By default (unless configured otherwise), \s-1GCC\s0 generates code for the \s-1GR5\s0
  28780. variant of the Visium architecture.
  28781. .Sp
  28782. With \fB\-mcpu=gr6\fR, \s-1GCC\s0 generates code for the \s-1GR6\s0 variant of the Visium
  28783. architecture. The only difference from \s-1GR5\s0 code is that the compiler will
  28784. generate block move instructions.
  28785. .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
  28786. .IX Item "-mtune=cpu_type"
  28787. Set the instruction scheduling parameters for machine type \fIcpu_type\fR,
  28788. but do not set the instruction set or register set that the option
  28789. \&\fB\-mcpu=\fR\fIcpu_type\fR would.
  28790. .IP "\fB\-msv\-mode\fR" 4
  28791. .IX Item "-msv-mode"
  28792. Generate code for the supervisor mode, where there are no restrictions on
  28793. the access to general registers. This is the default.
  28794. .IP "\fB\-muser\-mode\fR" 4
  28795. .IX Item "-muser-mode"
  28796. Generate code for the user mode, where the access to some general registers
  28797. is forbidden: on the \s-1GR5,\s0 registers r24 to r31 cannot be accessed in this
  28798. mode; on the \s-1GR6,\s0 only registers r29 to r31 are affected.
  28799. .PP
  28800. \fI\s-1VMS\s0 Options\fR
  28801. .IX Subsection "VMS Options"
  28802. .PP
  28803. These \fB\-m\fR options are defined for the \s-1VMS\s0 implementations:
  28804. .IP "\fB\-mvms\-return\-codes\fR" 4
  28805. .IX Item "-mvms-return-codes"
  28806. Return \s-1VMS\s0 condition codes from \f(CW\*(C`main\*(C'\fR. The default is to return POSIX-style
  28807. condition (e.g. error) codes.
  28808. .IP "\fB\-mdebug\-main=\fR\fIprefix\fR" 4
  28809. .IX Item "-mdebug-main=prefix"
  28810. Flag the first routine whose name starts with \fIprefix\fR as the main
  28811. routine for the debugger.
  28812. .IP "\fB\-mmalloc64\fR" 4
  28813. .IX Item "-mmalloc64"
  28814. Default to 64\-bit memory allocation routines.
  28815. .IP "\fB\-mpointer\-size=\fR\fIsize\fR" 4
  28816. .IX Item "-mpointer-size=size"
  28817. Set the default size of pointers. Possible options for \fIsize\fR are
  28818. \&\fB32\fR or \fBshort\fR for 32 bit pointers, \fB64\fR or \fBlong\fR
  28819. for 64 bit pointers, and \fBno\fR for supporting only 32 bit pointers.
  28820. The later option disables \f(CW\*(C`pragma pointer_size\*(C'\fR.
  28821. .PP
  28822. \fIVxWorks Options\fR
  28823. .IX Subsection "VxWorks Options"
  28824. .PP
  28825. The options in this section are defined for all VxWorks targets.
  28826. Options specific to the target hardware are listed with the other
  28827. options for that target.
  28828. .IP "\fB\-mrtp\fR" 4
  28829. .IX Item "-mrtp"
  28830. \&\s-1GCC\s0 can generate code for both VxWorks kernels and real time processes
  28831. (RTPs). This option switches from the former to the latter. It also
  28832. defines the preprocessor macro \f(CW\*(C`_\|_RTP_\|_\*(C'\fR.
  28833. .IP "\fB\-non\-static\fR" 4
  28834. .IX Item "-non-static"
  28835. Link an \s-1RTP\s0 executable against shared libraries rather than static
  28836. libraries. The options \fB\-static\fR and \fB\-shared\fR can
  28837. also be used for RTPs; \fB\-static\fR
  28838. is the default.
  28839. .IP "\fB\-Bstatic\fR" 4
  28840. .IX Item "-Bstatic"
  28841. .PD 0
  28842. .IP "\fB\-Bdynamic\fR" 4
  28843. .IX Item "-Bdynamic"
  28844. .PD
  28845. These options are passed down to the linker. They are defined for
  28846. compatibility with Diab.
  28847. .IP "\fB\-Xbind\-lazy\fR" 4
  28848. .IX Item "-Xbind-lazy"
  28849. Enable lazy binding of function calls. This option is equivalent to
  28850. \&\fB\-Wl,\-z,now\fR and is defined for compatibility with Diab.
  28851. .IP "\fB\-Xbind\-now\fR" 4
  28852. .IX Item "-Xbind-now"
  28853. Disable lazy binding of function calls. This option is the default and
  28854. is defined for compatibility with Diab.
  28855. .PP
  28856. \fIx86 Options\fR
  28857. .IX Subsection "x86 Options"
  28858. .PP
  28859. These \fB\-m\fR options are defined for the x86 family of computers.
  28860. .IP "\fB\-march=\fR\fIcpu-type\fR" 4
  28861. .IX Item "-march=cpu-type"
  28862. Generate instructions for the machine type \fIcpu-type\fR. In contrast to
  28863. \&\fB\-mtune=\fR\fIcpu-type\fR, which merely tunes the generated code
  28864. for the specified \fIcpu-type\fR, \fB\-march=\fR\fIcpu-type\fR allows \s-1GCC\s0
  28865. to generate code that may not run at all on processors other than the one
  28866. indicated. Specifying \fB\-march=\fR\fIcpu-type\fR implies
  28867. \&\fB\-mtune=\fR\fIcpu-type\fR, except where noted otherwise.
  28868. .Sp
  28869. The choices for \fIcpu-type\fR are:
  28870. .RS 4
  28871. .IP "\fBnative\fR" 4
  28872. .IX Item "native"
  28873. This selects the \s-1CPU\s0 to generate code for at compilation time by determining
  28874. the processor type of the compiling machine. Using \fB\-march=native\fR
  28875. enables all instruction subsets supported by the local machine (hence
  28876. the result might not run on different machines). Using \fB\-mtune=native\fR
  28877. produces code optimized for the local machine under the constraints
  28878. of the selected instruction set.
  28879. .IP "\fBx86\-64\fR" 4
  28880. .IX Item "x86-64"
  28881. A generic \s-1CPU\s0 with 64\-bit extensions.
  28882. .IP "\fBx86\-64\-v2\fR" 4
  28883. .IX Item "x86-64-v2"
  28884. .PD 0
  28885. .IP "\fBx86\-64\-v3\fR" 4
  28886. .IX Item "x86-64-v3"
  28887. .IP "\fBx86\-64\-v4\fR" 4
  28888. .IX Item "x86-64-v4"
  28889. .PD
  28890. These choices for \fIcpu-type\fR select the corresponding
  28891. micro-architecture level from the x86\-64 psABI. On ABIs other than
  28892. the x86\-64 psABI they select the same \s-1CPU\s0 features as the x86\-64 psABI
  28893. documents for the particular micro-architecture level.
  28894. .Sp
  28895. Since these \fIcpu-type\fR values do not have a corresponding
  28896. \&\fB\-mtune\fR setting, using \fB\-march\fR with these values enables
  28897. generic tuning. Specific tuning can be enabled using the
  28898. \&\fB\-mtune=\fR\fIother-cpu-type\fR option with an appropriate
  28899. \&\fIother-cpu-type\fR value.
  28900. .IP "\fBi386\fR" 4
  28901. .IX Item "i386"
  28902. Original Intel i386 \s-1CPU.\s0
  28903. .IP "\fBi486\fR" 4
  28904. .IX Item "i486"
  28905. Intel i486 \s-1CPU.\s0 (No scheduling is implemented for this chip.)
  28906. .IP "\fBi586\fR" 4
  28907. .IX Item "i586"
  28908. .PD 0
  28909. .IP "\fBpentium\fR" 4
  28910. .IX Item "pentium"
  28911. .PD
  28912. Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
  28913. .IP "\fBlakemont\fR" 4
  28914. .IX Item "lakemont"
  28915. Intel Lakemont \s-1MCU,\s0 based on Intel Pentium \s-1CPU.\s0
  28916. .IP "\fBpentium-mmx\fR" 4
  28917. .IX Item "pentium-mmx"
  28918. Intel Pentium \s-1MMX CPU,\s0 based on Pentium core with \s-1MMX\s0 instruction set support.
  28919. .IP "\fBpentiumpro\fR" 4
  28920. .IX Item "pentiumpro"
  28921. Intel Pentium Pro \s-1CPU.\s0
  28922. .IP "\fBi686\fR" 4
  28923. .IX Item "i686"
  28924. When used with \fB\-march\fR, the Pentium Pro
  28925. instruction set is used, so the code runs on all i686 family chips.
  28926. When used with \fB\-mtune\fR, it has the same meaning as \fBgeneric\fR.
  28927. .IP "\fBpentium2\fR" 4
  28928. .IX Item "pentium2"
  28929. Intel Pentium \s-1II CPU,\s0 based on Pentium Pro core with \s-1MMX\s0 instruction set
  28930. support.
  28931. .IP "\fBpentium3\fR" 4
  28932. .IX Item "pentium3"
  28933. .PD 0
  28934. .IP "\fBpentium3m\fR" 4
  28935. .IX Item "pentium3m"
  28936. .PD
  28937. Intel Pentium \s-1III CPU,\s0 based on Pentium Pro core with \s-1MMX\s0 and \s-1SSE\s0 instruction
  28938. set support.
  28939. .IP "\fBpentium-m\fR" 4
  28940. .IX Item "pentium-m"
  28941. Intel Pentium M; low-power version of Intel Pentium \s-1III CPU\s0
  28942. with \s-1MMX, SSE\s0 and \s-1SSE2\s0 instruction set support. Used by Centrino notebooks.
  28943. .IP "\fBpentium4\fR" 4
  28944. .IX Item "pentium4"
  28945. .PD 0
  28946. .IP "\fBpentium4m\fR" 4
  28947. .IX Item "pentium4m"
  28948. .PD
  28949. Intel Pentium 4 \s-1CPU\s0 with \s-1MMX, SSE\s0 and \s-1SSE2\s0 instruction set support.
  28950. .IP "\fBprescott\fR" 4
  28951. .IX Item "prescott"
  28952. Improved version of Intel Pentium 4 \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction
  28953. set support.
  28954. .IP "\fBnocona\fR" 4
  28955. .IX Item "nocona"
  28956. Improved version of Intel Pentium 4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE,
  28957. SSE2\s0 and \s-1SSE3\s0 instruction set support.
  28958. .IP "\fBcore2\fR" 4
  28959. .IX Item "core2"
  28960. Intel Core 2 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
  28961. instruction set support.
  28962. .IP "\fBnehalem\fR" 4
  28963. .IX Item "nehalem"
  28964. Intel Nehalem \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
  28965. SSE4.1, SSE4.2\s0 and \s-1POPCNT\s0 instruction set support.
  28966. .IP "\fBwestmere\fR" 4
  28967. .IX Item "westmere"
  28968. Intel Westmere \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
  28969. SSE4.1, SSE4.2, POPCNT, AES\s0 and \s-1PCLMUL\s0 instruction set support.
  28970. .IP "\fBsandybridge\fR" 4
  28971. .IX Item "sandybridge"
  28972. Intel Sandy Bridge \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
  28973. SSE4.1, SSE4.2, POPCNT, AVX, AES\s0 and \s-1PCLMUL\s0 instruction set support.
  28974. .IP "\fBivybridge\fR" 4
  28975. .IX Item "ivybridge"
  28976. Intel Ivy Bridge \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
  28977. SSE4.1, SSE4.2, POPCNT, AVX, AES, PCLMUL, FSGSBASE, RDRND\s0 and F16C
  28978. instruction set support.
  28979. .IP "\fBhaswell\fR" 4
  28980. .IX Item "haswell"
  28981. Intel Haswell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  28982. SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  28983. BMI, BMI2\s0 and F16C instruction set support.
  28984. .IP "\fBbroadwell\fR" 4
  28985. .IX Item "broadwell"
  28986. Intel Broadwell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  28987. SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2,
  28988. F16C, RDSEED ADCX\s0 and \s-1PREFETCHW\s0 instruction set support.
  28989. .IP "\fBskylake\fR" 4
  28990. .IX Item "skylake"
  28991. Intel Skylake \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  28992. SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  28993. BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC\s0 and \s-1XSAVES\s0
  28994. instruction set support.
  28995. .IP "\fBbonnell\fR" 4
  28996. .IX Item "bonnell"
  28997. Intel Bonnell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
  28998. instruction set support.
  28999. .IP "\fBsilvermont\fR" 4
  29000. .IX Item "silvermont"
  29001. Intel Silvermont \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  29002. SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW, PCLMUL\s0 and \s-1RDRND\s0 instruction set support.
  29003. .IP "\fBgoldmont\fR" 4
  29004. .IX Item "goldmont"
  29005. Intel Goldmont \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  29006. SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW, PCLMUL, RDRND, XSAVE, XSAVEC, XSAVES,
  29007. XSAVEOPT\s0 and \s-1FSGSBASE\s0 instruction set support.
  29008. .IP "\fBgoldmont-plus\fR" 4
  29009. .IX Item "goldmont-plus"
  29010. Intel Goldmont Plus \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
  29011. SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW, PCLMUL, RDRND, XSAVE, XSAVEC,
  29012. XSAVES, XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX\s0 and \s-1UMIP\s0 instruction set support.
  29013. .IP "\fBtremont\fR" 4
  29014. .IX Item "tremont"
  29015. Intel Tremont \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  29016. SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW, PCLMUL, RDRND, XSAVE, XSAVEC, XSAVES,
  29017. XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX, UMIP,\s0 GFNI-SSE, \s-1CLWB, MOVDIRI,
  29018. MOVDIR64B, CLDEMOTE\s0 and \s-1WAITPKG\s0 instruction set support.
  29019. .IP "\fBknl\fR" 4
  29020. .IX Item "knl"
  29021. Intel Knight's Landing \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
  29022. SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  29023. BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, PREFETCHWT1, AVX512F, AVX512PF,
  29024. AVX512ER\s0 and \s-1AVX512CD\s0 instruction set support.
  29025. .IP "\fBknm\fR" 4
  29026. .IX Item "knm"
  29027. Intel Knights Mill \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
  29028. SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  29029. BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, PREFETCHWT1, AVX512F, AVX512PF,
  29030. AVX512ER, AVX512CD, AVX5124VNNIW, AVX5124FMAPS\s0 and \s-1AVX512VPOPCNTDQ\s0 instruction
  29031. set support.
  29032. .IP "\fBskylake\-avx512\fR" 4
  29033. .IX Item "skylake-avx512"
  29034. Intel Skylake Server \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
  29035. SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  29036. BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  29037. CLWB, AVX512VL, AVX512BW, AVX512DQ\s0 and \s-1AVX512CD\s0 instruction set support.
  29038. .IP "\fBcannonlake\fR" 4
  29039. .IX Item "cannonlake"
  29040. Intel Cannonlake Server \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2,
  29041. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE,
  29042. RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC,
  29043. XSAVES, AVX512F, AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  29044. AVX512IFMA, SHA\s0 and \s-1UMIP\s0 instruction set support.
  29045. .IP "\fBicelake-client\fR" 4
  29046. .IX Item "icelake-client"
  29047. Intel Icelake Client \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2,
  29048. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE,
  29049. RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC,
  29050. XSAVES, AVX512F, AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  29051. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2, AVX512VPOPCNTDQ,
  29052. AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES\s0 instruction set support.
  29053. .IP "\fBicelake-server\fR" 4
  29054. .IX Item "icelake-server"
  29055. Intel Icelake Server \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2,
  29056. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE,
  29057. RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC,
  29058. XSAVES, AVX512F, AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  29059. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2, AVX512VPOPCNTDQ,
  29060. AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES, PCONFIG\s0 and \s-1WBNOINVD\s0 instruction
  29061. set support.
  29062. .IP "\fBcascadelake\fR" 4
  29063. .IX Item "cascadelake"
  29064. Intel Cascadelake \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  29065. SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI,
  29066. BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F, CLWB,
  29067. AVX512VL, AVX512BW, AVX512DQ, AVX512CD\s0 and \s-1AVX512VNNI\s0 instruction set support.
  29068. .IP "\fBcooperlake\fR" 4
  29069. .IX Item "cooperlake"
  29070. Intel cooperlake \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  29071. SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI,
  29072. BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F, CLWB,
  29073. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VNNI\s0 and \s-1AVX512BF16\s0 instruction
  29074. set support.
  29075. .IP "\fBtigerlake\fR" 4
  29076. .IX Item "tigerlake"
  29077. Intel Tigerlake \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  29078. SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI,
  29079. BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  29080. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI, AVX512IFMA, SHA, CLWB, UMIP,
  29081. RDPID, GFNI, AVX512VBMI2, AVX512VPOPCNTDQ, AVX512BITALG, AVX512VNNI, VPCLMULQDQ,
  29082. VAES, PCONFIG, WBNOINVD, MOVDIRI, MOVDIR64B, AVX512VP2INTERSECT\s0 and \s-1KEYLOCKER\s0
  29083. instruction set support.
  29084. .IP "\fBsapphirerapids\fR" 4
  29085. .IX Item "sapphirerapids"
  29086. Intel sapphirerapids \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
  29087. SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND,
  29088. FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES,
  29089. AVX512F, CLWB, AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VNNI, AVX512BF16,
  29090. MOVDIRI, MOVDIR64B, AVX512VP2INTERSECT, ENQCMD, CLDEMOTE, PTWRITE, WAITPKG,
  29091. SERIALIZE, TSXLDTRK, UINTR, AMX\-BF16,\s0 AMX-TILE, \s-1AMX\-INT8\s0 and AVX-VNNI
  29092. instruction set support.
  29093. .IP "\fBalderlake\fR" 4
  29094. .IX Item "alderlake"
  29095. Intel Alderlake \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  29096. SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW, PCLMUL, RDRND, XSAVE, XSAVEC, XSAVES,
  29097. XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX, UMIP,\s0 GFNI-SSE, \s-1CLWB, MOVDIRI,
  29098. MOVDIR64B, CLDEMOTE, WAITPKG, ADCX, AVX, AVX2, BMI, BMI2, F16C, FMA, LZCNT,
  29099. PCONFIG, PKU, VAES, VPCLMULQDQ, SERIALIZE, HRESET, KL, WIDEKL\s0 and AVX-VNNI
  29100. instruction set support.
  29101. .IP "\fBrocketlake\fR" 4
  29102. .IX Item "rocketlake"
  29103. Intel Rocketlake \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2,
  29104. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE,
  29105. RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC,
  29106. XSAVES, AVX512F, AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  29107. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2, AVX512VPOPCNTDQ,
  29108. AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES\s0 instruction set support.
  29109. .IP "\fBk6\fR" 4
  29110. .IX Item "k6"
  29111. \&\s-1AMD K6 CPU\s0 with \s-1MMX\s0 instruction set support.
  29112. .IP "\fBk6\-2\fR" 4
  29113. .IX Item "k6-2"
  29114. .PD 0
  29115. .IP "\fBk6\-3\fR" 4
  29116. .IX Item "k6-3"
  29117. .PD
  29118. Improved versions of \s-1AMD K6 CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
  29119. .IP "\fBathlon\fR" 4
  29120. .IX Item "athlon"
  29121. .PD 0
  29122. .IP "\fBathlon-tbird\fR" 4
  29123. .IX Item "athlon-tbird"
  29124. .PD
  29125. \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX,\s0 3dNOW!, enhanced 3DNow! and \s-1SSE\s0 prefetch instructions
  29126. support.
  29127. .IP "\fBathlon\-4\fR" 4
  29128. .IX Item "athlon-4"
  29129. .PD 0
  29130. .IP "\fBathlon-xp\fR" 4
  29131. .IX Item "athlon-xp"
  29132. .IP "\fBathlon-mp\fR" 4
  29133. .IX Item "athlon-mp"
  29134. .PD
  29135. Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX,\s0 3DNow!, enhanced 3DNow! and full \s-1SSE\s0
  29136. instruction set support.
  29137. .IP "\fBk8\fR" 4
  29138. .IX Item "k8"
  29139. .PD 0
  29140. .IP "\fBopteron\fR" 4
  29141. .IX Item "opteron"
  29142. .IP "\fBathlon64\fR" 4
  29143. .IX Item "athlon64"
  29144. .IP "\fBathlon-fx\fR" 4
  29145. .IX Item "athlon-fx"
  29146. .PD
  29147. Processors based on the \s-1AMD K8\s0 core with x86\-64 instruction set support,
  29148. including the \s-1AMD\s0 Opteron, Athlon 64, and Athlon 64 \s-1FX\s0 processors.
  29149. (This supersets \s-1MMX, SSE, SSE2,\s0 3DNow!, enhanced 3DNow! and 64\-bit
  29150. instruction set extensions.)
  29151. .IP "\fBk8\-sse3\fR" 4
  29152. .IX Item "k8-sse3"
  29153. .PD 0
  29154. .IP "\fBopteron\-sse3\fR" 4
  29155. .IX Item "opteron-sse3"
  29156. .IP "\fBathlon64\-sse3\fR" 4
  29157. .IX Item "athlon64-sse3"
  29158. .PD
  29159. Improved versions of \s-1AMD K8\s0 cores with \s-1SSE3\s0 instruction set support.
  29160. .IP "\fBamdfam10\fR" 4
  29161. .IX Item "amdfam10"
  29162. .PD 0
  29163. .IP "\fBbarcelona\fR" 4
  29164. .IX Item "barcelona"
  29165. .PD
  29166. CPUs based on \s-1AMD\s0 Family 10h cores with x86\-64 instruction set support. (This
  29167. supersets \s-1MMX, SSE, SSE2, SSE3, SSE4A,\s0 3DNow!, enhanced 3DNow!, \s-1ABM\s0 and 64\-bit
  29168. instruction set extensions.)
  29169. .IP "\fBbdver1\fR" 4
  29170. .IX Item "bdver1"
  29171. CPUs based on \s-1AMD\s0 Family 15h cores with x86\-64 instruction set support. (This
  29172. supersets \s-1FMA4, AVX, XOP, LWP, AES, PCLMUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A,
  29173. SSSE3, SSE4.1, SSE4.2, ABM\s0 and 64\-bit instruction set extensions.)
  29174. .IP "\fBbdver2\fR" 4
  29175. .IX Item "bdver2"
  29176. \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support. (This
  29177. supersets \s-1BMI, TBM, F16C, FMA, FMA4, AVX, XOP, LWP, AES, PCLMUL, CX16, MMX,
  29178. SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM\s0 and 64\-bit instruction set
  29179. extensions.)
  29180. .IP "\fBbdver3\fR" 4
  29181. .IX Item "bdver3"
  29182. \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support. (This
  29183. supersets \s-1BMI, TBM, F16C, FMA, FMA4, FSGSBASE, AVX, XOP, LWP, AES,\s0
  29184. \&\s-1PCLMUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM\s0 and
  29185. 64\-bit instruction set extensions.)
  29186. .IP "\fBbdver4\fR" 4
  29187. .IX Item "bdver4"
  29188. \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support. (This
  29189. supersets \s-1BMI, BMI2, TBM, F16C, FMA, FMA4, FSGSBASE, AVX, AVX2, XOP, LWP,\s0
  29190. \&\s-1AES, PCLMUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1,
  29191. SSE4.2, ABM\s0 and 64\-bit instruction set extensions.)
  29192. .IP "\fBznver1\fR" 4
  29193. .IX Item "znver1"
  29194. \&\s-1AMD\s0 Family 17h core based CPUs with x86\-64 instruction set support. (This
  29195. supersets \s-1BMI, BMI2, F16C, FMA, FSGSBASE, AVX, AVX2, ADCX, RDSEED, MWAITX,
  29196. SHA, CLZERO, AES, PCLMUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
  29197. SSE4.1, SSE4.2, ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT,\s0 and 64\-bit
  29198. instruction set extensions.)
  29199. .IP "\fBznver2\fR" 4
  29200. .IX Item "znver2"
  29201. \&\s-1AMD\s0 Family 17h core based CPUs with x86\-64 instruction set support. (This
  29202. supersets \s-1BMI, BMI2, CLWB, F16C, FMA, FSGSBASE, AVX, AVX2, ADCX, RDSEED,
  29203. MWAITX, SHA, CLZERO, AES, PCLMUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A,
  29204. SSSE3, SSE4.1, SSE4.2, ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT, RDPID,
  29205. WBNOINVD,\s0 and 64\-bit instruction set extensions.)
  29206. .IP "\fBznver3\fR" 4
  29207. .IX Item "znver3"
  29208. \&\s-1AMD\s0 Family 19h core based CPUs with x86\-64 instruction set support. (This
  29209. supersets \s-1BMI, BMI2, CLWB, F16C, FMA, FSGSBASE, AVX, AVX2, ADCX, RDSEED,
  29210. MWAITX, SHA, CLZERO, AES, PCLMUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A,
  29211. SSSE3, SSE4.1, SSE4.2, ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT, RDPID,
  29212. WBNOINVD, PKU, VPCLMULQDQ, VAES,\s0 and 64\-bit instruction set extensions.)
  29213. .IP "\fBbtver1\fR" 4
  29214. .IX Item "btver1"
  29215. CPUs based on \s-1AMD\s0 Family 14h cores with x86\-64 instruction set support. (This
  29216. supersets \s-1MMX, SSE, SSE2, SSE3, SSSE3, SSE4A, CX16, ABM\s0 and 64\-bit
  29217. instruction set extensions.)
  29218. .IP "\fBbtver2\fR" 4
  29219. .IX Item "btver2"
  29220. CPUs based on \s-1AMD\s0 Family 16h cores with x86\-64 instruction set support. This
  29221. includes \s-1MOVBE, F16C, BMI, AVX, PCLMUL, AES, SSE4.2, SSE4.1, CX16, ABM,
  29222. SSE4A, SSSE3, SSE3, SSE2, SSE, MMX\s0 and 64\-bit instruction set extensions.
  29223. .IP "\fBwinchip\-c6\fR" 4
  29224. .IX Item "winchip-c6"
  29225. \&\s-1IDT\s0 WinChip C6 \s-1CPU,\s0 dealt in same way as i486 with additional \s-1MMX\s0 instruction
  29226. set support.
  29227. .IP "\fBwinchip2\fR" 4
  29228. .IX Item "winchip2"
  29229. \&\s-1IDT\s0 WinChip 2 \s-1CPU,\s0 dealt in same way as i486 with additional \s-1MMX\s0 and 3DNow!
  29230. instruction set support.
  29231. .IP "\fBc3\fR" 4
  29232. .IX Item "c3"
  29233. \&\s-1VIA C3 CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
  29234. (No scheduling is implemented for this chip.)
  29235. .IP "\fBc3\-2\fR" 4
  29236. .IX Item "c3-2"
  29237. \&\s-1VIA C3\-2\s0 (Nehemiah/C5XL) \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.
  29238. (No scheduling is implemented for this chip.)
  29239. .IP "\fBc7\fR" 4
  29240. .IX Item "c7"
  29241. \&\s-1VIA C7\s0 (Esther) \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction set support.
  29242. (No scheduling is implemented for this chip.)
  29243. .IP "\fBsamuel\-2\fR" 4
  29244. .IX Item "samuel-2"
  29245. \&\s-1VIA\s0 Eden Samuel 2 \s-1CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
  29246. (No scheduling is implemented for this chip.)
  29247. .IP "\fBnehemiah\fR" 4
  29248. .IX Item "nehemiah"
  29249. \&\s-1VIA\s0 Eden Nehemiah \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.
  29250. (No scheduling is implemented for this chip.)
  29251. .IP "\fBesther\fR" 4
  29252. .IX Item "esther"
  29253. \&\s-1VIA\s0 Eden Esther \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction set support.
  29254. (No scheduling is implemented for this chip.)
  29255. .IP "\fBeden\-x2\fR" 4
  29256. .IX Item "eden-x2"
  29257. \&\s-1VIA\s0 Eden X2 \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction set support.
  29258. (No scheduling is implemented for this chip.)
  29259. .IP "\fBeden\-x4\fR" 4
  29260. .IX Item "eden-x4"
  29261. \&\s-1VIA\s0 Eden X4 \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2,
  29262. AVX\s0 and \s-1AVX2\s0 instruction set support.
  29263. (No scheduling is implemented for this chip.)
  29264. .IP "\fBnano\fR" 4
  29265. .IX Item "nano"
  29266. Generic \s-1VIA\s0 Nano \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
  29267. instruction set support.
  29268. (No scheduling is implemented for this chip.)
  29269. .IP "\fBnano\-1000\fR" 4
  29270. .IX Item "nano-1000"
  29271. \&\s-1VIA\s0 Nano 1xxx \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
  29272. instruction set support.
  29273. (No scheduling is implemented for this chip.)
  29274. .IP "\fBnano\-2000\fR" 4
  29275. .IX Item "nano-2000"
  29276. \&\s-1VIA\s0 Nano 2xxx \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
  29277. instruction set support.
  29278. (No scheduling is implemented for this chip.)
  29279. .IP "\fBnano\-3000\fR" 4
  29280. .IX Item "nano-3000"
  29281. \&\s-1VIA\s0 Nano 3xxx \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3\s0 and \s-1SSE4.1\s0
  29282. instruction set support.
  29283. (No scheduling is implemented for this chip.)
  29284. .IP "\fBnano\-x2\fR" 4
  29285. .IX Item "nano-x2"
  29286. \&\s-1VIA\s0 Nano Dual Core \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3\s0 and \s-1SSE4.1\s0
  29287. instruction set support.
  29288. (No scheduling is implemented for this chip.)
  29289. .IP "\fBnano\-x4\fR" 4
  29290. .IX Item "nano-x4"
  29291. \&\s-1VIA\s0 Nano Quad Core \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3\s0 and \s-1SSE4.1\s0
  29292. instruction set support.
  29293. (No scheduling is implemented for this chip.)
  29294. .IP "\fBgeode\fR" 4
  29295. .IX Item "geode"
  29296. \&\s-1AMD\s0 Geode embedded processor with \s-1MMX\s0 and 3DNow! instruction set support.
  29297. .RE
  29298. .RS 4
  29299. .RE
  29300. .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
  29301. .IX Item "-mtune=cpu-type"
  29302. Tune to \fIcpu-type\fR everything applicable about the generated code, except
  29303. for the \s-1ABI\s0 and the set of available instructions.
  29304. While picking a specific \fIcpu-type\fR schedules things appropriately
  29305. for that particular chip, the compiler does not generate any code that
  29306. cannot run on the default machine type unless you use a
  29307. \&\fB\-march=\fR\fIcpu-type\fR option.
  29308. For example, if \s-1GCC\s0 is configured for i686\-pc\-linux\-gnu
  29309. then \fB\-mtune=pentium4\fR generates code that is tuned for Pentium 4
  29310. but still runs on i686 machines.
  29311. .Sp
  29312. The choices for \fIcpu-type\fR are the same as for \fB\-march\fR.
  29313. In addition, \fB\-mtune\fR supports 2 extra choices for \fIcpu-type\fR:
  29314. .RS 4
  29315. .IP "\fBgeneric\fR" 4
  29316. .IX Item "generic"
  29317. Produce code optimized for the most common \s-1IA32/AMD64/EM64T\s0 processors.
  29318. If you know the \s-1CPU\s0 on which your code will run, then you should use
  29319. the corresponding \fB\-mtune\fR or \fB\-march\fR option instead of
  29320. \&\fB\-mtune=generic\fR. But, if you do not know exactly what \s-1CPU\s0 users
  29321. of your application will have, then you should use this option.
  29322. .Sp
  29323. As new processors are deployed in the marketplace, the behavior of this
  29324. option will change. Therefore, if you upgrade to a newer version of
  29325. \&\s-1GCC,\s0 code generation controlled by this option will change to reflect
  29326. the processors
  29327. that are most common at the time that version of \s-1GCC\s0 is released.
  29328. .Sp
  29329. There is no \fB\-march=generic\fR option because \fB\-march\fR
  29330. indicates the instruction set the compiler can use, and there is no
  29331. generic instruction set applicable to all processors. In contrast,
  29332. \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
  29333. processors) for which the code is optimized.
  29334. .IP "\fBintel\fR" 4
  29335. .IX Item "intel"
  29336. Produce code optimized for the most current Intel processors, which are
  29337. Haswell and Silvermont for this version of \s-1GCC.\s0 If you know the \s-1CPU\s0
  29338. on which your code will run, then you should use the corresponding
  29339. \&\fB\-mtune\fR or \fB\-march\fR option instead of \fB\-mtune=intel\fR.
  29340. But, if you want your application performs better on both Haswell and
  29341. Silvermont, then you should use this option.
  29342. .Sp
  29343. As new Intel processors are deployed in the marketplace, the behavior of
  29344. this option will change. Therefore, if you upgrade to a newer version of
  29345. \&\s-1GCC,\s0 code generation controlled by this option will change to reflect
  29346. the most current Intel processors at the time that version of \s-1GCC\s0 is
  29347. released.
  29348. .Sp
  29349. There is no \fB\-march=intel\fR option because \fB\-march\fR indicates
  29350. the instruction set the compiler can use, and there is no common
  29351. instruction set applicable to all processors. In contrast,
  29352. \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
  29353. processors) for which the code is optimized.
  29354. .RE
  29355. .RS 4
  29356. .RE
  29357. .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
  29358. .IX Item "-mcpu=cpu-type"
  29359. A deprecated synonym for \fB\-mtune\fR.
  29360. .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
  29361. .IX Item "-mfpmath=unit"
  29362. Generate floating-point arithmetic for selected unit \fIunit\fR. The choices
  29363. for \fIunit\fR are:
  29364. .RS 4
  29365. .IP "\fB387\fR" 4
  29366. .IX Item "387"
  29367. Use the standard 387 floating-point coprocessor present on the majority of chips and
  29368. emulated otherwise. Code compiled with this option runs almost everywhere.
  29369. The temporary results are computed in 80\-bit precision instead of the precision
  29370. specified by the type, resulting in slightly different results compared to most
  29371. of other chips. See \fB\-ffloat\-store\fR for more detailed description.
  29372. .Sp
  29373. This is the default choice for non-Darwin x86\-32 targets.
  29374. .IP "\fBsse\fR" 4
  29375. .IX Item "sse"
  29376. Use scalar floating-point instructions present in the \s-1SSE\s0 instruction set.
  29377. This instruction set is supported by Pentium \s-1III\s0 and newer chips,
  29378. and in the \s-1AMD\s0 line
  29379. by Athlon\-4, Athlon \s-1XP\s0 and Athlon \s-1MP\s0 chips. The earlier version of the \s-1SSE\s0
  29380. instruction set supports only single-precision arithmetic, thus the double and
  29381. extended-precision arithmetic are still done using 387. A later version, present
  29382. only in Pentium 4 and \s-1AMD\s0 x86\-64 chips, supports double-precision
  29383. arithmetic too.
  29384. .Sp
  29385. For the x86\-32 compiler, you must use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
  29386. or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
  29387. effective. For the x86\-64 compiler, these extensions are enabled by default.
  29388. .Sp
  29389. The resulting code should be considerably faster in the majority of cases and avoid
  29390. the numerical instability problems of 387 code, but may break some existing
  29391. code that expects temporaries to be 80 bits.
  29392. .Sp
  29393. This is the default choice for the x86\-64 compiler, Darwin x86\-32 targets,
  29394. and the default choice for x86\-32 targets with the \s-1SSE2\s0 instruction set
  29395. when \fB\-ffast\-math\fR is enabled.
  29396. .IP "\fBsse,387\fR" 4
  29397. .IX Item "sse,387"
  29398. .PD 0
  29399. .IP "\fBsse+387\fR" 4
  29400. .IX Item "sse+387"
  29401. .IP "\fBboth\fR" 4
  29402. .IX Item "both"
  29403. .PD
  29404. Attempt to utilize both instruction sets at once. This effectively doubles the
  29405. amount of available registers, and on chips with separate execution units for
  29406. 387 and \s-1SSE\s0 the execution resources too. Use this option with care, as it is
  29407. still experimental, because the \s-1GCC\s0 register allocator does not model separate
  29408. functional units well, resulting in unstable performance.
  29409. .RE
  29410. .RS 4
  29411. .RE
  29412. .IP "\fB\-masm=\fR\fIdialect\fR" 4
  29413. .IX Item "-masm=dialect"
  29414. Output assembly instructions using selected \fIdialect\fR. Also affects
  29415. which dialect is used for basic \f(CW\*(C`asm\*(C'\fR and
  29416. extended \f(CW\*(C`asm\*(C'\fR. Supported choices (in dialect
  29417. order) are \fBatt\fR or \fBintel\fR. The default is \fBatt\fR. Darwin does
  29418. not support \fBintel\fR.
  29419. .IP "\fB\-mieee\-fp\fR" 4
  29420. .IX Item "-mieee-fp"
  29421. .PD 0
  29422. .IP "\fB\-mno\-ieee\-fp\fR" 4
  29423. .IX Item "-mno-ieee-fp"
  29424. .PD
  29425. Control whether or not the compiler uses \s-1IEEE\s0 floating-point
  29426. comparisons. These correctly handle the case where the result of a
  29427. comparison is unordered.
  29428. .IP "\fB\-m80387\fR" 4
  29429. .IX Item "-m80387"
  29430. .PD 0
  29431. .IP "\fB\-mhard\-float\fR" 4
  29432. .IX Item "-mhard-float"
  29433. .PD
  29434. Generate output containing 80387 instructions for floating point.
  29435. .IP "\fB\-mno\-80387\fR" 4
  29436. .IX Item "-mno-80387"
  29437. .PD 0
  29438. .IP "\fB\-msoft\-float\fR" 4
  29439. .IX Item "-msoft-float"
  29440. .PD
  29441. Generate output containing library calls for floating point.
  29442. .Sp
  29443. \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC.\s0
  29444. Normally the facilities of the machine's usual C compiler are used, but
  29445. this cannot be done directly in cross-compilation. You must make your
  29446. own arrangements to provide suitable library functions for
  29447. cross-compilation.
  29448. .Sp
  29449. On machines where a function returns floating-point results in the 80387
  29450. register stack, some floating-point opcodes may be emitted even if
  29451. \&\fB\-msoft\-float\fR is used.
  29452. .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
  29453. .IX Item "-mno-fp-ret-in-387"
  29454. Do not use the \s-1FPU\s0 registers for return values of functions.
  29455. .Sp
  29456. The usual calling convention has functions return values of types
  29457. \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
  29458. is no \s-1FPU.\s0 The idea is that the operating system should emulate
  29459. an \s-1FPU.\s0
  29460. .Sp
  29461. The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
  29462. in ordinary \s-1CPU\s0 registers instead.
  29463. .IP "\fB\-mno\-fancy\-math\-387\fR" 4
  29464. .IX Item "-mno-fancy-math-387"
  29465. Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
  29466. \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387. Specify this option to avoid
  29467. generating those instructions.
  29468. This option is overridden when \fB\-march\fR
  29469. indicates that the target \s-1CPU\s0 always has an \s-1FPU\s0 and so the
  29470. instruction does not need emulation. These
  29471. instructions are not generated unless you also use the
  29472. \&\fB\-funsafe\-math\-optimizations\fR switch.
  29473. .IP "\fB\-malign\-double\fR" 4
  29474. .IX Item "-malign-double"
  29475. .PD 0
  29476. .IP "\fB\-mno\-align\-double\fR" 4
  29477. .IX Item "-mno-align-double"
  29478. .PD
  29479. Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
  29480. \&\f(CW\*(C`long long\*(C'\fR variables on a two-word boundary or a one-word
  29481. boundary. Aligning \f(CW\*(C`double\*(C'\fR variables on a two-word boundary
  29482. produces code that runs somewhat faster on a Pentium at the
  29483. expense of more memory.
  29484. .Sp
  29485. On x86\-64, \fB\-malign\-double\fR is enabled by default.
  29486. .Sp
  29487. \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
  29488. structures containing the above types are aligned differently than
  29489. the published application binary interface specifications for the x86\-32
  29490. and are not binary compatible with structures in code compiled
  29491. without that switch.
  29492. .IP "\fB\-m96bit\-long\-double\fR" 4
  29493. .IX Item "-m96bit-long-double"
  29494. .PD 0
  29495. .IP "\fB\-m128bit\-long\-double\fR" 4
  29496. .IX Item "-m128bit-long-double"
  29497. .PD
  29498. These switches control the size of \f(CW\*(C`long double\*(C'\fR type. The x86\-32
  29499. application binary interface specifies the size to be 96 bits,
  29500. so \fB\-m96bit\-long\-double\fR is the default in 32\-bit mode.
  29501. .Sp
  29502. Modern architectures (Pentium and newer) prefer \f(CW\*(C`long double\*(C'\fR
  29503. to be aligned to an 8\- or 16\-byte boundary. In arrays or structures
  29504. conforming to the \s-1ABI,\s0 this is not possible. So specifying
  29505. \&\fB\-m128bit\-long\-double\fR aligns \f(CW\*(C`long double\*(C'\fR
  29506. to a 16\-byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
  29507. 32\-bit zero.
  29508. .Sp
  29509. In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
  29510. its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is aligned on 16\-byte boundary.
  29511. .Sp
  29512. Notice that neither of these options enable any extra precision over the x87
  29513. standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
  29514. .Sp
  29515. \&\fBWarning:\fR if you override the default value for your target \s-1ABI,\s0 this
  29516. changes the size of
  29517. structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
  29518. as well as modifying the function calling convention for functions taking
  29519. \&\f(CW\*(C`long double\*(C'\fR. Hence they are not binary-compatible
  29520. with code compiled without that switch.
  29521. .IP "\fB\-mlong\-double\-64\fR" 4
  29522. .IX Item "-mlong-double-64"
  29523. .PD 0
  29524. .IP "\fB\-mlong\-double\-80\fR" 4
  29525. .IX Item "-mlong-double-80"
  29526. .IP "\fB\-mlong\-double\-128\fR" 4
  29527. .IX Item "-mlong-double-128"
  29528. .PD
  29529. These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
  29530. of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
  29531. type. This is the default for 32\-bit Bionic C library. A size
  29532. of 128 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the
  29533. \&\f(CW\*(C`_\|_float128\*(C'\fR type. This is the default for 64\-bit Bionic C library.
  29534. .Sp
  29535. \&\fBWarning:\fR if you override the default value for your target \s-1ABI,\s0 this
  29536. changes the size of
  29537. structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
  29538. as well as modifying the function calling convention for functions taking
  29539. \&\f(CW\*(C`long double\*(C'\fR. Hence they are not binary-compatible
  29540. with code compiled without that switch.
  29541. .IP "\fB\-malign\-data=\fR\fItype\fR" 4
  29542. .IX Item "-malign-data=type"
  29543. Control how \s-1GCC\s0 aligns variables. Supported values for \fItype\fR are
  29544. \&\fBcompat\fR uses increased alignment value compatible uses \s-1GCC 4.8\s0
  29545. and earlier, \fBabi\fR uses alignment value as specified by the
  29546. psABI, and \fBcacheline\fR uses increased alignment value to match
  29547. the cache line size. \fBcompat\fR is the default.
  29548. .IP "\fB\-mlarge\-data\-threshold=\fR\fIthreshold\fR" 4
  29549. .IX Item "-mlarge-data-threshold=threshold"
  29550. When \fB\-mcmodel=medium\fR is specified, data objects larger than
  29551. \&\fIthreshold\fR are placed in the large data section. This value must be the
  29552. same across all objects linked into the binary, and defaults to 65535.
  29553. .IP "\fB\-mrtd\fR" 4
  29554. .IX Item "-mrtd"
  29555. Use a different function-calling convention, in which functions that
  29556. take a fixed number of arguments return with the \f(CW\*(C`ret \f(CInum\f(CW\*(C'\fR
  29557. instruction, which pops their arguments while returning. This saves one
  29558. instruction in the caller since there is no need to pop the arguments
  29559. there.
  29560. .Sp
  29561. You can specify that an individual function is called with this calling
  29562. sequence with the function attribute \f(CW\*(C`stdcall\*(C'\fR. You can also
  29563. override the \fB\-mrtd\fR option by using the function attribute
  29564. \&\f(CW\*(C`cdecl\*(C'\fR.
  29565. .Sp
  29566. \&\fBWarning:\fR this calling convention is incompatible with the one
  29567. normally used on Unix, so you cannot use it if you need to call
  29568. libraries compiled with the Unix compiler.
  29569. .Sp
  29570. Also, you must provide function prototypes for all functions that
  29571. take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
  29572. otherwise incorrect code is generated for calls to those
  29573. functions.
  29574. .Sp
  29575. In addition, seriously incorrect code results if you call a
  29576. function with too many arguments. (Normally, extra arguments are
  29577. harmlessly ignored.)
  29578. .IP "\fB\-mregparm=\fR\fInum\fR" 4
  29579. .IX Item "-mregparm=num"
  29580. Control how many registers are used to pass integer arguments. By
  29581. default, no registers are used to pass arguments, and at most 3
  29582. registers can be used. You can control this behavior for a specific
  29583. function by using the function attribute \f(CW\*(C`regparm\*(C'\fR.
  29584. .Sp
  29585. \&\fBWarning:\fR if you use this switch, and
  29586. \&\fInum\fR is nonzero, then you must build all modules with the same
  29587. value, including any libraries. This includes the system libraries and
  29588. startup modules.
  29589. .IP "\fB\-msseregparm\fR" 4
  29590. .IX Item "-msseregparm"
  29591. Use \s-1SSE\s0 register passing conventions for float and double arguments
  29592. and return values. You can control this behavior for a specific
  29593. function by using the function attribute \f(CW\*(C`sseregparm\*(C'\fR.
  29594. .Sp
  29595. \&\fBWarning:\fR if you use this switch then you must build all
  29596. modules with the same value, including any libraries. This includes
  29597. the system libraries and startup modules.
  29598. .IP "\fB\-mvect8\-ret\-in\-mem\fR" 4
  29599. .IX Item "-mvect8-ret-in-mem"
  29600. Return 8\-byte vectors in memory instead of \s-1MMX\s0 registers. This is the
  29601. default on VxWorks to match the \s-1ABI\s0 of the Sun Studio compilers until
  29602. version 12. \fIOnly\fR use this option if you need to remain
  29603. compatible with existing code produced by those previous compiler
  29604. versions or older versions of \s-1GCC.\s0
  29605. .IP "\fB\-mpc32\fR" 4
  29606. .IX Item "-mpc32"
  29607. .PD 0
  29608. .IP "\fB\-mpc64\fR" 4
  29609. .IX Item "-mpc64"
  29610. .IP "\fB\-mpc80\fR" 4
  29611. .IX Item "-mpc80"
  29612. .PD
  29613. Set 80387 floating-point precision to 32, 64 or 80 bits. When \fB\-mpc32\fR
  29614. is specified, the significands of results of floating-point operations are
  29615. rounded to 24 bits (single precision); \fB\-mpc64\fR rounds the
  29616. significands of results of floating-point operations to 53 bits (double
  29617. precision) and \fB\-mpc80\fR rounds the significands of results of
  29618. floating-point operations to 64 bits (extended double precision), which is
  29619. the default. When this option is used, floating-point operations in higher
  29620. precisions are not available to the programmer without setting the \s-1FPU\s0
  29621. control word explicitly.
  29622. .Sp
  29623. Setting the rounding of floating-point operations to less than the default
  29624. 80 bits can speed some programs by 2% or more. Note that some mathematical
  29625. libraries assume that extended-precision (80\-bit) floating-point operations
  29626. are enabled by default; routines in such libraries could suffer significant
  29627. loss of accuracy, typically through so-called \*(L"catastrophic cancellation\*(R",
  29628. when this option is used to set the precision to less than extended precision.
  29629. .IP "\fB\-mstackrealign\fR" 4
  29630. .IX Item "-mstackrealign"
  29631. Realign the stack at entry. On the x86, the \fB\-mstackrealign\fR
  29632. option generates an alternate prologue and epilogue that realigns the
  29633. run-time stack if necessary. This supports mixing legacy codes that keep
  29634. 4\-byte stack alignment with modern codes that keep 16\-byte stack alignment for
  29635. \&\s-1SSE\s0 compatibility. See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
  29636. applicable to individual functions.
  29637. .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
  29638. .IX Item "-mpreferred-stack-boundary=num"
  29639. Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
  29640. byte boundary. If \fB\-mpreferred\-stack\-boundary\fR is not specified,
  29641. the default is 4 (16 bytes or 128 bits).
  29642. .Sp
  29643. \&\fBWarning:\fR When generating code for the x86\-64 architecture with
  29644. \&\s-1SSE\s0 extensions disabled, \fB\-mpreferred\-stack\-boundary=3\fR can be
  29645. used to keep the stack boundary aligned to 8 byte boundary. Since
  29646. x86\-64 \s-1ABI\s0 require 16 byte stack alignment, this is \s-1ABI\s0 incompatible and
  29647. intended to be used in controlled environment where stack space is
  29648. important limitation. This option leads to wrong code when functions
  29649. compiled with 16 byte stack alignment (such as functions from a standard
  29650. library) are called with misaligned stack. In this case, \s-1SSE\s0
  29651. instructions may lead to misaligned memory access traps. In addition,
  29652. variable arguments are handled incorrectly for 16 byte aligned
  29653. objects (including x87 long double and _\|_int128), leading to wrong
  29654. results. You must build all modules with
  29655. \&\fB\-mpreferred\-stack\-boundary=3\fR, including any libraries. This
  29656. includes the system libraries and startup modules.
  29657. .IP "\fB\-mincoming\-stack\-boundary=\fR\fInum\fR" 4
  29658. .IX Item "-mincoming-stack-boundary=num"
  29659. Assume the incoming stack is aligned to a 2 raised to \fInum\fR byte
  29660. boundary. If \fB\-mincoming\-stack\-boundary\fR is not specified,
  29661. the one specified by \fB\-mpreferred\-stack\-boundary\fR is used.
  29662. .Sp
  29663. On Pentium and Pentium Pro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
  29664. should be aligned to an 8\-byte boundary (see \fB\-malign\-double\fR) or
  29665. suffer significant run time performance penalties. On Pentium \s-1III,\s0 the
  29666. Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR may not work
  29667. properly if it is not 16\-byte aligned.
  29668. .Sp
  29669. To ensure proper alignment of this values on the stack, the stack boundary
  29670. must be as aligned as that required by any value stored on the stack.
  29671. Further, every function must be generated such that it keeps the stack
  29672. aligned. Thus calling a function compiled with a higher preferred
  29673. stack boundary from a function compiled with a lower preferred stack
  29674. boundary most likely misaligns the stack. It is recommended that
  29675. libraries that use callbacks always use the default setting.
  29676. .Sp
  29677. This extra alignment does consume extra stack space, and generally
  29678. increases code size. Code that is sensitive to stack space usage, such
  29679. as embedded systems and operating system kernels, may want to reduce the
  29680. preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
  29681. .IP "\fB\-mmmx\fR" 4
  29682. .IX Item "-mmmx"
  29683. .PD 0
  29684. .IP "\fB\-msse\fR" 4
  29685. .IX Item "-msse"
  29686. .IP "\fB\-msse2\fR" 4
  29687. .IX Item "-msse2"
  29688. .IP "\fB\-msse3\fR" 4
  29689. .IX Item "-msse3"
  29690. .IP "\fB\-mssse3\fR" 4
  29691. .IX Item "-mssse3"
  29692. .IP "\fB\-msse4\fR" 4
  29693. .IX Item "-msse4"
  29694. .IP "\fB\-msse4a\fR" 4
  29695. .IX Item "-msse4a"
  29696. .IP "\fB\-msse4.1\fR" 4
  29697. .IX Item "-msse4.1"
  29698. .IP "\fB\-msse4.2\fR" 4
  29699. .IX Item "-msse4.2"
  29700. .IP "\fB\-mavx\fR" 4
  29701. .IX Item "-mavx"
  29702. .IP "\fB\-mavx2\fR" 4
  29703. .IX Item "-mavx2"
  29704. .IP "\fB\-mavx512f\fR" 4
  29705. .IX Item "-mavx512f"
  29706. .IP "\fB\-mavx512pf\fR" 4
  29707. .IX Item "-mavx512pf"
  29708. .IP "\fB\-mavx512er\fR" 4
  29709. .IX Item "-mavx512er"
  29710. .IP "\fB\-mavx512cd\fR" 4
  29711. .IX Item "-mavx512cd"
  29712. .IP "\fB\-mavx512vl\fR" 4
  29713. .IX Item "-mavx512vl"
  29714. .IP "\fB\-mavx512bw\fR" 4
  29715. .IX Item "-mavx512bw"
  29716. .IP "\fB\-mavx512dq\fR" 4
  29717. .IX Item "-mavx512dq"
  29718. .IP "\fB\-mavx512ifma\fR" 4
  29719. .IX Item "-mavx512ifma"
  29720. .IP "\fB\-mavx512vbmi\fR" 4
  29721. .IX Item "-mavx512vbmi"
  29722. .IP "\fB\-msha\fR" 4
  29723. .IX Item "-msha"
  29724. .IP "\fB\-maes\fR" 4
  29725. .IX Item "-maes"
  29726. .IP "\fB\-mpclmul\fR" 4
  29727. .IX Item "-mpclmul"
  29728. .IP "\fB\-mclflushopt\fR" 4
  29729. .IX Item "-mclflushopt"
  29730. .IP "\fB\-mclwb\fR" 4
  29731. .IX Item "-mclwb"
  29732. .IP "\fB\-mfsgsbase\fR" 4
  29733. .IX Item "-mfsgsbase"
  29734. .IP "\fB\-mptwrite\fR" 4
  29735. .IX Item "-mptwrite"
  29736. .IP "\fB\-mrdrnd\fR" 4
  29737. .IX Item "-mrdrnd"
  29738. .IP "\fB\-mf16c\fR" 4
  29739. .IX Item "-mf16c"
  29740. .IP "\fB\-mfma\fR" 4
  29741. .IX Item "-mfma"
  29742. .IP "\fB\-mpconfig\fR" 4
  29743. .IX Item "-mpconfig"
  29744. .IP "\fB\-mwbnoinvd\fR" 4
  29745. .IX Item "-mwbnoinvd"
  29746. .IP "\fB\-mfma4\fR" 4
  29747. .IX Item "-mfma4"
  29748. .IP "\fB\-mprfchw\fR" 4
  29749. .IX Item "-mprfchw"
  29750. .IP "\fB\-mrdpid\fR" 4
  29751. .IX Item "-mrdpid"
  29752. .IP "\fB\-mprefetchwt1\fR" 4
  29753. .IX Item "-mprefetchwt1"
  29754. .IP "\fB\-mrdseed\fR" 4
  29755. .IX Item "-mrdseed"
  29756. .IP "\fB\-msgx\fR" 4
  29757. .IX Item "-msgx"
  29758. .IP "\fB\-mxop\fR" 4
  29759. .IX Item "-mxop"
  29760. .IP "\fB\-mlwp\fR" 4
  29761. .IX Item "-mlwp"
  29762. .IP "\fB\-m3dnow\fR" 4
  29763. .IX Item "-m3dnow"
  29764. .IP "\fB\-m3dnowa\fR" 4
  29765. .IX Item "-m3dnowa"
  29766. .IP "\fB\-mpopcnt\fR" 4
  29767. .IX Item "-mpopcnt"
  29768. .IP "\fB\-mabm\fR" 4
  29769. .IX Item "-mabm"
  29770. .IP "\fB\-madx\fR" 4
  29771. .IX Item "-madx"
  29772. .IP "\fB\-mbmi\fR" 4
  29773. .IX Item "-mbmi"
  29774. .IP "\fB\-mbmi2\fR" 4
  29775. .IX Item "-mbmi2"
  29776. .IP "\fB\-mlzcnt\fR" 4
  29777. .IX Item "-mlzcnt"
  29778. .IP "\fB\-mfxsr\fR" 4
  29779. .IX Item "-mfxsr"
  29780. .IP "\fB\-mxsave\fR" 4
  29781. .IX Item "-mxsave"
  29782. .IP "\fB\-mxsaveopt\fR" 4
  29783. .IX Item "-mxsaveopt"
  29784. .IP "\fB\-mxsavec\fR" 4
  29785. .IX Item "-mxsavec"
  29786. .IP "\fB\-mxsaves\fR" 4
  29787. .IX Item "-mxsaves"
  29788. .IP "\fB\-mrtm\fR" 4
  29789. .IX Item "-mrtm"
  29790. .IP "\fB\-mhle\fR" 4
  29791. .IX Item "-mhle"
  29792. .IP "\fB\-mtbm\fR" 4
  29793. .IX Item "-mtbm"
  29794. .IP "\fB\-mmwaitx\fR" 4
  29795. .IX Item "-mmwaitx"
  29796. .IP "\fB\-mclzero\fR" 4
  29797. .IX Item "-mclzero"
  29798. .IP "\fB\-mpku\fR" 4
  29799. .IX Item "-mpku"
  29800. .IP "\fB\-mavx512vbmi2\fR" 4
  29801. .IX Item "-mavx512vbmi2"
  29802. .IP "\fB\-mavx512bf16\fR" 4
  29803. .IX Item "-mavx512bf16"
  29804. .IP "\fB\-mgfni\fR" 4
  29805. .IX Item "-mgfni"
  29806. .IP "\fB\-mvaes\fR" 4
  29807. .IX Item "-mvaes"
  29808. .IP "\fB\-mwaitpkg\fR" 4
  29809. .IX Item "-mwaitpkg"
  29810. .IP "\fB\-mvpclmulqdq\fR" 4
  29811. .IX Item "-mvpclmulqdq"
  29812. .IP "\fB\-mavx512bitalg\fR" 4
  29813. .IX Item "-mavx512bitalg"
  29814. .IP "\fB\-mmovdiri\fR" 4
  29815. .IX Item "-mmovdiri"
  29816. .IP "\fB\-mmovdir64b\fR" 4
  29817. .IX Item "-mmovdir64b"
  29818. .IP "\fB\-menqcmd\fR" 4
  29819. .IX Item "-menqcmd"
  29820. .IP "\fB\-muintr\fR" 4
  29821. .IX Item "-muintr"
  29822. .IP "\fB\-mtsxldtrk\fR" 4
  29823. .IX Item "-mtsxldtrk"
  29824. .IP "\fB\-mavx512vpopcntdq\fR" 4
  29825. .IX Item "-mavx512vpopcntdq"
  29826. .IP "\fB\-mavx512vp2intersect\fR" 4
  29827. .IX Item "-mavx512vp2intersect"
  29828. .IP "\fB\-mavx5124fmaps\fR" 4
  29829. .IX Item "-mavx5124fmaps"
  29830. .IP "\fB\-mavx512vnni\fR" 4
  29831. .IX Item "-mavx512vnni"
  29832. .IP "\fB\-mavxvnni\fR" 4
  29833. .IX Item "-mavxvnni"
  29834. .IP "\fB\-mavx5124vnniw\fR" 4
  29835. .IX Item "-mavx5124vnniw"
  29836. .IP "\fB\-mcldemote\fR" 4
  29837. .IX Item "-mcldemote"
  29838. .IP "\fB\-mserialize\fR" 4
  29839. .IX Item "-mserialize"
  29840. .IP "\fB\-mamx\-tile\fR" 4
  29841. .IX Item "-mamx-tile"
  29842. .IP "\fB\-mamx\-int8\fR" 4
  29843. .IX Item "-mamx-int8"
  29844. .IP "\fB\-mamx\-bf16\fR" 4
  29845. .IX Item "-mamx-bf16"
  29846. .IP "\fB\-mhreset\fR" 4
  29847. .IX Item "-mhreset"
  29848. .IP "\fB\-mkl\fR" 4
  29849. .IX Item "-mkl"
  29850. .IP "\fB\-mwidekl\fR" 4
  29851. .IX Item "-mwidekl"
  29852. .PD
  29853. These switches enable the use of instructions in the \s-1MMX, SSE,
  29854. SSE2, SSE3, SSSE3, SSE4, SSE4A, SSE4.1, SSE4.2, AVX, AVX2, AVX512F, AVX512PF,
  29855. AVX512ER, AVX512CD, AVX512VL, AVX512BW, AVX512DQ, AVX512IFMA, AVX512VBMI, SHA,
  29856. AES, PCLMUL, CLFLUSHOPT, CLWB, FSGSBASE, PTWRITE, RDRND, F16C, FMA, PCONFIG,
  29857. WBNOINVD, FMA4, PREFETCHW, RDPID, PREFETCHWT1, RDSEED, SGX, XOP, LWP,\s0
  29858. 3DNow!, enhanced 3DNow!, \s-1POPCNT, ABM, ADX, BMI, BMI2, LZCNT, FXSR, XSAVE,
  29859. XSAVEOPT, XSAVEC, XSAVES, RTM, HLE, TBM, MWAITX, CLZERO, PKU, AVX512VBMI2,
  29860. GFNI, VAES, WAITPKG, VPCLMULQDQ, AVX512BITALG, MOVDIRI, MOVDIR64B, AVX512BF16,
  29861. ENQCMD, AVX512VPOPCNTDQ, AVX5124FMAPS, AVX512VNNI, AVX5124VNNIW, SERIALIZE,
  29862. UINTR, HRESET, AMXTILE, AMXINT8, AMXBF16, KL, WIDEKL, AVXVNNI\s0 or \s-1CLDEMOTE\s0
  29863. extended instruction sets. Each has a corresponding \fB\-mno\-\fR option to
  29864. disable use of these instructions.
  29865. .Sp
  29866. These extensions are also available as built-in functions: see
  29867. \&\fBx86 Built-in Functions\fR, for details of the functions enabled and
  29868. disabled by these switches.
  29869. .Sp
  29870. To generate \s-1SSE/SSE2\s0 instructions automatically from floating-point
  29871. code (as opposed to 387 instructions), see \fB\-mfpmath=sse\fR.
  29872. .Sp
  29873. \&\s-1GCC\s0 depresses SSEx instructions when \fB\-mavx\fR is used. Instead, it
  29874. generates new \s-1AVX\s0 instructions or \s-1AVX\s0 equivalence for all SSEx instructions
  29875. when needed.
  29876. .Sp
  29877. These options enable \s-1GCC\s0 to use these extended instructions in
  29878. generated code, even without \fB\-mfpmath=sse\fR. Applications that
  29879. perform run-time \s-1CPU\s0 detection must compile separate files for each
  29880. supported architecture, using the appropriate flags. In particular,
  29881. the file containing the \s-1CPU\s0 detection code should be compiled without
  29882. these options.
  29883. .IP "\fB\-mdump\-tune\-features\fR" 4
  29884. .IX Item "-mdump-tune-features"
  29885. This option instructs \s-1GCC\s0 to dump the names of the x86 performance
  29886. tuning features and default settings. The names can be used in
  29887. \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR.
  29888. .IP "\fB\-mtune\-ctrl=\fR\fIfeature-list\fR" 4
  29889. .IX Item "-mtune-ctrl=feature-list"
  29890. This option is used to do fine grain control of x86 code generation features.
  29891. \&\fIfeature-list\fR is a comma separated list of \fIfeature\fR names. See also
  29892. \&\fB\-mdump\-tune\-features\fR. When specified, the \fIfeature\fR is turned
  29893. on if it is not preceded with \fB^\fR, otherwise, it is turned off.
  29894. \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR is intended to be used by \s-1GCC\s0
  29895. developers. Using it may lead to code paths not covered by testing and can
  29896. potentially result in compiler ICEs or runtime errors.
  29897. .IP "\fB\-mno\-default\fR" 4
  29898. .IX Item "-mno-default"
  29899. This option instructs \s-1GCC\s0 to turn off all tunable features. See also
  29900. \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR and \fB\-mdump\-tune\-features\fR.
  29901. .IP "\fB\-mcld\fR" 4
  29902. .IX Item "-mcld"
  29903. This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`cld\*(C'\fR instruction in the prologue
  29904. of functions that use string instructions. String instructions depend on
  29905. the \s-1DF\s0 flag to select between autoincrement or autodecrement mode. While the
  29906. \&\s-1ABI\s0 specifies the \s-1DF\s0 flag to be cleared on function entry, some operating
  29907. systems violate this specification by not clearing the \s-1DF\s0 flag in their
  29908. exception dispatchers. The exception handler can be invoked with the \s-1DF\s0 flag
  29909. set, which leads to wrong direction mode when string instructions are used.
  29910. This option can be enabled by default on 32\-bit x86 targets by configuring
  29911. \&\s-1GCC\s0 with the \fB\-\-enable\-cld\fR configure option. Generation of \f(CW\*(C`cld\*(C'\fR
  29912. instructions can be suppressed with the \fB\-mno\-cld\fR compiler option
  29913. in this case.
  29914. .IP "\fB\-mvzeroupper\fR" 4
  29915. .IX Item "-mvzeroupper"
  29916. This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`vzeroupper\*(C'\fR instruction
  29917. before a transfer of control flow out of the function to minimize
  29918. the \s-1AVX\s0 to \s-1SSE\s0 transition penalty as well as remove unnecessary \f(CW\*(C`zeroupper\*(C'\fR
  29919. intrinsics.
  29920. .IP "\fB\-mprefer\-avx128\fR" 4
  29921. .IX Item "-mprefer-avx128"
  29922. This option instructs \s-1GCC\s0 to use 128\-bit \s-1AVX\s0 instructions instead of
  29923. 256\-bit \s-1AVX\s0 instructions in the auto-vectorizer.
  29924. .IP "\fB\-mprefer\-vector\-width=\fR\fIopt\fR" 4
  29925. .IX Item "-mprefer-vector-width=opt"
  29926. This option instructs \s-1GCC\s0 to use \fIopt\fR\-bit vector width in instructions
  29927. instead of default on the selected platform.
  29928. .RS 4
  29929. .IP "\fBnone\fR" 4
  29930. .IX Item "none"
  29931. No extra limitations applied to \s-1GCC\s0 other than defined by the selected platform.
  29932. .IP "\fB128\fR" 4
  29933. .IX Item "128"
  29934. Prefer 128\-bit vector width for instructions.
  29935. .IP "\fB256\fR" 4
  29936. .IX Item "256"
  29937. Prefer 256\-bit vector width for instructions.
  29938. .IP "\fB512\fR" 4
  29939. .IX Item "512"
  29940. Prefer 512\-bit vector width for instructions.
  29941. .RE
  29942. .RS 4
  29943. .RE
  29944. .IP "\fB\-mcx16\fR" 4
  29945. .IX Item "-mcx16"
  29946. This option enables \s-1GCC\s0 to generate \f(CW\*(C`CMPXCHG16B\*(C'\fR instructions in 64\-bit
  29947. code to implement compare-and-exchange operations on 16\-byte aligned 128\-bit
  29948. objects. This is useful for atomic updates of data structures exceeding one
  29949. machine word in size. The compiler uses this instruction to implement
  29950. \&\fB_\|_sync Builtins\fR. However, for \fB_\|_atomic Builtins\fR operating on
  29951. 128\-bit integers, a library call is always used.
  29952. .IP "\fB\-msahf\fR" 4
  29953. .IX Item "-msahf"
  29954. This option enables generation of \f(CW\*(C`SAHF\*(C'\fR instructions in 64\-bit code.
  29955. Early Intel Pentium 4 CPUs with Intel 64 support,
  29956. prior to the introduction of Pentium 4 G1 step in December 2005,
  29957. lacked the \f(CW\*(C`LAHF\*(C'\fR and \f(CW\*(C`SAHF\*(C'\fR instructions
  29958. which are supported by \s-1AMD64.\s0
  29959. These are load and store instructions, respectively, for certain status flags.
  29960. In 64\-bit mode, the \f(CW\*(C`SAHF\*(C'\fR instruction is used to optimize \f(CW\*(C`fmod\*(C'\fR,
  29961. \&\f(CW\*(C`drem\*(C'\fR, and \f(CW\*(C`remainder\*(C'\fR built-in functions;
  29962. see \fBOther Builtins\fR for details.
  29963. .IP "\fB\-mmovbe\fR" 4
  29964. .IX Item "-mmovbe"
  29965. This option enables use of the \f(CW\*(C`movbe\*(C'\fR instruction to implement
  29966. \&\f(CW\*(C`_\|_builtin_bswap32\*(C'\fR and \f(CW\*(C`_\|_builtin_bswap64\*(C'\fR.
  29967. .IP "\fB\-mshstk\fR" 4
  29968. .IX Item "-mshstk"
  29969. The \fB\-mshstk\fR option enables shadow stack built-in functions
  29970. from x86 Control-flow Enforcement Technology (\s-1CET\s0).
  29971. .IP "\fB\-mcrc32\fR" 4
  29972. .IX Item "-mcrc32"
  29973. This option enables built-in functions \f(CW\*(C`_\|_builtin_ia32_crc32qi\*(C'\fR,
  29974. \&\f(CW\*(C`_\|_builtin_ia32_crc32hi\*(C'\fR, \f(CW\*(C`_\|_builtin_ia32_crc32si\*(C'\fR and
  29975. \&\f(CW\*(C`_\|_builtin_ia32_crc32di\*(C'\fR to generate the \f(CW\*(C`crc32\*(C'\fR machine instruction.
  29976. .IP "\fB\-mrecip\fR" 4
  29977. .IX Item "-mrecip"
  29978. This option enables use of \f(CW\*(C`RCPSS\*(C'\fR and \f(CW\*(C`RSQRTSS\*(C'\fR instructions
  29979. (and their vectorized variants \f(CW\*(C`RCPPS\*(C'\fR and \f(CW\*(C`RSQRTPS\*(C'\fR)
  29980. with an additional Newton-Raphson step
  29981. to increase precision instead of \f(CW\*(C`DIVSS\*(C'\fR and \f(CW\*(C`SQRTSS\*(C'\fR
  29982. (and their vectorized
  29983. variants) for single-precision floating-point arguments. These instructions
  29984. are generated only when \fB\-funsafe\-math\-optimizations\fR is enabled
  29985. together with \fB\-ffinite\-math\-only\fR and \fB\-fno\-trapping\-math\fR.
  29986. Note that while the throughput of the sequence is higher than the throughput
  29987. of the non-reciprocal instruction, the precision of the sequence can be
  29988. decreased by up to 2 ulp (i.e. the inverse of 1.0 equals 0.99999994).
  29989. .Sp
  29990. Note that \s-1GCC\s0 implements \f(CW\*(C`1.0f/sqrtf(\f(CIx\f(CW)\*(C'\fR in terms of \f(CW\*(C`RSQRTSS\*(C'\fR
  29991. (or \f(CW\*(C`RSQRTPS\*(C'\fR) already with \fB\-ffast\-math\fR (or the above option
  29992. combination), and doesn't need \fB\-mrecip\fR.
  29993. .Sp
  29994. Also note that \s-1GCC\s0 emits the above sequence with additional Newton-Raphson step
  29995. for vectorized single-float division and vectorized \f(CW\*(C`sqrtf(\f(CIx\f(CW)\*(C'\fR
  29996. already with \fB\-ffast\-math\fR (or the above option combination), and
  29997. doesn't need \fB\-mrecip\fR.
  29998. .IP "\fB\-mrecip=\fR\fIopt\fR" 4
  29999. .IX Item "-mrecip=opt"
  30000. This option controls which reciprocal estimate instructions
  30001. may be used. \fIopt\fR is a comma-separated list of options, which may
  30002. be preceded by a \fB!\fR to invert the option:
  30003. .RS 4
  30004. .IP "\fBall\fR" 4
  30005. .IX Item "all"
  30006. Enable all estimate instructions.
  30007. .IP "\fBdefault\fR" 4
  30008. .IX Item "default"
  30009. Enable the default instructions, equivalent to \fB\-mrecip\fR.
  30010. .IP "\fBnone\fR" 4
  30011. .IX Item "none"
  30012. Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
  30013. .IP "\fBdiv\fR" 4
  30014. .IX Item "div"
  30015. Enable the approximation for scalar division.
  30016. .IP "\fBvec-div\fR" 4
  30017. .IX Item "vec-div"
  30018. Enable the approximation for vectorized division.
  30019. .IP "\fBsqrt\fR" 4
  30020. .IX Item "sqrt"
  30021. Enable the approximation for scalar square root.
  30022. .IP "\fBvec-sqrt\fR" 4
  30023. .IX Item "vec-sqrt"
  30024. Enable the approximation for vectorized square root.
  30025. .RE
  30026. .RS 4
  30027. .Sp
  30028. So, for example, \fB\-mrecip=all,!sqrt\fR enables
  30029. all of the reciprocal approximations, except for square root.
  30030. .RE
  30031. .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
  30032. .IX Item "-mveclibabi=type"
  30033. Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
  30034. external library. Supported values for \fItype\fR are \fBsvml\fR
  30035. for the Intel short
  30036. vector math library and \fBacml\fR for the \s-1AMD\s0 math core library.
  30037. To use this option, both \fB\-ftree\-vectorize\fR and
  30038. \&\fB\-funsafe\-math\-optimizations\fR have to be enabled, and an \s-1SVML\s0 or \s-1ACML\s0
  30039. ABI-compatible library must be specified at link time.
  30040. .Sp
  30041. \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`vmldExp2\*(C'\fR,
  30042. \&\f(CW\*(C`vmldLn2\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldPow2\*(C'\fR,
  30043. \&\f(CW\*(C`vmldTanh2\*(C'\fR, \f(CW\*(C`vmldTan2\*(C'\fR, \f(CW\*(C`vmldAtan2\*(C'\fR, \f(CW\*(C`vmldAtanh2\*(C'\fR,
  30044. \&\f(CW\*(C`vmldCbrt2\*(C'\fR, \f(CW\*(C`vmldSinh2\*(C'\fR, \f(CW\*(C`vmldSin2\*(C'\fR, \f(CW\*(C`vmldAsinh2\*(C'\fR,
  30045. \&\f(CW\*(C`vmldAsin2\*(C'\fR, \f(CW\*(C`vmldCosh2\*(C'\fR, \f(CW\*(C`vmldCos2\*(C'\fR, \f(CW\*(C`vmldAcosh2\*(C'\fR,
  30046. \&\f(CW\*(C`vmldAcos2\*(C'\fR, \f(CW\*(C`vmlsExp4\*(C'\fR, \f(CW\*(C`vmlsLn4\*(C'\fR,
  30047. \&\f(CW\*(C`vmlsLog104\*(C'\fR, \f(CW\*(C`vmlsPow4\*(C'\fR, \f(CW\*(C`vmlsTanh4\*(C'\fR, \f(CW\*(C`vmlsTan4\*(C'\fR,
  30048. \&\f(CW\*(C`vmlsAtan4\*(C'\fR, \f(CW\*(C`vmlsAtanh4\*(C'\fR, \f(CW\*(C`vmlsCbrt4\*(C'\fR, \f(CW\*(C`vmlsSinh4\*(C'\fR,
  30049. \&\f(CW\*(C`vmlsSin4\*(C'\fR, \f(CW\*(C`vmlsAsinh4\*(C'\fR, \f(CW\*(C`vmlsAsin4\*(C'\fR, \f(CW\*(C`vmlsCosh4\*(C'\fR,
  30050. \&\f(CW\*(C`vmlsCos4\*(C'\fR, \f(CW\*(C`vmlsAcosh4\*(C'\fR and \f(CW\*(C`vmlsAcos4\*(C'\fR for corresponding
  30051. function type when \fB\-mveclibabi=svml\fR is used, and \f(CW\*(C`_\|_vrd2_sin\*(C'\fR,
  30052. \&\f(CW\*(C`_\|_vrd2_cos\*(C'\fR, \f(CW\*(C`_\|_vrd2_exp\*(C'\fR, \f(CW\*(C`_\|_vrd2_log\*(C'\fR, \f(CW\*(C`_\|_vrd2_log2\*(C'\fR,
  30053. \&\f(CW\*(C`_\|_vrd2_log10\*(C'\fR, \f(CW\*(C`_\|_vrs4_sinf\*(C'\fR, \f(CW\*(C`_\|_vrs4_cosf\*(C'\fR,
  30054. \&\f(CW\*(C`_\|_vrs4_expf\*(C'\fR, \f(CW\*(C`_\|_vrs4_logf\*(C'\fR, \f(CW\*(C`_\|_vrs4_log2f\*(C'\fR,
  30055. \&\f(CW\*(C`_\|_vrs4_log10f\*(C'\fR and \f(CW\*(C`_\|_vrs4_powf\*(C'\fR for the corresponding function type
  30056. when \fB\-mveclibabi=acml\fR is used.
  30057. .IP "\fB\-mabi=\fR\fIname\fR" 4
  30058. .IX Item "-mabi=name"
  30059. Generate code for the specified calling convention. Permissible values
  30060. are \fBsysv\fR for the \s-1ABI\s0 used on GNU/Linux and other systems, and
  30061. \&\fBms\fR for the Microsoft \s-1ABI.\s0 The default is to use the Microsoft
  30062. \&\s-1ABI\s0 when targeting Microsoft Windows and the SysV \s-1ABI\s0 on all other systems.
  30063. You can control this behavior for specific functions by
  30064. using the function attributes \f(CW\*(C`ms_abi\*(C'\fR and \f(CW\*(C`sysv_abi\*(C'\fR.
  30065. .IP "\fB\-mforce\-indirect\-call\fR" 4
  30066. .IX Item "-mforce-indirect-call"
  30067. Force all calls to functions to be indirect. This is useful
  30068. when using Intel Processor Trace where it generates more precise timing
  30069. information for function calls.
  30070. .IP "\fB\-mmanual\-endbr\fR" 4
  30071. .IX Item "-mmanual-endbr"
  30072. Insert \s-1ENDBR\s0 instruction at function entry only via the \f(CW\*(C`cf_check\*(C'\fR
  30073. function attribute. This is useful when used with the option
  30074. \&\fB\-fcf\-protection=branch\fR to control \s-1ENDBR\s0 insertion at the
  30075. function entry.
  30076. .IP "\fB\-mcall\-ms2sysv\-xlogues\fR" 4
  30077. .IX Item "-mcall-ms2sysv-xlogues"
  30078. Due to differences in 64\-bit ABIs, any Microsoft \s-1ABI\s0 function that calls a
  30079. System V \s-1ABI\s0 function must consider \s-1RSI, RDI\s0 and \s-1XMM6\-15\s0 as clobbered. By
  30080. default, the code for saving and restoring these registers is emitted inline,
  30081. resulting in fairly lengthy prologues and epilogues. Using
  30082. \&\fB\-mcall\-ms2sysv\-xlogues\fR emits prologues and epilogues that
  30083. use stubs in the static portion of libgcc to perform these saves and restores,
  30084. thus reducing function size at the cost of a few extra instructions.
  30085. .IP "\fB\-mtls\-dialect=\fR\fItype\fR" 4
  30086. .IX Item "-mtls-dialect=type"
  30087. Generate code to access thread-local storage using the \fBgnu\fR or
  30088. \&\fBgnu2\fR conventions. \fBgnu\fR is the conservative default;
  30089. \&\fBgnu2\fR is more efficient, but it may add compile\- and run-time
  30090. requirements that cannot be satisfied on all systems.
  30091. .IP "\fB\-mpush\-args\fR" 4
  30092. .IX Item "-mpush-args"
  30093. .PD 0
  30094. .IP "\fB\-mno\-push\-args\fR" 4
  30095. .IX Item "-mno-push-args"
  30096. .PD
  30097. Use \s-1PUSH\s0 operations to store outgoing parameters. This method is shorter
  30098. and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
  30099. by default. In some cases disabling it may improve performance because of
  30100. improved scheduling and reduced dependencies.
  30101. .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
  30102. .IX Item "-maccumulate-outgoing-args"
  30103. If enabled, the maximum amount of space required for outgoing arguments is
  30104. computed in the function prologue. This is faster on most modern CPUs
  30105. because of reduced dependencies, improved scheduling and reduced stack usage
  30106. when the preferred stack boundary is not equal to 2. The drawback is a notable
  30107. increase in code size. This switch implies \fB\-mno\-push\-args\fR.
  30108. .IP "\fB\-mthreads\fR" 4
  30109. .IX Item "-mthreads"
  30110. Support thread-safe exception handling on MinGW. Programs that rely
  30111. on thread-safe exception handling must compile and link all code with the
  30112. \&\fB\-mthreads\fR option. When compiling, \fB\-mthreads\fR defines
  30113. \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
  30114. \&\fB\-lmingwthrd\fR which cleans up per-thread exception-handling data.
  30115. .IP "\fB\-mms\-bitfields\fR" 4
  30116. .IX Item "-mms-bitfields"
  30117. .PD 0
  30118. .IP "\fB\-mno\-ms\-bitfields\fR" 4
  30119. .IX Item "-mno-ms-bitfields"
  30120. .PD
  30121. Enable/disable bit-field layout compatible with the native Microsoft
  30122. Windows compiler.
  30123. .Sp
  30124. If \f(CW\*(C`packed\*(C'\fR is used on a structure, or if bit-fields are used,
  30125. it may be that the Microsoft \s-1ABI\s0 lays out the structure differently
  30126. than the way \s-1GCC\s0 normally does. Particularly when moving packed
  30127. data between functions compiled with \s-1GCC\s0 and the native Microsoft compiler
  30128. (either via function call or as data in a file), it may be necessary to access
  30129. either format.
  30130. .Sp
  30131. This option is enabled by default for Microsoft Windows
  30132. targets. This behavior can also be controlled locally by use of variable
  30133. or type attributes. For more information, see \fBx86 Variable Attributes\fR
  30134. and \fBx86 Type Attributes\fR.
  30135. .Sp
  30136. The Microsoft structure layout algorithm is fairly simple with the exception
  30137. of the bit-field packing.
  30138. The padding and alignment of members of structures and whether a bit-field
  30139. can straddle a storage-unit boundary are determine by these rules:
  30140. .RS 4
  30141. .IP "1. Structure members are stored sequentially in the order in which they are" 4
  30142. .IX Item "1. Structure members are stored sequentially in the order in which they are"
  30143. declared: the first member has the lowest memory address and the last member
  30144. the highest.
  30145. .IP "2. Every data object has an alignment requirement. The alignment requirement" 4
  30146. .IX Item "2. Every data object has an alignment requirement. The alignment requirement"
  30147. for all data except structures, unions, and arrays is either the size of the
  30148. object or the current packing size (specified with either the
  30149. \&\f(CW\*(C`aligned\*(C'\fR attribute or the \f(CW\*(C`pack\*(C'\fR pragma),
  30150. whichever is less. For structures, unions, and arrays,
  30151. the alignment requirement is the largest alignment requirement of its members.
  30152. Every object is allocated an offset so that:
  30153. .Sp
  30154. .Vb 1
  30155. \& offset % alignment_requirement == 0
  30156. .Ve
  30157. .IP "3. Adjacent bit-fields are packed into the same 1\-, 2\-, or 4\-byte allocation" 4
  30158. .IX Item "3. Adjacent bit-fields are packed into the same 1-, 2-, or 4-byte allocation"
  30159. unit if the integral types are the same size and if the next bit-field fits
  30160. into the current allocation unit without crossing the boundary imposed by the
  30161. common alignment requirements of the bit-fields.
  30162. .RE
  30163. .RS 4
  30164. .Sp
  30165. \&\s-1MSVC\s0 interprets zero-length bit-fields in the following ways:
  30166. .IP "1. If a zero-length bit-field is inserted between two bit-fields that" 4
  30167. .IX Item "1. If a zero-length bit-field is inserted between two bit-fields that"
  30168. are normally coalesced, the bit-fields are not coalesced.
  30169. .Sp
  30170. For example:
  30171. .Sp
  30172. .Vb 6
  30173. \& struct
  30174. \& {
  30175. \& unsigned long bf_1 : 12;
  30176. \& unsigned long : 0;
  30177. \& unsigned long bf_2 : 12;
  30178. \& } t1;
  30179. .Ve
  30180. .Sp
  30181. The size of \f(CW\*(C`t1\*(C'\fR is 8 bytes with the zero-length bit-field. If the
  30182. zero-length bit-field were removed, \f(CW\*(C`t1\*(C'\fR's size would be 4 bytes.
  30183. .ie n .IP "2. If a zero-length bit-field is inserted after a bit-field, ""foo"", and the" 4
  30184. .el .IP "2. If a zero-length bit-field is inserted after a bit-field, \f(CWfoo\fR, and the" 4
  30185. .IX Item "2. If a zero-length bit-field is inserted after a bit-field, foo, and the"
  30186. alignment of the zero-length bit-field is greater than the member that follows it,
  30187. \&\f(CW\*(C`bar\*(C'\fR, \f(CW\*(C`bar\*(C'\fR is aligned as the type of the zero-length bit-field.
  30188. .Sp
  30189. For example:
  30190. .Sp
  30191. .Vb 6
  30192. \& struct
  30193. \& {
  30194. \& char foo : 4;
  30195. \& short : 0;
  30196. \& char bar;
  30197. \& } t2;
  30198. \&
  30199. \& struct
  30200. \& {
  30201. \& char foo : 4;
  30202. \& short : 0;
  30203. \& double bar;
  30204. \& } t3;
  30205. .Ve
  30206. .Sp
  30207. For \f(CW\*(C`t2\*(C'\fR, \f(CW\*(C`bar\*(C'\fR is placed at offset 2, rather than offset 1.
  30208. Accordingly, the size of \f(CW\*(C`t2\*(C'\fR is 4. For \f(CW\*(C`t3\*(C'\fR, the zero-length
  30209. bit-field does not affect the alignment of \f(CW\*(C`bar\*(C'\fR or, as a result, the size
  30210. of the structure.
  30211. .Sp
  30212. Taking this into account, it is important to note the following:
  30213. .RS 4
  30214. .IP "1. If a zero-length bit-field follows a normal bit-field, the type of the" 4
  30215. .IX Item "1. If a zero-length bit-field follows a normal bit-field, the type of the"
  30216. zero-length bit-field may affect the alignment of the structure as whole. For
  30217. example, \f(CW\*(C`t2\*(C'\fR has a size of 4 bytes, since the zero-length bit-field follows a
  30218. normal bit-field, and is of type short.
  30219. .IP "2. Even if a zero-length bit-field is not followed by a normal bit-field, it may" 4
  30220. .IX Item "2. Even if a zero-length bit-field is not followed by a normal bit-field, it may"
  30221. still affect the alignment of the structure:
  30222. .Sp
  30223. .Vb 5
  30224. \& struct
  30225. \& {
  30226. \& char foo : 6;
  30227. \& long : 0;
  30228. \& } t4;
  30229. .Ve
  30230. .Sp
  30231. Here, \f(CW\*(C`t4\*(C'\fR takes up 4 bytes.
  30232. .RE
  30233. .RS 4
  30234. .RE
  30235. .IP "3. Zero-length bit-fields following non-bit-field members are ignored:" 4
  30236. .IX Item "3. Zero-length bit-fields following non-bit-field members are ignored:"
  30237. .Vb 6
  30238. \& struct
  30239. \& {
  30240. \& char foo;
  30241. \& long : 0;
  30242. \& char bar;
  30243. \& } t5;
  30244. .Ve
  30245. .Sp
  30246. Here, \f(CW\*(C`t5\*(C'\fR takes up 2 bytes.
  30247. .RE
  30248. .RS 4
  30249. .RE
  30250. .IP "\fB\-mno\-align\-stringops\fR" 4
  30251. .IX Item "-mno-align-stringops"
  30252. Do not align the destination of inlined string operations. This switch reduces
  30253. code size and improves performance in case the destination is already aligned,
  30254. but \s-1GCC\s0 doesn't know about it.
  30255. .IP "\fB\-minline\-all\-stringops\fR" 4
  30256. .IX Item "-minline-all-stringops"
  30257. By default \s-1GCC\s0 inlines string operations only when the destination is
  30258. known to be aligned to least a 4\-byte boundary.
  30259. This enables more inlining and increases code
  30260. size, but may improve performance of code that depends on fast
  30261. \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memset\*(C'\fR for short lengths.
  30262. The option enables inline expansion of \f(CW\*(C`strlen\*(C'\fR for all
  30263. pointer alignments.
  30264. .IP "\fB\-minline\-stringops\-dynamically\fR" 4
  30265. .IX Item "-minline-stringops-dynamically"
  30266. For string operations of unknown size, use run-time checks with
  30267. inline code for small blocks and a library call for large blocks.
  30268. .IP "\fB\-mstringop\-strategy=\fR\fIalg\fR" 4
  30269. .IX Item "-mstringop-strategy=alg"
  30270. Override the internal decision heuristic for the particular algorithm to use
  30271. for inlining string operations. The allowed values for \fIalg\fR are:
  30272. .RS 4
  30273. .IP "\fBrep_byte\fR" 4
  30274. .IX Item "rep_byte"
  30275. .PD 0
  30276. .IP "\fBrep_4byte\fR" 4
  30277. .IX Item "rep_4byte"
  30278. .IP "\fBrep_8byte\fR" 4
  30279. .IX Item "rep_8byte"
  30280. .PD
  30281. Expand using i386 \f(CW\*(C`rep\*(C'\fR prefix of the specified size.
  30282. .IP "\fBbyte_loop\fR" 4
  30283. .IX Item "byte_loop"
  30284. .PD 0
  30285. .IP "\fBloop\fR" 4
  30286. .IX Item "loop"
  30287. .IP "\fBunrolled_loop\fR" 4
  30288. .IX Item "unrolled_loop"
  30289. .PD
  30290. Expand into an inline loop.
  30291. .IP "\fBlibcall\fR" 4
  30292. .IX Item "libcall"
  30293. Always use a library call.
  30294. .RE
  30295. .RS 4
  30296. .RE
  30297. .IP "\fB\-mmemcpy\-strategy=\fR\fIstrategy\fR" 4
  30298. .IX Item "-mmemcpy-strategy=strategy"
  30299. Override the internal decision heuristic to decide if \f(CW\*(C`_\|_builtin_memcpy\*(C'\fR
  30300. should be inlined and what inline algorithm to use when the expected size
  30301. of the copy operation is known. \fIstrategy\fR
  30302. is a comma-separated list of \fIalg\fR:\fImax_size\fR:\fIdest_align\fR triplets.
  30303. \&\fIalg\fR is specified in \fB\-mstringop\-strategy\fR, \fImax_size\fR specifies
  30304. the max byte size with which inline algorithm \fIalg\fR is allowed. For the last
  30305. triplet, the \fImax_size\fR must be \f(CW\*(C`\-1\*(C'\fR. The \fImax_size\fR of the triplets
  30306. in the list must be specified in increasing order. The minimal byte size for
  30307. \&\fIalg\fR is \f(CW0\fR for the first triplet and \f(CW\*(C`\f(CImax_size\f(CW + 1\*(C'\fR of the
  30308. preceding range.
  30309. .IP "\fB\-mmemset\-strategy=\fR\fIstrategy\fR" 4
  30310. .IX Item "-mmemset-strategy=strategy"
  30311. The option is similar to \fB\-mmemcpy\-strategy=\fR except that it is to control
  30312. \&\f(CW\*(C`_\|_builtin_memset\*(C'\fR expansion.
  30313. .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
  30314. .IX Item "-momit-leaf-frame-pointer"
  30315. Don't keep the frame pointer in a register for leaf functions. This
  30316. avoids the instructions to save, set up, and restore frame pointers and
  30317. makes an extra register available in leaf functions. The option
  30318. \&\fB\-fomit\-leaf\-frame\-pointer\fR removes the frame pointer for leaf functions,
  30319. which might make debugging harder.
  30320. .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
  30321. .IX Item "-mtls-direct-seg-refs"
  30322. .PD 0
  30323. .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
  30324. .IX Item "-mno-tls-direct-seg-refs"
  30325. .PD
  30326. Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
  30327. \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
  30328. or whether the thread base pointer must be added. Whether or not this
  30329. is valid depends on the operating system, and whether it maps the
  30330. segment to cover the entire \s-1TLS\s0 area.
  30331. .Sp
  30332. For systems that use the \s-1GNU C\s0 Library, the default is on.
  30333. .IP "\fB\-msse2avx\fR" 4
  30334. .IX Item "-msse2avx"
  30335. .PD 0
  30336. .IP "\fB\-mno\-sse2avx\fR" 4
  30337. .IX Item "-mno-sse2avx"
  30338. .PD
  30339. Specify that the assembler should encode \s-1SSE\s0 instructions with \s-1VEX\s0
  30340. prefix. The option \fB\-mavx\fR turns this on by default.
  30341. .IP "\fB\-mfentry\fR" 4
  30342. .IX Item "-mfentry"
  30343. .PD 0
  30344. .IP "\fB\-mno\-fentry\fR" 4
  30345. .IX Item "-mno-fentry"
  30346. .PD
  30347. If profiling is active (\fB\-pg\fR), put the profiling
  30348. counter call before the prologue.
  30349. Note: On x86 architectures the attribute \f(CW\*(C`ms_hook_prologue\*(C'\fR
  30350. isn't possible at the moment for \fB\-mfentry\fR and \fB\-pg\fR.
  30351. .IP "\fB\-mrecord\-mcount\fR" 4
  30352. .IX Item "-mrecord-mcount"
  30353. .PD 0
  30354. .IP "\fB\-mno\-record\-mcount\fR" 4
  30355. .IX Item "-mno-record-mcount"
  30356. .PD
  30357. If profiling is active (\fB\-pg\fR), generate a _\|_mcount_loc section
  30358. that contains pointers to each profiling call. This is useful for
  30359. automatically patching and out calls.
  30360. .IP "\fB\-mnop\-mcount\fR" 4
  30361. .IX Item "-mnop-mcount"
  30362. .PD 0
  30363. .IP "\fB\-mno\-nop\-mcount\fR" 4
  30364. .IX Item "-mno-nop-mcount"
  30365. .PD
  30366. If profiling is active (\fB\-pg\fR), generate the calls to
  30367. the profiling functions as NOPs. This is useful when they
  30368. should be patched in later dynamically. This is likely only
  30369. useful together with \fB\-mrecord\-mcount\fR.
  30370. .IP "\fB\-minstrument\-return=\fR\fItype\fR" 4
  30371. .IX Item "-minstrument-return=type"
  30372. Instrument function exit in \-pg \-mfentry instrumented functions with
  30373. call to specified function. This only instruments true returns ending
  30374. with ret, but not sibling calls ending with jump. Valid types
  30375. are \fInone\fR to not instrument, \fIcall\fR to generate a call to _\|_return_\|_,
  30376. or \fInop5\fR to generate a 5 byte nop.
  30377. .IP "\fB\-mrecord\-return\fR" 4
  30378. .IX Item "-mrecord-return"
  30379. .PD 0
  30380. .IP "\fB\-mno\-record\-return\fR" 4
  30381. .IX Item "-mno-record-return"
  30382. .PD
  30383. Generate a _\|_return_loc section pointing to all return instrumentation code.
  30384. .IP "\fB\-mfentry\-name=\fR\fIname\fR" 4
  30385. .IX Item "-mfentry-name=name"
  30386. Set name of _\|_fentry_\|_ symbol called at function entry for \-pg \-mfentry functions.
  30387. .IP "\fB\-mfentry\-section=\fR\fIname\fR" 4
  30388. .IX Item "-mfentry-section=name"
  30389. Set name of section to record \-mrecord\-mcount calls (default _\|_mcount_loc).
  30390. .IP "\fB\-mskip\-rax\-setup\fR" 4
  30391. .IX Item "-mskip-rax-setup"
  30392. .PD 0
  30393. .IP "\fB\-mno\-skip\-rax\-setup\fR" 4
  30394. .IX Item "-mno-skip-rax-setup"
  30395. .PD
  30396. When generating code for the x86\-64 architecture with \s-1SSE\s0 extensions
  30397. disabled, \fB\-mskip\-rax\-setup\fR can be used to skip setting up \s-1RAX\s0
  30398. register when there are no variable arguments passed in vector registers.
  30399. .Sp
  30400. \&\fBWarning:\fR Since \s-1RAX\s0 register is used to avoid unnecessarily
  30401. saving vector registers on stack when passing variable arguments, the
  30402. impacts of this option are callees may waste some stack space,
  30403. misbehave or jump to a random location. \s-1GCC 4.4\s0 or newer don't have
  30404. those issues, regardless the \s-1RAX\s0 register value.
  30405. .IP "\fB\-m8bit\-idiv\fR" 4
  30406. .IX Item "-m8bit-idiv"
  30407. .PD 0
  30408. .IP "\fB\-mno\-8bit\-idiv\fR" 4
  30409. .IX Item "-mno-8bit-idiv"
  30410. .PD
  30411. On some processors, like Intel Atom, 8\-bit unsigned integer divide is
  30412. much faster than 32\-bit/64\-bit integer divide. This option generates a
  30413. run-time check. If both dividend and divisor are within range of 0
  30414. to 255, 8\-bit unsigned integer divide is used instead of
  30415. 32\-bit/64\-bit integer divide.
  30416. .IP "\fB\-mavx256\-split\-unaligned\-load\fR" 4
  30417. .IX Item "-mavx256-split-unaligned-load"
  30418. .PD 0
  30419. .IP "\fB\-mavx256\-split\-unaligned\-store\fR" 4
  30420. .IX Item "-mavx256-split-unaligned-store"
  30421. .PD
  30422. Split 32\-byte \s-1AVX\s0 unaligned load and store.
  30423. .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
  30424. .IX Item "-mstack-protector-guard=guard"
  30425. .PD 0
  30426. .IP "\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR" 4
  30427. .IX Item "-mstack-protector-guard-reg=reg"
  30428. .IP "\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR" 4
  30429. .IX Item "-mstack-protector-guard-offset=offset"
  30430. .PD
  30431. Generate stack protection code using canary at \fIguard\fR. Supported
  30432. locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
  30433. canary in the \s-1TLS\s0 block (the default). This option has effect only when
  30434. \&\fB\-fstack\-protector\fR or \fB\-fstack\-protector\-all\fR is specified.
  30435. .Sp
  30436. With the latter choice the options
  30437. \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR and
  30438. \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR furthermore specify
  30439. which segment register (\f(CW%fs\fR or \f(CW%gs\fR) to use as base register
  30440. for reading the canary, and from what offset from that base register.
  30441. The default for those is as specified in the relevant \s-1ABI.\s0
  30442. .IP "\fB\-mgeneral\-regs\-only\fR" 4
  30443. .IX Item "-mgeneral-regs-only"
  30444. Generate code that uses only the general-purpose registers. This
  30445. prevents the compiler from using floating-point, vector, mask and bound
  30446. registers.
  30447. .IP "\fB\-mindirect\-branch=\fR\fIchoice\fR" 4
  30448. .IX Item "-mindirect-branch=choice"
  30449. Convert indirect call and jump with \fIchoice\fR. The default is
  30450. \&\fBkeep\fR, which keeps indirect call and jump unmodified.
  30451. \&\fBthunk\fR converts indirect call and jump to call and return thunk.
  30452. \&\fBthunk-inline\fR converts indirect call and jump to inlined call
  30453. and return thunk. \fBthunk-extern\fR converts indirect call and jump
  30454. to external call and return thunk provided in a separate object file.
  30455. You can control this behavior for a specific function by using the
  30456. function attribute \f(CW\*(C`indirect_branch\*(C'\fR.
  30457. .Sp
  30458. Note that \fB\-mcmodel=large\fR is incompatible with
  30459. \&\fB\-mindirect\-branch=thunk\fR and
  30460. \&\fB\-mindirect\-branch=thunk\-extern\fR since the thunk function may
  30461. not be reachable in the large code model.
  30462. .Sp
  30463. Note that \fB\-mindirect\-branch=thunk\-extern\fR is compatible with
  30464. \&\fB\-fcf\-protection=branch\fR since the external thunk can be made
  30465. to enable control-flow check.
  30466. .IP "\fB\-mfunction\-return=\fR\fIchoice\fR" 4
  30467. .IX Item "-mfunction-return=choice"
  30468. Convert function return with \fIchoice\fR. The default is \fBkeep\fR,
  30469. which keeps function return unmodified. \fBthunk\fR converts function
  30470. return to call and return thunk. \fBthunk-inline\fR converts function
  30471. return to inlined call and return thunk. \fBthunk-extern\fR converts
  30472. function return to external call and return thunk provided in a separate
  30473. object file. You can control this behavior for a specific function by
  30474. using the function attribute \f(CW\*(C`function_return\*(C'\fR.
  30475. .Sp
  30476. Note that \fB\-mindirect\-return=thunk\-extern\fR is compatible with
  30477. \&\fB\-fcf\-protection=branch\fR since the external thunk can be made
  30478. to enable control-flow check.
  30479. .Sp
  30480. Note that \fB\-mcmodel=large\fR is incompatible with
  30481. \&\fB\-mfunction\-return=thunk\fR and
  30482. \&\fB\-mfunction\-return=thunk\-extern\fR since the thunk function may
  30483. not be reachable in the large code model.
  30484. .IP "\fB\-mindirect\-branch\-register\fR" 4
  30485. .IX Item "-mindirect-branch-register"
  30486. Force indirect call and jump via register.
  30487. .PP
  30488. These \fB\-m\fR switches are supported in addition to the above
  30489. on x86\-64 processors in 64\-bit environments.
  30490. .IP "\fB\-m32\fR" 4
  30491. .IX Item "-m32"
  30492. .PD 0
  30493. .IP "\fB\-m64\fR" 4
  30494. .IX Item "-m64"
  30495. .IP "\fB\-mx32\fR" 4
  30496. .IX Item "-mx32"
  30497. .IP "\fB\-m16\fR" 4
  30498. .IX Item "-m16"
  30499. .IP "\fB\-miamcu\fR" 4
  30500. .IX Item "-miamcu"
  30501. .PD
  30502. Generate code for a 16\-bit, 32\-bit or 64\-bit environment.
  30503. The \fB\-m32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
  30504. to 32 bits, and
  30505. generates code that runs on any i386 system.
  30506. .Sp
  30507. The \fB\-m64\fR option sets \f(CW\*(C`int\*(C'\fR to 32 bits and \f(CW\*(C`long\*(C'\fR and pointer
  30508. types to 64 bits, and generates code for the x86\-64 architecture.
  30509. For Darwin only the \fB\-m64\fR option also turns off the \fB\-fno\-pic\fR
  30510. and \fB\-mdynamic\-no\-pic\fR options.
  30511. .Sp
  30512. The \fB\-mx32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
  30513. to 32 bits, and
  30514. generates code for the x86\-64 architecture.
  30515. .Sp
  30516. The \fB\-m16\fR option is the same as \fB\-m32\fR, except for that
  30517. it outputs the \f(CW\*(C`.code16gcc\*(C'\fR assembly directive at the beginning of
  30518. the assembly output so that the binary can run in 16\-bit mode.
  30519. .Sp
  30520. The \fB\-miamcu\fR option generates code which conforms to Intel \s-1MCU\s0
  30521. psABI. It requires the \fB\-m32\fR option to be turned on.
  30522. .IP "\fB\-mno\-red\-zone\fR" 4
  30523. .IX Item "-mno-red-zone"
  30524. Do not use a so-called \*(L"red zone\*(R" for x86\-64 code. The red zone is mandated
  30525. by the x86\-64 \s-1ABI\s0; it is a 128\-byte area beyond the location of the
  30526. stack pointer that is not modified by signal or interrupt handlers
  30527. and therefore can be used for temporary data without adjusting the stack
  30528. pointer. The flag \fB\-mno\-red\-zone\fR disables this red zone.
  30529. .IP "\fB\-mcmodel=small\fR" 4
  30530. .IX Item "-mcmodel=small"
  30531. Generate code for the small code model: the program and its symbols must
  30532. be linked in the lower 2 \s-1GB\s0 of the address space. Pointers are 64 bits.
  30533. Programs can be statically or dynamically linked. This is the default
  30534. code model.
  30535. .IP "\fB\-mcmodel=kernel\fR" 4
  30536. .IX Item "-mcmodel=kernel"
  30537. Generate code for the kernel code model. The kernel runs in the
  30538. negative 2 \s-1GB\s0 of the address space.
  30539. This model has to be used for Linux kernel code.
  30540. .IP "\fB\-mcmodel=medium\fR" 4
  30541. .IX Item "-mcmodel=medium"
  30542. Generate code for the medium model: the program is linked in the lower 2
  30543. \&\s-1GB\s0 of the address space. Small symbols are also placed there. Symbols
  30544. with sizes larger than \fB\-mlarge\-data\-threshold\fR are put into
  30545. large data or \s-1BSS\s0 sections and can be located above 2GB. Programs can
  30546. be statically or dynamically linked.
  30547. .IP "\fB\-mcmodel=large\fR" 4
  30548. .IX Item "-mcmodel=large"
  30549. Generate code for the large model. This model makes no assumptions
  30550. about addresses and sizes of sections.
  30551. .IP "\fB\-maddress\-mode=long\fR" 4
  30552. .IX Item "-maddress-mode=long"
  30553. Generate code for long address mode. This is only supported for 64\-bit
  30554. and x32 environments. It is the default address mode for 64\-bit
  30555. environments.
  30556. .IP "\fB\-maddress\-mode=short\fR" 4
  30557. .IX Item "-maddress-mode=short"
  30558. Generate code for short address mode. This is only supported for 32\-bit
  30559. and x32 environments. It is the default address mode for 32\-bit and
  30560. x32 environments.
  30561. .IP "\fB\-mneeded\fR" 4
  30562. .IX Item "-mneeded"
  30563. .PD 0
  30564. .IP "\fB\-mno\-needed\fR" 4
  30565. .IX Item "-mno-needed"
  30566. .PD
  30567. Emit \s-1GNU_PROPERTY_X86_ISA_1_NEEDED GNU\s0 property for Linux target to
  30568. indicate the micro-architecture \s-1ISA\s0 level required to execute the binary.
  30569. .PP
  30570. \fIx86 Windows Options\fR
  30571. .IX Subsection "x86 Windows Options"
  30572. .PP
  30573. These additional options are available for Microsoft Windows targets:
  30574. .IP "\fB\-mconsole\fR" 4
  30575. .IX Item "-mconsole"
  30576. This option
  30577. specifies that a console application is to be generated, by
  30578. instructing the linker to set the \s-1PE\s0 header subsystem type
  30579. required for console applications.
  30580. This option is available for Cygwin and MinGW targets and is
  30581. enabled by default on those targets.
  30582. .IP "\fB\-mdll\fR" 4
  30583. .IX Item "-mdll"
  30584. This option is available for Cygwin and MinGW targets. It
  30585. specifies that a DLL\-\-\-a dynamic link library\-\-\-is to be
  30586. generated, enabling the selection of the required runtime
  30587. startup object and entry point.
  30588. .IP "\fB\-mnop\-fun\-dllimport\fR" 4
  30589. .IX Item "-mnop-fun-dllimport"
  30590. This option is available for Cygwin and MinGW targets. It
  30591. specifies that the \f(CW\*(C`dllimport\*(C'\fR attribute should be ignored.
  30592. .IP "\fB\-mthread\fR" 4
  30593. .IX Item "-mthread"
  30594. This option is available for MinGW targets. It specifies
  30595. that MinGW-specific thread support is to be used.
  30596. .IP "\fB\-municode\fR" 4
  30597. .IX Item "-municode"
  30598. This option is available for MinGW\-w64 targets. It causes
  30599. the \f(CW\*(C`UNICODE\*(C'\fR preprocessor macro to be predefined, and
  30600. chooses Unicode-capable runtime startup code.
  30601. .IP "\fB\-mwin32\fR" 4
  30602. .IX Item "-mwin32"
  30603. This option is available for Cygwin and MinGW targets. It
  30604. specifies that the typical Microsoft Windows predefined macros are to
  30605. be set in the pre-processor, but does not influence the choice
  30606. of runtime library/startup code.
  30607. .IP "\fB\-mwindows\fR" 4
  30608. .IX Item "-mwindows"
  30609. This option is available for Cygwin and MinGW targets. It
  30610. specifies that a \s-1GUI\s0 application is to be generated by
  30611. instructing the linker to set the \s-1PE\s0 header subsystem type
  30612. appropriately.
  30613. .IP "\fB\-fno\-set\-stack\-executable\fR" 4
  30614. .IX Item "-fno-set-stack-executable"
  30615. This option is available for MinGW targets. It specifies that
  30616. the executable flag for the stack used by nested functions isn't
  30617. set. This is necessary for binaries running in kernel mode of
  30618. Microsoft Windows, as there the User32 \s-1API,\s0 which is used to set executable
  30619. privileges, isn't available.
  30620. .IP "\fB\-fwritable\-relocated\-rdata\fR" 4
  30621. .IX Item "-fwritable-relocated-rdata"
  30622. This option is available for MinGW and Cygwin targets. It specifies
  30623. that relocated-data in read-only section is put into the \f(CW\*(C`.data\*(C'\fR
  30624. section. This is a necessary for older runtimes not supporting
  30625. modification of \f(CW\*(C`.rdata\*(C'\fR sections for pseudo-relocation.
  30626. .IP "\fB\-mpe\-aligned\-commons\fR" 4
  30627. .IX Item "-mpe-aligned-commons"
  30628. This option is available for Cygwin and MinGW targets. It
  30629. specifies that the \s-1GNU\s0 extension to the \s-1PE\s0 file format that
  30630. permits the correct alignment of \s-1COMMON\s0 variables should be
  30631. used when generating code. It is enabled by default if
  30632. \&\s-1GCC\s0 detects that the target assembler found during configuration
  30633. supports the feature.
  30634. .PP
  30635. See also under \fBx86 Options\fR for standard options.
  30636. .PP
  30637. \fIXstormy16 Options\fR
  30638. .IX Subsection "Xstormy16 Options"
  30639. .PP
  30640. These options are defined for Xstormy16:
  30641. .IP "\fB\-msim\fR" 4
  30642. .IX Item "-msim"
  30643. Choose startup files and linker script suitable for the simulator.
  30644. .PP
  30645. \fIXtensa Options\fR
  30646. .IX Subsection "Xtensa Options"
  30647. .PP
  30648. These options are supported for Xtensa targets:
  30649. .IP "\fB\-mconst16\fR" 4
  30650. .IX Item "-mconst16"
  30651. .PD 0
  30652. .IP "\fB\-mno\-const16\fR" 4
  30653. .IX Item "-mno-const16"
  30654. .PD
  30655. Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
  30656. constant values. The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
  30657. standard option from Tensilica. When enabled, \f(CW\*(C`CONST16\*(C'\fR
  30658. instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
  30659. instructions. The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
  30660. the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
  30661. .IP "\fB\-mfused\-madd\fR" 4
  30662. .IX Item "-mfused-madd"
  30663. .PD 0
  30664. .IP "\fB\-mno\-fused\-madd\fR" 4
  30665. .IX Item "-mno-fused-madd"
  30666. .PD
  30667. Enable or disable use of fused multiply/add and multiply/subtract
  30668. instructions in the floating-point option. This has no effect if the
  30669. floating-point option is not also enabled. Disabling fused multiply/add
  30670. and multiply/subtract instructions forces the compiler to use separate
  30671. instructions for the multiply and add/subtract operations. This may be
  30672. desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
  30673. required: the fused multiply add/subtract instructions do not round the
  30674. intermediate result, thereby producing results with \fImore\fR bits of
  30675. precision than specified by the \s-1IEEE\s0 standard. Disabling fused multiply
  30676. add/subtract instructions also ensures that the program output is not
  30677. sensitive to the compiler's ability to combine multiply and add/subtract
  30678. operations.
  30679. .IP "\fB\-mserialize\-volatile\fR" 4
  30680. .IX Item "-mserialize-volatile"
  30681. .PD 0
  30682. .IP "\fB\-mno\-serialize\-volatile\fR" 4
  30683. .IX Item "-mno-serialize-volatile"
  30684. .PD
  30685. When this option is enabled, \s-1GCC\s0 inserts \f(CW\*(C`MEMW\*(C'\fR instructions before
  30686. \&\f(CW\*(C`volatile\*(C'\fR memory references to guarantee sequential consistency.
  30687. The default is \fB\-mserialize\-volatile\fR. Use
  30688. \&\fB\-mno\-serialize\-volatile\fR to omit the \f(CW\*(C`MEMW\*(C'\fR instructions.
  30689. .IP "\fB\-mforce\-no\-pic\fR" 4
  30690. .IX Item "-mforce-no-pic"
  30691. For targets, like GNU/Linux, where all user-mode Xtensa code must be
  30692. position-independent code (\s-1PIC\s0), this option disables \s-1PIC\s0 for compiling
  30693. kernel code.
  30694. .IP "\fB\-mtext\-section\-literals\fR" 4
  30695. .IX Item "-mtext-section-literals"
  30696. .PD 0
  30697. .IP "\fB\-mno\-text\-section\-literals\fR" 4
  30698. .IX Item "-mno-text-section-literals"
  30699. .PD
  30700. These options control the treatment of literal pools. The default is
  30701. \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
  30702. section in the output file. This allows the literal pool to be placed
  30703. in a data \s-1RAM/ROM,\s0 and it also allows the linker to combine literal
  30704. pools from separate object files to remove redundant literals and
  30705. improve code size. With \fB\-mtext\-section\-literals\fR, the literals
  30706. are interspersed in the text section in order to keep them as close as
  30707. possible to their references. This may be necessary for large assembly
  30708. files. Literals for each function are placed right before that function.
  30709. .IP "\fB\-mauto\-litpools\fR" 4
  30710. .IX Item "-mauto-litpools"
  30711. .PD 0
  30712. .IP "\fB\-mno\-auto\-litpools\fR" 4
  30713. .IX Item "-mno-auto-litpools"
  30714. .PD
  30715. These options control the treatment of literal pools. The default is
  30716. \&\fB\-mno\-auto\-litpools\fR, which places literals in a separate
  30717. section in the output file unless \fB\-mtext\-section\-literals\fR is
  30718. used. With \fB\-mauto\-litpools\fR the literals are interspersed in
  30719. the text section by the assembler. Compiler does not produce explicit
  30720. \&\f(CW\*(C`.literal\*(C'\fR directives and loads literals into registers with
  30721. \&\f(CW\*(C`MOVI\*(C'\fR instructions instead of \f(CW\*(C`L32R\*(C'\fR to let the assembler
  30722. do relaxation and place literals as necessary. This option allows
  30723. assembler to create several literal pools per function and assemble
  30724. very big functions, which may not be possible with
  30725. \&\fB\-mtext\-section\-literals\fR.
  30726. .IP "\fB\-mtarget\-align\fR" 4
  30727. .IX Item "-mtarget-align"
  30728. .PD 0
  30729. .IP "\fB\-mno\-target\-align\fR" 4
  30730. .IX Item "-mno-target-align"
  30731. .PD
  30732. When this option is enabled, \s-1GCC\s0 instructs the assembler to
  30733. automatically align instructions to reduce branch penalties at the
  30734. expense of some code density. The assembler attempts to widen density
  30735. instructions to align branch targets and the instructions following call
  30736. instructions. If there are not enough preceding safe density
  30737. instructions to align a target, no widening is performed. The
  30738. default is \fB\-mtarget\-align\fR. These options do not affect the
  30739. treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
  30740. assembler always aligns, either by widening density instructions or
  30741. by inserting \s-1NOP\s0 instructions.
  30742. .IP "\fB\-mlongcalls\fR" 4
  30743. .IX Item "-mlongcalls"
  30744. .PD 0
  30745. .IP "\fB\-mno\-longcalls\fR" 4
  30746. .IX Item "-mno-longcalls"
  30747. .PD
  30748. When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
  30749. direct calls to indirect calls unless it can determine that the target
  30750. of a direct call is in the range allowed by the call instruction. This
  30751. translation typically occurs for calls to functions in other source
  30752. files. Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
  30753. instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
  30754. The default is \fB\-mno\-longcalls\fR. This option should be used in
  30755. programs where the call target can potentially be out of range. This
  30756. option is implemented in the assembler, not the compiler, so the
  30757. assembly code generated by \s-1GCC\s0 still shows direct call
  30758. instructions\-\-\-look at the disassembled object code to see the actual
  30759. instructions. Note that the assembler uses an indirect call for
  30760. every cross-file call, not just those that really are out of range.
  30761. .IP "\fB\-mabi=\fR\fIname\fR" 4
  30762. .IX Item "-mabi=name"
  30763. Generate code for the specified \s-1ABI.\s0 Permissible values are: \fBcall0\fR,
  30764. \&\fBwindowed\fR. Default \s-1ABI\s0 is chosen by the Xtensa core configuration.
  30765. .IP "\fB\-mabi=call0\fR" 4
  30766. .IX Item "-mabi=call0"
  30767. When this option is enabled function parameters are passed in registers
  30768. \&\f(CW\*(C`a2\*(C'\fR through \f(CW\*(C`a7\*(C'\fR, registers \f(CW\*(C`a12\*(C'\fR through \f(CW\*(C`a15\*(C'\fR are
  30769. caller-saved, and register \f(CW\*(C`a15\*(C'\fR may be used as a frame pointer.
  30770. When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
  30771. \&\f(CW\*(C`_\|_XTENSA_CALL0_ABI_\|_\*(C'\fR is defined.
  30772. .IP "\fB\-mabi=windowed\fR" 4
  30773. .IX Item "-mabi=windowed"
  30774. When this option is enabled function parameters are passed in registers
  30775. \&\f(CW\*(C`a10\*(C'\fR through \f(CW\*(C`a15\*(C'\fR, and called function rotates register window
  30776. by 8 registers on entry so that its arguments are found in registers
  30777. \&\f(CW\*(C`a2\*(C'\fR through \f(CW\*(C`a7\*(C'\fR. Register \f(CW\*(C`a7\*(C'\fR may be used as a frame
  30778. pointer. Register window is rotated 8 registers back upon return.
  30779. When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
  30780. \&\f(CW\*(C`_\|_XTENSA_WINDOWED_ABI_\|_\*(C'\fR is defined.
  30781. .PP
  30782. \fIzSeries Options\fR
  30783. .IX Subsection "zSeries Options"
  30784. .PP
  30785. These are listed under
  30786. .SH "ENVIRONMENT"
  30787. .IX Header "ENVIRONMENT"
  30788. This section describes several environment variables that affect how \s-1GCC\s0
  30789. operates. Some of them work by specifying directories or prefixes to use
  30790. when searching for various kinds of files. Some are used to specify other
  30791. aspects of the compilation environment.
  30792. .PP
  30793. Note that you can also specify places to search using options such as
  30794. \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR. These
  30795. take precedence over places specified using environment variables, which
  30796. in turn take precedence over those specified by the configuration of \s-1GCC.\s0
  30797. .IP "\fB\s-1LANG\s0\fR" 4
  30798. .IX Item "LANG"
  30799. .PD 0
  30800. .IP "\fB\s-1LC_CTYPE\s0\fR" 4
  30801. .IX Item "LC_CTYPE"
  30802. .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
  30803. .IX Item "LC_MESSAGES"
  30804. .IP "\fB\s-1LC_ALL\s0\fR" 4
  30805. .IX Item "LC_ALL"
  30806. .PD
  30807. These environment variables control the way that \s-1GCC\s0 uses
  30808. localization information which allows \s-1GCC\s0 to work with different
  30809. national conventions. \s-1GCC\s0 inspects the locale categories
  30810. \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
  30811. so. These locale categories can be set to any value supported by your
  30812. installation. A typical value is \fBen_GB.UTF\-8\fR for English in the United
  30813. Kingdom encoded in \s-1UTF\-8.\s0
  30814. .Sp
  30815. The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
  30816. classification. \s-1GCC\s0 uses it to determine the character boundaries in
  30817. a string; this is needed for some multibyte encodings that contain quote
  30818. and escape characters that are otherwise interpreted as a string
  30819. end or escape.
  30820. .Sp
  30821. The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
  30822. use in diagnostic messages.
  30823. .Sp
  30824. If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
  30825. of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
  30826. and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
  30827. environment variable. If none of these variables are set, \s-1GCC\s0
  30828. defaults to traditional C English behavior.
  30829. .IP "\fB\s-1TMPDIR\s0\fR" 4
  30830. .IX Item "TMPDIR"
  30831. If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
  30832. files. \s-1GCC\s0 uses temporary files to hold the output of one stage of
  30833. compilation which is to be used as input to the next stage: for example,
  30834. the output of the preprocessor, which is the input to the compiler
  30835. proper.
  30836. .IP "\fB\s-1GCC_COMPARE_DEBUG\s0\fR" 4
  30837. .IX Item "GCC_COMPARE_DEBUG"
  30838. Setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR is nearly equivalent to passing
  30839. \&\fB\-fcompare\-debug\fR to the compiler driver. See the documentation
  30840. of this option for more details.
  30841. .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
  30842. .IX Item "GCC_EXEC_PREFIX"
  30843. If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
  30844. names of the subprograms executed by the compiler. No slash is added
  30845. when this prefix is combined with the name of a subprogram, but you can
  30846. specify a prefix that ends with a slash if you wish.
  30847. .Sp
  30848. If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 attempts to figure out
  30849. an appropriate prefix to use based on the pathname it is invoked with.
  30850. .Sp
  30851. If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
  30852. tries looking in the usual places for the subprogram.
  30853. .Sp
  30854. The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
  30855. \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the prefix to
  30856. the installed compiler. In many cases \fIprefix\fR is the value
  30857. of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
  30858. .Sp
  30859. Other prefixes specified with \fB\-B\fR take precedence over this prefix.
  30860. .Sp
  30861. This prefix is also used for finding files such as \fIcrt0.o\fR that are
  30862. used for linking.
  30863. .Sp
  30864. In addition, the prefix is used in an unusual way in finding the
  30865. directories to search for header files. For each of the standard
  30866. directories whose name normally begins with \fB/usr/local/lib/gcc\fR
  30867. (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
  30868. replacing that beginning with the specified prefix to produce an
  30869. alternate directory name. Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 searches
  30870. \&\fIfoo/bar\fR just before it searches the standard directory
  30871. \&\fI/usr/local/lib/bar\fR.
  30872. If a standard directory begins with the configured
  30873. \&\fIprefix\fR then the value of \fIprefix\fR is replaced by
  30874. \&\fB\s-1GCC_EXEC_PREFIX\s0\fR when looking for header files.
  30875. .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
  30876. .IX Item "COMPILER_PATH"
  30877. The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
  30878. directories, much like \fB\s-1PATH\s0\fR. \s-1GCC\s0 tries the directories thus
  30879. specified when searching for subprograms, if it cannot find the
  30880. subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
  30881. .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
  30882. .IX Item "LIBRARY_PATH"
  30883. The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
  30884. directories, much like \fB\s-1PATH\s0\fR. When configured as a native compiler,
  30885. \&\s-1GCC\s0 tries the directories thus specified when searching for special
  30886. linker files, if it cannot find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR. Linking
  30887. using \s-1GCC\s0 also uses these directories when searching for ordinary
  30888. libraries for the \fB\-l\fR option (but directories specified with
  30889. \&\fB\-L\fR come first).
  30890. .IP "\fB\s-1LANG\s0\fR" 4
  30891. .IX Item "LANG"
  30892. This variable is used to pass locale information to the compiler. One way in
  30893. which this information is used is to determine the character set to be used
  30894. when character literals, string literals and comments are parsed in C and \*(C+.
  30895. When the compiler is configured to allow multibyte characters,
  30896. the following values for \fB\s-1LANG\s0\fR are recognized:
  30897. .RS 4
  30898. .IP "\fBC\-JIS\fR" 4
  30899. .IX Item "C-JIS"
  30900. Recognize \s-1JIS\s0 characters.
  30901. .IP "\fBC\-SJIS\fR" 4
  30902. .IX Item "C-SJIS"
  30903. Recognize \s-1SJIS\s0 characters.
  30904. .IP "\fBC\-EUCJP\fR" 4
  30905. .IX Item "C-EUCJP"
  30906. Recognize \s-1EUCJP\s0 characters.
  30907. .RE
  30908. .RS 4
  30909. .Sp
  30910. If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
  30911. compiler uses \f(CW\*(C`mblen\*(C'\fR and \f(CW\*(C`mbtowc\*(C'\fR as defined by the default locale to
  30912. recognize and translate multibyte characters.
  30913. .RE
  30914. .IP "\fB\s-1GCC_EXTRA_DIAGNOSTIC_OUTPUT\s0\fR" 4
  30915. .IX Item "GCC_EXTRA_DIAGNOSTIC_OUTPUT"
  30916. If \fB\s-1GCC_EXTRA_DIAGNOSTIC_OUTPUT\s0\fR is set to one of the following values,
  30917. then additional text will be emitted to stderr when fix-it hints are
  30918. emitted. \fB\-fdiagnostics\-parseable\-fixits\fR and
  30919. \&\fB\-fno\-diagnostics\-parseable\-fixits\fR take precedence over this
  30920. environment variable.
  30921. .RS 4
  30922. .IP "\fBfixits\-v1\fR" 4
  30923. .IX Item "fixits-v1"
  30924. Emit parseable fix-it hints, equivalent to
  30925. \&\fB\-fdiagnostics\-parseable\-fixits\fR. In particular, columns are
  30926. expressed as a count of bytes, starting at byte 1 for the initial column.
  30927. .IP "\fBfixits\-v2\fR" 4
  30928. .IX Item "fixits-v2"
  30929. As \f(CW\*(C`fixits\-v1\*(C'\fR, but columns are expressed as display columns,
  30930. as per \fB\-fdiagnostics\-column\-unit=display\fR.
  30931. .RE
  30932. .RS 4
  30933. .RE
  30934. .PP
  30935. Some additional environment variables affect the behavior of the
  30936. preprocessor.
  30937. .IP "\fB\s-1CPATH\s0\fR" 4
  30938. .IX Item "CPATH"
  30939. .PD 0
  30940. .IP "\fBC_INCLUDE_PATH\fR" 4
  30941. .IX Item "C_INCLUDE_PATH"
  30942. .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
  30943. .IX Item "CPLUS_INCLUDE_PATH"
  30944. .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
  30945. .IX Item "OBJC_INCLUDE_PATH"
  30946. .PD
  30947. Each variable's value is a list of directories separated by a special
  30948. character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
  30949. The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
  30950. determined at \s-1GCC\s0 build time. For Microsoft Windows-based targets it is a
  30951. semicolon, and for almost all other targets it is a colon.
  30952. .Sp
  30953. \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
  30954. specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
  30955. options on the command line. This environment variable is used
  30956. regardless of which language is being preprocessed.
  30957. .Sp
  30958. The remaining environment variables apply only when preprocessing the
  30959. particular language indicated. Each specifies a list of directories
  30960. to be searched as if specified with \fB\-isystem\fR, but after any
  30961. paths given with \fB\-isystem\fR options on the command line.
  30962. .Sp
  30963. In all these variables, an empty element instructs the compiler to
  30964. search its current working directory. Empty elements can appear at the
  30965. beginning or end of a path. For instance, if the value of
  30966. \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
  30967. effect as \fB\-I.\ \-I/special/include\fR.
  30968. .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
  30969. .IX Item "DEPENDENCIES_OUTPUT"
  30970. If this variable is set, its value specifies how to output
  30971. dependencies for Make based on the non-system header files processed
  30972. by the compiler. System header files are ignored in the dependency
  30973. output.
  30974. .Sp
  30975. The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
  30976. which case the Make rules are written to that file, guessing the target
  30977. name from the source file name. Or the value can have the form
  30978. \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
  30979. file \fIfile\fR using \fItarget\fR as the target name.
  30980. .Sp
  30981. In other words, this environment variable is equivalent to combining
  30982. the options \fB\-MM\fR and \fB\-MF\fR,
  30983. with an optional \fB\-MT\fR switch too.
  30984. .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
  30985. .IX Item "SUNPRO_DEPENDENCIES"
  30986. This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
  30987. except that system header files are not ignored, so it implies
  30988. \&\fB\-M\fR rather than \fB\-MM\fR. However, the dependence on the
  30989. main input file is omitted.
  30990. .IP "\fB\s-1SOURCE_DATE_EPOCH\s0\fR" 4
  30991. .IX Item "SOURCE_DATE_EPOCH"
  30992. If this variable is set, its value specifies a \s-1UNIX\s0 timestamp to be
  30993. used in replacement of the current date and time in the \f(CW\*(C`_\|_DATE_\|_\*(C'\fR
  30994. and \f(CW\*(C`_\|_TIME_\|_\*(C'\fR macros, so that the embedded timestamps become
  30995. reproducible.
  30996. .Sp
  30997. The value of \fB\s-1SOURCE_DATE_EPOCH\s0\fR must be a \s-1UNIX\s0 timestamp,
  30998. defined as the number of seconds (excluding leap seconds) since
  30999. 01 Jan 1970 00:00:00 represented in \s-1ASCII\s0; identical to the output of
  31000. \&\f(CW\*(C`date +%s\*(C'\fR on GNU/Linux and other systems that support the
  31001. \&\f(CW%s\fR extension in the \f(CW\*(C`date\*(C'\fR command.
  31002. .Sp
  31003. The value should be a known timestamp such as the last modification
  31004. time of the source or package and it should be set by the build
  31005. process.
  31006. .SH "BUGS"
  31007. .IX Header "BUGS"
  31008. For instructions on reporting bugs, see
  31009. <\fBhttps://gcc.gnu.org/bugs/\fR>.
  31010. .SH "FOOTNOTES"
  31011. .IX Header "FOOTNOTES"
  31012. .IP "1." 4
  31013. On some systems, \fBgcc \-shared\fR
  31014. needs to build supplementary stub code for constructors to work. On
  31015. multi-libbed systems, \fBgcc \-shared\fR must select the correct support
  31016. libraries to link against. Failing to supply the correct flags may lead
  31017. to subtle defects. Supplying them in cases where they are not necessary
  31018. is innocuous.
  31019. .SH "SEE ALSO"
  31020. .IX Header "SEE ALSO"
  31021. \&\fBgpl\fR\|(7), \fBgfdl\fR\|(7), \fBfsf\-funding\fR\|(7),
  31022. \&\fBcpp\fR\|(1), \fBgcov\fR\|(1), \fBas\fR\|(1), \fBld\fR\|(1), \fBgdb\fR\|(1), \fBdbx\fR\|(1)
  31023. and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
  31024. \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
  31025. .SH "AUTHOR"
  31026. .IX Header "AUTHOR"
  31027. See the Info entry for \fBgcc\fR, or
  31028. <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
  31029. for contributors to \s-1GCC.\s0
  31030. .SH "COPYRIGHT"
  31031. .IX Header "COPYRIGHT"
  31032. Copyright (c) 1988\-2021 Free Software Foundation, Inc.
  31033. .PP
  31034. Permission is granted to copy, distribute and/or modify this document
  31035. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or
  31036. any later version published by the Free Software Foundation; with the
  31037. Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
  31038. Free Software\*(R", the Front-Cover texts being (a) (see below), and with
  31039. the Back-Cover Texts being (b) (see below). A copy of the license is
  31040. included in the \fBgfdl\fR\|(7) man page.
  31041. .PP
  31042. (a) The \s-1FSF\s0's Front-Cover Text is:
  31043. .PP
  31044. .Vb 1
  31045. \& A GNU Manual
  31046. .Ve
  31047. .PP
  31048. (b) The \s-1FSF\s0's Back-Cover Text is:
  31049. .PP
  31050. .Vb 3
  31051. \& You have freedom to copy and modify this GNU Manual, like GNU
  31052. \& software. Copies published by the Free Software Foundation raise
  31053. \& funds for GNU development.
  31054. .Ve